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

falcor-json-graph

Package Overview
Dependencies
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

falcor-json-graph - npm Package Compare versions

Comparing version 1.1.5 to 2.0.0

6

package.json
{
"name": "falcor-json-graph",
"version": "1.1.5",
"version": "2.0.0",
"description": "A set of factory functions for creating JSON Graph values.",

@@ -25,5 +25,3 @@ "main": "src/index.js",

"homepage": "https://github.com/Netflix/falcor-json-graph",
"dependencies": {
"falcor-path-syntax": "0.2.1"
}
"dependencies": {}
}

@@ -1,3 +0,1 @@

var pathSyntax = require("falcor-path-syntax");
function sentinel(type, value, props) {

@@ -9,3 +7,3 @@ var copy = Object.create(null);

}
copy["$type"] = type;

@@ -17,3 +15,3 @@ copy.value = value;

return { $type: type, value: value };
}
}
}

@@ -23,19 +21,19 @@

ref: function ref(path, props) {
return sentinel("ref", pathSyntax.fromPath(path), props);
return sentinel("ref", path, props);
},
atom: function atom(value, props) {
return sentinel("atom", value, props);
return sentinel("atom", value, props);
},
undefined: function() {
return sentinel("atom");
},
},
error: function error(errorValue, props) {
return sentinel("error", errorValue, props);
return sentinel("error", errorValue, props);
},
pathValue: function pathValue(path, value) {
return { path: pathSyntax.fromPath(path), value: value };
return { path: path, value: value };
},
pathInvalidation: function pathInvalidation(path) {
return { path: pathSyntax.fromPath(path), invalidated: true };
}
return { path: path, invalidated: true };
}
};
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