dcp-client 4.4.17 → 4.4.18
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/build/etc/config.cache +1 -1
- package/dist/dcp-client-bundle.js +1 -1
- package/dist/dcp-client-bundle.js.map +1 -1
- package/docs/CODEOWNERS +4 -53
- package/fs-basic.py +7 -0
- package/index.py +1 -0
- package/libexec/sandbox/access-lists.js +5 -1
- package/package.json +7 -11
package/docs/CODEOWNERS
CHANGED
|
@@ -1,54 +1,5 @@
|
|
|
1
|
-
# @file CODEOWNERS -
|
|
2
|
-
# @author wes@
|
|
1
|
+
# @file CODEOWNERS - hand generated until crontab on people turned back on
|
|
2
|
+
# @author wes@distributive.network
|
|
3
3
|
|
|
4
|
-
[
|
|
5
|
-
/
|
|
6
|
-
/catalog-info.yaml @BChristieDistributive
|
|
7
|
-
|
|
8
|
-
[Eddie]
|
|
9
|
-
/package-lock.json @eroosenmaallen
|
|
10
|
-
|
|
11
|
-
[Eddie or Wes]
|
|
12
|
-
/dist/dcp-client-bundle.js @eroosenmaallen @wesgarland
|
|
13
|
-
|
|
14
|
-
[Wes]
|
|
15
|
-
/templates/ @wesgarland
|
|
16
|
-
/assets/ @wesgarland
|
|
17
|
-
/test-pseudo-root/ @wesgarland
|
|
18
|
-
/etc/ @wesgarland
|
|
19
|
-
/examples/ @wesgarland
|
|
20
|
-
/tests/ @wesgarland
|
|
21
|
-
/build/ @wesgarland
|
|
22
|
-
/docs/ @wesgarland
|
|
23
|
-
/lib/ @wesgarland
|
|
24
|
-
/libexec/ @wesgarland
|
|
25
|
-
/dist/dcp-client-bundle.js.map @wesgarland
|
|
26
|
-
/dist/dcp-modal-style.css @wesgarland
|
|
27
|
-
/bin/ @wesgarland
|
|
28
|
-
/.eslintrc.json @wesgarland
|
|
29
|
-
/.git @wesgarland
|
|
30
|
-
/.gitignore @wesgarland
|
|
31
|
-
/.gitlab-ci.yml @wesgarland
|
|
32
|
-
/.npmignore @wesgarland
|
|
33
|
-
/.npmrc @wesgarland
|
|
34
|
-
/.tidelift @wesgarland
|
|
35
|
-
/LICENSE.md @wesgarland
|
|
36
|
-
/README.md @wesgarland
|
|
37
|
-
/cjs2-shim.js @wesgarland
|
|
38
|
-
/cors-proxy.html @wesgarland
|
|
39
|
-
/dcp-client.css @wesgarland
|
|
40
|
-
/dcp-client.js @wesgarland
|
|
41
|
-
/dcp-support.py @wesgarland
|
|
42
|
-
/favicon.ico @wesgarland
|
|
43
|
-
/fs-basic.py @wesgarland
|
|
44
|
-
/generated/ @wesgarland
|
|
45
|
-
/index.js @wesgarland
|
|
46
|
-
/index.py @wesgarland
|
|
47
|
-
/init-common.js @wesgarland
|
|
48
|
-
/licenses/ @wesgarland
|
|
49
|
-
/ns-map.js @wesgarland
|
|
50
|
-
/test-helpers/ @wesgarland
|
|
51
|
-
/windows-registry.js @wesgarland
|
|
52
|
-
|
|
53
|
-
[Wes or Eddie]
|
|
54
|
-
/package.json @wesgarland @eroosenmaallen
|
|
4
|
+
[Wes or Yarn]
|
|
5
|
+
/ @wesgarland @yarnsawe
|
package/fs-basic.py
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
# @date Feb 2024
|
|
6
6
|
|
|
7
7
|
import os
|
|
8
|
+
import sys
|
|
8
9
|
import pythonmonkey as pm
|
|
9
10
|
|
|
10
11
|
def readFile(filename: str) -> str:
|
|
@@ -44,3 +45,9 @@ exports['readDir'] = os.listdir
|
|
|
44
45
|
exports['rm'] = os.remove
|
|
45
46
|
exports['rmdir'] = os.rmdir
|
|
46
47
|
exports['fileSize'] = lambda filename: os.stat(filename).st_size
|
|
48
|
+
exports['stdin'] = sys.stdin
|
|
49
|
+
exports['stdin'].isTTY = sys.stdin.isatty()
|
|
50
|
+
exports['stdout'] = sys.stdout
|
|
51
|
+
exports['stdout'].isTTY = sys.stdout.isatty()
|
|
52
|
+
exports['stderr'] = sys.stderr
|
|
53
|
+
exports['stderr'].isTTY = sys.stderr.isatty()
|
package/index.py
CHANGED
|
@@ -57,6 +57,7 @@ function iife(kwargs, fetch, require, bootstrapRequire)
|
|
|
57
57
|
const configLocation = kwargs.config || python.getenv('DCP_CONFIG_LOCATION') || schedulerLocation + '/etc/dcp-config.js';
|
|
58
58
|
globalThis.window = globalThis; /** @todo fix in pythonmonkey */
|
|
59
59
|
globalThis.crypto = Object.assign({}, { getRandomValues: dcpSupport.getRandomValues }, globalThis.crypto);
|
|
60
|
+
globalThis.require = require;
|
|
60
61
|
|
|
61
62
|
/** @todo extract baked-in defaults from bundle */
|
|
62
63
|
if (!globalThis.dcpConfig)
|
|
@@ -930,8 +930,12 @@ self.wrapScriptLoading({ scriptName: 'access-lists', ringTransition: true }, fun
|
|
|
930
930
|
for (let prop of navigatorAllowList)
|
|
931
931
|
polyNavigator[prop] = navigator[prop];
|
|
932
932
|
|
|
933
|
-
|
|
933
|
+
if (!navigatorDescriptor.writable)
|
|
934
|
+
delete owner.navigator;
|
|
934
935
|
owner.navigator = polyNavigator;
|
|
936
|
+
|
|
937
|
+
if (!navigator.hasOwnProperty('userAgent'))
|
|
938
|
+
navigator.userAgent = 'not-a-browser';
|
|
935
939
|
}
|
|
936
940
|
|
|
937
941
|
/* Polyfill section of workerBootstrap */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dcp-client",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.18",
|
|
4
4
|
"description": "Core libraries for accessing DCP network",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dcp"
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"url": "https://github.com/Distributed-Compute-Labs/dcp-client/issues"
|
|
11
11
|
},
|
|
12
12
|
"dcp": {
|
|
13
|
-
"version": "
|
|
13
|
+
"version": "d2c66f4234aa81c3c1cd5a09436e6de155be8bfd",
|
|
14
14
|
"repository": "git@gitlab.com:Distributed-Compute-Protocol/dcp.git"
|
|
15
15
|
},
|
|
16
16
|
"repository": {
|
|
@@ -32,8 +32,6 @@
|
|
|
32
32
|
"prepublishOnly": "npm-hooks/prepublish"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@kingsds/socket.io-client": "^4.5.4",
|
|
36
|
-
"@kingsds/xmlhttprequest-ssl": "^2.1.0",
|
|
37
35
|
"atob": "2.1.2",
|
|
38
36
|
"bravojs": "^1.0.16",
|
|
39
37
|
"btoa": "^1.2.1",
|
|
@@ -50,9 +48,11 @@
|
|
|
50
48
|
"polyfill-crypto.getrandomvalues": "^1.0.0",
|
|
51
49
|
"regedit": "^3.0.3",
|
|
52
50
|
"semver": "^7.3.5",
|
|
51
|
+
"socket.io-client": "4.8.0",
|
|
53
52
|
"source-map-support": "0.5.21",
|
|
54
|
-
"webpack": "5.
|
|
53
|
+
"webpack": "5.94.0",
|
|
55
54
|
"webpack-cli": "^4.7.2",
|
|
55
|
+
"xmlhttprequest-ssl": "npm:@kingsds/xmlhttprequest-ssl@^2.1.1",
|
|
56
56
|
"yargs": "16.2.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
@@ -63,13 +63,9 @@
|
|
|
63
63
|
},
|
|
64
64
|
"engines": {
|
|
65
65
|
"node": ">=18",
|
|
66
|
-
"npm": ">=
|
|
66
|
+
"npm": ">=8"
|
|
67
67
|
},
|
|
68
68
|
"overrides": {
|
|
69
|
-
"
|
|
70
|
-
"@kingsds/engine.io-client": {
|
|
71
|
-
"ws": "8.17.1"
|
|
72
|
-
}
|
|
73
|
-
}
|
|
69
|
+
"xmlhttprequest-ssl": "$xmlhttprequest-ssl"
|
|
74
70
|
}
|
|
75
71
|
}
|