@blocklet/meta 1.16.40-beta-20250228-094258-1186a367 → 1.16.40-beta-20250303-132654-d0e1975b
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/util.d.ts +3 -1
- package/lib/util.js +13 -2
- package/package.json +14 -14
package/lib/util.d.ts
CHANGED
|
@@ -140,6 +140,7 @@ declare const getBlockletServices: (blocklet: Partial<BlockletState>) => Array<{
|
|
|
140
140
|
upstreamPort: number;
|
|
141
141
|
}>;
|
|
142
142
|
declare const isInProgress: (status: string | number) => boolean;
|
|
143
|
+
declare const inProgressStatuses: (1 | 5 | 11 | 3 | 10 | 7 | 13)[];
|
|
143
144
|
declare const isBeforeInstalled: (status: string | number) => boolean;
|
|
144
145
|
declare const isRunning: (status: string | number) => boolean;
|
|
145
146
|
declare const isAccessible: (status: string | number) => boolean;
|
|
@@ -150,7 +151,7 @@ declare const hasResourceType: (component: ComponentState, { type, did }?: {
|
|
|
150
151
|
declare const getMountPoints: (blocklet: any) => any[];
|
|
151
152
|
declare const checkPublicAccess: (securityConfig: any) => boolean;
|
|
152
153
|
declare const nanoid: (length?: number) => string;
|
|
153
|
-
export { isFreeBlocklet, isFreeComponent, forEachBlocklet, forEachBlockletSync, forEachChild, forEachChildSync, forEachComponentV2, forEachComponentV2Sync, isDeletableBlocklet, getSharedConfigObj, getAppMissingConfigs, getComponentMissingConfigs, isEnvShareableToClient, isEnvShareable, wipeSensitiveData, hasRunnableComponent, getAppName, getAppName as getDisplayName, getAppDescription, fixBlockletStatus, findWebInterface, findWebInterfacePort, findDockerInterface, findServiceFromMeta, checkPublicAccess, replaceSlotToIp, getComponentId, getComponentName, getComponentBundleId, findComponent, findComponentById, findComponentV2, findComponentByIdV2, filterComponentsV2, getParentComponentName, getConnectAppUrl, getChainInfo, getBlockletChainInfo, isExternalBlocklet, isPreferenceKey, getBlockletAppIdList, getBlockletServices, isInProgress, isBeforeInstalled, isRunning, isAccessible, isGatewayBlocklet, isPackBlocklet, hasStartEngine, hasResourceType, getMountPoints, nanoid, };
|
|
154
|
+
export { isFreeBlocklet, isFreeComponent, forEachBlocklet, forEachBlockletSync, forEachChild, forEachChildSync, forEachComponentV2, forEachComponentV2Sync, isDeletableBlocklet, getSharedConfigObj, getAppMissingConfigs, getComponentMissingConfigs, isEnvShareableToClient, isEnvShareable, wipeSensitiveData, hasRunnableComponent, getAppName, getAppName as getDisplayName, getAppDescription, fixBlockletStatus, findWebInterface, findWebInterfacePort, findDockerInterface, findServiceFromMeta, checkPublicAccess, replaceSlotToIp, getComponentId, getComponentName, getComponentBundleId, findComponent, findComponentById, findComponentV2, findComponentByIdV2, filterComponentsV2, getParentComponentName, getConnectAppUrl, getChainInfo, getBlockletChainInfo, isExternalBlocklet, isPreferenceKey, getBlockletAppIdList, getBlockletServices, isInProgress, inProgressStatuses, isBeforeInstalled, isRunning, isAccessible, isGatewayBlocklet, isPackBlocklet, hasStartEngine, hasResourceType, getMountPoints, nanoid, };
|
|
154
155
|
declare const _default: {
|
|
155
156
|
isFreeBlocklet: (meta: TBlockletMeta) => boolean;
|
|
156
157
|
isFreeComponent: (meta: TBlockletMeta) => boolean;
|
|
@@ -252,6 +253,7 @@ declare const _default: {
|
|
|
252
253
|
upstreamPort: number;
|
|
253
254
|
}>;
|
|
254
255
|
isInProgress: (status: string | number) => boolean;
|
|
256
|
+
inProgressStatuses: (1 | 5 | 11 | 3 | 10 | 7 | 13)[];
|
|
255
257
|
isBeforeInstalled: (status: string | number) => boolean;
|
|
256
258
|
isRunning: (status: string | number) => boolean;
|
|
257
259
|
isAccessible: (status: string | number) => boolean;
|
package/lib/util.js
CHANGED
|
@@ -3,8 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
exports.nanoid = exports.getMountPoints = void 0;
|
|
6
|
+
exports.hasStartEngine = exports.isPackBlocklet = exports.isGatewayBlocklet = exports.isAccessible = exports.isRunning = exports.isBeforeInstalled = exports.inProgressStatuses = exports.isInProgress = exports.getBlockletServices = exports.getBlockletAppIdList = exports.isPreferenceKey = exports.isExternalBlocklet = exports.getBlockletChainInfo = exports.getChainInfo = exports.getConnectAppUrl = exports.getParentComponentName = exports.filterComponentsV2 = exports.findComponentByIdV2 = exports.findComponentV2 = exports.findComponentById = exports.findComponent = exports.getComponentBundleId = exports.getComponentName = exports.getComponentId = exports.replaceSlotToIp = exports.checkPublicAccess = exports.findServiceFromMeta = exports.findDockerInterface = exports.findWebInterfacePort = exports.findWebInterface = exports.fixBlockletStatus = exports.getAppDescription = exports.getDisplayName = exports.getAppName = exports.hasRunnableComponent = exports.wipeSensitiveData = exports.isEnvShareable = exports.isEnvShareableToClient = exports.getComponentMissingConfigs = exports.getAppMissingConfigs = exports.getSharedConfigObj = exports.isDeletableBlocklet = exports.forEachComponentV2Sync = exports.forEachComponentV2 = exports.forEachChildSync = exports.forEachChild = exports.forEachBlockletSync = exports.forEachBlocklet = exports.isFreeComponent = exports.isFreeBlocklet = void 0;
|
|
7
|
+
exports.nanoid = exports.getMountPoints = exports.hasResourceType = void 0;
|
|
8
8
|
exports.getAppUrl = getAppUrl;
|
|
9
9
|
/* eslint-disable no-await-in-loop */
|
|
10
10
|
const get_1 = __importDefault(require("lodash/get"));
|
|
@@ -680,6 +680,16 @@ const isInProgress = (status) => [
|
|
|
680
680
|
'deleting',
|
|
681
681
|
].includes(status);
|
|
682
682
|
exports.isInProgress = isInProgress;
|
|
683
|
+
const inProgressStatuses = [
|
|
684
|
+
constant_2.BlockletStatus.stopping,
|
|
685
|
+
constant_2.BlockletStatus.installing,
|
|
686
|
+
constant_2.BlockletStatus.downloading,
|
|
687
|
+
constant_2.BlockletStatus.restarting,
|
|
688
|
+
constant_2.BlockletStatus.starting,
|
|
689
|
+
constant_2.BlockletStatus.waiting,
|
|
690
|
+
constant_2.BlockletStatus.upgrading,
|
|
691
|
+
];
|
|
692
|
+
exports.inProgressStatuses = inProgressStatuses;
|
|
683
693
|
const isBeforeInstalled = (status) => [
|
|
684
694
|
constant_2.BlockletStatus.added,
|
|
685
695
|
constant_2.BlockletStatus.waiting,
|
|
@@ -795,6 +805,7 @@ exports.default = {
|
|
|
795
805
|
isPreferenceKey,
|
|
796
806
|
getBlockletServices,
|
|
797
807
|
isInProgress,
|
|
808
|
+
inProgressStatuses,
|
|
798
809
|
isBeforeInstalled,
|
|
799
810
|
isRunning,
|
|
800
811
|
isAccessible,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.40-beta-
|
|
6
|
+
"version": "1.16.40-beta-20250303-132654-d0e1975b",
|
|
7
7
|
"description": "Library to parse/validate/fix blocklet meta",
|
|
8
8
|
"main": "./lib/index.js",
|
|
9
9
|
"typings": "./lib/index.d.ts",
|
|
@@ -25,18 +25,18 @@
|
|
|
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.40-beta-
|
|
29
|
-
"@abtnode/docker-utils": "1.16.40-beta-
|
|
30
|
-
"@arcblock/did": "1.19.
|
|
31
|
-
"@arcblock/did-ext": "1.19.
|
|
32
|
-
"@arcblock/did-util": "1.19.
|
|
33
|
-
"@arcblock/jwt": "1.19.
|
|
34
|
-
"@blocklet/constant": "1.16.40-beta-
|
|
35
|
-
"@ocap/asset": "1.19.
|
|
36
|
-
"@ocap/mcrypto": "1.19.
|
|
37
|
-
"@ocap/types": "1.19.
|
|
38
|
-
"@ocap/util": "1.19.
|
|
39
|
-
"@ocap/wallet": "1.19.
|
|
28
|
+
"@abtnode/constant": "1.16.40-beta-20250303-132654-d0e1975b",
|
|
29
|
+
"@abtnode/docker-utils": "1.16.40-beta-20250303-132654-d0e1975b",
|
|
30
|
+
"@arcblock/did": "1.19.13",
|
|
31
|
+
"@arcblock/did-ext": "1.19.13",
|
|
32
|
+
"@arcblock/did-util": "1.19.13",
|
|
33
|
+
"@arcblock/jwt": "1.19.13",
|
|
34
|
+
"@blocklet/constant": "1.16.40-beta-20250303-132654-d0e1975b",
|
|
35
|
+
"@ocap/asset": "1.19.13",
|
|
36
|
+
"@ocap/mcrypto": "1.19.13",
|
|
37
|
+
"@ocap/types": "1.19.13",
|
|
38
|
+
"@ocap/util": "1.19.13",
|
|
39
|
+
"@ocap/wallet": "1.19.13",
|
|
40
40
|
"ajv": "^8.11.0",
|
|
41
41
|
"axios": "^1.7.9",
|
|
42
42
|
"cjk-length": "^1.0.0",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"ts-node": "^10.9.1",
|
|
81
81
|
"typescript": "^5.6.3"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "2a8e4d0ad0ab4bfbc891896710d7d54790d6cbe2"
|
|
84
84
|
}
|