dcp-client 5.8.4 → 5.8.5
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.
|
@@ -113,6 +113,9 @@ prepPyodide`);
|
|
|
113
113
|
await fetchAndInitPyodidePackages(packageManagerImports);
|
|
114
114
|
await pyodide.loadPackage(packageManagerImports);
|
|
115
115
|
}
|
|
116
|
+
|
|
117
|
+
// load and execute the Python Workfunction, this populates the pythonSliceHandler variable
|
|
118
|
+
await pyodide.runPython(job.workFunction);
|
|
116
119
|
|
|
117
120
|
wrappedPythonSliceHandler = workFunctionWrapper;
|
|
118
121
|
|
|
@@ -127,9 +130,6 @@ prepPyodide`);
|
|
|
127
130
|
{
|
|
128
131
|
const pyodide = await pyodideInit(); // returns the same promise when called multiple times
|
|
129
132
|
|
|
130
|
-
// load and execute the Python Workfunction, this populates the pythonSliceHandler variable
|
|
131
|
-
await pyodide.runPython(job.workFunction);
|
|
132
|
-
|
|
133
133
|
// failure to specify a slice handler is considered an error
|
|
134
134
|
if (!pythonSliceHandler)
|
|
135
135
|
throw new Error('ENOSLICEHANDLER: Must specify the slice handler using `dcp.set_slice_handler(fn)`');
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dcp-client",
|
|
3
|
-
"version": "5.8.
|
|
3
|
+
"version": "5.8.5",
|
|
4
4
|
"dcp": {
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "15b808e6c247df96fe9ccbedcfe66da2f1b1876b",
|
|
6
6
|
"repository": "git@gitlab.com:Distributed-Compute-Protocol/dcp.git"
|
|
7
7
|
},
|
|
8
8
|
"description": "Core libraries for accessing DCP network",
|