@primate/python 0.7.0 → 0.8.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/default.js
CHANGED
|
@@ -39,14 +39,14 @@ function wrap(source, id, packages_str, primate_run) {
|
|
|
39
39
|
return `
|
|
40
40
|
import route from "primate/route";
|
|
41
41
|
import wrapper from "@primate/python/wrapper";
|
|
42
|
-
import
|
|
42
|
+
import app from "$:app";
|
|
43
43
|
import session from "app:config:session";
|
|
44
44
|
const handlers = await wrapper(
|
|
45
45
|
${JSON.stringify(source)},
|
|
46
46
|
${packages_str},
|
|
47
47
|
${JSON.stringify(primate_run)},
|
|
48
48
|
${JSON.stringify(id)},
|
|
49
|
-
{ i18n, session }
|
|
49
|
+
{ i18n: app.i18n, session }
|
|
50
50
|
);
|
|
51
51
|
export default route(handlers);
|
|
52
52
|
`;
|
package/lib/private/helpers.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
type(value: unknown): "
|
|
2
|
+
type(value: unknown): "array" | "boolean" | "float" | "integer" | "nil" | "object" | "string" | undefined;
|
|
3
3
|
};
|
|
4
4
|
export default _default;
|
|
5
5
|
//# sourceMappingURL=helpers.d.ts.map
|
package/lib/private/module.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { RequestContentType, RequestFacade } from "@primate/core";
|
|
2
|
+
import type { Dict } from "@rcompat/type";
|
|
2
3
|
type FileEntry = {
|
|
3
4
|
bytes: Uint8Array;
|
|
4
5
|
field: string;
|
|
@@ -29,10 +30,10 @@ type BridgedBody = {
|
|
|
29
30
|
export default function to_request(request: RequestFacade, contentType: RequestContentType | ""): Promise<{
|
|
30
31
|
url: URL;
|
|
31
32
|
body: BridgedBody;
|
|
32
|
-
path:
|
|
33
|
-
query:
|
|
34
|
-
headers:
|
|
35
|
-
cookies:
|
|
33
|
+
path: Dict<string>;
|
|
34
|
+
query: Dict<string>;
|
|
35
|
+
headers: Dict<string>;
|
|
36
|
+
cookies: Dict<string>;
|
|
36
37
|
}>;
|
|
37
38
|
export {};
|
|
38
39
|
//# sourceMappingURL=to-request.d.ts.map
|
package/lib/private/unwrap.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
+
import type { Dict } from "@rcompat/type";
|
|
1
2
|
import type { PyProxy } from "pyodide/ffi";
|
|
2
|
-
export default function unwrap(response: PyProxy):
|
|
3
|
-
[k: string]: unknown;
|
|
4
|
-
};
|
|
3
|
+
export default function unwrap(response: PyProxy): Dict;
|
|
5
4
|
//# sourceMappingURL=unwrap.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primate/python",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.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",
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
"@rcompat/fs": "^0.33.2",
|
|
23
23
|
"@rcompat/io": "^0.10.0",
|
|
24
24
|
"@rcompat/is": "^0.11.0",
|
|
25
|
-
"pyodide": "^0.29.
|
|
26
|
-
"
|
|
27
|
-
"
|
|
25
|
+
"pyodide": "^0.29.4",
|
|
26
|
+
"pema": "^0.8.0",
|
|
27
|
+
"@primate/core": "^0.8.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@rcompat/type": "^0.17.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"primate": "^0.
|
|
33
|
+
"primate": "^0.39.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 && tsgo",
|
|
53
53
|
"clean": "rm -rf ./lib",
|
|
54
54
|
"lint": "eslint ."
|
|
55
55
|
}
|