graphql-parse-resolve-info
Advanced tools
Comparing version 0.0.1-alpha9.3 to 0.1.0-alpha.1
15
index.js
@@ -6,8 +6,9 @@ // @flow | ||
if (process.versions.node.match(/^([89]|[1-9][0-9]+)\./)) { | ||
// Modern node, run verbatim | ||
module.exports = require("./src"); | ||
} else { | ||
// Older node, run compiled code | ||
module.exports = require("./lib"); | ||
} | ||
/*:: | ||
// Trick flow into exporting the types | ||
export type * from './node8plus'; | ||
*/ | ||
const isNode8Plus = process.versions.node.match(/^([89]|[1-9][0-9]+)\./); | ||
// $FlowFixMe: ignore | ||
module.exports = isNode8Plus ? require("./node8plus") : require("./node7minus"); |
{ | ||
"name": "graphql-parse-resolve-info", | ||
"version": "0.0.1-alpha9.3", | ||
"version": "0.1.0-alpha.1", | ||
"description": "Parse GraphQLResolveInfo (the 4th argument of resolve) into a simple tree", | ||
@@ -8,3 +8,4 @@ "main": "index.js", | ||
"test": "jest .", | ||
"prepublish": "babel --out-dir lib src" | ||
"prepublish": "mkdir -p node8plus node7minus && babel -s true --out-dir node8plus src && BABEL_ENV=node7minus babel -s true --out-dir node7minus src && flow-copy-source src node8plus", | ||
"watch": "mkdir -p node8plus && babel -s true --watch --out-dir node8plus src" | ||
}, | ||
@@ -33,2 +34,3 @@ "repository": { | ||
"babel-cli": "^6.24.1", | ||
"flow-copy-source": "^1.2.0", | ||
"jest": "20.0.4" | ||
@@ -44,6 +46,6 @@ }, | ||
"files": [ | ||
"src", | ||
"lib", | ||
"node8plus", | ||
"node7minus", | ||
"index.js" | ||
] | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
72659
9
421
3
1