@blocklet/meta 1.8.34 → 1.8.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/channel.d.ts +27 -0
- package/lib/channel.js +32 -32
- package/lib/constants.d.ts +2 -0
- package/lib/constants.js +6 -3
- package/lib/did.d.ts +10 -0
- package/lib/did.js +18 -24
- package/lib/engine.d.ts +7 -0
- package/lib/engine.js +21 -25
- package/lib/entry.d.ts +3 -0
- package/lib/entry.js +51 -64
- package/lib/extension.d.ts +10 -0
- package/lib/extension.js +78 -77
- package/lib/file.d.ts +21 -0
- package/lib/file.js +44 -39
- package/lib/fix.d.ts +33 -0
- package/lib/fix.js +218 -208
- package/lib/get-component-process-id.d.ts +5 -0
- package/lib/get-component-process-id.js +13 -14
- package/lib/has-reserved-key.d.ts +3 -0
- package/lib/has-reserved-key.js +10 -9
- package/lib/index.d.ts +82 -0
- package/lib/index.js +51 -34
- package/lib/info.d.ts +13 -0
- package/lib/info.js +58 -60
- package/lib/name.d.ts +5 -0
- package/lib/name.js +14 -7
- package/lib/nft-templates.d.ts +86 -0
- package/lib/nft-templates.js +47 -42
- package/lib/parse-navigation.d.ts +3 -0
- package/lib/parse-navigation.js +167 -228
- package/lib/parse.d.ts +22 -0
- package/lib/parse.js +71 -82
- package/lib/payment/index.d.ts +254 -0
- package/lib/payment/index.js +13 -6
- package/lib/payment/v1.d.ts +185 -0
- package/lib/payment/v1.js +80 -81
- package/lib/payment/v2.d.ts +242 -0
- package/lib/payment/v2.js +453 -531
- package/lib/schema.d.ts +50 -0
- package/lib/schema.js +405 -402
- package/lib/service-configs/auth.json +61 -61
- package/lib/service.d.ts +26 -0
- package/lib/service.js +69 -85
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.js +18 -0
- package/lib/types/schema.d.ts +241 -0
- package/lib/types/schema.js +3 -0
- package/lib/util-meta.d.ts +42 -0
- package/lib/util-meta.js +138 -158
- package/lib/util.d.ts +185 -0
- package/lib/util.js +359 -414
- package/lib/validate.d.ts +10 -0
- package/lib/validate.js +28 -34
- package/lib/verify-multi-sig.d.ts +3 -0
- package/lib/verify-multi-sig.js +94 -101
- package/lib/wallet.d.ts +9 -0
- package/lib/wallet.js +17 -27
- package/package.json +40 -18
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TBlockletMeta } from './types';
|
|
2
|
+
declare const fixAndValidateService: (meta: TBlockletMeta) => TBlockletMeta;
|
|
3
|
+
declare const validateMeta: (meta: any, { ensureMain, ensureFiles, ensureDist, schemaOptions, }?: {
|
|
4
|
+
ensureMain?: boolean;
|
|
5
|
+
ensureFiles?: boolean;
|
|
6
|
+
ensureDist?: boolean;
|
|
7
|
+
schemaOptions?: any;
|
|
8
|
+
}) => TBlockletMeta;
|
|
9
|
+
export default validateMeta;
|
|
10
|
+
export { validateMeta, fixAndValidateService };
|
package/lib/validate.js
CHANGED
|
@@ -1,38 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fixAndValidateService = exports.validateMeta = void 0;
|
|
4
|
+
const schema_1 = require("./schema");
|
|
5
|
+
const service_1 = require("./service");
|
|
4
6
|
const fixAndValidateService = (meta) => {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
meta.interfaces.forEach((d) => {
|
|
13
|
-
if (d.services && d.services.length) {
|
|
14
|
-
d.services.forEach((s) => {
|
|
15
|
-
s.config = getServiceConfig(s.name, s.config, { validate: true });
|
|
16
|
-
});
|
|
7
|
+
if (!meta.interfaces) {
|
|
8
|
+
return meta;
|
|
9
|
+
}
|
|
10
|
+
if (!meta.interfaces.length) {
|
|
11
|
+
return meta;
|
|
17
12
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
meta.interfaces.forEach((d) => {
|
|
14
|
+
if (d.services && d.services.length) {
|
|
15
|
+
d.services.forEach((s) => {
|
|
16
|
+
s.config = (0, service_1.getServiceConfig)(s.name, s.config, { validate: true });
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
return meta;
|
|
21
21
|
};
|
|
22
|
-
|
|
23
|
-
const validateMeta = (
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
)
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
throw new Error(`Invalid blocklet meta: ${error.details.map((x) => x.message).join(', ')}`);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
return value;
|
|
22
|
+
exports.fixAndValidateService = fixAndValidateService;
|
|
23
|
+
const validateMeta = (meta, { ensureMain = false, ensureFiles = false, ensureDist = false, schemaOptions = {}, } = {}) => {
|
|
24
|
+
const schema = (0, schema_1.createBlockletSchema)(null, Object.assign({ ensureMain, ensureFiles, ensureDist }, schemaOptions));
|
|
25
|
+
const { value, error } = schema.validate(meta);
|
|
26
|
+
if (error) {
|
|
27
|
+
throw new Error(`Invalid blocklet meta: ${error.details.map((x) => x.message).join(', ')}`);
|
|
28
|
+
}
|
|
29
|
+
return value;
|
|
34
30
|
};
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
module.exports.validateMeta = validateMeta;
|
|
38
|
-
module.exports.fixAndValidateService = fixAndValidateService;
|
|
31
|
+
exports.validateMeta = validateMeta;
|
|
32
|
+
exports.default = validateMeta;
|
package/lib/verify-multi-sig.js
CHANGED
|
@@ -1,108 +1,101 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
/* eslint-disable @typescript-eslint/indent */
|
|
17
|
+
const get_1 = __importDefault(require("lodash/get"));
|
|
18
|
+
const omit_1 = __importDefault(require("lodash/omit"));
|
|
19
|
+
const cloneDeep_1 = __importDefault(require("lodash/cloneDeep"));
|
|
20
|
+
const json_stable_stringify_1 = __importDefault(require("json-stable-stringify"));
|
|
21
|
+
const did_1 = require("@arcblock/did");
|
|
22
|
+
const wallet_1 = require("@ocap/wallet");
|
|
23
|
+
const jwt_1 = require("@arcblock/jwt");
|
|
24
|
+
const util_1 = require("@ocap/util");
|
|
25
|
+
const debug_1 = __importDefault(require("debug"));
|
|
26
|
+
const debug = (0, debug_1.default)('@blocklet/meta:verifyMultiSig');
|
|
12
27
|
function verifyDelegationToken(signature) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
debug('verify delegation token failed', signature);
|
|
34
|
-
return false;
|
|
28
|
+
if (signature.delegation) {
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
const payload = JSON.parse((0, util_1.fromBase64)(signature.delegation.split('.')[1]));
|
|
31
|
+
if (payload.from !== signature.signer) {
|
|
32
|
+
debug('verify payload.from failed', { payload, signature });
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
if (payload.to !== signature.delegatee) {
|
|
36
|
+
debug('verify payload.to failed', { payload, signature });
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
if (!(0, get_1.default)(payload, 'permissions', []).includes('publish_blocklet')) {
|
|
40
|
+
debug('verify payload.permissions failed', payload);
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
// 验证一下delegation token
|
|
44
|
+
if (!(0, jwt_1.verify)(signature.delegation, signature.pk)) {
|
|
45
|
+
debug('verify delegation token failed', signature);
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
35
48
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
return true;
|
|
49
|
+
return true;
|
|
39
50
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
if (!Array.isArray(signatures)) {
|
|
46
|
-
throw new Error('Invalid signatures, signatures should be an array');
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
if (signatures.length === 0) {
|
|
50
|
-
throw new Error('Invalid signatures, found empty');
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
const { length } = signatures;
|
|
54
|
-
let lastSignature = null;
|
|
55
|
-
|
|
56
|
-
for (let i = 0; i < length; i++) {
|
|
57
|
-
const signature = signatures.shift();
|
|
58
|
-
|
|
59
|
-
// 验证delegation token
|
|
60
|
-
if (!verifyDelegationToken(signature)) {
|
|
61
|
-
return false;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
const { sig, signer, pk } = signature.delegation
|
|
65
|
-
? {
|
|
66
|
-
sig: signature.sig,
|
|
67
|
-
signer: signature.delegatee,
|
|
68
|
-
pk: signature.delegateePk,
|
|
69
|
-
}
|
|
70
|
-
: signature;
|
|
71
|
-
delete signature.sig;
|
|
72
|
-
debug('verify', { signer });
|
|
73
|
-
|
|
74
|
-
let toBeVerifiedMeta = { ...meta };
|
|
75
|
-
|
|
76
|
-
if (lastSignature && lastSignature.appended) {
|
|
77
|
-
debug('appended fields', { signer, appended: lastSignature.appended });
|
|
78
|
-
|
|
79
|
-
lastSignature.appended.forEach((field) => {
|
|
80
|
-
toBeVerifiedMeta = omit(toBeVerifiedMeta, field);
|
|
81
|
-
});
|
|
51
|
+
const verifyMultiSig = (blockletMeta) => {
|
|
52
|
+
const { signatures: tmpSignatures } = blockletMeta, meta = __rest(blockletMeta, ["signatures"]);
|
|
53
|
+
const signatures = (0, cloneDeep_1.default)(tmpSignatures);
|
|
54
|
+
if (!Array.isArray(signatures)) {
|
|
55
|
+
throw new Error('Invalid signatures, signatures should be an array');
|
|
82
56
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
debug('excludes fields', { signer, excludes: signature.excludes });
|
|
86
|
-
|
|
87
|
-
signature.excludes.forEach((field) => {
|
|
88
|
-
toBeVerifiedMeta = omit(toBeVerifiedMeta, field);
|
|
89
|
-
});
|
|
57
|
+
if (signatures.length === 0) {
|
|
58
|
+
throw new Error('Invalid signatures, found empty');
|
|
90
59
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
60
|
+
const { length } = signatures;
|
|
61
|
+
let lastSignature = null;
|
|
62
|
+
for (let i = 0; i < length; i++) {
|
|
63
|
+
const signature = signatures.shift();
|
|
64
|
+
// 验证delegation token
|
|
65
|
+
if (!verifyDelegationToken(signature)) {
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
const { sig, signer, pk } = signature.delegation
|
|
69
|
+
? {
|
|
70
|
+
sig: signature.sig,
|
|
71
|
+
signer: signature.delegatee,
|
|
72
|
+
pk: signature.delegateePk,
|
|
73
|
+
}
|
|
74
|
+
: signature;
|
|
75
|
+
delete signature.sig;
|
|
76
|
+
debug('verify', { signer });
|
|
77
|
+
let toBeVerifiedMeta = Object.assign({}, meta);
|
|
78
|
+
if (lastSignature && lastSignature.appended) {
|
|
79
|
+
debug('appended fields', { signer, appended: lastSignature.appended });
|
|
80
|
+
lastSignature.appended.forEach((field) => {
|
|
81
|
+
toBeVerifiedMeta = (0, omit_1.default)(toBeVerifiedMeta, field);
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
if (signature.excludes && signature.excludes.length > 0) {
|
|
85
|
+
debug('excludes fields', { signer, excludes: signature.excludes });
|
|
86
|
+
signature.excludes.forEach((field) => {
|
|
87
|
+
toBeVerifiedMeta = (0, omit_1.default)(toBeVerifiedMeta, field);
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
const type = (0, did_1.toTypeInfo)(signer);
|
|
91
|
+
const wallet = (0, wallet_1.fromPublicKey)(pk, type);
|
|
92
|
+
const verifyRes = wallet.verify((0, json_stable_stringify_1.default)(Object.assign(Object.assign({}, toBeVerifiedMeta), { signatures: [signature, ...signatures] })), sig);
|
|
93
|
+
if (verifyRes !== true) {
|
|
94
|
+
debug('verify failed', { signer });
|
|
95
|
+
return verifyRes;
|
|
96
|
+
}
|
|
97
|
+
lastSignature = signature;
|
|
102
98
|
}
|
|
103
|
-
|
|
104
|
-
lastSignature = signature;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
return true;
|
|
99
|
+
return true;
|
|
108
100
|
};
|
|
101
|
+
module.exports = verifyMultiSig;
|
package/lib/wallet.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { WalletObject } from '@ocap/wallet';
|
|
2
|
+
import { DIDType } from '@arcblock/did';
|
|
3
|
+
/**
|
|
4
|
+
* Gen DID from blocklet did and nodeSk
|
|
5
|
+
*
|
|
6
|
+
* Spec: https://github.com/ArcBlock/ABT-DID-Protocol#request-did-authentication
|
|
7
|
+
*/
|
|
8
|
+
declare const getBlockletWallet: (blockletDid: string, nodeSk?: string, type?: DIDType, index?: number) => WalletObject;
|
|
9
|
+
export = getBlockletWallet;
|
package/lib/wallet.js
CHANGED
|
@@ -1,35 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
const mcrypto_1 = require("@ocap/mcrypto");
|
|
3
|
+
const wallet_1 = require("@ocap/wallet");
|
|
4
|
+
const did_1 = require("@arcblock/did");
|
|
5
|
+
const did_ext_1 = require("@arcblock/did-ext");
|
|
6
6
|
/**
|
|
7
7
|
* Gen DID from blocklet did and nodeSk
|
|
8
8
|
*
|
|
9
9
|
* Spec: https://github.com/ArcBlock/ABT-DID-Protocol#request-did-authentication
|
|
10
|
-
*
|
|
11
|
-
* @public
|
|
12
|
-
* @static
|
|
13
|
-
* @param {string} blockletDid - blocklet did
|
|
14
|
-
* @param {string} nodeSk - node sk used to derive blocklet sk
|
|
15
|
-
* @param {object} [type={}]
|
|
16
|
-
* @param {number} [index=0]
|
|
17
|
-
* @returns {object} Wallet instance
|
|
18
10
|
*/
|
|
19
|
-
const getBlockletWallet = (blockletDid, nodeSk, type = { role: types.RoleType.ROLE_APPLICATION }, index = 0) => {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
11
|
+
const getBlockletWallet = (blockletDid, nodeSk, type = { role: mcrypto_1.types.RoleType.ROLE_APPLICATION }, index = 0) => {
|
|
12
|
+
if (!(0, did_1.isValid)(blockletDid)) {
|
|
13
|
+
try {
|
|
14
|
+
return (0, wallet_1.fromSecretKey)(blockletDid, type);
|
|
15
|
+
}
|
|
16
|
+
catch (err) {
|
|
17
|
+
throw new Error(`Cannot get blocklet wallet with invalid blocklet did or custom sk: ${err.message}`);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
if (!nodeSk) {
|
|
21
|
+
throw new Error('Cannot get blocklet wallet with empty node sk');
|
|
25
22
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
if (!nodeSk) {
|
|
29
|
-
throw new Error('Cannot get blocklet wallet with empty node sk');
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
return fromAppDid(blockletDid, nodeSk, type, index);
|
|
23
|
+
return (0, did_ext_1.fromAppDid)(blockletDid, nodeSk, type, index);
|
|
33
24
|
};
|
|
34
|
-
|
|
35
25
|
module.exports = getBlockletWallet;
|
package/package.json
CHANGED
|
@@ -3,32 +3,40 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.8.
|
|
6
|
+
"version": "1.8.36",
|
|
7
7
|
"description": "Library to parse/validate/fix blocklet meta",
|
|
8
|
-
"main": "lib/index.js",
|
|
8
|
+
"main": "./lib/index.js",
|
|
9
|
+
"typings": "./lib/index.d.ts",
|
|
9
10
|
"files": [
|
|
10
11
|
"lib"
|
|
11
12
|
],
|
|
12
13
|
"scripts": {
|
|
13
|
-
"
|
|
14
|
-
"lint
|
|
14
|
+
"verify": "npm run lint:fix && npm run coverage && npm run build",
|
|
15
|
+
"lint": "eslint src tests",
|
|
16
|
+
"lint:fix": "npm run lint -- --fix",
|
|
15
17
|
"test": "node tools/jest.js",
|
|
16
|
-
"coverage": "npm run test -- --coverage"
|
|
18
|
+
"coverage": "npm run test -- --coverage",
|
|
19
|
+
"clean": "rm -fr lib",
|
|
20
|
+
"types": "ts-node tools/types.js && sed -i.bak 's/unknown/string/g' ./src/types/schema.ts && rm ./src/types/schema.ts.bak && prettier --write ./src/types/*.ts",
|
|
21
|
+
"prebuild": "npm run clean && npm run types",
|
|
22
|
+
"build": "tsc"
|
|
17
23
|
},
|
|
18
24
|
"author": "wangshijun <wangshijun2020@gmail.com> (http://github.com/wangshijun)",
|
|
19
25
|
"license": "MIT",
|
|
20
26
|
"dependencies": {
|
|
21
|
-
"@abtnode/
|
|
22
|
-
"@abtnode/
|
|
23
|
-
"@
|
|
24
|
-
"@arcblock/did
|
|
25
|
-
"@arcblock/did-
|
|
26
|
-
"@arcblock/
|
|
27
|
-
"@
|
|
28
|
-
"@
|
|
29
|
-
"@ocap/
|
|
30
|
-
"@ocap/
|
|
31
|
-
"@ocap/
|
|
27
|
+
"@abtnode/client": "1.8.36",
|
|
28
|
+
"@abtnode/constant": "1.8.36",
|
|
29
|
+
"@abtnode/util": "1.8.36",
|
|
30
|
+
"@arcblock/did": "1.18.15",
|
|
31
|
+
"@arcblock/did-ext": "1.18.15",
|
|
32
|
+
"@arcblock/did-util": "1.18.15",
|
|
33
|
+
"@arcblock/jwt": "1.18.15",
|
|
34
|
+
"@blocklet/constant": "1.8.36",
|
|
35
|
+
"@ocap/asset": "1.18.15",
|
|
36
|
+
"@ocap/mcrypto": "1.18.15",
|
|
37
|
+
"@ocap/types": "1.18.15",
|
|
38
|
+
"@ocap/util": "1.18.15",
|
|
39
|
+
"@ocap/wallet": "1.18.15",
|
|
32
40
|
"ajv": "^8.11.0",
|
|
33
41
|
"axios": "^0.27.2",
|
|
34
42
|
"cjk-length": "^1.0.0",
|
|
@@ -44,16 +52,30 @@
|
|
|
44
52
|
"promise.any": "^2.0.4",
|
|
45
53
|
"slugify": "^1.6.5",
|
|
46
54
|
"url-join": "^4.0.1",
|
|
55
|
+
"utility-types": "^3.10.0",
|
|
47
56
|
"validate-npm-package-name": "^3.0.0"
|
|
48
57
|
},
|
|
49
58
|
"devDependencies": {
|
|
59
|
+
"@abtnode/client": "^1.8.34",
|
|
60
|
+
"@arcblock/eslint-config-ts": "^0.2.3",
|
|
61
|
+
"@types/express": "^4.17.14",
|
|
62
|
+
"@types/jest": "^29.2.2",
|
|
50
63
|
"@types/joi": "^17.2.3",
|
|
64
|
+
"@types/js-yaml": "^4.0.5",
|
|
65
|
+
"@types/validate-npm-package-name": "^4.0.0",
|
|
66
|
+
"@typescript-eslint/eslint-plugin": "^5.42.0",
|
|
67
|
+
"@typescript-eslint/parser": "^5.42.0",
|
|
51
68
|
"body-parser": "^1.20.1",
|
|
52
69
|
"compression": "^1.7.4",
|
|
53
70
|
"detect-port": "^1.5.1",
|
|
71
|
+
"eslint": "^8.27.0",
|
|
54
72
|
"expand-tilde": "^2.0.2",
|
|
55
73
|
"express": "^4.18.2",
|
|
56
|
-
"jest": "^
|
|
74
|
+
"jest": "^29.3.0",
|
|
75
|
+
"prettier": "^2.7.1",
|
|
76
|
+
"ts-jest": "^29.0.3",
|
|
77
|
+
"ts-node": "^10.9.1",
|
|
78
|
+
"typescript": "^4.8.4"
|
|
57
79
|
},
|
|
58
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "507e974ce88bad1aa002c593130b32982207f803"
|
|
59
81
|
}
|