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

node-version-alias

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-version-alias - npm Package Compare versions

Comparing version 3.2.0 to 3.3.0

25

build/src/options.js

@@ -1,12 +0,10 @@

import{excludeKeys}from"filter-obj";
import{validate}from"jest-validate";
import isPlainObj from"is-plain-obj";
export const getOpts=function(opts={}){
validate(opts,{exampleConfig:EXAMPLE_OPTS});
if(!isPlainObj(opts)){
throw new TypeError(`Options must be a plain object: ${opts}`);
}
const optsA=excludeKeys(opts,isUndefined);
const optsB={...DEFAULT_OPTS,...optsA};
const{fetch:fetchOpt,mirror}=optsB;
const{fetch:fetchOpt,mirror}=opts;
const normalizeOpts={fetch:fetchOpt,mirror};

@@ -16,15 +14,2 @@ const allNodeOpts={fetch:fetchOpt,mirror};

};
const DEFAULT_OPTS={};
const EXAMPLE_OPTS={
fetch:true,
mirror:"https://nodejs.org/dist"};
const isUndefined=function(key,value){
return value===undefined;
};
//# sourceMappingURL=options.js.map

14

package.json
{
"name": "node-version-alias",
"version": "3.2.0",
"version": "3.3.0",
"type": "module",

@@ -49,6 +49,6 @@ "exports": "./build/src/main.js",

"dependencies": {
"all-node-versions": "^11.1.0",
"all-node-versions": "^11.2.0",
"filter-obj": "^5.1.0",
"jest-validate": "^28.1.3",
"normalize-node-version": "^12.2.0",
"is-plain-obj": "^4.1.0",
"normalize-node-version": "^12.3.0",
"path-exists": "^5.0.0",

@@ -58,5 +58,5 @@ "semver": "^7.3.7"

"devDependencies": {
"@ehmicky/dev-tasks": "^1.0.84",
"got": "^12.1.0",
"test-each": "^5.2.0"
"@ehmicky/dev-tasks": "^1.0.94",
"got": "^12.3.1",
"test-each": "^5.4.1"
},

@@ -63,0 +63,0 @@ "engines": {

[![Codecov](https://img.shields.io/codecov/c/github/ehmicky/node-version-alias.svg?label=tested&logo=codecov)](https://codecov.io/gh/ehmicky/node-version-alias)
[![Node](https://img.shields.io/node/v/node-version-alias.svg?logo=node.js)](https://www.npmjs.com/package/node-version-alias)
[![TypeScript](https://img.shields.io/badge/-typed-brightgreen?logo=typescript&colorA=gray)](/src/main.d.ts)
[![TypeScript](https://img.shields.io/badge/-typed-brightgreen?logo=typescript&colorA=gray&logoColor=0096ff)](/src/main.d.ts)
[![Node](https://img.shields.io/node/v/node-version-alias.svg?logo=node.js&logoColor=66cc33)](https://www.npmjs.com/package/node-version-alias)
[![Twitter](https://img.shields.io/badge/%E2%80%8B-twitter-brightgreen.svg?logo=twitter)](https://twitter.com/intent/follow?screen_name=ehmicky)

@@ -5,0 +5,0 @@ [![Medium](https://img.shields.io/badge/%E2%80%8B-medium-brightgreen.svg?logo=medium)](https://medium.com/@ehmicky)

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