Socket
Socket
Sign inDemoInstall

graphql-parse-resolve-info

Package Overview
Dependencies
7
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1-alpha9.3 to 0.1.0-alpha.1

node7minus/index.js

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"
]
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc