json-renderers-run-instructions 1.2.2 → 1.2.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.
Files changed (2) hide show
  1. package/package.json +4 -1
  2. package/src/v2/index.js +8 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "json-renderers-run-instructions",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Reusable instruction execution and JSON-to-DOM mounting runtime for JSON renderers",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -18,5 +18,8 @@
18
18
  "dependencies": {
19
19
  "json-instruction-double": "^1.3.3",
20
20
  "json-instruction-single": "^1.5.3"
21
+ },
22
+ "devDependencies": {
23
+ "spec-repo": "^1.6.1"
21
24
  }
22
25
  }
package/src/v2/index.js CHANGED
@@ -1,10 +1,6 @@
1
1
  import runSingleInstructions from "json-instruction-single";
2
2
  import runDoubleInstructions from "json-instruction-double";
3
3
 
4
- /**
5
- * Executes the single- and double-target instruction lists against a shared registry.
6
- * This module deliberately knows nothing about tables or table definitions.
7
- */
8
4
  export const runInstructions = ({
9
5
  single = [],
10
6
  double = [],
@@ -19,14 +15,19 @@ export const runInstructions = ({
19
15
  }
20
16
  if (!registry || typeof registry !== "object" || Array.isArray(registry)) {
21
17
  throw new TypeError("registry must be an object");
22
- }
18
+ };
19
+ console.log("aaaaaaaaa : ", single, double);
20
+
23
21
 
24
22
  if (single.length > 0) {
25
23
  runSingleInstructions(single, registry, showLog);
26
24
  }
27
25
  if (double.length > 0) {
28
- runDoubleInstructions(double, registry);
29
- }
26
+ runDoubleInstructions({
27
+ instructions: double,
28
+ registry
29
+ });
30
+ };
30
31
 
31
32
  return registry;
32
33
  };