Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hyperjump/browser

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hyperjump/browser - npm Package Compare versions

Comparing version 0.15.1 to 0.16.0

dist/hyperjump.js

6

core.js

@@ -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 @@ -----

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc