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 2.2.0 to 2.2.1

10

CHANGELOG.md

@@ -5,2 +5,12 @@ # Change Log

<a name="2.2.1"></a>
## [2.2.1](https://github.com/Netflix/falcor-json-graph/compare/v2.2.0...v2.2.1) (2018-01-03)
### Bug Fixes
* Make JsonGraphLeaf types invariant for compatibility with upcoming AtomOrError type. ([231107e](https://github.com/Netflix/falcor-json-graph/commit/231107e))
<a name="2.2.0"></a>

@@ -7,0 +17,0 @@ # [2.2.0](https://github.com/Netflix/falcor-json-graph/compare/v2.1.1...v2.2.0) (2017-12-22)

27

lib/index.js

@@ -15,3 +15,3 @@ //

@@ -24,29 +24,30 @@

@@ -53,0 +54,0 @@

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

@@ -37,3 +37,3 @@ "main": "lib/index.js",

"eslint": "^4.12.1",
"flow-bin": "^0.60.1",
"flow-bin": "^0.62.0",
"flow-coverage-report": "^0.4.0",

@@ -40,0 +40,0 @@ "flow-remove-types": "^1.2.3",

@@ -15,3 +15,3 @@ // @flow

export type JsonGraph = { [key: string]: JsonGraphNode | void, $type?: empty };
export type JsonGraph = { [key: string]: JsonGraphNode | void, +$type?: empty };
export type JsonGraphNode = JsonGraph | JsonGraphLeaf;

@@ -24,29 +24,30 @@ export type JsonGraphLeaf =

export type JsonGraphAtomDefined<T: JsonValue> = JsonGraphMetadata & {
$type: "atom",
value: T
export type JsonGraphAtomDefined<T: ?JsonValue> = JsonGraphMetadata & {
+$type: "atom",
+value: T
};
export type JsonGraphAtomUndefined = JsonGraphMetadata & {
$type: "atom",
value?: empty
+$type: "atom",
+value?: void
};
export type JsonGraphAtom =
| JsonGraphAtomDefined<JsonValue>
| JsonGraphAtomUndefined;
export type JsonGraphAtom = JsonGraphMetadata & {
+$type: "atom",
+value?: ?JsonValue
};
export type JsonGraphError = JsonGraphMetadata & {
$type: "error",
value: JsonValue
+$type: "error",
+value: JsonValue
};
export type JsonGraphRef = JsonGraphMetadata & {
$type: "ref",
value: Path
+$type: "ref",
+value: Path
};
export type JsonGraphMetadata = {
$expires?: number,
$size?: number,
$timestamp?: number
+$expires?: number,
+$size?: number,
+$timestamp?: number
};

@@ -53,0 +54,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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