pal-explorer-cli 0.4.8 → 0.4.9

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.
@@ -1001,6 +1001,11 @@ function getContributedPages() {
1001
1001
 
1002
1002
  function ensureDefaultExtensions() {
1003
1003
  if (!fs.existsSync(BUNDLED_DIR)) return;
1004
+ // Ensure extensions dir has ESM package.json so import() works
1005
+ const extPkg = path.join(EXTENSIONS_DIR, 'package.json');
1006
+ if (!fs.existsSync(extPkg)) {
1007
+ fs.writeFileSync(extPkg, '{ "type": "module" }\n');
1008
+ }
1004
1009
  const enabled = config.get('enabledExtensions') || [];
1005
1010
  const disabled = config.get('disabledExtensions') || [];
1006
1011
  let changed = false;
package/package.json CHANGED
@@ -1,68 +1,68 @@
1
- {
2
- "name": "pal-explorer-cli",
3
- "version": "0.4.8",
4
- "description": "P2P encrypted file sharing CLI — share files directly with friends, not with the cloud",
5
- "main": "bin/pal.js",
6
- "bin": {
7
- "pe": "./bin/pal.js"
8
- },
9
- "files": [
10
- "bin/",
11
- "lib/",
12
- "extensions/@palexplorer/*/extension.json",
13
- "extensions/@palexplorer/*/index.js",
14
- "LICENSE.md"
15
- ],
16
- "scripts": {
17
- "start": "node bin/pal.js",
18
- "test": "node --experimental-test-module-mocks --test \"test/commands/*.test.js\" \"test/core/*.test.js\" \"test/crypto/*.test.js\" \"test/gui/*.test.js\" \"test/stress/*.test.js\" \"test/utils/*.test.js\" \"test/*.test.js\"",
19
- "test:e2e": "npx playwright test",
20
- "build": "node scripts/build.js",
21
- "build:win": "node scripts/build.js --win",
22
- "build:mac": "node scripts/build.js --mac",
23
- "build:linux": "node scripts/build.js --linux",
24
- "postinstall": "node -e \"console.log('\\n Run: pe init to get started\\n')\""
25
- },
26
- "engines": {
27
- "node": ">=20.0.0"
28
- },
29
- "keywords": [
30
- "p2p",
31
- "file-sharing",
32
- "encrypted",
33
- "e2e",
34
- "peer-to-peer",
35
- "webtorrent",
36
- "cli",
37
- "privacy"
38
- ],
39
- "dependencies": {
40
- "acorn": "^8.16.0",
41
- "acorn-walk": "^8.3.5",
42
- "bip39": "^3.1.0",
43
- "bittorrent-dht": "^11.0.11",
44
- "bonjour-service": "^1.3.0",
45
- "chalk": "^5.3.0",
46
- "commander": "^11.1.0",
47
- "conf": "^12.0.0",
48
- "express": "^5.2.1",
49
- "inquirer": "^9.2.12",
50
- "keytar": "^7.9.0",
51
- "ora": "^8.0.1",
52
- "posthog-node": "^5.28.4",
53
- "qrcode-terminal": "^0.12.0",
54
- "regedit": "^5.1.4",
55
- "sodium-native": "^5.0.10",
56
- "v8-compile-cache-lib": "^3.0.1",
57
- "webdav-server": "^2.6.2",
58
- "webtorrent": "^2.1.33",
59
- "ws": "^8.19.0"
60
- },
61
- "author": "Palexplorer",
62
- "license": "SEE LICENSE IN LICENSE.md",
63
- "homepage": "https://palexplorer.com",
64
- "type": "module",
65
- "devDependencies": {
66
- "@playwright/test": "^1.58.2"
67
- }
68
- }
1
+ {
2
+ "name": "pal-explorer-cli",
3
+ "version": "0.4.9",
4
+ "description": "P2P encrypted file sharing CLI — share files directly with friends, not with the cloud",
5
+ "main": "bin/pal.js",
6
+ "bin": {
7
+ "pe": "./bin/pal.js"
8
+ },
9
+ "files": [
10
+ "bin/",
11
+ "lib/",
12
+ "extensions/@palexplorer/*/extension.json",
13
+ "extensions/@palexplorer/*/index.js",
14
+ "LICENSE.md"
15
+ ],
16
+ "scripts": {
17
+ "start": "node bin/pal.js",
18
+ "test": "node --experimental-test-module-mocks --test \"test/commands/*.test.js\" \"test/core/*.test.js\" \"test/crypto/*.test.js\" \"test/gui/*.test.js\" \"test/stress/*.test.js\" \"test/utils/*.test.js\" \"test/*.test.js\"",
19
+ "test:e2e": "npx playwright test",
20
+ "build": "node scripts/build.js",
21
+ "build:win": "node scripts/build.js --win",
22
+ "build:mac": "node scripts/build.js --mac",
23
+ "build:linux": "node scripts/build.js --linux",
24
+ "postinstall": "node -e \"console.log('\\n Run: pe init to get started\\n')\""
25
+ },
26
+ "engines": {
27
+ "node": ">=20.0.0"
28
+ },
29
+ "keywords": [
30
+ "p2p",
31
+ "file-sharing",
32
+ "encrypted",
33
+ "e2e",
34
+ "peer-to-peer",
35
+ "webtorrent",
36
+ "cli",
37
+ "privacy"
38
+ ],
39
+ "dependencies": {
40
+ "acorn": "^8.16.0",
41
+ "acorn-walk": "^8.3.5",
42
+ "bip39": "^3.1.0",
43
+ "bittorrent-dht": "^11.0.11",
44
+ "bonjour-service": "^1.3.0",
45
+ "chalk": "^5.3.0",
46
+ "commander": "^11.1.0",
47
+ "conf": "^12.0.0",
48
+ "express": "^5.2.1",
49
+ "inquirer": "^9.2.12",
50
+ "keytar": "^7.9.0",
51
+ "ora": "^8.0.1",
52
+ "posthog-node": "^5.28.4",
53
+ "qrcode-terminal": "^0.12.0",
54
+ "regedit": "^5.1.4",
55
+ "sodium-native": "^5.0.10",
56
+ "v8-compile-cache-lib": "^3.0.1",
57
+ "webdav-server": "^2.6.2",
58
+ "webtorrent": "^2.1.33",
59
+ "ws": "^8.19.0"
60
+ },
61
+ "author": "Palexplorer",
62
+ "license": "SEE LICENSE IN LICENSE.md",
63
+ "homepage": "https://palexplorer.com",
64
+ "type": "module",
65
+ "devDependencies": {
66
+ "@playwright/test": "^1.58.2"
67
+ }
68
+ }