Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-api-version

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-api-version - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

7

index.js

@@ -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;
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