@hyperjump/json-reference
Advanced tools
Comparing version 0.3.3 to 0.4.0
@@ -14,5 +14,5 @@ "use strict"; | ||
var _axios = require("axios"); | ||
var _makeFetchHappen = require("make-fetch-happen"); | ||
var _axios2 = _interopRequireDefault(_axios); | ||
var _makeFetchHappen2 = _interopRequireDefault(_makeFetchHappen); | ||
@@ -31,2 +31,4 @@ require("babel-polyfill"); | ||
var fetch = _makeFetchHappen2.default.defaults({ cacheManager: "./http-cache" }); | ||
var construct = function construct(url, content) { | ||
@@ -56,11 +58,18 @@ return Object.freeze({ url: url, content: content }); | ||
_context.next = 3; | ||
return _axios2.default.get(resolvedUrl); | ||
return fetch(resolvedUrl); | ||
case 3: | ||
response = _context.sent; | ||
result = construct(resolvedUrl, response.data); | ||
_context.t0 = construct; | ||
_context.t1 = resolvedUrl; | ||
_context.next = 8; | ||
return response.json(); | ||
case 8: | ||
_context.t2 = _context.sent; | ||
result = (0, _context.t0)(_context.t1, _context.t2); | ||
resultValue = value(result); | ||
return _context.abrupt("return", isRef(resultValue) ? get(resultValue["$ref"], result) : result); | ||
case 7: | ||
case 12: | ||
case "end": | ||
@@ -67,0 +76,0 @@ return _context.stop(); |
{ | ||
"name": "@hyperjump/json-reference", | ||
"version": "0.3.3", | ||
"version": "0.4.0", | ||
"description": "An implementation of JSON Reference", | ||
@@ -47,4 +47,4 @@ "main": "./dist/json-reference.js", | ||
"@hyperjump/json-pointer": "^0.1.2", | ||
"axios": "^0.18.0", | ||
"bluebird": "^3.5.1" | ||
"bluebird": "^3.5.1", | ||
"make-fetch-happen": "^4.0.1" | ||
}, | ||
@@ -51,0 +51,0 @@ "nyc": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11436
123
1
+ Addedmake-fetch-happen@^4.0.1
+ Addedagent-base@4.2.14.3.0(transitive)
+ Addedagentkeepalive@3.5.3(transitive)
+ Addedaproba@1.2.0(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbuffer-from@1.1.2(transitive)
+ Addedcacache@11.3.3(transitive)
+ Addedchownr@1.1.4(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedconcat-stream@1.6.2(transitive)
+ Addedcopy-concurrently@1.0.5(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addedcyclist@1.0.2(transitive)
+ Addeddebug@3.1.0(transitive)
+ Addedduplexify@3.7.1(transitive)
+ Addedencoding@0.1.13(transitive)
+ Addedend-of-stream@1.4.4(transitive)
+ Addederr-code@1.1.2(transitive)
+ Addedes6-promise@4.2.8(transitive)
+ Addedes6-promisify@5.0.0(transitive)
+ Addedfiggy-pudding@3.5.2(transitive)
+ Addedflush-write-stream@1.1.1(transitive)
+ Addedfrom2@2.3.0(transitive)
+ Addedfs-write-stream-atomic@1.0.10(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedhttp-cache-semantics@3.8.1(transitive)
+ Addedhttp-proxy-agent@2.1.0(transitive)
+ Addedhttps-proxy-agent@2.2.4(transitive)
+ Addedhumanize-ms@1.2.1(transitive)
+ Addediconv-lite@0.6.3(transitive)
+ Addediferr@0.1.5(transitive)
+ Addedimurmurhash@0.1.4(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedip@1.1.5(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedjson-parse-better-errors@1.0.2(transitive)
+ Addedlru-cache@5.1.1(transitive)
+ Addedmake-fetch-happen@4.0.2(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmississippi@3.0.0(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedmove-concurrently@1.0.1(transitive)
+ Addedms@2.0.0(transitive)
+ Addednode-fetch-npm@2.0.4(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedparallel-transform@1.2.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedpromise-inflight@1.0.1(transitive)
+ Addedpromise-retry@1.1.1(transitive)
+ Addedpump@2.0.13.0.2(transitive)
+ Addedpumpify@1.5.1(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedretry@0.10.1(transitive)
+ Addedrimraf@2.7.1(transitive)
+ Addedrun-queue@1.0.3(transitive)
+ Addedsafe-buffer@5.1.25.2.1(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsmart-buffer@4.2.0(transitive)
+ Addedsocks@2.3.3(transitive)
+ Addedsocks-proxy-agent@4.0.2(transitive)
+ Addedssri@6.0.2(transitive)
+ Addedstream-each@1.2.3(transitive)
+ Addedstream-shift@1.0.3(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedthrough2@2.0.5(transitive)
+ Addedtypedarray@0.0.6(transitive)
+ Addedunique-filename@1.1.1(transitive)
+ Addedunique-slug@2.0.2(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedxtend@4.0.2(transitive)
+ Addedy18n@4.0.3(transitive)
+ Addedyallist@3.1.1(transitive)
- Removedaxios@^0.18.0
- Removedaxios@0.18.1(transitive)
- Removedfollow-redirects@1.5.10(transitive)
- Removedis-buffer@2.0.5(transitive)