@kinotic-ai/spawn 0.2.0 → 0.3.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/dist/index.cjs CHANGED
@@ -69,7 +69,7 @@ function camelCase(s) {
69
69
  class SpawnEngine {
70
70
  engine;
71
71
  constructor() {
72
- this.engine = new import_liquidjs.Liquid({ cache: true });
72
+ this.engine = new import_liquidjs.Liquid({ cache: true, strictVariables: true });
73
73
  this.engine.registerFilter("packageToPath", (v) => v.replaceAll(".", "/"));
74
74
  this.engine.registerFilter("encodePackage", (v) => {
75
75
  v = v.replaceAll("-", "_");
package/dist/index.d.cts CHANGED
@@ -100,6 +100,8 @@ interface SpawnRenderResult {
100
100
  * {@link PropertyResolver}, or fail the render when no resolver is given
101
101
  * - paths containing liquid expressions are rendered; files ending in
102
102
  * {@code .liquid} have their content rendered and the suffix stripped
103
+ * - a reference to a variable that is neither in the context nor declared in
104
+ * spawn.json throws rather than rendering empty (strictVariables)
103
105
  * - files from derived spawns overwrite same-destination files from inherited
104
106
  * spawns
105
107
  */
package/dist/index.d.ts CHANGED
@@ -100,6 +100,8 @@ interface SpawnRenderResult {
100
100
  * {@link PropertyResolver}, or fail the render when no resolver is given
101
101
  * - paths containing liquid expressions are rendered; files ending in
102
102
  * {@code .liquid} have their content rendered and the suffix stripped
103
+ * - a reference to a variable that is neither in the context nor declared in
104
+ * spawn.json throws rather than rendering empty (strictVariables)
103
105
  * - files from derived spawns overwrite same-destination files from inherited
104
106
  * spawns
105
107
  */
package/dist/index.js CHANGED
@@ -23,7 +23,7 @@ function camelCase(s) {
23
23
  class SpawnEngine {
24
24
  engine;
25
25
  constructor() {
26
- this.engine = new Liquid({ cache: true });
26
+ this.engine = new Liquid({ cache: true, strictVariables: true });
27
27
  this.engine.registerFilter("packageToPath", (v) => v.replaceAll(".", "/"));
28
28
  this.engine.registerFilter("encodePackage", (v) => {
29
29
  v = v.replaceAll("-", "_");
@@ -19003,7 +19003,7 @@ From ` + this.originalError.stack;
19003
19003
  class SpawnEngine {
19004
19004
  engine;
19005
19005
  constructor() {
19006
- this.engine = new Liquid({ cache: true });
19006
+ this.engine = new Liquid({ cache: true, strictVariables: true });
19007
19007
  this.engine.registerFilter("packageToPath", (v) => v.replaceAll(".", "/"));
19008
19008
  this.engine.registerFilter("encodePackage", (v) => {
19009
19009
  v = v.replaceAll("-", "_");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kinotic-ai/spawn",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"