@blocklet/meta 1.16.6-beta-08670107 → 1.16.6-beta-56be9f01
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/index.d.ts +1 -1
- package/lib/info.js +2 -2
- package/lib/schema.js +2 -2
- package/lib/wallet.d.ts +1 -1
- package/package.json +5 -5
package/lib/index.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ declare const _default: {
|
|
|
69
69
|
fixName: (meta: any) => any;
|
|
70
70
|
fixService: (meta: import("./types").TBlockletMeta) => import("./types").TBlockletMeta;
|
|
71
71
|
toBlockletDid: (name: string | Buffer) => string;
|
|
72
|
-
getBlockletWallet: (didOrSk: string, nodeSk?: string, type?: "default" | "eth" | import("@arcblock/did").DIDType, index?: number) => import("@ocap/wallet").WalletObject<string>;
|
|
72
|
+
getBlockletWallet: (didOrSk: string, nodeSk?: string, type?: "default" | "eth" | "ethereum" | import("@arcblock/did").DIDType, index?: number) => import("@ocap/wallet").WalletObject<string>;
|
|
73
73
|
getBlockletInfo: (state: import("@abtnode/client").BlockletState, nodeSk?: string, { returnWallet }?: {
|
|
74
74
|
returnWallet?: boolean;
|
|
75
75
|
}) => {
|
package/lib/info.js
CHANGED
|
@@ -32,10 +32,10 @@ const getBlockletInfo = (state, nodeSk, { returnWallet = true } = {}) => {
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
const customSk = envs.find((x) => x.key === 'BLOCKLET_APP_SK');
|
|
35
|
-
const customType = envs.find((x) => x.key === '
|
|
35
|
+
const customType = envs.find((x) => x.key === 'BLOCKLET_APP_CHAIN_TYPE');
|
|
36
36
|
const permanentSk = envs.find((x) => x.key === 'BLOCKLET_APP_PSK');
|
|
37
37
|
let type;
|
|
38
|
-
if (customType && customType.value === 'eth') {
|
|
38
|
+
if (customType && (customType.value === 'ethereum' || customType.value === 'eth')) {
|
|
39
39
|
type = customType.value;
|
|
40
40
|
}
|
|
41
41
|
let wallet = null;
|
package/lib/schema.js
CHANGED
|
@@ -42,7 +42,7 @@ const constants_1 = __importDefault(require("./constants"));
|
|
|
42
42
|
const parse_navigation_from_blocklet_1 = require("./parse-navigation-from-blocklet");
|
|
43
43
|
const url_path_friendly_1 = __importStar(require("./url-path-friendly"));
|
|
44
44
|
const cjkLength = cjk_length_1.default.default;
|
|
45
|
-
const { BLOCKLET_GROUPS, BLOCKLET_PLATFORMS, BLOCKLET_ARCHITECTURES, BLOCKLET_INTERFACE_TYPES, BLOCKLET_INTERFACE_PROTOCOLS, BLOCKLET_ENTRY_FILE, BLOCKLET_BUNDLE_FILE, BLOCKLET_DEFAULT_PORT_NAME, BLOCKLET_DYNAMIC_PATH_PREFIX, BlockletGroup, BLOCKLET_LATEST_REQUIREMENT_SERVER, BLOCKLET_INTERFACE_TYPE_WEB, BLOCKLET_INTERFACE_TYPE_WELLKNOWN, BLOCKLET_APP_SPACE_ENDPOINTS,
|
|
45
|
+
const { BLOCKLET_GROUPS, BLOCKLET_PLATFORMS, BLOCKLET_ARCHITECTURES, BLOCKLET_INTERFACE_TYPES, BLOCKLET_INTERFACE_PROTOCOLS, BLOCKLET_ENTRY_FILE, BLOCKLET_BUNDLE_FILE, BLOCKLET_DEFAULT_PORT_NAME, BLOCKLET_DYNAMIC_PATH_PREFIX, BlockletGroup, BLOCKLET_LATEST_REQUIREMENT_SERVER, BLOCKLET_INTERFACE_TYPE_WEB, BLOCKLET_INTERFACE_TYPE_WELLKNOWN, BLOCKLET_APP_SPACE_ENDPOINTS, } = constants_1.default;
|
|
46
46
|
const WELLKNOWN_PATH_PREFIX = '/.well-known';
|
|
47
47
|
const MAX_TITLE_LENGTH = 24;
|
|
48
48
|
const Joi = joi_1.default.extend(joi_extension_semver_1.semver)
|
|
@@ -124,7 +124,7 @@ const blockletNameSchema = Joi.string()
|
|
|
124
124
|
})
|
|
125
125
|
.meta({ className: 'TBlockletName' });
|
|
126
126
|
exports.blockletNameSchema = blockletNameSchema;
|
|
127
|
-
const ENV_NAME_WHITE_LIST = [
|
|
127
|
+
const ENV_NAME_WHITE_LIST = [];
|
|
128
128
|
const environmentNameSchema = Joi.string()
|
|
129
129
|
.trim()
|
|
130
130
|
.min(1)
|
package/lib/wallet.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ import { DIDType } from '@arcblock/did';
|
|
|
5
5
|
*
|
|
6
6
|
* Spec: https://github.com/ArcBlock/ABT-DID-Protocol#request-did-authentication
|
|
7
7
|
*/
|
|
8
|
-
declare const getApplicationWallet: (didOrSk: string, nodeSk?: string, type?: DIDType | 'default' | 'eth', index?: number) => WalletObject;
|
|
8
|
+
declare const getApplicationWallet: (didOrSk: string, nodeSk?: string, type?: DIDType | 'default' | 'eth' | 'ethereum', index?: number) => WalletObject;
|
|
9
9
|
export = getApplicationWallet;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.6-beta-
|
|
6
|
+
"version": "1.16.6-beta-56be9f01",
|
|
7
7
|
"description": "Library to parse/validate/fix blocklet meta",
|
|
8
8
|
"main": "./lib/index.js",
|
|
9
9
|
"typings": "./lib/index.d.ts",
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"author": "wangshijun <wangshijun2020@gmail.com> (http://github.com/wangshijun)",
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@abtnode/constant": "1.16.6-beta-
|
|
28
|
-
"@abtnode/util": "1.16.6-beta-
|
|
27
|
+
"@abtnode/constant": "1.16.6-beta-56be9f01",
|
|
28
|
+
"@abtnode/util": "1.16.6-beta-56be9f01",
|
|
29
29
|
"@arcblock/did": "1.18.76",
|
|
30
30
|
"@arcblock/did-ext": "1.18.76",
|
|
31
31
|
"@arcblock/did-util": "1.18.76",
|
|
32
32
|
"@arcblock/jwt": "1.18.76",
|
|
33
|
-
"@blocklet/constant": "1.16.6-beta-
|
|
33
|
+
"@blocklet/constant": "1.16.6-beta-56be9f01",
|
|
34
34
|
"@ocap/asset": "1.18.76",
|
|
35
35
|
"@ocap/mcrypto": "1.18.76",
|
|
36
36
|
"@ocap/types": "1.18.76",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"ts-node": "^10.9.1",
|
|
80
80
|
"typescript": "^4.8.4"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "f93c24693ed27c4a2821ec33c345696afe6f001a"
|
|
83
83
|
}
|