@hyperjump/browser
Advanced tools
Comparing version 0.15.1 to 0.16.0
@@ -1,9 +0,7 @@ | ||
const makeFetchHappen = require("make-fetch-happen"); | ||
const resolveUrl = require("url").resolve; | ||
const curry = require("just-curry-it"); | ||
const resolveUrl = require("url-resolve-browser"); | ||
const fetch = require("./fetch"); | ||
const { uriReference, isObject } = require("./common"); | ||
const fetch = makeFetchHappen.defaults({ cacheManager: "./http-cache" }); | ||
const construct = (url, headers, body) => Object.freeze({ url, headers, body }); | ||
@@ -10,0 +8,0 @@ const extend = (doc, extras) => Object.freeze({ ...doc, ...extras }); |
@@ -41,2 +41,2 @@ const Hyperjump = require("../core"); | ||
module.exports = { ...Hyperjump, get }; | ||
module.exports = Object.assign({}, Hyperjump, { get }); |
{ | ||
"name": "@hyperjump/browser", | ||
"version": "0.15.1", | ||
"version": "0.16.0", | ||
"description": "A generic hypermedia client for JSON Reference", | ||
"main": "index.js", | ||
"browser": { | ||
"./fetch.js": "./fetch.browser.js" | ||
}, | ||
"scripts": { | ||
"clean": "xargs -a .gitignore rm -rf", | ||
"lint": "eslint .", | ||
"test": "mocha './{,!(node_modules)}/*.spec.js'" | ||
"test": "mocha './{,!(node_modules)}/*.spec.js'", | ||
"build": "rollup --config rollup.config.js" | ||
}, | ||
@@ -25,3 +30,6 @@ "repository": "github:jdesrosiers/hyperjump-browser", | ||
"mocha": "^5.2.0", | ||
"nock": "^9.6.1" | ||
"nock": "^9.6.1", | ||
"rollup": "^1.12.3", | ||
"rollup-plugin-commonjs": "^10.0.0", | ||
"rollup-plugin-node-resolve": "^5.0.0" | ||
}, | ||
@@ -31,4 +39,5 @@ "dependencies": { | ||
"just-curry-it": "^3.1.0", | ||
"make-fetch-happen": "^4.0.1" | ||
"make-fetch-happen": "^4.0.1", | ||
"url-resolve-browser": "^1.0.4" | ||
} | ||
} |
@@ -43,2 +43,17 @@ Hyperjump Browser | ||
Bundlers | ||
-------- | ||
When using with the Rollup bundler, you will need to include the `browser: true` | ||
config option. | ||
``` | ||
plugins: [ | ||
resolve({ | ||
browser: true | ||
}), | ||
commonjs() | ||
] | ||
``` | ||
Usage | ||
@@ -45,0 +60,0 @@ ----- |
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
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
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
33776
17
543
253
4
9
4
+ Addedurl-resolve-browser@^1.0.4
+ Addedurl-resolve-browser@1.2.0(transitive)