@blocklet/meta 1.8.47 → 1.8.49
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/schema.js +8 -0
- package/package.json +16 -16
package/lib/schema.js
CHANGED
|
@@ -22,6 +22,7 @@ const cjk_length_1 = __importDefault(require("cjk-length"));
|
|
|
22
22
|
const is_glob_1 = __importDefault(require("is-glob"));
|
|
23
23
|
const joi_extension_semver_1 = require("joi-extension-semver");
|
|
24
24
|
const is_var_name_1 = __importDefault(require("is-var-name"));
|
|
25
|
+
const constant_1 = require("@abtnode/constant");
|
|
25
26
|
const did_1 = __importDefault(require("./did"));
|
|
26
27
|
const extension_1 = require("./extension");
|
|
27
28
|
const name_1 = require("./name");
|
|
@@ -66,6 +67,13 @@ exports.descriptionSchema = descriptionSchema;
|
|
|
66
67
|
const logoSchema = Joi.string()
|
|
67
68
|
.uri({ scheme: ['http', 'https'], allowRelative: true })
|
|
68
69
|
.allow('')
|
|
70
|
+
.custom((value, helper) => {
|
|
71
|
+
if (value.includes(constant_1.WELLKNOWN_BLOCKLET_LOGO_PATH)) {
|
|
72
|
+
// @ts-expect-error
|
|
73
|
+
return helper.message(`logo url should not include ${constant_1.WELLKNOWN_BLOCKLET_LOGO_PATH}`);
|
|
74
|
+
}
|
|
75
|
+
return value;
|
|
76
|
+
})
|
|
69
77
|
.meta({ className: 'TLogo' });
|
|
70
78
|
exports.logoSchema = logoSchema;
|
|
71
79
|
const mountPointSchema = Joi.string().trim().min(1).meta({ className: 'TMountPoint' });
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.8.
|
|
6
|
+
"version": "1.8.49",
|
|
7
7
|
"description": "Library to parse/validate/fix blocklet meta",
|
|
8
8
|
"main": "./lib/index.js",
|
|
9
9
|
"typings": "./lib/index.d.ts",
|
|
@@ -24,19 +24,19 @@
|
|
|
24
24
|
"author": "wangshijun <wangshijun2020@gmail.com> (http://github.com/wangshijun)",
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@abtnode/client": "1.8.
|
|
28
|
-
"@abtnode/constant": "1.8.
|
|
29
|
-
"@abtnode/util": "1.8.
|
|
30
|
-
"@arcblock/did": "1.18.
|
|
31
|
-
"@arcblock/did-ext": "1.18.
|
|
32
|
-
"@arcblock/did-util": "1.18.
|
|
33
|
-
"@arcblock/jwt": "1.18.
|
|
34
|
-
"@blocklet/constant": "1.8.
|
|
35
|
-
"@ocap/asset": "1.18.
|
|
36
|
-
"@ocap/mcrypto": "1.18.
|
|
37
|
-
"@ocap/types": "1.18.
|
|
38
|
-
"@ocap/util": "1.18.
|
|
39
|
-
"@ocap/wallet": "1.18.
|
|
27
|
+
"@abtnode/client": "1.8.49",
|
|
28
|
+
"@abtnode/constant": "1.8.49",
|
|
29
|
+
"@abtnode/util": "1.8.49",
|
|
30
|
+
"@arcblock/did": "1.18.32",
|
|
31
|
+
"@arcblock/did-ext": "1.18.32",
|
|
32
|
+
"@arcblock/did-util": "1.18.32",
|
|
33
|
+
"@arcblock/jwt": "1.18.32",
|
|
34
|
+
"@blocklet/constant": "1.8.49",
|
|
35
|
+
"@ocap/asset": "1.18.32",
|
|
36
|
+
"@ocap/mcrypto": "1.18.32",
|
|
37
|
+
"@ocap/types": "1.18.32",
|
|
38
|
+
"@ocap/util": "1.18.32",
|
|
39
|
+
"@ocap/wallet": "1.18.32",
|
|
40
40
|
"ajv": "^8.11.0",
|
|
41
41
|
"axios": "^0.27.2",
|
|
42
42
|
"cjk-length": "^1.0.0",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"validate-npm-package-name": "^3.0.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@abtnode/client": "^1.8.
|
|
61
|
+
"@abtnode/client": "^1.8.48",
|
|
62
62
|
"@arcblock/eslint-config-ts": "^0.2.3",
|
|
63
63
|
"@types/express": "^4.17.14",
|
|
64
64
|
"@types/jest": "^29.2.2",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"ts-node": "^10.9.1",
|
|
80
80
|
"typescript": "^4.8.4"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "627ac4fb21957fcbaf7c2c21e77de0f51ef9e30d"
|
|
83
83
|
}
|