@blocklet/meta 1.16.40-beta-20250228-001738-e9367fea → 1.16.40-beta-20250303-085419-69f80410

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 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.hasResourceType = exports.hasStartEngine = exports.isPackBlocklet = exports.isGatewayBlocklet = exports.isAccessible = exports.isRunning = exports.isBeforeInstalled = 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 = 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-20250228-001738-e9367fea",
6
+ "version": "1.16.40-beta-20250303-085419-69f80410",
7
7
  "description": "Library to parse/validate/fix blocklet meta",
8
8
  "main": "./lib/index.js",
9
9
  "typings": "./lib/index.d.ts",
@@ -25,13 +25,13 @@
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-20250228-001738-e9367fea",
29
- "@abtnode/docker-utils": "1.16.40-beta-20250228-001738-e9367fea",
28
+ "@abtnode/constant": "1.16.40-beta-20250303-085419-69f80410",
29
+ "@abtnode/docker-utils": "1.16.40-beta-20250303-085419-69f80410",
30
30
  "@arcblock/did": "1.19.12",
31
31
  "@arcblock/did-ext": "1.19.12",
32
32
  "@arcblock/did-util": "1.19.12",
33
33
  "@arcblock/jwt": "1.19.12",
34
- "@blocklet/constant": "1.16.40-beta-20250228-001738-e9367fea",
34
+ "@blocklet/constant": "1.16.40-beta-20250303-085419-69f80410",
35
35
  "@ocap/asset": "1.19.12",
36
36
  "@ocap/mcrypto": "1.19.12",
37
37
  "@ocap/types": "1.19.12",
@@ -80,5 +80,5 @@
80
80
  "ts-node": "^10.9.1",
81
81
  "typescript": "^5.6.3"
82
82
  },
83
- "gitHead": "2e96d640290a439bd71cefda3abe5a22e7751b3e"
83
+ "gitHead": "3bddb6647ab005b216d5c627035af3363fdcf88f"
84
84
  }