Socket
Socket
Sign inDemoInstall

all-node-versions

Package Overview
Dependencies
42
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 11.1.0 to 11.2.0

2

build/src/main.js

@@ -13,3 +13,3 @@ import{env}from"process";

export default async function allNodeVersions(opts){
const{fetch:fetchOpt,...fetchNodeOpts}=getOpts(opts);
const{fetchOpt,fetchNodeOpts}=getOpts(opts);
const versionsInfo=await getAllVersions(fetchOpt,fetchNodeOpts);

@@ -16,0 +16,0 @@ return cloneCachedVersions(versionsInfo);

@@ -1,25 +0,17 @@

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};
return optsB;
};
const{fetch:fetchOpt,...fetchNodeOpts}=opts;
const DEFAULT_OPTS={};
if(fetchOpt!==undefined&&typeof fetchOpt!=="boolean"){
throw new TypeError(`Option "fetch" must be a boolean: ${fetchOpt}`);
}
const EXAMPLE_OPTS={
...DEFAULT_OPTS,
fetch:true,
mirror:"https://nodejs.org/dist"};
const isUndefined=function(key,value){
return value===undefined;
return{fetchOpt,fetchNodeOpts};
};
//# sourceMappingURL=options.js.map
{
"name": "all-node-versions",
"version": "11.1.0",
"version": "11.2.0",
"type": "module",

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

"dependencies": {
"fetch-node-website": "^7.0.0",
"fetch-node-website": "^7.2.0",
"filter-obj": "^5.1.0",
"get-stream": "^6.0.0",
"global-cache-dir": "^4.1.0",
"jest-validate": "^28.1.3",
"global-cache-dir": "^4.3.1",
"is-plain-obj": "^4.1.0",
"path-exists": "^5.0.0",

@@ -60,5 +60,4 @@ "semver": "^7.3.7",

"devDependencies": {
"@ehmicky/dev-tasks": "^1.0.84",
"is-plain-obj": "^4.1.0",
"test-each": "^5.1.2"
"@ehmicky/dev-tasks": "^1.0.94",
"test-each": "^5.4.1"
},

@@ -65,0 +64,0 @@ "engines": {

[![Codecov](https://img.shields.io/codecov/c/github/ehmicky/all-node-versions.svg?label=tested&logo=codecov)](https://codecov.io/gh/ehmicky/all-node-versions)
[![Node](https://img.shields.io/node/v/all-node-versions.svg?logo=node.js)](https://www.npmjs.com/package/all-node-versions)
[![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/all-node-versions.svg?logo=node.js&logoColor=66cc33)](https://www.npmjs.com/package/all-node-versions)
[![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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc