@apidevtools/json-schema-ref-parser 11.6.1 → 11.6.2

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.
@@ -275,6 +275,7 @@ function findInInventory(inventory, $refParent, $refKey) {
275
275
  return existingEntry;
276
276
  }
277
277
  }
278
+ return undefined;
278
279
  }
279
280
  function removeFromInventory(inventory, entry) {
280
281
  const index = inventory.indexOf(entry);
@@ -244,6 +244,7 @@ function resolveIf$Ref(pointer, options, pathFromRoot) {
244
244
  return true;
245
245
  }
246
246
  }
247
+ return undefined;
247
248
  }
248
249
  exports.default = Pointer;
249
250
  /**
package/dist/lib/ref.js CHANGED
@@ -147,6 +147,7 @@ class $Ref {
147
147
  return true;
148
148
  }
149
149
  }
150
+ return undefined;
150
151
  }
151
152
  /**
152
153
  * Determines whether the given value is a JSON reference that "extends" its resolved value.
@@ -91,6 +91,7 @@ function getProtocol(path) {
91
91
  if (match) {
92
92
  return match[1].toLowerCase();
93
93
  }
94
+ return undefined;
94
95
  }
95
96
  exports.getProtocol = getProtocol;
96
97
  /**
package/lib/bundle.ts CHANGED
@@ -290,6 +290,7 @@ function findInInventory(inventory: InventoryEntry[], $refParent: any, $refKey:
290
290
  return existingEntry;
291
291
  }
292
292
  }
293
+ return undefined
293
294
  }
294
295
 
295
296
  function removeFromInventory(inventory: InventoryEntry[], entry: any) {
package/lib/pointer.ts CHANGED
@@ -284,6 +284,7 @@ function resolveIf$Ref(pointer: any, options: any, pathFromRoot?: any) {
284
284
  return true;
285
285
  }
286
286
  }
287
+ return undefined
287
288
  }
288
289
  export default Pointer;
289
290
 
package/lib/ref.ts CHANGED
@@ -195,6 +195,7 @@ class $Ref<S extends object = JSONSchema, O extends ParserOptions<S> = ParserOpt
195
195
  return true;
196
196
  }
197
197
  }
198
+ return undefined
198
199
  }
199
200
 
200
201
  /**
@@ -45,6 +45,7 @@ export function sort(plugins: Plugin[]) {
45
45
  });
46
46
  }
47
47
 
48
+ // @ts-ignore
48
49
  export interface PluginResult<S extends object = JSONSchema, O extends ParserOptions<S> = ParserOptions<S>> {
49
50
  plugin: Plugin;
50
51
  result?: string | Buffer | S;
package/lib/util/url.ts CHANGED
@@ -68,6 +68,7 @@ export function getProtocol(path: string | undefined) {
68
68
  if (match) {
69
69
  return match[1].toLowerCase();
70
70
  }
71
+ return undefined;
71
72
  }
72
73
 
73
74
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apidevtools/json-schema-ref-parser",
3
- "version": "11.6.1",
3
+ "version": "11.6.2",
4
4
  "description": "Parse, Resolve, and Dereference JSON Schema $ref pointers",
5
5
  "keywords": [
6
6
  "json",
@@ -67,12 +67,12 @@
67
67
  "test:watch": "vitest -w"
68
68
  },
69
69
  "devDependencies": {
70
- "@types/eslint": "8.56.9",
70
+ "@types/eslint": "8.56.10",
71
71
  "@types/js-yaml": "^4.0.9",
72
- "@types/node": "^18.19.21",
73
- "@typescript-eslint/eslint-plugin": "^7.6.0",
74
- "@typescript-eslint/parser": "^7.6.0",
75
- "@vitest/coverage-v8": "^1.5.0",
72
+ "@types/node": "^18",
73
+ "@typescript-eslint/eslint-plugin": "^7.9.0",
74
+ "@typescript-eslint/parser": "^7.9.0",
75
+ "@vitest/coverage-v8": "^1.6.0",
76
76
  "cross-env": "^7.0.3",
77
77
  "eslint": "^8.57.0",
78
78
  "eslint-config-prettier": "^9.1.0",
@@ -80,12 +80,12 @@
80
80
  "eslint-plugin-import": "^2.29.1",
81
81
  "eslint-plugin-prettier": "^5.1.3",
82
82
  "eslint-plugin-promise": "^6.1.1",
83
- "eslint-plugin-unused-imports": "^3.1.0",
83
+ "eslint-plugin-unused-imports": "^3.2.0",
84
84
  "jsdom": "^24.0.0",
85
85
  "prettier": "^3.2.5",
86
- "rimraf": "^5.0.5",
86
+ "rimraf": "^5.0.7",
87
87
  "typescript": "^5.4.5",
88
- "vitest": "^1.5.0"
88
+ "vitest": "^1.6.0"
89
89
  },
90
90
  "dependencies": {
91
91
  "@jsdevtools/ono": "^7.1.3",
@@ -103,5 +103,5 @@
103
103
  "@semantic-release/github"
104
104
  ]
105
105
  },
106
- "packageManager": "yarn@4.1.1"
106
+ "packageManager": "yarn@4.2.2"
107
107
  }