@hey-api/json-schema-ref-parser 1.0.5 → 1.0.6

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.
@@ -50,8 +50,8 @@ exports.urlResolver = {
50
50
  if (response.status !== 405 || fetchOptions?.method !== 'HEAD') {
51
51
  throw (0, ono_1.ono)({ status: response.status }, `HTTP ERROR ${response.status}`);
52
52
  }
53
- data = response.body ? await response.arrayBuffer() : new ArrayBuffer(0);
54
53
  }
54
+ data = response.body ? await response.arrayBuffer() : new ArrayBuffer(0);
55
55
  }
56
56
  catch (error) {
57
57
  throw new errors_js_1.ResolverError((0, ono_1.ono)(error, `Error requesting ${file.url}`), file.url);
@@ -82,9 +82,9 @@ export const urlResolver = {
82
82
  if (response.status !== 405 || fetchOptions?.method !== 'HEAD') {
83
83
  throw ono({ status: response.status }, `HTTP ERROR ${response.status}`);
84
84
  }
85
-
86
- data = response.body ? await response.arrayBuffer() : new ArrayBuffer(0)
87
85
  }
86
+
87
+ data = response.body ? await response.arrayBuffer() : new ArrayBuffer(0);
88
88
  } catch (error: any) {
89
89
  throw new ResolverError(ono(error, `Error requesting ${file.url}`), file.url);
90
90
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hey-api/json-schema-ref-parser",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Parse, Resolve, and Dereference JSON Schema $ref pointers",
5
5
  "homepage": "https://heyapi.dev/",
6
6
  "repository": {