@darkhorseprojects/circuitry 0.2.23 → 0.2.25

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.js CHANGED
@@ -238,7 +238,7 @@ var validateCircuitryGraphWithStandard = (graph, standard = {}) => {
238
238
  if (graphObject.inputs && Object.keys(graphObject.inputs).length > 0) {
239
239
  addError("v02_mixed_format", "v0.2 graphs with resources: must not use legacy inputs: section", ["inputs"]);
240
240
  }
241
- if (graphObject.edges && graphObject.edges.length > 0) {
241
+ if (graphObject.edges && graphObject.edges.length > 0 && !(graphObject.nodes && graphObject.nodes.length > 0)) {
242
242
  addError("v02_mixed_format", "v0.2 graphs with resources: must not use legacy edges: section", ["edges"]);
243
243
  }
244
244
  }
package/dist/node.js CHANGED
@@ -218,7 +218,7 @@ var validateCircuitryGraphWithStandard = (graph, standard = {}) => {
218
218
  if (graphObject.inputs && Object.keys(graphObject.inputs).length > 0) {
219
219
  addError("v02_mixed_format", "v0.2 graphs with resources: must not use legacy inputs: section", ["inputs"]);
220
220
  }
221
- if (graphObject.edges && graphObject.edges.length > 0) {
221
+ if (graphObject.edges && graphObject.edges.length > 0 && !(graphObject.nodes && graphObject.nodes.length > 0)) {
222
222
  addError("v02_mixed_format", "v0.2 graphs with resources: must not use legacy edges: section", ["edges"]);
223
223
  }
224
224
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@darkhorseprojects/circuitry",
3
- "version": "0.2.23",
3
+ "version": "0.2.25",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",