@primate/go 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
|
@@ -52,10 +52,10 @@ function wrap(route_id) {
|
|
|
52
52
|
import route from "primate/route";
|
|
53
53
|
import wrapper from "@primate/go/wrapper";
|
|
54
54
|
import bytes from "app:wasm/${route_id}.wasm" with { type: "bytes" };
|
|
55
|
-
import
|
|
55
|
+
import app from "$:app";
|
|
56
56
|
import session from "app:config:session";
|
|
57
57
|
const handlers = await wrapper(bytes, ${JSON.stringify(route_id)}, {
|
|
58
|
-
i18n, session,
|
|
58
|
+
i18n: app.i18n, session,
|
|
59
59
|
});
|
|
60
60
|
export default route(handlers);
|
|
61
61
|
`;
|
package/lib/private/module.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primate/go",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Go backend for Primate",
|
|
5
5
|
"homepage": "https://primate.run/docs/backend/go",
|
|
6
6
|
"bugs": "https://github.com/primate-run/primate/issues",
|
|
@@ -18,19 +18,19 @@
|
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@rcompat/assert": "^0.13.0",
|
|
21
|
-
"@rcompat/env": "^0.22.
|
|
21
|
+
"@rcompat/env": "^0.22.2",
|
|
22
22
|
"@rcompat/error": "^0.8.0",
|
|
23
23
|
"@rcompat/fs": "^0.33.2",
|
|
24
24
|
"@rcompat/io": "^0.10.0",
|
|
25
25
|
"@rcompat/is": "^0.11.0",
|
|
26
|
-
"@primate/core": "^0.
|
|
27
|
-
"pema": "^0.
|
|
26
|
+
"@primate/core": "^0.8.0",
|
|
27
|
+
"pema": "^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
|
"#vendored/wasm_exec": "./src/private/vendored/wasm_exec.js",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
|
-
"build": "npm run clean &&
|
|
54
|
+
"build": "npm run clean && tsgo",
|
|
55
55
|
"clean": "rm -rf ./lib",
|
|
56
56
|
"lint": "eslint ."
|
|
57
57
|
}
|