@bookshop/hugo-engine 3.7.0 → 3.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/.nyc_output/processinfo/{4cfc833e-a7a5-4b39-8898-5205d5f50aa4.json → 215b16ae-ddd2-4dc0-9c2c-2c6bb8341985.json} +1 -1
- package/.nyc_output/processinfo/{b15f245b-a738-4773-aef0-9e5c6129f1fc.json → 2e514177-1a1b-4d9a-91cb-6601dcb5bda9.json} +1 -1
- package/.nyc_output/processinfo/34147300-5a6e-47e7-a3b1-e36f26e209fb.json +1 -0
- package/.nyc_output/processinfo/{e5aa5254-91d5-40d4-b180-1ab5a8432edc.json → e24d6687-3cfb-4df8-9720-525e69486736.json} +1 -1
- package/.nyc_output/processinfo/{f239fc67-b62d-4250-9d6d-4dd418797460.json → e9995778-da78-445d-b37f-f9884def2467.json} +1 -1
- package/.nyc_output/processinfo/index.json +1 -1
- package/full-hugo-renderer/hugo_renderer.wasm +0 -0
- package/full-hugo-renderer/hugo_renderer.wasm.gz +0 -0
- package/lib/engine.js +2 -0
- package/lib/engine__test__.js +2 -0
- package/package.json +2 -2
- package/.nyc_output/processinfo/5cd8fa18-60cf-43ac-8ed5-ece5a5c89276.json +0 -1
- /package/.nyc_output/{4cfc833e-a7a5-4b39-8898-5205d5f50aa4.json → 215b16ae-ddd2-4dc0-9c2c-2c6bb8341985.json} +0 -0
- /package/.nyc_output/{5cd8fa18-60cf-43ac-8ed5-ece5a5c89276.json → 2e514177-1a1b-4d9a-91cb-6601dcb5bda9.json} +0 -0
- /package/.nyc_output/{b15f245b-a738-4773-aef0-9e5c6129f1fc.json → 34147300-5a6e-47e7-a3b1-e36f26e209fb.json} +0 -0
- /package/.nyc_output/{e5aa5254-91d5-40d4-b180-1ab5a8432edc.json → e24d6687-3cfb-4df8-9720-525e69486736.json} +0 -0
- /package/.nyc_output/{f239fc67-b62d-4250-9d6d-4dd418797460.json → e9995778-da78-445d-b37f-f9884def2467.json} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"parent":"
|
|
1
|
+
{"parent":"34147300-5a6e-47e7-a3b1-e36f26e209fb","pid":5914,"argv":["/opt/hostedtoolcache/node/18.17.1/x64/bin/node","/home/runner/work/bookshop/bookshop/javascript-modules/node_modules/ava/lib/worker/subprocess.js"],"execArgv":[],"cwd":"/home/runner/work/bookshop/bookshop/javascript-modules/engines/hugo-engine","time":1695777994131,"ppid":5881,"coverageFilename":"/home/runner/work/bookshop/bookshop/javascript-modules/engines/hugo-engine/.nyc_output/215b16ae-ddd2-4dc0-9c2c-2c6bb8341985.json","externalId":"","uuid":"215b16ae-ddd2-4dc0-9c2c-2c6bb8341985","files":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"parent":"
|
|
1
|
+
{"parent":"34147300-5a6e-47e7-a3b1-e36f26e209fb","pid":5920,"argv":["/opt/hostedtoolcache/node/18.17.1/x64/bin/node","/home/runner/work/bookshop/bookshop/javascript-modules/node_modules/ava/lib/worker/subprocess.js"],"execArgv":[],"cwd":"/home/runner/work/bookshop/bookshop/javascript-modules/engines/hugo-engine","time":1695777994146,"ppid":5881,"coverageFilename":"/home/runner/work/bookshop/bookshop/javascript-modules/engines/hugo-engine/.nyc_output/2e514177-1a1b-4d9a-91cb-6601dcb5bda9.json","externalId":"","uuid":"2e514177-1a1b-4d9a-91cb-6601dcb5bda9","files":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"parent":null,"pid":5881,"argv":["/opt/hostedtoolcache/node/18.17.1/x64/bin/node","/home/runner/work/bookshop/bookshop/javascript-modules/node_modules/ava/cli.js","-v"],"execArgv":[],"cwd":"/home/runner/work/bookshop/bookshop/javascript-modules/engines/hugo-engine","time":1695777993172,"ppid":5870,"coverageFilename":"/home/runner/work/bookshop/bookshop/javascript-modules/engines/hugo-engine/.nyc_output/34147300-5a6e-47e7-a3b1-e36f26e209fb.json","externalId":"","uuid":"34147300-5a6e-47e7-a3b1-e36f26e209fb","files":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"parent":"
|
|
1
|
+
{"parent":"34147300-5a6e-47e7-a3b1-e36f26e209fb","pid":5892,"argv":["/opt/hostedtoolcache/node/18.17.1/x64/bin/node","/home/runner/work/bookshop/bookshop/javascript-modules/node_modules/ava/lib/worker/subprocess.js"],"execArgv":[],"cwd":"/home/runner/work/bookshop/bookshop/javascript-modules/engines/hugo-engine","time":1695777993731,"ppid":5881,"coverageFilename":"/home/runner/work/bookshop/bookshop/javascript-modules/engines/hugo-engine/.nyc_output/e24d6687-3cfb-4df8-9720-525e69486736.json","externalId":"","uuid":"e24d6687-3cfb-4df8-9720-525e69486736","files":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"parent":"
|
|
1
|
+
{"parent":"34147300-5a6e-47e7-a3b1-e36f26e209fb","pid":5893,"argv":["/opt/hostedtoolcache/node/18.17.1/x64/bin/node","/home/runner/work/bookshop/bookshop/javascript-modules/node_modules/ava/lib/worker/subprocess.js"],"execArgv":[],"cwd":"/home/runner/work/bookshop/bookshop/javascript-modules/engines/hugo-engine","time":1695777993731,"ppid":5881,"coverageFilename":"/home/runner/work/bookshop/bookshop/javascript-modules/engines/hugo-engine/.nyc_output/e9995778-da78-445d-b37f-f9884def2467.json","externalId":"","uuid":"e9995778-da78-445d-b37f-f9884def2467","files":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"processes":{"
|
|
1
|
+
{"processes":{"215b16ae-ddd2-4dc0-9c2c-2c6bb8341985":{"parent":"34147300-5a6e-47e7-a3b1-e36f26e209fb","children":[]},"2e514177-1a1b-4d9a-91cb-6601dcb5bda9":{"parent":"34147300-5a6e-47e7-a3b1-e36f26e209fb","children":[]},"34147300-5a6e-47e7-a3b1-e36f26e209fb":{"parent":null,"children":["215b16ae-ddd2-4dc0-9c2c-2c6bb8341985","2e514177-1a1b-4d9a-91cb-6601dcb5bda9","e24d6687-3cfb-4df8-9720-525e69486736","e9995778-da78-445d-b37f-f9884def2467"]},"e24d6687-3cfb-4df8-9720-525e69486736":{"parent":"34147300-5a6e-47e7-a3b1-e36f26e209fb","children":[]},"e9995778-da78-445d-b37f-f9884def2467":{"parent":"34147300-5a6e-47e7-a3b1-e36f26e209fb","children":[]}},"files":{},"externalIds":{}}
|
|
Binary file
|
|
Binary file
|
package/lib/engine.js
CHANGED
|
@@ -41,6 +41,7 @@ export class Engine {
|
|
|
41
41
|
this.key = 'hugo';
|
|
42
42
|
this.name = options.name;
|
|
43
43
|
this.files = options.files;
|
|
44
|
+
this.extraFiles = options.extraFiles;
|
|
44
45
|
this.origin = (typeof document === 'undefined' ? '' : document.currentScript?.src) || `/bookshop.js`;
|
|
45
46
|
this.synthetic = options.synthetic ?? false;
|
|
46
47
|
|
|
@@ -82,6 +83,7 @@ export class Engine {
|
|
|
82
83
|
|
|
83
84
|
const componentSuccess = window["writeHugoFiles"](JSON.stringify(mappedFiles));
|
|
84
85
|
const templateSuccess = window["writeHugoFiles"](JSON.stringify(templates));
|
|
86
|
+
const extraSuccess = window["writeHugoFiles"](JSON.stringify(this.extraFiles));
|
|
85
87
|
|
|
86
88
|
// BIG OL' TODO: Writing these files ahead of render() seems to be load-bearing,
|
|
87
89
|
// which doesn't yet make sense to me.
|
package/lib/engine__test__.js
CHANGED
|
@@ -41,6 +41,7 @@ export class Engine {
|
|
|
41
41
|
this.key = 'hugo';
|
|
42
42
|
this.name = options.name;
|
|
43
43
|
this.files = options.files;
|
|
44
|
+
this.extraFiles = options.extraFiles;
|
|
44
45
|
this.origin = (typeof document === 'undefined' ? '' : document.currentScript?.src) || `/bookshop.js`;
|
|
45
46
|
this.synthetic = options.synthetic ?? false;
|
|
46
47
|
|
|
@@ -82,6 +83,7 @@ export class Engine {
|
|
|
82
83
|
|
|
83
84
|
const componentSuccess = window["writeHugoFiles"](JSON.stringify(mappedFiles));
|
|
84
85
|
const templateSuccess = window["writeHugoFiles"](JSON.stringify(templates));
|
|
86
|
+
const extraSuccess = window["writeHugoFiles"](JSON.stringify(this.extraFiles));
|
|
85
87
|
|
|
86
88
|
// BIG OL' TODO: Writing these files ahead of render() seems to be load-bearing,
|
|
87
89
|
// which doesn't yet make sense to me.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bookshop/hugo-engine",
|
|
3
3
|
"packageManager": "yarn@3.0.0",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.8.0",
|
|
5
5
|
"description": "Bookshop frontend Hugo renderer",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": false,
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"nyc": "^15.1.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@bookshop/helpers": "3.
|
|
34
|
+
"@bookshop/helpers": "3.8.0",
|
|
35
35
|
"esbuild": "^0.19.3",
|
|
36
36
|
"fflate": "^0.7.3",
|
|
37
37
|
"liquidjs": "9.28.0"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"parent":null,"pid":5736,"argv":["/opt/hostedtoolcache/node/18.17.1/x64/bin/node","/home/runner/work/bookshop/bookshop/javascript-modules/node_modules/ava/cli.js","-v"],"execArgv":[],"cwd":"/home/runner/work/bookshop/bookshop/javascript-modules/engines/hugo-engine","time":1695336945812,"ppid":5725,"coverageFilename":"/home/runner/work/bookshop/bookshop/javascript-modules/engines/hugo-engine/.nyc_output/5cd8fa18-60cf-43ac-8ed5-ece5a5c89276.json","externalId":"","uuid":"5cd8fa18-60cf-43ac-8ed5-ece5a5c89276","files":[]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|