@hyperjump/browser
Advanced tools
Comparing version 0.17.1 to 0.17.2
const curry = require("just-curry-it"); | ||
const contentTypeParser = require("content-type"); | ||
const resolveUrl = require("./url-resolve-browser"); | ||
@@ -92,3 +93,3 @@ const fetch = require("./fetch"); | ||
const contentTypeHandler = (doc) => { | ||
const contentType = doc.headers["content-type"]; | ||
const contentType = contentTypeParser.parse(doc.headers["content-type"]).type; | ||
return contentType in contentTypes ? contentTypes[contentType] : defaultHandler; | ||
@@ -95,0 +96,0 @@ }; |
{ | ||
"name": "@hyperjump/browser", | ||
"version": "0.17.1", | ||
"description": "A generic hypermedia client for JSON Reference", | ||
"version": "0.17.2", | ||
"description": "A generic hypermedia client", | ||
"main": "index.js", | ||
@@ -16,6 +16,7 @@ "browser": { | ||
"keywords": [ | ||
"hyperjump", | ||
"Hyperjump", | ||
"JSON Reference", | ||
"$ref", | ||
"$id" | ||
"JRef", | ||
"hypermedia", | ||
"generic client" | ||
], | ||
@@ -28,3 +29,3 @@ "author": "Jason Desrosiers <jdesrosi@gmail.com>", | ||
"eslint-import-resolver-node": "^0.3.2", | ||
"eslint-plugin-import": "^2.14.0", | ||
"eslint-plugin-import": "^2.18.0", | ||
"mocha": "^5.2.0", | ||
@@ -35,5 +36,6 @@ "nock": "^9.6.1" | ||
"@hyperjump/json-pointer": "^0.3.1", | ||
"content-type": "^1.0.4", | ||
"just-curry-it": "^3.1.0", | ||
"make-fetch-happen": "^4.0.1" | ||
"make-fetch-happen": "^4.0.2" | ||
} | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2
32974
4
19
538
+ Addedcontent-type@^1.0.4
+ Addedcontent-type@1.0.5(transitive)
Updatedmake-fetch-happen@^4.0.2