@primate/python 0.8.0 → 0.9.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/lib/private/borrow.d.ts +1 -1
- package/lib/private/default.js +8 -6
- package/package.json +12 -12
package/lib/private/borrow.d.ts
CHANGED
package/lib/private/default.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import E from "#errors";
|
|
2
2
|
import module from "#module";
|
|
3
3
|
import server from "@primate/core/server";
|
|
4
|
-
import assert from "@rcompat/assert";
|
|
5
4
|
import fs from "@rcompat/fs";
|
|
6
5
|
import io from "@rcompat/io";
|
|
7
6
|
const PACKAGE = "primate-run";
|
|
@@ -68,11 +67,14 @@ export default function default_module(input = {}) {
|
|
|
68
67
|
.map(p => p.trim());
|
|
69
68
|
}
|
|
70
69
|
const packages_str = JSON.stringify(packages);
|
|
71
|
-
app.
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
70
|
+
app.register(module.name, {
|
|
71
|
+
type: "backend",
|
|
72
|
+
extensions: [extension],
|
|
73
|
+
async onLoad(file) {
|
|
74
|
+
const relative = file.debase(app.path.routes).path.replace(/^\//, "");
|
|
75
|
+
const source = await file.text();
|
|
76
|
+
return wrap(source, relative, packages_str, `${PACKAGE}~=${server.TAG}.0`);
|
|
77
|
+
},
|
|
76
78
|
});
|
|
77
79
|
});
|
|
78
80
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primate/python",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Python backend for Primate",
|
|
5
5
|
"homepage": "https://primate.run/docs/backend/python",
|
|
6
6
|
"bugs": "https://github.com/primate-run/primate/issues",
|
|
@@ -17,20 +17,20 @@
|
|
|
17
17
|
"!/**/*.spec.*"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@rcompat/assert": "^0.
|
|
21
|
-
"@rcompat/error": "^0.
|
|
22
|
-
"@rcompat/fs": "^0.
|
|
23
|
-
"@rcompat/io": "^0.
|
|
24
|
-
"@rcompat/is": "^0.
|
|
25
|
-
"pyodide": "^0.
|
|
26
|
-
"
|
|
27
|
-
"
|
|
20
|
+
"@rcompat/assert": "^0.14.0",
|
|
21
|
+
"@rcompat/error": "^0.9.0",
|
|
22
|
+
"@rcompat/fs": "^0.35.1",
|
|
23
|
+
"@rcompat/io": "^0.11.0",
|
|
24
|
+
"@rcompat/is": "^0.12.0",
|
|
25
|
+
"pyodide": "^314.0.2",
|
|
26
|
+
"@primate/core": "^0.9.0",
|
|
27
|
+
"pema": "^0.9.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@rcompat/type": "^0.
|
|
30
|
+
"@rcompat/type": "^0.18.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"primate": "^0.
|
|
33
|
+
"primate": "^0.40.0"
|
|
34
34
|
},
|
|
35
35
|
"imports": {
|
|
36
36
|
"#*": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
|
-
"build": "npm run clean &&
|
|
52
|
+
"build": "npm run clean && tsc",
|
|
53
53
|
"clean": "rm -rf ./lib",
|
|
54
54
|
"lint": "eslint ."
|
|
55
55
|
}
|