dcp-client 4.4.11 → 4.4.12
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/fs-basic.py +0 -7
- package/index.py +0 -1
- package/package.json +1 -1
package/fs-basic.py
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
# @date Feb 2024
|
|
6
6
|
|
|
7
7
|
import os
|
|
8
|
-
import sys
|
|
9
8
|
import pythonmonkey as pm
|
|
10
9
|
|
|
11
10
|
def readFile(filename: str) -> str:
|
|
@@ -45,9 +44,3 @@ exports['readDir'] = os.listdir
|
|
|
45
44
|
exports['rm'] = os.remove
|
|
46
45
|
exports['rmdir'] = os.rmdir
|
|
47
46
|
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,7 +57,6 @@ 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;
|
|
61
60
|
|
|
62
61
|
/** @todo extract baked-in defaults from bundle */
|
|
63
62
|
if (!globalThis.dcpConfig)
|