@primate/eta 0.5.0 → 0.6.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.d.ts +7 -0
- package/lib/private/{Default.js → default.js} +8 -6
- package/lib/private/init.d.ts +4 -0
- package/lib/private/init.js +8 -0
- package/lib/private/runtime.d.ts +7 -0
- package/lib/private/runtime.js +4 -0
- package/lib/public/default.d.ts +1 -3
- package/lib/public/default.js +1 -2
- package/lib/public/runtime.d.ts +1 -3
- package/lib/public/runtime.js +1 -2
- package/package.json +10 -5
- package/lib/private/Default.d.ts +0 -7
- package/lib/private/Runtime.d.ts +0 -8
- package/lib/private/Runtime.js +0 -8
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import init from "#init";
|
|
2
|
+
import frontend from "@primate/core/frontend";
|
|
2
3
|
import { Eta } from "eta";
|
|
3
4
|
const eta = new Eta();
|
|
4
|
-
export default
|
|
5
|
-
|
|
5
|
+
export default frontend({
|
|
6
|
+
...init,
|
|
7
|
+
compile: {
|
|
6
8
|
server: (text) => `
|
|
7
9
|
import { Eta } from "eta";
|
|
8
10
|
const eta = new Eta();
|
|
@@ -11,6 +13,6 @@ export default class Default extends Runtime {
|
|
|
11
13
|
|
|
12
14
|
export default (props, options) => anonymous.call(eta, props, options);
|
|
13
15
|
`,
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=default.js.map
|
package/lib/public/default.d.ts
CHANGED
package/lib/public/default.js
CHANGED
package/lib/public/runtime.d.ts
CHANGED
package/lib/public/runtime.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primate/eta",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Eta for Primate",
|
|
5
5
|
"homepage": "https://primate.run/docs/frontend/eta",
|
|
6
6
|
"bugs": "https://github.com/primate-run/primate/issues",
|
|
@@ -18,19 +18,23 @@
|
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"eta": "^4.5.1",
|
|
21
|
-
"@primate/core": "^0.
|
|
21
|
+
"@primate/core": "^0.6.0"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@primate/test": "^0.0.0"
|
|
22
25
|
},
|
|
23
26
|
"peerDependencies": {
|
|
24
|
-
"primate": "^0.
|
|
27
|
+
"primate": "^0.37.0"
|
|
25
28
|
},
|
|
26
29
|
"imports": {
|
|
27
30
|
"#*": {
|
|
28
|
-
"
|
|
31
|
+
"@primate/source": "./src/private/*.ts",
|
|
29
32
|
"default": "./lib/private/*.js"
|
|
30
33
|
}
|
|
31
34
|
},
|
|
32
35
|
"exports": {
|
|
33
36
|
".": {
|
|
37
|
+
"@primate/source": "./src/public/default.ts",
|
|
34
38
|
"browser": "./lib/public/browser.js",
|
|
35
39
|
"runtime": "./lib/public/runtime.js",
|
|
36
40
|
"default": "./lib/public/default.js"
|
|
@@ -39,6 +43,7 @@
|
|
|
39
43
|
"scripts": {
|
|
40
44
|
"build": "npm run clean && tsc",
|
|
41
45
|
"clean": "rm -rf ./lib",
|
|
42
|
-
"lint": "eslint ."
|
|
46
|
+
"lint": "eslint .",
|
|
47
|
+
"test": "npx proby"
|
|
43
48
|
}
|
|
44
49
|
}
|
package/lib/private/Default.d.ts
DELETED
package/lib/private/Runtime.d.ts
DELETED
package/lib/private/Runtime.js
DELETED