falcor-json-graph
Advanced tools
Comparing version 1.1.5 to 2.0.0
{ | ||
"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 }; | ||
} | ||
}; |
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
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
0
13464
34
- Removedfalcor-path-syntax@0.2.1
- Removedfalcor-path-syntax@0.2.1(transitive)