Update dependencies and fix new lint errors
This commit is contained in:
1 parent
c2f002b95a
commit
5bb6f60c4d
8 files changed
+2168
-877
No files matched your search
@@ -42,7 +42,7 @@ function interpretEscapes(str): string {
|
|||||||
|
|
||||||
export function map(
|
export function map(
|
||||||
exp: Expression,
|
exp: Expression,
|
||||||
callback: (exp: Expression) => Expression
|
callback: (e: Expression) => Expression
|
||||||
): Expression {
|
): Expression {
|
||||||
if (!Array.isArray(exp)) return callback(exp);
|
if (!Array.isArray(exp)) return callback(exp);
|
||||||
|
|
||||||
@@ -60,7 +60,7 @@ export function map(
|
|||||||
|
|
||||||
export async function mapAsync(
|
export async function mapAsync(
|
||||||
exp: Expression,
|
exp: Expression,
|
||||||
callback: (exp: Expression) => Promise<Expression>
|
callback: (e: Expression) => Promise<Expression>
|
||||||
): Promise<Expression> {
|
): Promise<Expression> {
|
||||||
if (!Array.isArray(exp)) return callback(exp);
|
if (!Array.isArray(exp)) return callback(exp);
|
||||||
|
|
||||||
|
|||||||
@@ -264,21 +264,21 @@ export function evaluateCallback(exp: Expression): Expression {
|
|||||||
|
|
||||||
export function evaluate(
|
export function evaluate(
|
||||||
exp: Expression,
|
exp: Expression,
|
||||||
obj: Record<string, unknown> | ((exp: string) => Expression),
|
obj: Record<string, unknown> | ((e: string) => Expression),
|
||||||
now: number,
|
now: number,
|
||||||
cb?: (exp: Expression) => Expression
|
cb?: (e: Expression) => Expression
|
||||||
): string | number | boolean | null;
|
): string | number | boolean | null;
|
||||||
export function evaluate(
|
export function evaluate(
|
||||||
exp: Expression,
|
exp: Expression,
|
||||||
obj?: Record<string, unknown> | ((exp: string) => Expression),
|
obj?: Record<string, unknown> | ((e: string) => Expression),
|
||||||
now?: number,
|
now?: number,
|
||||||
cb?: (exp: Expression) => Expression
|
cb?: (e: Expression) => Expression
|
||||||
): Expression;
|
): Expression;
|
||||||
export function evaluate(
|
export function evaluate(
|
||||||
exp: Expression,
|
exp: Expression,
|
||||||
obj?: Record<string, unknown> | ((exp: string) => Expression),
|
obj?: Record<string, unknown> | ((e: string) => Expression),
|
||||||
now?: number,
|
now?: number,
|
||||||
cb?: (exp: Expression) => Expression
|
cb?: (e: Expression) => Expression
|
||||||
): Expression {
|
): Expression {
|
||||||
return map(exp, (e) => {
|
return map(exp, (e) => {
|
||||||
if (cb) e = cb(e);
|
if (cb) e = cb(e);
|
||||||
@@ -306,19 +306,19 @@ export async function evaluateAsync(
|
|||||||
exp: Expression,
|
exp: Expression,
|
||||||
obj: Record<string, unknown>,
|
obj: Record<string, unknown>,
|
||||||
now: number,
|
now: number,
|
||||||
cb?: (exp: Expression) => Promise<Expression>
|
cb?: (e: Expression) => Promise<Expression>
|
||||||
): Promise<string | number | boolean | null>;
|
): Promise<string | number | boolean | null>;
|
||||||
export async function evaluateAsync(
|
export async function evaluateAsync(
|
||||||
exp: Expression,
|
exp: Expression,
|
||||||
obj?: Record<string, unknown>,
|
obj?: Record<string, unknown>,
|
||||||
now?: number,
|
now?: number,
|
||||||
cb?: (exp: Expression) => Promise<Expression>
|
cb?: (e: Expression) => Promise<Expression>
|
||||||
): Promise<Expression>;
|
): Promise<Expression>;
|
||||||
export async function evaluateAsync(
|
export async function evaluateAsync(
|
||||||
exp: Expression,
|
exp: Expression,
|
||||||
obj?: Record<string, unknown>,
|
obj?: Record<string, unknown>,
|
||||||
now?: number,
|
now?: number,
|
||||||
cb?: (exp: Expression) => Promise<Expression>
|
cb?: (e: Expression) => Promise<Expression>
|
||||||
): Promise<Expression> {
|
): Promise<Expression> {
|
||||||
return mapAsync(exp, async (e) => {
|
return mapAsync(exp, async (e) => {
|
||||||
if (cb) e = await cb(e);
|
if (cb) e = await cb(e);
|
||||||
|
|||||||
+1
-1
@@ -475,7 +475,7 @@ export function getConfig(
|
|||||||
key: string,
|
key: string,
|
||||||
context: Record<string, unknown>,
|
context: Record<string, unknown>,
|
||||||
now: number,
|
now: number,
|
||||||
cb?: (Expression) => Expression
|
cb?: (e: Expression) => Expression
|
||||||
): string | number | boolean | null {
|
): string | number | boolean | null {
|
||||||
const snapshot = snapshots.get(snapshotKey);
|
const snapshot = snapshots.get(snapshotKey);
|
||||||
if (!snapshot) throw new Error("Cache snapshot does not exist");
|
if (!snapshot) throw new Error("Cache snapshot does not exist");
|
||||||
|
|||||||
@@ -145,16 +145,6 @@ export async function postTasks(
|
|||||||
return { connectionRequest: "OK", tasks: statuses };
|
return { connectionRequest: "OK", tasks: statuses };
|
||||||
}
|
}
|
||||||
|
|
||||||
interface PingResponse {
|
|
||||||
packetsTransmitted: number;
|
|
||||||
packetsReceived: number;
|
|
||||||
packetLoss: string;
|
|
||||||
min: number;
|
|
||||||
avg: number;
|
|
||||||
max: number;
|
|
||||||
mdev: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export async function putResource(
|
export async function putResource(
|
||||||
resource: string,
|
resource: string,
|
||||||
id: string,
|
id: string,
|
||||||
|
|||||||
Generated
+2135
-834
File diff suppressed because it is too large.
Load diff
+19
-19
@@ -31,47 +31,47 @@
|
|||||||
"koa-router": "^9.4.0",
|
"koa-router": "^9.4.0",
|
||||||
"koa-static": "^5.0.0",
|
"koa-static": "^5.0.0",
|
||||||
"later": "^1.2.0",
|
"later": "^1.2.0",
|
||||||
"mongodb": "^3.6.1",
|
"mongodb": "^3.6.2",
|
||||||
"parsimmon": "^1.16.0",
|
"parsimmon": "^1.16.0",
|
||||||
"seedrandom": "^3.0.5",
|
"seedrandom": "^3.0.5",
|
||||||
"yaml": "^1.10.0"
|
"yaml": "^1.10.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rollup/plugin-commonjs": "^15.0.0",
|
"@rollup/plugin-commonjs": "^15.1.0",
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^9.0.0",
|
"@rollup/plugin-node-resolve": "^9.0.0",
|
||||||
"@rollup/plugin-typescript": "^5.0.2",
|
"@rollup/plugin-typescript": "^6.0.0",
|
||||||
"@types/jsonwebtoken": "^8.5.0",
|
"@types/jsonwebtoken": "^8.5.0",
|
||||||
"@types/koa": "^2.11.4",
|
"@types/koa": "^2.11.4",
|
||||||
"@types/koa-compress": "^4.0.0",
|
"@types/koa-compress": "^4.0.1",
|
||||||
"@types/koa-router": "^7.4.1",
|
"@types/koa-router": "^7.4.1",
|
||||||
"@types/koa-static": "^4.0.1",
|
"@types/koa-static": "^4.0.1",
|
||||||
"@types/mithril": "^2.0.3",
|
"@types/mithril": "^2.0.4",
|
||||||
"@types/mongodb": "^3.5.27",
|
"@types/mongodb": "^3.5.27",
|
||||||
"@types/parsimmon": "^1.10.2",
|
"@types/parsimmon": "^1.10.3",
|
||||||
"@types/seedrandom": "^2.4.28",
|
"@types/seedrandom": "^2.4.28",
|
||||||
"@types/svgo": "^1.3.3",
|
"@types/svgo": "^1.3.3",
|
||||||
"@typescript-eslint/eslint-plugin": "^3.10.1",
|
"@typescript-eslint/eslint-plugin": "^4.3.0",
|
||||||
"@typescript-eslint/parser": "^3.10.1",
|
"@typescript-eslint/parser": "^4.3.0",
|
||||||
"ava": "^3.12.1",
|
"ava": "^3.13.0",
|
||||||
"codemirror": "^5.57.0",
|
"codemirror": "^5.58.1",
|
||||||
"cssnano": "^4.1.10",
|
"cssnano": "^4.1.10",
|
||||||
"eslint": "^7.8.0",
|
"eslint": "^7.10.0",
|
||||||
"eslint-config-prettier": "^6.11.0",
|
"eslint-config-prettier": "^6.12.0",
|
||||||
"esm": "^3.2.25",
|
"esm": "^3.2.25",
|
||||||
"jsbi": "^3.1.3",
|
"jsbi": "^3.1.4",
|
||||||
"mithril": "^2.0.4",
|
"mithril": "^2.0.4",
|
||||||
"postcss": "^7.0.32",
|
"postcss": "^8.1.1",
|
||||||
"postcss-import": "^12.0.1",
|
"postcss-import": "^12.0.1",
|
||||||
"postcss-preset-env": "^6.7.0",
|
"postcss-preset-env": "^6.7.0",
|
||||||
"prettier": "^2.1.1",
|
"prettier": "^2.1.2",
|
||||||
"rollup": "^2.26.9",
|
"rollup": "^2.28.2",
|
||||||
"rollup-plugin-terser": "^7.0.1",
|
"rollup-plugin-terser": "^7.0.2",
|
||||||
"source-map-loader": "^1.1.0",
|
"source-map-loader": "^1.1.0",
|
||||||
"svgo": "^1.3.2",
|
"svgo": "^1.3.2",
|
||||||
"ts-node": "^9.0.0",
|
"ts-node": "^9.0.0",
|
||||||
"typescript": "^4.0.2",
|
"typescript": "^4.0.3",
|
||||||
"webpack": "^4.44.1"
|
"webpack": "^4.44.2"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12.13.0"
|
"node": ">=12.13.0"
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ function renderTable(
|
|||||||
onSortChange: (obj: Record<string, number>) => void,
|
onSortChange: (obj: Record<string, number>) => void,
|
||||||
downloadUrl?: string,
|
downloadUrl?: string,
|
||||||
valueCallback?: (attr: Attribute, record: Record<string, any>) => Children,
|
valueCallback?: (attr: Attribute, record: Record<string, any>) => Children,
|
||||||
actionsCallback?: Children | ((selected: Set<string>) => Children),
|
actionsCallback?: Children | ((sel: Set<string>) => Children),
|
||||||
recordActionsCallback?: Children | ((record: Record<string, any>) => Children)
|
recordActionsCallback?: Children | ((record: Record<string, any>) => Children)
|
||||||
): Children {
|
): Children {
|
||||||
const records = data || [];
|
const records = data || [];
|
||||||
|
|||||||
+1
-1
@@ -95,7 +95,7 @@ export function commit(
|
|||||||
deviceId: string,
|
deviceId: string,
|
||||||
err: Error,
|
err: Error,
|
||||||
conReqStatus: string,
|
conReqStatus: string,
|
||||||
tasks: QueueTask[]
|
_tasks: QueueTask[]
|
||||||
) => void
|
) => void
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
const devices: { [deviceId: string]: any[] } = {};
|
const devices: { [deviceId: string]: any[] } = {};
|
||||||
|
|||||||
Reference in new issue
Block a user