Comparing version
@@ -7,3 +7,3 @@ import{platform}from"node:process"; | ||
import{untar,moveTar}from"./tar.js"; | ||
import{moveTar,untar}from"./tar.js"; | ||
@@ -10,0 +10,0 @@ |
import{platform}from"node:process"; | ||
import{downloadGz}from"./gz.js"; | ||
import{shouldUse7z,download7z}from"./p7z.js"; | ||
import{download7z,shouldUse7z}from"./p7z.js"; | ||
import{downloadRaw}from"./raw.js"; | ||
import{shouldUseXz,downloadXz}from"./xz.js"; | ||
import{shouldUseZip,downloadZip}from"./zip.js"; | ||
import{downloadXz,shouldUseXz}from"./xz.js"; | ||
import{downloadZip,shouldUseZip}from"./zip.js"; | ||
@@ -9,0 +9,0 @@ |
@@ -8,3 +8,3 @@ import{createWriteStream}from"node:fs"; | ||
import{execa}from"execa"; | ||
import mem from"mem"; | ||
import memoize from"memoize"; | ||
import pathKey from"path-key"; | ||
@@ -34,3 +34,3 @@ import semver from"semver"; | ||
const has7zBinary=mem(mHas7zBinary); | ||
const has7zBinary=memoize(mHas7zBinary); | ||
@@ -37,0 +37,0 @@ |
@@ -6,3 +6,3 @@ import{cpus}from"node:os"; | ||
import{execa}from"execa"; | ||
import mem from"mem"; | ||
import memoize from"memoize"; | ||
import semver from"semver"; | ||
@@ -12,3 +12,3 @@ | ||
import{untar,moveTar}from"./tar.js"; | ||
import{moveTar,untar}from"./tar.js"; | ||
@@ -35,3 +35,3 @@ | ||
const hasXzBinary=mem(mHasXzBinary); | ||
const hasXzBinary=memoize(mHasXzBinary); | ||
@@ -38,0 +38,0 @@ export const downloadXz=async({version,tmpFile,arch,fetchOpts})=>{ |
@@ -7,3 +7,3 @@ import{buffer}from"node:stream/consumers"; | ||
import{fetchNodeUrl,writeNodeBinary,promiseOrFetchError}from"../fetch.js"; | ||
import{fetchNodeUrl,promiseOrFetchError,writeNodeBinary}from"../fetch.js"; | ||
@@ -10,0 +10,0 @@ |
import type { Options as FetchNodeWebsiteOptions } from 'fetch-node-website' | ||
import type { Options as NodeVersionAliasOptions } from 'node-version-alias' | ||
import type { | ||
Options as PreferredNodeVersionOptions, | ||
Options as PreferredVersionOptions, | ||
SemverVersion, | ||
@@ -41,3 +41,3 @@ } from 'preferred-node-version' | ||
// @ts-error @typescript-eslint/no-duplicate-type-constituents | ||
type AllUpstreamOptions = UpstreamOptions & PreferredNodeVersionOptions | ||
type AllUpstreamOptions = UpstreamOptions & PreferredVersionOptions | ||
@@ -44,0 +44,0 @@ export type Options = Partial<{ |
{ | ||
"name": "get-node", | ||
"version": "15.0.1", | ||
"version": "15.0.2", | ||
"type": "module", | ||
@@ -57,3 +57,3 @@ "exports": { | ||
"dependencies": { | ||
"execa": "^9.0.1", | ||
"execa": "^9.5.2", | ||
"fetch-node-website": "^9.0.0", | ||
@@ -63,3 +63,3 @@ "global-cache-dir": "^6.0.0", | ||
"jszip": "^3.10.1", | ||
"mem": "^9.0.2", | ||
"memoize": "^10.1.0", | ||
"move-file": "^3.0.0", | ||
@@ -70,12 +70,14 @@ "node-version-alias": "^5.0.0", | ||
"preferred-node-version": "^5.0.0", | ||
"semver": "^7.5.4", | ||
"tar-fs": "^3.0.4", | ||
"semver": "^7.7.1", | ||
"tar-fs": "^3.0.8", | ||
"tmp-promise": "^3.0.3" | ||
}, | ||
"devDependencies": { | ||
"@ehmicky/dev-tasks": "^2.0.110", | ||
"@types/node": "^20.8.9", | ||
"is-ci": "^3.0.1", | ||
"sinon": "^17.0.0", | ||
"test-each": "^6.0.1" | ||
"@ehmicky/dev-tasks": "^3.0.33", | ||
"@ehmicky/eslint-config": "^20.0.31", | ||
"@ehmicky/prettier-config": "^1.0.5", | ||
"@types/node": "^22.13.14", | ||
"is-ci": "^4.1.0", | ||
"sinon": "^20.0.0", | ||
"test-each": "^7.0.0" | ||
}, | ||
@@ -82,0 +84,0 @@ "engines": { |
@@ -12,11 +12,2 @@ [](https://www.npmjs.com/package/get-node) | ||
# Hire me | ||
Please | ||
[reach out](https://www.linkedin.com/feed/update/urn:li:activity:7117265228068716545/) | ||
if you're looking for a Node.js API or CLI engineer (11 years of experience). | ||
Most recently I have been [Netlify Build](https://github.com/netlify/build)'s | ||
and [Netlify Plugins](https://www.netlify.com/products/build/plugins/)' | ||
technical lead for 2.5 years. I am available for full-time remote positions. | ||
# Features | ||
@@ -42,7 +33,7 @@ | ||
- [progress bar](#progress) | ||
- using [version ranges](#getnodeversion-options) | ||
- using [version ranges](#getnodeversionrange-options) | ||
- specifying [a mirror website](#mirror) for nodejs.org | ||
- helpful error messages | ||
- can guess the current project's version using its | ||
[`.nvmrc` or `package.json` (`engines.node` field)](#getnodeversion-options) | ||
[`.nvmrc` or `package.json` (`engines.node` field)](#getnodeversionrange-options) | ||
@@ -221,4 +212,4 @@ # Example | ||
When using the [`local` alias](#getnodeversion-options), start looking for a | ||
Node.js version file from this directory. | ||
When using the [`local` alias](#getnodeversionrange-options), start looking for | ||
a Node.js version file from this directory. | ||
@@ -294,3 +285,3 @@ #### signal | ||
<td align="center"><a href="https://fosstodon.org/@ehmicky"><img src="https://avatars2.githubusercontent.com/u/8136211?v=4?s=100" width="100px;" alt=""/><br /><sub><b>ehmicky</b></sub></a><br /><a href="https://github.com/ehmicky/get-node/commits?author=ehmicky" title="Code">💻</a> <a href="#design-ehmicky" title="Design">🎨</a> <a href="#ideas-ehmicky" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/ehmicky/get-node/commits?author=ehmicky" title="Documentation">📖</a></td> | ||
<td align="center"><a href="https://tunnckoCore.com"><img src="https://avatars3.githubusercontent.com/u/5038030?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Charlike Mike Reagent</b></sub></a><br /><a href="https://github.com/ehmicky/get-node/issues?q=author%3AtunnckoCore" title="Bug reports">🐛</a></td> | ||
<td align="center"><a href="https://github.com/tunnckocore"><img src="https://avatars3.githubusercontent.com/u/5038030?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Charlike Mike Reagent</b></sub></a><br /><a href="https://github.com/ehmicky/get-node/issues?q=author%3AtunnckoCore" title="Bug reports">🐛</a></td> | ||
<td align="center"><a href="http://instagram.com/private.number_"><img src="https://avatars.githubusercontent.com/u/1075694?v=4?s=100" width="100px;" alt=""/><br /><sub><b>hiroki osame</b></sub></a><br /><a href="https://github.com/ehmicky/get-node/commits?author=privatenumber" title="Code">💻</a> <a href="https://github.com/ehmicky/get-node/commits?author=privatenumber" title="Tests">⚠️</a> <a href="#ideas-privatenumber" title="Ideas, Planning, & Feedback">🤔</a></td> | ||
@@ -297,0 +288,0 @@ </tr> |
44148
-0.64%7
40%291
-3%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated