-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathpackage.json
More file actions
239 lines (239 loc) · 6.62 KB
/
package.json
File metadata and controls
239 lines (239 loc) · 6.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
{
"name": "peersky-browser",
"version": "1.0.0-beta.26",
"description": "A minimal local-first p2p web browser: access, communicate, and publish offline.",
"keywords": [
"peersky",
"ipfs",
"hyper",
"web3",
"browser",
"dweb"
],
"license": "MIT",
"author": "Akhilesh Thite <akhileshthite@hotmail.com> (https://akhilesh.art/)",
"main": "src/main.js",
"type": "module",
"repository": "https://github.com/p2plabsxyz/peersky-browser",
"scripts": {
"test": "npm run test:all",
"test:all": "npm run test:p2p && npm run test:p2p:e2e && npm run test:extensions && npm run test:security && npm run test:integration",
"test:integration": "mocha \"test/integration/**/*.test.js\" --timeout 300000",
"test:p2p": "mocha \"test/p2p/ipfs-handler.test.js\" \"test/p2p/hyper-handler.test.js\" \"test/p2p/hs-handler.test.js\" \"test/p2p/bittorrent-handler.test.js\" --timeout 20000 --exit",
"test:p2p:bt": "mocha \"test/p2p/bittorrent-handler.test.js\" --timeout 20000",
"test:p2p:e2e": "rimraf .test-e2e-data && cross-env NODE_ENV=test PEERSKY_TEST_USERDATA=.test-e2e-data mocha --file ./test/setup.js \"test/p2p/p2p-e2e.test.js\" --timeout 120000 --exit",
"test:extensions": "mocha \"test/extensions/**/*.test.js\" --timeout 20000",
"test:security": "mocha \"test/security/**/*.test.js\" --timeout 20000",
"coverage": "cross-env NODE_OPTIONS=--experimental-loader=@istanbuljs/esm-loader-hook nyc mocha \"test/p2p/ipfs-handler.test.js\" \"test/p2p/hyper-handler.test.js\" \"test/p2p/hs-handler.test.js\" \"test/p2p/bittorrent-handler.test.js\" \"test/extensions/**/*.test.js\" \"test/security/**/*.test.js\" --timeout 20000",
"coverage:report": "nyc report --reporter=text-summary --reporter=html --reporter=lcov",
"start": "electron .",
"postinstall": "git submodule update --init --recursive --remote --merge && node scripts/postinstall.js",
"build": "electron-builder build --publish never",
"build-all": "electron-builder build -mwl"
},
"build": {
"npmRebuild": true,
"asar": true,
"afterPack": "./scripts/afterPack.js",
"appId": "peersky.p2plabs.xyz",
"productName": "Peersky Browser",
"directories": {
"output": "dist"
},
"files": [
"node_modules/**/*",
"package.json",
".gitmodules",
"pages/**/*",
"public/*",
"src/**/*",
"src/*"
],
"asarUnpack": [
"src/**",
"node_modules/**",
"package.json"
],
"mac": {
"artifactName": "${name}-${version}-${os}-${arch}.${ext}",
"gatekeeperAssess": false,
"identity": null,
"extendInfo": {
"NSMicrophoneUsageDescription": "The current page is asking to use your microphone",
"NSCameraUsageDescription": "The current page is asking to use your camera",
"NSLocationWhenInUseUsageDescription": "The current page is asking to access your location",
"com.apple.security.device.audio-input": true,
"com.apple.security.device.camera": true,
"com.apple.security.personal-information.location": true
},
"target": [
{
"target": "default",
"arch": [
"x64",
"arm64"
]
}
],
"icon": "./public/icon.icns"
},
"win": {
"target": [
"nsis",
"portable"
],
"icon": "./public/icon.png"
},
"linux": {
"artifactName": "${name}-${version}-${os}-${arch}.${ext}",
"executableArgs": [
"--enable-accelerated-video"
],
"target": [
"deb",
"AppImage",
"apk",
"pacman"
],
"category": "Network;WebBrowser"
},
"protocols": [
{
"name": "webpages",
"schemes": [
"http",
"https"
],
"role": "Viewer"
},
{
"name": "peersky",
"schemes": [
"peersky",
"browser"
],
"role": "Viewer"
},
{
"name": "ipfs",
"schemes": [
"ipfs",
"ipns",
"ipld"
],
"role": "Viewer"
},
{
"name": "hyper",
"schemes": [
"hyper",
"dat"
],
"role": "Viewer"
},
{
"name": "web3",
"schemes": [
"web3"
],
"role": "Viewer"
},
{
"name": "bittorrent",
"schemes": [
"bittorrent",
"bt",
"magnet"
],
"role": "Viewer"
}
],
"publish": [
{
"provider": "github",
"owner": "p2plabsxyz",
"repo": "peersky-browser",
"releaseType": "release"
}
]
},
"dependencies": {
"@helia/dnslink": "^1.1.4",
"@helia/ipns": "^9.1.9",
"@helia/unixfs": "^7.0.4",
"@libp2p/http": "^2.0.1",
"@libp2p/kad-dht": "^16.1.3",
"@libp2p/keychain": "^6.0.10",
"@libp2p/mplex": "^12.0.11",
"@libp2p/tls": "^3.0.10",
"b4a": "^1.6.7",
"blockstore-level": "^3.0.2",
"chromium-net-errors": "^13.0.0",
"content-hash": "^2.5.2",
"content-type": "^1.0.5",
"datastore-level": "^12.0.2",
"@p2plabs/peersky-chrome-extensions": "^1.1.0",
"electron-chrome-web-store": "^0.13.0",
"electron-find": "^1.0.7",
"electron-log": "^5.4.3",
"electron-updater": "^6.8.3",
"ethers": "^6.13.4",
"fs-extra": "^11.2.0",
"helia": "^6.0.20",
"holesail": "^2.4.1",
"hyper-sdk": "^6.2.2",
"hypercore-crypto": "^3.6.1",
"hypercore-fetch": "^10.1.0",
"hyperdht": "^6.27.0",
"hyperswarm": "^4.14.0",
"jquery": "^3.7.1",
"libp2p": "^3.1.3",
"mime-types": "^2.1.35",
"multiformats": "^13.3.2",
"parse-torrent": "^11.0.19",
"scoped-fs": "^1.4.1",
"unzipper": "^0.10.14",
"web3protocol": "^0.6.3",
"webtorrent": "^2.8.5",
"yjs": "^13.6.27"
},
"devDependencies": {
"@istanbuljs/esm-loader-hook": "^0.3.0",
"chai": "^6.2.2",
"chrome-extension-fetch": "^1.0.0",
"cross-env": "^10.1.0",
"electron": "^41.5.0",
"electron-builder": "^26.8.1",
"esmock": "^2.7.3",
"mocha": "^11.7.5",
"nyc": "^18.0.0",
"rimraf": "^6.1.3",
"sinon": "^21.0.2"
},
"nyc": {
"all": true,
"cache": false,
"extension": [
".js",
".mjs"
],
"include": [
"src/protocols/bittorrent-handler.js",
"src/protocols/hyper-handler.js",
"src/protocols/ipfs-handler.js",
"src/protocols/hs-handler.js"
],
"exclude": [
"test/**",
"scripts/**",
"src/pages/static/**"
],
"reporter": [
"text",
"text-summary",
"html",
"lcov"
],
"report-dir": "coverage"
}
}