@eudiplo/sdk-core 9.0.0-main.455da95 → 9.0.0-main.8be6872

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
@@ -2207,9 +2207,12 @@ function resolveChildPath(parentPath, parentType, childPath) {
2207
2207
  }
2208
2208
  if (parentType === "array" && childPath.length > 0) {
2209
2209
  if (childPath[0] === null) {
2210
- throw new Error(
2211
- "Relative child paths under array parents must not start with null. Use ['field'] instead of [null, 'field']."
2212
- );
2210
+ if (childPath.length > 1) {
2211
+ throw new Error(
2212
+ "Relative child paths under array parents must not start with null. Use ['field'] instead of [null, 'field']."
2213
+ );
2214
+ }
2215
+ return [...parentPath, null];
2213
2216
  }
2214
2217
  if (typeof childPath[0] !== "number") {
2215
2218
  return [...parentPath, null, ...childPath];
package/dist/index.mjs CHANGED
@@ -2205,9 +2205,12 @@ function resolveChildPath(parentPath, parentType, childPath) {
2205
2205
  }
2206
2206
  if (parentType === "array" && childPath.length > 0) {
2207
2207
  if (childPath[0] === null) {
2208
- throw new Error(
2209
- "Relative child paths under array parents must not start with null. Use ['field'] instead of [null, 'field']."
2210
- );
2208
+ if (childPath.length > 1) {
2209
+ throw new Error(
2210
+ "Relative child paths under array parents must not start with null. Use ['field'] instead of [null, 'field']."
2211
+ );
2212
+ }
2213
+ return [...parentPath, null];
2211
2214
  }
2212
2215
  if (typeof childPath[0] !== "number") {
2213
2216
  return [...parentPath, null, ...childPath];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eudiplo/sdk-core",
3
- "version": "9.0.0-main.455da95",
3
+ "version": "9.0.0-main.8be6872",
4
4
  "description": "Framework-agnostic EUDIPLO SDK for demos and integrations",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -37,10 +37,10 @@
37
37
  },
38
38
  "devDependencies": {
39
39
  "@hey-api/openapi-ts": "^0.99.0",
40
- "@types/node": "^26.4.0",
40
+ "@types/node": "^26.6.4",
41
41
  "tsup": "^8.5.1",
42
42
  "typescript": "^6.0.3",
43
- "vitest": "5.0.2"
43
+ "vitest": "5.0.3"
44
44
  },
45
45
  "files": [
46
46
  "dist",