@abtnode/util 1.16.49-beta-20250819-084933-3bcbd851 → 1.16.49-beta-20250822-070545-6d3344cc

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.
@@ -157,7 +157,7 @@ const ensureCustomOgImage = (req, res, next) => {
157
157
  const ensureBundleLogo = (req, res, next) => {
158
158
  /**
159
159
  * @type {{
160
- * blocklet: import('@abtnode/client').BlockletState, // 目前肯定是不准确的,但是有些属性是通用的,无伤大雅
160
+ * blocklet: import('@blocklet/server-js').BlockletState, // 目前肯定是不准确的,但是有些属性是通用的,无伤大雅
161
161
  * sendOptions: any
162
162
  * }}
163
163
  * */
@@ -201,7 +201,7 @@ const cacheError = (err, req, res, next) => {
201
201
  const ensureDefaultLogo = (req, res, next) => {
202
202
  /**
203
203
  * @type {{
204
- * blocklet: import('@abtnode/client').BlockletState, // 目前肯定是不准确的,但是有些属性是通用的,无伤大雅
204
+ * blocklet: import('@blocklet/server-js').BlockletState, // 目前肯定是不准确的,但是有些属性是通用的,无伤大雅
205
205
  * sendOptions: any
206
206
  * }}
207
207
  * */
@@ -233,7 +233,7 @@ const ensureDefaultLogo = (req, res, next) => {
233
233
  const ensureCustomFavicon = (req, res, next) => {
234
234
  /**
235
235
  * @type {{
236
- * blocklet: import('@abtnode/client').BlockletState, // 目前肯定是不准确的,但是有些属性是通用的,无伤大雅
236
+ * blocklet: import('@blocklet/server-js').BlockletState, // 目前肯定是不准确的,但是有些属性是通用的,无伤大雅
237
237
  * sendOptions: any
238
238
  * }}
239
239
  * */
@@ -9,7 +9,7 @@ async function fetchPm2(pm2Config, ABT_NODE_SK, { timeoutMs = 120000 } = {}) {
9
9
  rpcClient = new RpcClient(Number(process.env.ABT_NODE_EVENT_PORT) || 40407, '127.0.0.1');
10
10
  }
11
11
 
12
- if (process.env.NODE_ENV === 'test') {
12
+ if (['development', 'test'].includes(process.env.NODE_ENV)) {
13
13
  await pm2.startAsync(pm2Config);
14
14
  return 'ok';
15
15
  }
package/lib/security.js CHANGED
@@ -74,7 +74,7 @@ function findExecutable(executable) {
74
74
  /**
75
75
  * @description
76
76
  * @see https://github.com/nodejs/node/issues/53621#issuecomment-2196879752
77
- * @param {import('@abtnode/client').BlockletState & { environmentObj: [key: string]: string } } blocklet
77
+ * @param {import('@blocklet/server-js').BlockletState & { environmentObj: [key: string]: string } } blocklet
78
78
  * @param {true | false} enableFileSystemIsolation
79
79
  * @return {string}
80
80
  */
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.49-beta-20250819-084933-3bcbd851",
6
+ "version": "1.16.49-beta-20250822-070545-6d3344cc",
7
7
  "description": "ArcBlock's JavaScript utility",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -18,14 +18,14 @@
18
18
  "author": "polunzh <polunzh@gmail.com> (http://github.com/polunzh)",
19
19
  "license": "Apache-2.0",
20
20
  "dependencies": {
21
- "@abtnode/constant": "1.16.49-beta-20250819-084933-3bcbd851",
22
- "@abtnode/db-cache": "1.16.49-beta-20250819-084933-3bcbd851",
21
+ "@abtnode/constant": "1.16.49-beta-20250822-070545-6d3344cc",
22
+ "@abtnode/db-cache": "1.16.49-beta-20250822-070545-6d3344cc",
23
23
  "@arcblock/did": "1.22.2",
24
24
  "@arcblock/event-hub": "1.22.2",
25
25
  "@arcblock/pm2": "^6.0.12",
26
- "@blocklet/constant": "1.16.49-beta-20250819-084933-3bcbd851",
26
+ "@blocklet/constant": "1.16.49-beta-20250822-070545-6d3344cc",
27
27
  "@blocklet/error": "^0.2.5",
28
- "@blocklet/meta": "1.16.49-beta-20250819-084933-3bcbd851",
28
+ "@blocklet/meta": "1.16.49-beta-20250822-070545-6d3344cc",
29
29
  "@blocklet/xss": "^0.2.5",
30
30
  "@ocap/client": "1.22.2",
31
31
  "@ocap/mcrypto": "1.22.2",
@@ -91,5 +91,5 @@
91
91
  "fs-extra": "^11.2.0",
92
92
  "jest": "^29.7.0"
93
93
  },
94
- "gitHead": "b8bbf2279e9a29bd58eac7b66e1db16e851a183c"
94
+ "gitHead": "c5560fe749fe495b03003ac7325da29c71f5e62b"
95
95
  }