connected-spaces-platform.web 5.13.1 → 5.14.0
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/Debug/ConnectedSpacesPlatform_WASM.js +273 -87
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.worker.js +40 -0
- package/README.md +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.js +2 -2
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Release/ConnectedSpacesPlatform_WASM.worker.js +1 -1
- package/connectedspacesplatform.d.ts +12438 -12237
- package/connectedspacesplatform.js +29918 -29533
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +1892 -1213
- package/package.json +1 -1
- package/ConnectedSpacesPlatform_WASM.d.ts +0 -2
|
Binary file
|
|
Binary file
|
|
@@ -12,6 +12,41 @@
|
|
|
12
12
|
|
|
13
13
|
var Module = {};
|
|
14
14
|
|
|
15
|
+
// Node.js support
|
|
16
|
+
var ENVIRONMENT_IS_NODE = typeof process == 'object' && typeof process.versions == 'object' && typeof process.versions.node == 'string';
|
|
17
|
+
if (ENVIRONMENT_IS_NODE) {
|
|
18
|
+
// Create as web-worker-like an environment as we can.
|
|
19
|
+
|
|
20
|
+
var nodeWorkerThreads = require('worker_threads');
|
|
21
|
+
|
|
22
|
+
var parentPort = nodeWorkerThreads.parentPort;
|
|
23
|
+
|
|
24
|
+
parentPort.on('message', (data) => onmessage({ data: data }));
|
|
25
|
+
|
|
26
|
+
var fs = require('fs');
|
|
27
|
+
|
|
28
|
+
Object.assign(global, {
|
|
29
|
+
self: global,
|
|
30
|
+
require: require,
|
|
31
|
+
Module: Module,
|
|
32
|
+
location: {
|
|
33
|
+
href: __filename
|
|
34
|
+
},
|
|
35
|
+
Worker: nodeWorkerThreads.Worker,
|
|
36
|
+
importScripts: function(f) {
|
|
37
|
+
(0, eval)(fs.readFileSync(f, 'utf8') + '//# sourceURL=' + f);
|
|
38
|
+
},
|
|
39
|
+
postMessage: function(msg) {
|
|
40
|
+
parentPort.postMessage(msg);
|
|
41
|
+
},
|
|
42
|
+
performance: global.performance || {
|
|
43
|
+
now: function() {
|
|
44
|
+
return Date.now();
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
|
|
15
50
|
// Thread-local guard variable for one-time init of the JS state
|
|
16
51
|
var initializedJS = false;
|
|
17
52
|
|
|
@@ -21,6 +56,11 @@ function assert(condition, text) {
|
|
|
21
56
|
|
|
22
57
|
function threadPrintErr() {
|
|
23
58
|
var text = Array.prototype.slice.call(arguments).join(' ');
|
|
59
|
+
// See https://github.com/emscripten-core/emscripten/issues/14804
|
|
60
|
+
if (ENVIRONMENT_IS_NODE) {
|
|
61
|
+
fs.writeSync(2, text + '\n');
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
24
64
|
console.error(text);
|
|
25
65
|
}
|
|
26
66
|
function threadAlert() {
|
package/README.md
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
## Built from changelist ID:
|
|
1
|
+
## Built from changelist ID: 9e61715a2835eac1d4decd99f8982b52332f229f
|
|
2
2
|
The Release Notes for this package can be found [here](https://github.com/magnopus-opensource/connected-spaces-platform/releases).
|