@blocklet/meta 1.16.25-next-4f765cf3 → 1.16.25-next-a0747dd3
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 +2 -3
- package/lib/types/schema.d.ts +2 -2
- package/package.json +4 -4
package/lib/schema.js
CHANGED
|
@@ -314,13 +314,12 @@ const statsSchema = Joi.object({
|
|
|
314
314
|
unknownType: 'any',
|
|
315
315
|
});
|
|
316
316
|
exports.statsSchema = statsSchema;
|
|
317
|
-
const urlListSchema = Joi.alternatives().try(Joi.string().uri(), Joi.array().items(Joi.string().uri()).min(1));
|
|
318
317
|
const componentSourceSchema = Joi.alternatives().try(Joi.object({
|
|
319
|
-
url:
|
|
318
|
+
url: Joi.alternatives().try(Joi.string().uri(), Joi.array().items(Joi.string().uri()).min(1)).required(),
|
|
320
319
|
// 虽然 url 无法像 store 一样根据 version 获取指定版本的 component, 但是 version 仍然可以用于限制 component 版本
|
|
321
320
|
version: Joi.alternatives().try(Joi.string().valid('latest'), Joi.semverRange().valid()),
|
|
322
321
|
}), Joi.object({
|
|
323
|
-
store:
|
|
322
|
+
store: Joi.string().uri(),
|
|
324
323
|
name: blockletNameSchema.required(),
|
|
325
324
|
// TODO 目前只能支持锁死的版本号,接下载需要支持自适应的版本号,比如 4.x
|
|
326
325
|
version: Joi.alternatives().try(Joi.string().valid('latest'), Joi.semverRange().valid()).default('latest'),
|
package/lib/types/schema.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export interface TBlockletMeta {
|
|
|
29
29
|
version?: 'latest' | string;
|
|
30
30
|
} | {
|
|
31
31
|
name: TBlockletName;
|
|
32
|
-
store?: string
|
|
32
|
+
store?: string;
|
|
33
33
|
version?: 'latest' | string;
|
|
34
34
|
};
|
|
35
35
|
title?: TTitle;
|
|
@@ -130,7 +130,7 @@ export interface TComponent {
|
|
|
130
130
|
version?: 'latest' | string;
|
|
131
131
|
} | {
|
|
132
132
|
name: TBlockletName;
|
|
133
|
-
store?: string
|
|
133
|
+
store?: string;
|
|
134
134
|
version?: 'latest' | string;
|
|
135
135
|
};
|
|
136
136
|
title?: TTitle;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.25-next-
|
|
6
|
+
"version": "1.16.25-next-a0747dd3",
|
|
7
7
|
"description": "Library to parse/validate/fix blocklet meta",
|
|
8
8
|
"main": "./lib/index.js",
|
|
9
9
|
"typings": "./lib/index.d.ts",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"author": "wangshijun <wangshijun2020@gmail.com> (http://github.com/wangshijun)",
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@abtnode/constant": "1.16.25-next-
|
|
28
|
+
"@abtnode/constant": "1.16.25-next-a0747dd3",
|
|
29
29
|
"@arcblock/did": "1.18.113",
|
|
30
30
|
"@arcblock/did-ext": "1.18.113",
|
|
31
31
|
"@arcblock/did-util": "1.18.113",
|
|
32
32
|
"@arcblock/jwt": "1.18.113",
|
|
33
|
-
"@blocklet/constant": "1.16.25-next-
|
|
33
|
+
"@blocklet/constant": "1.16.25-next-a0747dd3",
|
|
34
34
|
"@ocap/asset": "1.18.113",
|
|
35
35
|
"@ocap/mcrypto": "1.18.113",
|
|
36
36
|
"@ocap/types": "1.18.113",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"ts-node": "^10.9.1",
|
|
80
80
|
"typescript": "^5.0.4"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "1b8ffe184a925ffac92f6b06eaaaf775d2923bb6"
|
|
83
83
|
}
|