replace-all-mustaches 0.0.2 → 0.0.3

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
@@ -49,16 +49,6 @@ function hasDuplicates(arr) {
49
49
  // src/nodes/replaceAllMustaches.ts
50
50
  var import_mustache = __toESM(require("mustache"), 1);
51
51
 
52
- // src/nodes/Variable.ts
53
- var Variable = class {
54
- key;
55
- value;
56
- constructor(key, value) {
57
- this.key = key;
58
- this.value = value;
59
- }
60
- };
61
-
62
52
  // src/nodes/VariableView.ts
63
53
  var VariableView = class _VariableView {
64
54
  static _collection = [];
@@ -125,6 +115,16 @@ function renderUntilStable(template, view, { maxPasses = 20, detectCycles = true
125
115
  console.log("passes:", pass);
126
116
  return current;
127
117
  }
118
+
119
+ // src/nodes/Variable.ts
120
+ var Variable = class {
121
+ key;
122
+ value;
123
+ constructor(key, value) {
124
+ this.key = key;
125
+ this.value = value;
126
+ }
127
+ };
128
128
  // Annotate the CommonJS export names for ESM import in node:
129
129
  0 && (module.exports = {
130
130
  Variable,
package/dist/index.js CHANGED
@@ -9,16 +9,6 @@ function hasDuplicates(arr) {
9
9
  // src/nodes/replaceAllMustaches.ts
10
10
  import Mustache from "mustache";
11
11
 
12
- // src/nodes/Variable.ts
13
- var Variable = class {
14
- key;
15
- value;
16
- constructor(key, value) {
17
- this.key = key;
18
- this.value = value;
19
- }
20
- };
21
-
22
12
  // src/nodes/VariableView.ts
23
13
  var VariableView = class _VariableView {
24
14
  static _collection = [];
@@ -85,6 +75,16 @@ function renderUntilStable(template, view, { maxPasses = 20, detectCycles = true
85
75
  console.log("passes:", pass);
86
76
  return current;
87
77
  }
78
+
79
+ // src/nodes/Variable.ts
80
+ var Variable = class {
81
+ key;
82
+ value;
83
+ constructor(key, value) {
84
+ this.key = key;
85
+ this.value = value;
86
+ }
87
+ };
88
88
  export {
89
89
  Variable,
90
90
  VariableView,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replace-all-mustaches",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Replace all mustache templates in a string, including recursive mustache values",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",