Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: bump minipass from 4.2.7 to 5.0.0 #271

Merged
merged 2 commits into from
Apr 27, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore: fixup usage for minipass@5
  • Loading branch information
nlf committed Apr 27, 2023
commit 105e40859f772433bb46e6ecd9d0e7395ebe2ce1
2 changes: 1 addition & 1 deletion lib/dir.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const Fetcher = require('./fetcher.js')
const FileFetcher = require('./file.js')
const Minipass = require('minipass')
const { Minipass } = require('minipass')
const tarCreateOptions = require('./util/tar-create-options.js')
const packlist = require('npm-packlist')
const tar = require('tar')
Expand Down
2 changes: 1 addition & 1 deletion lib/fetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const removeTrailingSlashes = require('./util/trailing-slashes.js')
const getContents = require('@npmcli/installed-package-contents')
const readPackageJsonFast = require('read-package-json-fast')
const readPackageJson = promisify(require('read-package-json'))
const Minipass = require('minipass')
const { Minipass } = require('minipass')

const cacheDir = require('./util/cache-dir.js')

Expand Down
2 changes: 1 addition & 1 deletion lib/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const hashre = /^[a-f0-9]{40}$/
const git = require('@npmcli/git')
const pickManifest = require('npm-pick-manifest')
const npa = require('npm-package-arg')
const Minipass = require('minipass')
const { Minipass } = require('minipass')
const cacache = require('cacache')
const log = require('proc-log')
const npm = require('./util/npm.js')
Expand Down
2 changes: 1 addition & 1 deletion lib/remote.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const FileFetcher = require('./file.js')
const _tarballFromResolved = Symbol.for('pacote.Fetcher._tarballFromResolved')
const pacoteVersion = require('../package.json').version
const fetch = require('npm-registry-fetch')
const Minipass = require('minipass')
const { Minipass } = require('minipass')

const _cacheFetches = Symbol.for('pacote.Fetcher._cacheFetches')
const _headers = Symbol('_headers')
Expand Down
2 changes: 1 addition & 1 deletion test/bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pacote.manifest = (spec, conf) => Promise.resolve({
})
pacote.packument = (spec, conf) => Promise.resolve({ method: 'packument', spec, conf })
pacote.tarball.file = (spec, file, conf) => Promise.resolve({ method: 'tarball', spec, file, conf })
const Minipass = require('minipass')
const { Minipass } = require('minipass')
pacote.tarball.stream = (spec, handler, conf) => handler(new Minipass().end('tarball data'))
pacote.extract = (spec, dest, conf) => Promise.resolve({ method: 'extract', spec, dest, conf })

Expand Down
2 changes: 1 addition & 1 deletion test/fetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const weirdspec = `file:${relative(process.cwd(), weird)}`

const cacache = require('cacache')
const byDigest = cacache.get.stream.byDigest
const Minipass = require('minipass')
const { Minipass } = require('minipass')

// we actually use a file fetcher for this, because we need implementations
const FileFetcher = require('../lib/file.js')
Expand Down
2 changes: 1 addition & 1 deletion test/util/npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const t = require('tap')

const cp = require('child_process')
const { spawn } = cp
const Minipass = require('minipass')
const { Minipass } = require('minipass')
const EventEmitter = require('events')
cp.spawn = (...args) => {
const proc = new EventEmitter()
Expand Down