node-api-version
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -24,2 +24,4 @@ const semver = require("semver"); | ||
exports.fromNodeVersion = fromNodeVersion; | ||
// These are populated via `yarn electron-versions` | ||
@@ -56,5 +58,2 @@ const electronNapiVersions = | ||
module.exports = { | ||
fromNodeVersion, | ||
fromElectronVersion, | ||
}; | ||
exports.fromElectronVersion = fromElectronVersion; |
{ | ||
"name": "node-api-version", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"author": "Tim Fish <tim@timfish.uk>", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -6,10 +6,10 @@ # node-api-version | ||
```js | ||
const nodeApiVersion = require("node-api-version"); | ||
const { fromNodeVersion, fromElectronVersion } = require("node-api-version"); | ||
nodeApiVersion.fromNodeVersion("9.0.0"); // undefined | ||
nodeApiVersion.fromNodeVersion("12.13.0"); // 5 | ||
fromNodeVersion("9.0.0"); // undefined | ||
fromNodeVersion("12.13.0"); // 5 | ||
nodeApiVersion.fromElectronVersion("2.0.0"); // undefined | ||
nodeApiVersion.fromElectronVersion("13.0.0"); // 7 | ||
nodeApiVersion.fromElectronVersion("15.0.0-nightly.20210629"); // 8 | ||
fromElectronVersion("2.0.0"); // undefined | ||
fromElectronVersion("13.0.0"); // 7 | ||
fromElectronVersion("15.0.0-nightly.20210629"); // 8 | ||
``` |
@@ -1,8 +0,4 @@ | ||
declare function fromNodeVersion(version: string): number | undefined; | ||
declare function fromElectronVersion(version: string): number | undefined; | ||
declare const _default: { | ||
fromNodeVersion: typeof fromNodeVersion; | ||
fromElectronVersion: typeof fromElectronVersion; | ||
}; | ||
export = _default; | ||
export declare function fromNodeVersion(version: string): number | undefined; | ||
export declare function fromElectronVersion( | ||
version: string | ||
): number | undefined; |
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
5505
115