После установки кассы МойСклад, приложение не запускается. При попытке запустить кассу через командную строку получаем следующую ошибку:
$ moysklad-kassa
(moysklad-kassa:28133): Pango-ERROR **: 17:41:02.913: Harfbuzz version too old (1.3.1)
export const resolve = async <T>(promise: Promise<T>) => { | |
try { | |
const result = await promise | |
return [result, null] as const | |
} catch (err) { | |
if (err instanceof Error) { | |
return [null, err] as const | |
} else { | |
throw err | |
} |
export class SomeError extends Error { | |
constructor(message: string) { | |
super(message) | |
this.name = this.constructor.name | |
/* istanbul ignore else */ | |
if (Error.captureStackTrace) { | |
Error.captureStackTrace(this, this.constructor) | |
} | |
} | |
} |
После установки кассы МойСклад, приложение не запускается. При попытке запустить кассу через командную строку получаем следующую ошибку:
$ moysklad-kassa
(moysklad-kassa:28133): Pango-ERROR **: 17:41:02.913: Harfbuzz version too old (1.3.1)
sudo ./install.sh
В самом начале был установлен Драйвер CQue DEB (не знаю нужен ли он по факту)
echo "options hid_apple fnmode=2" | sudo tee /etc/modprobe.d/hid_apple.conf
System settings > Layouts > Options
/* | |
# CHANGELOG: | |
- 2022-06-02 initial | |
*/ | |
import type { fetch, FetchOptions } from "../tools/fetch-adapter"; | |
export interface OzonOptions { | |
clientId: string; |
TypeScript type definitions for Yandex Cloud Function
npm install -D @yandex-cloud/function-types
{ | |
"name": "example", | |
"version": "1.0.0", | |
"type": "module", | |
"description": "", | |
"exports": "./src/index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"engines": { |
/** | |
* Возвращает товары способом обычного листания | |
* | |
* @param {import('moysklad').Instance} ms | |
* @param {string} path | |
* @param {import('moysklad').Query} query | |
*/ | |
export async function* getDocumentsStream(ms, path, query) { | |
/** @type {string | undefined} */ | |
let nextHref = ms.buildUrl(path, query) |
type GetMoyskladAttr = < | |
T extends import("moysklad-api-model").Attribute["type"] | |
>( | |
entity: { attributes?: import("moysklad-api-model").Attribute[] }, | |
type: T, | |
id: string | |
) => Extract<import("moysklad-api-model").Attribute, { type: T }> | null; |