Comparing version 1.0.0-alpha1.2 to 1.0.0-alpha1.4
14
index.js
@@ -6,8 +6,8 @@ // @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 './src'; | ||
*/ | ||
const isNode8Plus = process.versions.node.match(/^([89]|[1-9][0-9]+)\./); | ||
module.exports = isNode8Plus ? require("./src") : require("./lib"); |
{ | ||
"name": "pg-sql2", | ||
"version": "1.0.0-alpha1.2", | ||
"version": "1.0.0-alpha1.4", | ||
"description": "Generate safe SQL with tagged template literals", | ||
@@ -58,5 +58,4 @@ "main": "index.js", | ||
"lib", | ||
"index.js", | ||
"index.js.flow" | ||
"index.js" | ||
] | ||
} |
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
29415
6
649