node-version-alias
Advanced tools
Comparing version 3.2.0 to 3.3.0
@@ -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 |
{ | ||
"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) |
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
27300
219
+ Addedis-plain-obj@^4.1.0
- Removedjest-validate@^28.1.3
- Removed@jest/schemas@28.1.3(transitive)
- Removed@jest/types@28.1.3(transitive)
- Removed@sinclair/typebox@0.24.51(transitive)
- Removed@types/istanbul-lib-coverage@2.0.6(transitive)
- Removed@types/istanbul-lib-report@3.0.3(transitive)
- Removed@types/istanbul-reports@3.0.4(transitive)
- Removed@types/node@22.9.0(transitive)
- Removed@types/yargs@17.0.33(transitive)
- Removed@types/yargs-parser@21.0.3(transitive)
- Removedansi-styles@4.3.05.2.0(transitive)
- Removedcamelcase@6.3.0(transitive)
- Removedchalk@4.1.2(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedhas-flag@4.0.0(transitive)
- Removedjest-get-type@28.0.2(transitive)
- Removedjest-validate@28.1.3(transitive)
- Removedleven@3.1.0(transitive)
- Removedpretty-format@28.1.3(transitive)
- Removedreact-is@18.3.1(transitive)
- Removedsupports-color@7.2.0(transitive)
- Removedundici-types@6.19.8(transitive)
Updatedall-node-versions@^11.2.0