@abtnode/util 1.16.31-beta-a0cc72cf → 1.16.31-beta-53480e26

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.
Files changed (2) hide show
  1. package/lib/security.js +3 -0
  2. package/package.json +6 -6
package/lib/security.js CHANGED
@@ -104,6 +104,8 @@ const getSecurityNodeOptions = (blocklet, enableFileSystemIsolation = true) => {
104
104
  const meiliSearchPath = findExecutable('meilisearch');
105
105
  const meiliSearchPathAlt = fs.existsSync('/data/bin/meilisearch') ? '/data/bin/meilisearch' : '';
106
106
  const blockletCliPath = findExecutable('blocklet');
107
+ const pnpmPath = findExecutable('pnpm');
108
+ const pnpmGlobalPath = pnpmPath ? join(dirname(pnpmPath), 'global') : '';
107
109
 
108
110
  options.push(
109
111
  '--experimental-permission',
@@ -143,6 +145,7 @@ const getSecurityNodeOptions = (blocklet, enableFileSystemIsolation = true) => {
143
145
  dirname(dirname(process.execPath)),
144
146
  process.cwd(),
145
147
  tmpdir(),
148
+ pnpmGlobalPath,
146
149
  ]
147
150
  .filter(Boolean)
148
151
  .filter((x) => x !== sep)
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.31-beta-a0cc72cf",
6
+ "version": "1.16.31-beta-53480e26",
7
7
  "description": "ArcBlock's JavaScript utility",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -18,11 +18,11 @@
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.31-beta-a0cc72cf",
22
- "@abtnode/logger": "1.16.31-beta-a0cc72cf",
21
+ "@abtnode/constant": "1.16.31-beta-53480e26",
22
+ "@abtnode/logger": "1.16.31-beta-53480e26",
23
23
  "@arcblock/pm2": "^5.4.0",
24
- "@blocklet/constant": "1.16.31-beta-a0cc72cf",
25
- "@blocklet/meta": "1.16.31-beta-a0cc72cf",
24
+ "@blocklet/constant": "1.16.31-beta-53480e26",
25
+ "@blocklet/meta": "1.16.31-beta-53480e26",
26
26
  "@ocap/client": "1.18.135",
27
27
  "@ocap/mcrypto": "1.18.135",
28
28
  "@ocap/util": "1.18.135",
@@ -82,5 +82,5 @@
82
82
  "fs-extra": "^11.2.0",
83
83
  "jest": "^29.7.0"
84
84
  },
85
- "gitHead": "d1eec814979a4086fc5efd7c719687b76c972ec6"
85
+ "gitHead": "203544964d01a856dc380147ba938755f629429f"
86
86
  }