dcp-client 4.1.13 → 4.1.17
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/dcp-client.js +2 -1
- package/dist/dcp-client-bundle.js +102 -88
- package/generated/sandbox-definitions.json +1 -1
- package/index.js +3 -3
- package/lib/standaloneWorker.js +11 -1
- package/libexec/evaluator-node.js +27 -22
- package/libexec/sandbox/access-lists.js +3 -2
- package/libexec/sandbox/bootstrap.js +4 -4
- package/libexec/sandbox/bravojs-env.js +1 -1
- package/libexec/sandbox/calculate-capabilities.js +1 -1
- package/libexec/sandbox/event-loop-virtualization.js +140 -123
- package/libexec/sandbox/native-event-loop.js +237 -0
- package/libexec/sandbox/primitive-timers.js +6 -0
- package/libexec/sandbox/sa-ww-simulation.js +6 -23
- package/libexec/sandbox/script-load-wrapper.js +16 -1
- package/libexec/sandbox/wrap-event-listeners.js +38 -0
- package/package.json +1 -1
package/dcp-client.js
CHANGED
|
@@ -50,7 +50,7 @@ https://distributed.computer/`, "font-weight: bold; font-size: 1.2em; color: #00
|
|
|
50
50
|
dcpConfigHref = thisScriptURL.origin + thisScriptURL.pathname.replace(/\/dcp-client\/dcp-client.js$/, '/etc/dcp-config.js') + thisScriptURL.search;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
/** Load dcp-config.
|
|
53
|
+
/** Load dcp-config.kvin from scheduler, and merge with running dcpConfig */
|
|
54
54
|
function loadConfig() {
|
|
55
55
|
configScript = document.createElement('SCRIPT');
|
|
56
56
|
configScript.setAttribute('type', 'text/javascript');
|
|
@@ -118,6 +118,7 @@ https://distributed.computer/`, "font-weight: bold; font-size: 1.2em; color: #00
|
|
|
118
118
|
* the config can't access the Address class before the bundle is loaded.
|
|
119
119
|
*/
|
|
120
120
|
dcp.wallet.Address.patchUp(dcpConfig);
|
|
121
|
+
dcp['dcp-url'].patchup(dcpConfig);
|
|
121
122
|
|
|
122
123
|
if (ready)
|
|
123
124
|
window.setTimeout(function bundleReadyFire() { let indirectEval=eval; indirectEval(ready) }, 0);
|