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.9.0 to 0.9.1

DERIVING.md

8

json-reference/index.js

@@ -60,3 +60,2 @@ const JsonPointer = require("@hyperjump/json-pointer");

const identity = (a) => a;
const pipeline = (fns) => {

@@ -72,8 +71,9 @@ const [handler = identity, ...handlers] = fns;

const isId = (value) => isObject(value) && "$id" in value;
const append = (key, doc) => "#" + encodeURI(JsonPointer.append(key, pointer(doc)));
const append = (key, doc) => "#" + encodeURI(JsonPointer.append(key, pointer(doc))).replace(/#/g, "%23");
const identity = (a) => a;
module.exports = {
contentType, contentTypeHandler,
get, nil, source, value, pointer,
entries, map, pipeline
nil, source, get,
value, pointer, entries, map, pipeline
};
{
"name": "@hyperjump/browser",
"version": "0.9.0",
"version": "0.9.1",
"description": "A generic hypermedia client for JSON Reference",

@@ -28,3 +28,3 @@ "scripts": {

"dependencies": {
"@hyperjump/json-pointer": "^0.3.0",
"@hyperjump/json-pointer": "^0.3.1",
"bluebird": "^3.5.3",

@@ -31,0 +31,0 @@ "just-curry-it": "^3.1.0",

@@ -101,4 +101,3 @@ Hyperjump Browser

JRef.get("#/eee"),
JRef.map(JRef.value),
(items) => items.map((a) => a * 2)
JRef.map((items) => JRef.value(items) * 2)
]);

@@ -121,6 +120,7 @@ await doubleEee(doc); // => [666, 222]

With this implementation, I use JSON Reference draft-03 from the original
authors as a starting point and evolve the concept from there. Therefore, this
implementation IS NOT the same JSON Reference used in recent drafts of JSON
Schema.
With this implementation, I use
[JSON Reference draft-03](https://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03)
from the original authors as a starting point and evolve the concept from there.
Therefore, _the `$ref` and `$id` in this implementation IS NOT the same `$ref`
and `$id` used in recent drafts of JSON Schema_.

@@ -127,0 +127,0 @@ Documentation

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