Updated the project.
This commit is contained in:
parent
5dfe9f128d
commit
7919556077
1550 changed files with 17063 additions and 40183 deletions
0
my-app/node_modules/@npmcli/agent/README.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/README.md
generated
vendored
Executable file → Normal file
5
my-app/node_modules/@npmcli/agent/lib/agents.js
generated
vendored
Executable file → Normal file
5
my-app/node_modules/@npmcli/agent/lib/agents.js
generated
vendored
Executable file → Normal file
|
@ -65,7 +65,10 @@ module.exports = class Agent extends AgentBase {
|
|||
ProxyAgent = this.isSecureEndpoint(options) ? ProxyAgent[1] : ProxyAgent[0]
|
||||
}
|
||||
|
||||
const proxyAgent = new ProxyAgent(proxy, this.#options)
|
||||
const proxyAgent = new ProxyAgent(proxy, {
|
||||
...this.#options,
|
||||
socketOptions: { family: this.#options.family },
|
||||
})
|
||||
proxyCache.set(cacheKey, proxyAgent)
|
||||
|
||||
return proxyAgent
|
||||
|
|
0
my-app/node_modules/@npmcli/agent/lib/dns.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/lib/dns.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/lib/errors.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/lib/errors.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/lib/index.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/lib/index.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/lib/options.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/lib/options.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/lib/proxy.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/lib/proxy.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/node_modules/lru-cache/LICENSE
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/node_modules/lru-cache/LICENSE
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/node_modules/lru-cache/README.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/node_modules/lru-cache/README.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/node_modules/lru-cache/dist/commonjs/index.d.ts
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/node_modules/lru-cache/dist/commonjs/index.d.ts
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/node_modules/lru-cache/dist/commonjs/index.d.ts.map
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/node_modules/lru-cache/dist/commonjs/index.d.ts.map
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/node_modules/lru-cache/dist/commonjs/index.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/node_modules/lru-cache/dist/commonjs/index.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/node_modules/lru-cache/dist/commonjs/index.js.map
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/node_modules/lru-cache/dist/commonjs/index.js.map
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/node_modules/lru-cache/dist/commonjs/package.json
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/node_modules/lru-cache/dist/commonjs/package.json
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/node_modules/lru-cache/dist/esm/index.d.ts
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/node_modules/lru-cache/dist/esm/index.d.ts
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/node_modules/lru-cache/dist/esm/index.d.ts.map
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/node_modules/lru-cache/dist/esm/index.d.ts.map
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/node_modules/lru-cache/dist/esm/index.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/node_modules/lru-cache/dist/esm/index.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/node_modules/lru-cache/dist/esm/index.js.map
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/node_modules/lru-cache/dist/esm/index.js.map
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/node_modules/lru-cache/dist/esm/package.json
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/agent/node_modules/lru-cache/dist/esm/package.json
generated
vendored
Executable file → Normal file
13
my-app/node_modules/@npmcli/agent/node_modules/lru-cache/package.json
generated
vendored
Executable file → Normal file
13
my-app/node_modules/@npmcli/agent/node_modules/lru-cache/package.json
generated
vendored
Executable file → Normal file
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "lru-cache",
|
||||
"description": "A cache object that deletes the least-recently-used items.",
|
||||
"version": "10.2.0",
|
||||
"version": "10.2.2",
|
||||
"author": "Isaac Z. Schlueter <i@izs.me>",
|
||||
"keywords": [
|
||||
"mru",
|
||||
|
@ -11,8 +11,7 @@
|
|||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"build": "npm run prepare",
|
||||
"prepare": "tshy",
|
||||
"postprepare": "bash fixup.sh",
|
||||
"prepare": "tshy && bash fixup.sh",
|
||||
"pretest": "npm run prepare",
|
||||
"presnap": "npm run prepare",
|
||||
"test": "tap",
|
||||
|
@ -35,8 +34,8 @@
|
|||
".": "./src/index.ts",
|
||||
"./min": {
|
||||
"import": {
|
||||
"types": "./dist/mjs/index.d.ts",
|
||||
"default": "./dist/mjs/index.min.js"
|
||||
"types": "./dist/esm/index.d.ts",
|
||||
"default": "./dist/esm/index.min.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/commonjs/index.d.ts",
|
||||
|
@ -105,8 +104,8 @@
|
|||
},
|
||||
"./min": {
|
||||
"import": {
|
||||
"types": "./dist/mjs/index.d.ts",
|
||||
"default": "./dist/mjs/index.min.js"
|
||||
"types": "./dist/esm/index.d.ts",
|
||||
"default": "./dist/esm/index.min.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/commonjs/index.d.ts",
|
||||
|
|
4
my-app/node_modules/@npmcli/agent/package.json
generated
vendored
Executable file → Normal file
4
my-app/node_modules/@npmcli/agent/package.json
generated
vendored
Executable file → Normal file
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@npmcli/agent",
|
||||
"version": "2.2.1",
|
||||
"version": "2.2.2",
|
||||
"description": "the http/https agent used by the npm cli",
|
||||
"main": "lib/index.js",
|
||||
"scripts": {
|
||||
|
@ -36,7 +36,7 @@
|
|||
"http-proxy-agent": "^7.0.0",
|
||||
"https-proxy-agent": "^7.0.1",
|
||||
"lru-cache": "^10.0.1",
|
||||
"socks-proxy-agent": "^8.0.1"
|
||||
"socks-proxy-agent": "^8.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@npmcli/eslint-config": "^4.0.0",
|
||||
|
|
0
my-app/node_modules/@npmcli/fs/LICENSE.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/fs/LICENSE.md
generated
vendored
Executable file → Normal file
4
my-app/node_modules/@npmcli/fs/README.md
generated
vendored
Executable file → Normal file
4
my-app/node_modules/@npmcli/fs/README.md
generated
vendored
Executable file → Normal file
|
@ -54,8 +54,8 @@ Like `fs.readdir` but handling `@org/module` dirs as if they were
|
|||
a single entry.
|
||||
|
||||
```javascript
|
||||
const readdir = require('readdir-scoped-modules')
|
||||
const entries = await readdir('node_modules')
|
||||
const { readdirScoped } = require('@npmcli/fs')
|
||||
const entries = await readdirScoped('node_modules')
|
||||
// entries will be something like: ['a', '@org/foo', '@org/bar']
|
||||
```
|
||||
|
||||
|
|
0
my-app/node_modules/@npmcli/fs/lib/common/get-options.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/fs/lib/common/get-options.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/fs/lib/common/node.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/fs/lib/common/node.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/fs/lib/cp/LICENSE
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/fs/lib/cp/LICENSE
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/fs/lib/cp/errors.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/fs/lib/cp/errors.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/fs/lib/cp/index.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/fs/lib/cp/index.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/fs/lib/cp/polyfill.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/fs/lib/cp/polyfill.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/fs/lib/index.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/fs/lib/index.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/fs/lib/move-file.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/fs/lib/move-file.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/fs/lib/readdir-scoped.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/fs/lib/readdir-scoped.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/fs/lib/with-temp-dir.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/fs/lib/with-temp-dir.js
generated
vendored
Executable file → Normal file
10
my-app/node_modules/@npmcli/fs/package.json
generated
vendored
Executable file → Normal file
10
my-app/node_modules/@npmcli/fs/package.json
generated
vendored
Executable file → Normal file
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@npmcli/fs",
|
||||
"version": "3.1.0",
|
||||
"version": "3.1.1",
|
||||
"description": "filesystem utilities for the npm cli",
|
||||
"main": "lib/index.js",
|
||||
"files": [
|
||||
|
@ -11,7 +11,7 @@
|
|||
"snap": "tap",
|
||||
"test": "tap",
|
||||
"npmclilint": "npmcli-lint",
|
||||
"lint": "eslint \"**/*.js\"",
|
||||
"lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"",
|
||||
"lintfix": "npm run lint -- --fix",
|
||||
"posttest": "npm run lint",
|
||||
"postsnap": "npm run lintfix --",
|
||||
|
@ -20,7 +20,7 @@
|
|||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/npm/fs.git"
|
||||
"url": "git+https://github.com/npm/fs.git"
|
||||
},
|
||||
"keywords": [
|
||||
"npm",
|
||||
|
@ -30,7 +30,7 @@
|
|||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"@npmcli/eslint-config": "^4.0.0",
|
||||
"@npmcli/template-oss": "4.8.0",
|
||||
"@npmcli/template-oss": "4.22.0",
|
||||
"tap": "^16.0.1"
|
||||
},
|
||||
"dependencies": {
|
||||
|
@ -41,7 +41,7 @@
|
|||
},
|
||||
"templateOSS": {
|
||||
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
||||
"version": "4.8.0"
|
||||
"version": "4.22.0"
|
||||
},
|
||||
"tap": {
|
||||
"nyc-arg": [
|
||||
|
|
0
my-app/node_modules/@npmcli/git/LICENSE
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/LICENSE
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/README.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/README.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/lib/clone.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/lib/clone.js
generated
vendored
Executable file → Normal file
6
my-app/node_modules/@npmcli/git/lib/errors.js
generated
vendored
Executable file → Normal file
6
my-app/node_modules/@npmcli/git/lib/errors.js
generated
vendored
Executable file → Normal file
|
@ -8,7 +8,7 @@ class GitError extends Error {
|
|||
}
|
||||
|
||||
class GitConnectionError extends GitError {
|
||||
constructor (message) {
|
||||
constructor () {
|
||||
super('A git connection error occurred')
|
||||
}
|
||||
|
||||
|
@ -18,13 +18,13 @@ class GitConnectionError extends GitError {
|
|||
}
|
||||
|
||||
class GitPathspecError extends GitError {
|
||||
constructor (message) {
|
||||
constructor () {
|
||||
super('The git reference could not be found')
|
||||
}
|
||||
}
|
||||
|
||||
class GitUnknownError extends GitError {
|
||||
constructor (message) {
|
||||
constructor () {
|
||||
super('An unknown git error occurred')
|
||||
}
|
||||
}
|
||||
|
|
0
my-app/node_modules/@npmcli/git/lib/find.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/lib/find.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/lib/index.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/lib/index.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/lib/is-clean.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/lib/is-clean.js
generated
vendored
Executable file → Normal file
4
my-app/node_modules/@npmcli/git/lib/is.js
generated
vendored
Executable file → Normal file
4
my-app/node_modules/@npmcli/git/lib/is.js
generated
vendored
Executable file → Normal file
|
@ -1,6 +1,4 @@
|
|||
// not an airtight indicator, but a good gut-check to even bother trying
|
||||
const { promisify } = require('util')
|
||||
const fs = require('fs')
|
||||
const stat = promisify(fs.stat)
|
||||
const { stat } = require('fs/promises')
|
||||
module.exports = ({ cwd = process.cwd() } = {}) =>
|
||||
stat(cwd + '/.git').then(() => true, () => false)
|
||||
|
|
0
my-app/node_modules/@npmcli/git/lib/lines-to-revs.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/lib/lines-to-revs.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/lib/make-error.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/lib/make-error.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/lib/opts.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/lib/opts.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/lib/revs.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/lib/revs.js
generated
vendored
Executable file → Normal file
2
my-app/node_modules/@npmcli/git/lib/spawn.js
generated
vendored
Executable file → Normal file
2
my-app/node_modules/@npmcli/git/lib/spawn.js
generated
vendored
Executable file → Normal file
|
@ -1,6 +1,6 @@
|
|||
const spawn = require('@npmcli/promise-spawn')
|
||||
const promiseRetry = require('promise-retry')
|
||||
const log = require('proc-log')
|
||||
const { log } = require('proc-log')
|
||||
const makeError = require('./make-error.js')
|
||||
const makeOpts = require('./opts.js')
|
||||
|
||||
|
|
0
my-app/node_modules/@npmcli/git/lib/utils.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/lib/utils.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/lib/which.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/lib/which.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/node_modules/lru-cache/LICENSE
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/node_modules/lru-cache/LICENSE
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/node_modules/lru-cache/README.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/node_modules/lru-cache/README.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/node_modules/lru-cache/dist/commonjs/index.d.ts
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/node_modules/lru-cache/dist/commonjs/index.d.ts
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/node_modules/lru-cache/dist/commonjs/index.d.ts.map
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/node_modules/lru-cache/dist/commonjs/index.d.ts.map
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/node_modules/lru-cache/dist/commonjs/index.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/node_modules/lru-cache/dist/commonjs/index.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/node_modules/lru-cache/dist/commonjs/index.js.map
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/node_modules/lru-cache/dist/commonjs/index.js.map
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/node_modules/lru-cache/dist/commonjs/package.json
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/node_modules/lru-cache/dist/commonjs/package.json
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/node_modules/lru-cache/dist/esm/index.d.ts
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/node_modules/lru-cache/dist/esm/index.d.ts
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/node_modules/lru-cache/dist/esm/index.d.ts.map
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/node_modules/lru-cache/dist/esm/index.d.ts.map
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/node_modules/lru-cache/dist/esm/index.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/node_modules/lru-cache/dist/esm/index.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/node_modules/lru-cache/dist/esm/index.js.map
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/node_modules/lru-cache/dist/esm/index.js.map
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/node_modules/lru-cache/dist/esm/package.json
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/git/node_modules/lru-cache/dist/esm/package.json
generated
vendored
Executable file → Normal file
13
my-app/node_modules/@npmcli/git/node_modules/lru-cache/package.json
generated
vendored
Executable file → Normal file
13
my-app/node_modules/@npmcli/git/node_modules/lru-cache/package.json
generated
vendored
Executable file → Normal file
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "lru-cache",
|
||||
"description": "A cache object that deletes the least-recently-used items.",
|
||||
"version": "10.2.0",
|
||||
"version": "10.2.2",
|
||||
"author": "Isaac Z. Schlueter <i@izs.me>",
|
||||
"keywords": [
|
||||
"mru",
|
||||
|
@ -11,8 +11,7 @@
|
|||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"build": "npm run prepare",
|
||||
"prepare": "tshy",
|
||||
"postprepare": "bash fixup.sh",
|
||||
"prepare": "tshy && bash fixup.sh",
|
||||
"pretest": "npm run prepare",
|
||||
"presnap": "npm run prepare",
|
||||
"test": "tap",
|
||||
|
@ -35,8 +34,8 @@
|
|||
".": "./src/index.ts",
|
||||
"./min": {
|
||||
"import": {
|
||||
"types": "./dist/mjs/index.d.ts",
|
||||
"default": "./dist/mjs/index.min.js"
|
||||
"types": "./dist/esm/index.d.ts",
|
||||
"default": "./dist/esm/index.min.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/commonjs/index.d.ts",
|
||||
|
@ -105,8 +104,8 @@
|
|||
},
|
||||
"./min": {
|
||||
"import": {
|
||||
"types": "./dist/mjs/index.d.ts",
|
||||
"default": "./dist/mjs/index.min.js"
|
||||
"types": "./dist/esm/index.d.ts",
|
||||
"default": "./dist/esm/index.min.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/commonjs/index.d.ts",
|
||||
|
|
10
my-app/node_modules/@npmcli/git/package.json
generated
vendored
Executable file → Normal file
10
my-app/node_modules/@npmcli/git/package.json
generated
vendored
Executable file → Normal file
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@npmcli/git",
|
||||
"version": "5.0.4",
|
||||
"version": "5.0.7",
|
||||
"main": "lib/index.js",
|
||||
"files": [
|
||||
"bin/",
|
||||
|
@ -9,7 +9,7 @@
|
|||
"description": "a util for spawning git from npm CLI contexts",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/npm/git.git"
|
||||
"url": "git+https://github.com/npm/git.git"
|
||||
},
|
||||
"author": "GitHub Inc.",
|
||||
"license": "ISC",
|
||||
|
@ -31,7 +31,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@npmcli/eslint-config": "^4.0.0",
|
||||
"@npmcli/template-oss": "4.21.3",
|
||||
"@npmcli/template-oss": "4.22.0",
|
||||
"npm-package-arg": "^11.0.0",
|
||||
"slash": "^3.0.0",
|
||||
"tap": "^16.0.1"
|
||||
|
@ -40,7 +40,7 @@
|
|||
"@npmcli/promise-spawn": "^7.0.0",
|
||||
"lru-cache": "^10.0.1",
|
||||
"npm-pick-manifest": "^9.0.0",
|
||||
"proc-log": "^3.0.0",
|
||||
"proc-log": "^4.0.0",
|
||||
"promise-inflight": "^1.0.1",
|
||||
"promise-retry": "^2.0.1",
|
||||
"semver": "^7.3.5",
|
||||
|
@ -51,7 +51,7 @@
|
|||
},
|
||||
"templateOSS": {
|
||||
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
||||
"version": "4.21.3",
|
||||
"version": "4.22.0",
|
||||
"publish": true
|
||||
}
|
||||
}
|
||||
|
|
0
my-app/node_modules/@npmcli/installed-package-contents/LICENSE
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/installed-package-contents/LICENSE
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/installed-package-contents/README.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/installed-package-contents/README.md
generated
vendored
Executable file → Normal file
121
my-app/node_modules/@npmcli/installed-package-contents/lib/index.js
generated
vendored
Executable file → Normal file
121
my-app/node_modules/@npmcli/installed-package-contents/lib/index.js
generated
vendored
Executable file → Normal file
|
@ -1,5 +1,3 @@
|
|||
#! /usr/bin/env node
|
||||
|
||||
// to GET CONTENTS for folder at PATH (which may be a PACKAGE):
|
||||
// - if PACKAGE, read path/package.json
|
||||
// - if bins in ../node_modules/.bin, add those to result
|
||||
|
@ -19,53 +17,46 @@
|
|||
// - add GET CONTENTS of bundled deps, PACKAGE=true, depth + 1
|
||||
|
||||
const bundled = require('npm-bundled')
|
||||
const { promisify } = require('util')
|
||||
const fs = require('fs')
|
||||
const readFile = promisify(fs.readFile)
|
||||
const readdir = promisify(fs.readdir)
|
||||
const stat = promisify(fs.stat)
|
||||
const lstat = promisify(fs.lstat)
|
||||
const { relative, resolve, basename, dirname } = require('path')
|
||||
const { readFile, readdir, stat } = require('fs/promises')
|
||||
const { resolve, basename, dirname } = require('path')
|
||||
const normalizePackageBin = require('npm-normalize-package-bin')
|
||||
|
||||
const readPackage = ({ path, packageJsonCache }) =>
|
||||
packageJsonCache.has(path) ? Promise.resolve(packageJsonCache.get(path))
|
||||
const readPackage = ({ path, packageJsonCache }) => packageJsonCache.has(path)
|
||||
? Promise.resolve(packageJsonCache.get(path))
|
||||
: readFile(path).then(json => {
|
||||
const pkg = normalizePackageBin(JSON.parse(json))
|
||||
packageJsonCache.set(path, pkg)
|
||||
return pkg
|
||||
})
|
||||
.catch(er => null)
|
||||
}).catch(() => null)
|
||||
|
||||
// just normalize bundle deps and bin, that's all we care about here.
|
||||
const normalized = Symbol('package data has been normalized')
|
||||
const rpj = ({ path, packageJsonCache }) =>
|
||||
readPackage({ path, packageJsonCache })
|
||||
.then(pkg => {
|
||||
if (!pkg || pkg[normalized]) {
|
||||
return pkg
|
||||
}
|
||||
if (pkg.bundledDependencies && !pkg.bundleDependencies) {
|
||||
pkg.bundleDependencies = pkg.bundledDependencies
|
||||
delete pkg.bundledDependencies
|
||||
}
|
||||
const bd = pkg.bundleDependencies
|
||||
if (bd === true) {
|
||||
pkg.bundleDependencies = [
|
||||
...Object.keys(pkg.dependencies || {}),
|
||||
...Object.keys(pkg.optionalDependencies || {}),
|
||||
]
|
||||
}
|
||||
if (typeof bd === 'object' && !Array.isArray(bd)) {
|
||||
pkg.bundleDependencies = Object.keys(bd)
|
||||
}
|
||||
pkg[normalized] = true
|
||||
const rpj = ({ path, packageJsonCache }) => readPackage({ path, packageJsonCache })
|
||||
.then(pkg => {
|
||||
if (!pkg || pkg[normalized]) {
|
||||
return pkg
|
||||
})
|
||||
}
|
||||
if (pkg.bundledDependencies && !pkg.bundleDependencies) {
|
||||
pkg.bundleDependencies = pkg.bundledDependencies
|
||||
delete pkg.bundledDependencies
|
||||
}
|
||||
const bd = pkg.bundleDependencies
|
||||
if (bd === true) {
|
||||
pkg.bundleDependencies = [
|
||||
...Object.keys(pkg.dependencies || {}),
|
||||
...Object.keys(pkg.optionalDependencies || {}),
|
||||
]
|
||||
}
|
||||
if (typeof bd === 'object' && !Array.isArray(bd)) {
|
||||
pkg.bundleDependencies = Object.keys(bd)
|
||||
}
|
||||
pkg[normalized] = true
|
||||
return pkg
|
||||
})
|
||||
|
||||
const pkgContents = async ({
|
||||
path,
|
||||
depth,
|
||||
depth = 1,
|
||||
currentDepth = 0,
|
||||
pkg = null,
|
||||
result = null,
|
||||
|
@ -105,7 +96,7 @@ const pkgContents = async ({
|
|||
})
|
||||
|
||||
const bins = await Promise.all(
|
||||
binFiles.map(b => stat(b).then(() => b).catch((er) => null))
|
||||
binFiles.map(b => stat(b).then(() => b).catch(() => null))
|
||||
)
|
||||
bins.filter(b => b).forEach(b => result.add(b))
|
||||
}
|
||||
|
@ -136,18 +127,6 @@ const pkgContents = async ({
|
|||
|
||||
const recursePromises = []
|
||||
|
||||
// if we didn't get withFileTypes support, tack that on
|
||||
if (typeof dirEntries[0] === 'string') {
|
||||
// use a map so we can return a promise, but we mutate dirEntries in place
|
||||
// this is much slower than getting the entries from the readdir call,
|
||||
// but polyfills support for node versions before 10.10
|
||||
await Promise.all(dirEntries.map(async (name, index) => {
|
||||
const p = resolve(path, name)
|
||||
const st = await lstat(p)
|
||||
dirEntries[index] = Object.assign(st, { name })
|
||||
}))
|
||||
}
|
||||
|
||||
for (const entry of dirEntries) {
|
||||
const p = resolve(path, entry.name)
|
||||
if (entry.isDirectory() === false) {
|
||||
|
@ -195,48 +174,8 @@ const pkgContents = async ({
|
|||
return result
|
||||
}
|
||||
|
||||
module.exports = ({ path, depth = 1, packageJsonCache }) => pkgContents({
|
||||
module.exports = ({ path, ...opts }) => pkgContents({
|
||||
path: resolve(path),
|
||||
depth,
|
||||
...opts,
|
||||
pkg: true,
|
||||
packageJsonCache,
|
||||
}).then(results => [...results])
|
||||
|
||||
if (require.main === module) {
|
||||
const options = { path: null, depth: 1 }
|
||||
const usage = `Usage:
|
||||
installed-package-contents <path> [-d<n> --depth=<n>]
|
||||
|
||||
Lists the files installed for a package specified by <path>.
|
||||
|
||||
Options:
|
||||
-d<n> --depth=<n> Provide a numeric value ("Infinity" is allowed)
|
||||
to specify how deep in the file tree to traverse.
|
||||
Default=1
|
||||
-h --help Show this usage information`
|
||||
|
||||
process.argv.slice(2).forEach(arg => {
|
||||
let match
|
||||
if ((match = arg.match(/^--depth=([0-9]+|Infinity)/)) ||
|
||||
(match = arg.match(/^-d([0-9]+|Infinity)/))) {
|
||||
options.depth = +match[1]
|
||||
} else if (arg === '-h' || arg === '--help') {
|
||||
console.log(usage)
|
||||
process.exit(0)
|
||||
} else {
|
||||
options.path = arg
|
||||
}
|
||||
})
|
||||
if (!options.path) {
|
||||
console.error('ERROR: no path provided')
|
||||
console.error(usage)
|
||||
process.exit(1)
|
||||
}
|
||||
const cwd = process.cwd()
|
||||
module.exports(options)
|
||||
.then(list => list.sort().forEach(p => console.log(relative(cwd, p))))
|
||||
.catch(/* istanbul ignore next - pretty unusual */ er => {
|
||||
console.error(er)
|
||||
process.exit(1)
|
||||
})
|
||||
}
|
||||
|
|
12
my-app/node_modules/@npmcli/installed-package-contents/package.json
generated
vendored
Executable file → Normal file
12
my-app/node_modules/@npmcli/installed-package-contents/package.json
generated
vendored
Executable file → Normal file
|
@ -1,17 +1,17 @@
|
|||
{
|
||||
"name": "@npmcli/installed-package-contents",
|
||||
"version": "2.0.2",
|
||||
"version": "2.1.0",
|
||||
"description": "Get the list of files installed in a package in node_modules, including bundled dependencies",
|
||||
"author": "GitHub Inc.",
|
||||
"main": "lib/index.js",
|
||||
"bin": {
|
||||
"installed-package-contents": "lib/index.js"
|
||||
"installed-package-contents": "bin/index.js"
|
||||
},
|
||||
"license": "ISC",
|
||||
"scripts": {
|
||||
"test": "tap",
|
||||
"snap": "tap",
|
||||
"lint": "eslint \"**/*.js\"",
|
||||
"lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"",
|
||||
"postlint": "template-oss-check",
|
||||
"template-oss-apply": "template-oss-apply --force",
|
||||
"lintfix": "npm run lint -- --fix",
|
||||
|
@ -19,8 +19,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@npmcli/eslint-config": "^4.0.0",
|
||||
"@npmcli/template-oss": "4.11.4",
|
||||
"require-inject": "^1.4.4",
|
||||
"@npmcli/template-oss": "4.21.4",
|
||||
"tap": "^16.3.0"
|
||||
},
|
||||
"dependencies": {
|
||||
|
@ -40,7 +39,8 @@
|
|||
},
|
||||
"templateOSS": {
|
||||
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
||||
"version": "4.11.4"
|
||||
"version": "4.21.4",
|
||||
"publish": true
|
||||
},
|
||||
"tap": {
|
||||
"nyc-arg": [
|
||||
|
|
0
my-app/node_modules/@npmcli/package-json/LICENSE
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/package-json/LICENSE
generated
vendored
Executable file → Normal file
12
my-app/node_modules/@npmcli/package-json/README.md
generated
vendored
Executable file → Normal file
12
my-app/node_modules/@npmcli/package-json/README.md
generated
vendored
Executable file → Normal file
|
@ -1,7 +1,7 @@
|
|||
# @npmcli/package-json
|
||||
|
||||
[](https://www.npmjs.com/package/@npmcli/package-json)
|
||||
[](https://github.com/npm/package-json)
|
||||
[](https://github.com/npm/package-json)
|
||||
|
||||
Programmatic API to update `package.json` files. Updates and saves files the
|
||||
same way the **npm cli** handles them.
|
||||
|
@ -50,6 +50,15 @@ await pkgJson.save()
|
|||
// }
|
||||
```
|
||||
|
||||
There is also a helper function exported for opening a package.json file
|
||||
with no extra normalization or saving functionality.
|
||||
|
||||
```js
|
||||
const { readPackage } = require('@npmcli/package-json/lib/read-package')
|
||||
const rawData = await readPackage('./package.json')
|
||||
// rawData will now have the package.json contents with no changes or normalizations
|
||||
```
|
||||
|
||||
## API:
|
||||
|
||||
### `constructor()`
|
||||
|
@ -232,4 +241,3 @@ Saves the current `content` to the same location used when calling
|
|||
## LICENSE
|
||||
|
||||
[ISC](./LICENSE)
|
||||
|
||||
|
|
25
my-app/node_modules/@npmcli/package-json/lib/index.js
generated
vendored
Executable file → Normal file
25
my-app/node_modules/@npmcli/package-json/lib/index.js
generated
vendored
Executable file → Normal file
|
@ -1,11 +1,12 @@
|
|||
const { readFile, writeFile } = require('fs/promises')
|
||||
const { resolve } = require('path')
|
||||
const { readFile, writeFile } = require('node:fs/promises')
|
||||
const { resolve } = require('node:path')
|
||||
const parseJSON = require('json-parse-even-better-errors')
|
||||
|
||||
const updateDeps = require('./update-dependencies.js')
|
||||
const updateScripts = require('./update-scripts.js')
|
||||
const updateWorkspaces = require('./update-workspaces.js')
|
||||
const normalize = require('./normalize.js')
|
||||
|
||||
const parseJSON = require('json-parse-even-better-errors')
|
||||
const { read, parse } = require('./read-package.js')
|
||||
|
||||
// a list of handy specialized helper functions that take
|
||||
// care of special cases that are handled by the npm cli
|
||||
|
@ -126,9 +127,8 @@ class PackageJson {
|
|||
this.#path = path
|
||||
let parseErr
|
||||
try {
|
||||
this.#readFileContent = await readFile(this.filename, 'utf8')
|
||||
this.#readFileContent = await read(this.filename)
|
||||
} catch (err) {
|
||||
err.message = `Could not read package.json: ${err}`
|
||||
if (!parseIndex) {
|
||||
throw err
|
||||
}
|
||||
|
@ -158,12 +158,13 @@ class PackageJson {
|
|||
|
||||
// Load data from a JSON string/buffer
|
||||
fromJSON (data) {
|
||||
try {
|
||||
this.#manifest = parseJSON(data)
|
||||
} catch (err) {
|
||||
err.message = `Invalid package.json: ${err}`
|
||||
throw err
|
||||
}
|
||||
this.#manifest = parse(data)
|
||||
return this
|
||||
}
|
||||
|
||||
fromContent (data) {
|
||||
this.#manifest = data
|
||||
this.#canSave = false
|
||||
return this
|
||||
}
|
||||
|
||||
|
|
117
my-app/node_modules/@npmcli/package-json/lib/normalize.js
generated
vendored
Executable file → Normal file
117
my-app/node_modules/@npmcli/package-json/lib/normalize.js
generated
vendored
Executable file → Normal file
|
@ -1,12 +1,30 @@
|
|||
const semver = require('semver')
|
||||
const fs = require('fs/promises')
|
||||
const { glob } = require('glob')
|
||||
const legacyFixer = require('normalize-package-data/lib/fixer.js')
|
||||
const legacyMakeWarning = require('normalize-package-data/lib/make_warning.js')
|
||||
const path = require('path')
|
||||
const log = require('proc-log')
|
||||
const git = require('@npmcli/git')
|
||||
const hostedGitInfo = require('hosted-git-info')
|
||||
const valid = require('semver/functions/valid')
|
||||
const clean = require('semver/functions/clean')
|
||||
const fs = require('node:fs/promises')
|
||||
const path = require('node:path')
|
||||
const { log } = require('proc-log')
|
||||
|
||||
/**
|
||||
* @type {import('hosted-git-info')}
|
||||
*/
|
||||
let _hostedGitInfo
|
||||
function lazyHostedGitInfo () {
|
||||
if (!_hostedGitInfo) {
|
||||
_hostedGitInfo = require('hosted-git-info')
|
||||
}
|
||||
return _hostedGitInfo
|
||||
}
|
||||
|
||||
/**
|
||||
* @type {import('glob').glob}
|
||||
*/
|
||||
let _glob
|
||||
function lazyLoadGlob () {
|
||||
if (!_glob) {
|
||||
_glob = require('glob').glob
|
||||
}
|
||||
return _glob
|
||||
}
|
||||
|
||||
// used to be npm-normalize-package-bin
|
||||
function normalizePackageBin (pkg, changes) {
|
||||
|
@ -28,15 +46,14 @@ function normalizePackageBin (pkg, changes) {
|
|||
changes?.push(`removed invalid "bin[${binKey}]"`)
|
||||
continue
|
||||
}
|
||||
const base = path.join('/', path.basename(binKey.replace(/\\|:/g, '/'))).slice(1)
|
||||
const base = path.basename(secureAndUnixifyPath(binKey))
|
||||
if (!base) {
|
||||
delete pkg.bin[binKey]
|
||||
changes?.push(`removed invalid "bin[${binKey}]"`)
|
||||
continue
|
||||
}
|
||||
|
||||
const binTarget = path.join('/', pkg.bin[binKey].replace(/\\/g, '/'))
|
||||
.replace(/\\/g, '/').slice(1)
|
||||
const binTarget = secureAndUnixifyPath(pkg.bin[binKey])
|
||||
|
||||
if (!binTarget) {
|
||||
delete pkg.bin[binKey]
|
||||
|
@ -65,6 +82,27 @@ function normalizePackageBin (pkg, changes) {
|
|||
delete pkg.bin
|
||||
}
|
||||
|
||||
function normalizePackageMan (pkg, changes) {
|
||||
if (pkg.man) {
|
||||
const mans = []
|
||||
for (const man of (Array.isArray(pkg.man) ? pkg.man : [pkg.man])) {
|
||||
if (typeof man !== 'string') {
|
||||
changes?.push(`removed invalid "man [${man}]"`)
|
||||
} else {
|
||||
mans.push(secureAndUnixifyPath(man))
|
||||
}
|
||||
}
|
||||
|
||||
if (!mans.length) {
|
||||
changes?.push('empty "man" was removed')
|
||||
} else {
|
||||
pkg.man = mans
|
||||
return pkg
|
||||
}
|
||||
}
|
||||
delete pkg.man
|
||||
}
|
||||
|
||||
function isCorrectlyEncodedName (spec) {
|
||||
return !spec.match(/[/@\s+%:]/) &&
|
||||
spec === encodeURIComponent(spec)
|
||||
|
@ -85,6 +123,19 @@ function isValidScopedPackageName (spec) {
|
|||
rest[1] === encodeURIComponent(rest[1])
|
||||
}
|
||||
|
||||
function unixifyPath (ref) {
|
||||
return ref.replace(/\\|:/g, '/')
|
||||
}
|
||||
|
||||
function securePath (ref) {
|
||||
const secured = path.join('.', path.join('/', unixifyPath(ref)))
|
||||
return secured.startsWith('.') ? '' : secured
|
||||
}
|
||||
|
||||
function secureAndUnixifyPath (ref) {
|
||||
return unixifyPath(securePath(ref))
|
||||
}
|
||||
|
||||
// We don't want the `changes` array in here by default because this is a hot
|
||||
// path for parsing packuments during install. So the calling method passes it
|
||||
// in if it wants to track changes.
|
||||
|
@ -130,10 +181,10 @@ const normalize = async (pkg, { strict, steps, root, changes, allowLegacyCase })
|
|||
if (!data.version) {
|
||||
data.version = ''
|
||||
} else {
|
||||
if (!semver.valid(data.version, loose)) {
|
||||
if (!valid(data.version, loose)) {
|
||||
throw new Error(`Invalid version: "${data.version}"`)
|
||||
}
|
||||
const version = semver.clean(data.version, loose)
|
||||
const version = clean(data.version, loose)
|
||||
if (version !== data.version) {
|
||||
changes?.push(`"version" was cleaned and set to "${version}"`)
|
||||
data.version = version
|
||||
|
@ -208,7 +259,7 @@ const normalize = async (pkg, { strict, steps, root, changes, allowLegacyCase })
|
|||
// add "install" attribute if any "*.gyp" files exist
|
||||
if (steps.includes('gypfile')) {
|
||||
if (!scripts.install && !scripts.preinstall && data.gypfile !== false) {
|
||||
const files = await glob('*.gyp', { cwd: pkg.path })
|
||||
const files = await lazyLoadGlob()('*.gyp', { cwd: pkg.path })
|
||||
if (files.length) {
|
||||
scripts.install = 'node-gyp rebuild'
|
||||
data.scripts = scripts
|
||||
|
@ -233,7 +284,7 @@ const normalize = async (pkg, { strict, steps, root, changes, allowLegacyCase })
|
|||
|
||||
// strip "node_modules/.bin" from scripts entries
|
||||
// remove invalid scripts entries (non-strings)
|
||||
if (steps.includes('scripts') || steps.includes('scriptpath')) {
|
||||
if ((steps.includes('scripts') || steps.includes('scriptpath')) && data.scripts !== undefined) {
|
||||
const spre = /^(\.[/\\])?node_modules[/\\].bin[\\/]/
|
||||
if (typeof data.scripts === 'object') {
|
||||
for (const name in data.scripts) {
|
||||
|
@ -275,7 +326,11 @@ const normalize = async (pkg, { strict, steps, root, changes, allowLegacyCase })
|
|||
// populate "readme" attribute
|
||||
if (steps.includes('readme') && !data.readme) {
|
||||
const mdre = /\.m?a?r?k?d?o?w?n?$/i
|
||||
const files = await glob('{README,README.*}', { cwd: pkg.path, nocase: true, mark: true })
|
||||
const files = await lazyLoadGlob()('{README,README.*}', {
|
||||
cwd: pkg.path,
|
||||
nocase: true,
|
||||
mark: true,
|
||||
})
|
||||
let readmeFile
|
||||
for (const file of files) {
|
||||
// don't accept directories.
|
||||
|
@ -303,13 +358,16 @@ const normalize = async (pkg, { strict, steps, root, changes, allowLegacyCase })
|
|||
}
|
||||
|
||||
// expand directories.man
|
||||
if (steps.includes('mans') && !data.man && data.directories?.man) {
|
||||
const manDir = data.directories.man
|
||||
const cwd = path.resolve(pkg.path, manDir)
|
||||
const files = await glob('**/*.[0-9]', { cwd })
|
||||
data.man = files.map(man =>
|
||||
path.relative(pkg.path, path.join(cwd, man)).split(path.sep).join('/')
|
||||
)
|
||||
if (steps.includes('mans')) {
|
||||
if (data.directories?.man && !data.man) {
|
||||
const manDir = secureAndUnixifyPath(data.directories.man)
|
||||
const cwd = path.resolve(pkg.path, manDir)
|
||||
const files = await lazyLoadGlob()('**/*.[0-9]', { cwd })
|
||||
data.man = files.map(man =>
|
||||
path.relative(pkg.path, path.join(cwd, man)).split(path.sep).join('/')
|
||||
)
|
||||
}
|
||||
normalizePackageMan(data, changes)
|
||||
}
|
||||
|
||||
if (steps.includes('bin') || steps.includes('binDir') || steps.includes('binRefs')) {
|
||||
|
@ -318,8 +376,8 @@ const normalize = async (pkg, { strict, steps, root, changes, allowLegacyCase })
|
|||
|
||||
// expand "directories.bin"
|
||||
if (steps.includes('binDir') && data.directories?.bin && !data.bin) {
|
||||
const binsDir = path.resolve(pkg.path, path.join('.', path.join('/', data.directories.bin)))
|
||||
const bins = await glob('**', { cwd: binsDir })
|
||||
const binsDir = path.resolve(pkg.path, securePath(data.directories.bin))
|
||||
const bins = await lazyLoadGlob()('**', { cwd: binsDir })
|
||||
data.bin = bins.reduce((acc, binFile) => {
|
||||
if (binFile && !binFile.startsWith('.')) {
|
||||
const binName = path.basename(binFile)
|
||||
|
@ -333,6 +391,7 @@ const normalize = async (pkg, { strict, steps, root, changes, allowLegacyCase })
|
|||
|
||||
// populate "gitHead" attribute
|
||||
if (steps.includes('gitHead') && !data.gitHead) {
|
||||
const git = require('@npmcli/git')
|
||||
const gitRoot = await git.find({ cwd: pkg.path, root })
|
||||
let head
|
||||
if (gitRoot) {
|
||||
|
@ -446,7 +505,7 @@ const normalize = async (pkg, { strict, steps, root, changes, allowLegacyCase })
|
|||
}
|
||||
}
|
||||
if (data.repository.url) {
|
||||
const hosted = hostedGitInfo.fromUrl(data.repository.url)
|
||||
const hosted = lazyHostedGitInfo().fromUrl(data.repository.url)
|
||||
let r
|
||||
if (hosted) {
|
||||
if (hosted.getDefaultRepresentation() === 'shortcut') {
|
||||
|
@ -506,7 +565,7 @@ const normalize = async (pkg, { strict, steps, root, changes, allowLegacyCase })
|
|||
changes?.push(`Removed invalid "${deps}.${d}"`)
|
||||
delete data[deps][d]
|
||||
}
|
||||
const hosted = hostedGitInfo.fromUrl(data[deps][d])?.toString()
|
||||
const hosted = lazyHostedGitInfo().fromUrl(data[deps][d])?.toString()
|
||||
if (hosted && hosted !== data[deps][d]) {
|
||||
changes?.push(`Normalized git reference to "${deps}.${d}"`)
|
||||
data[deps][d] = hosted.toString()
|
||||
|
@ -518,6 +577,8 @@ const normalize = async (pkg, { strict, steps, root, changes, allowLegacyCase })
|
|||
}
|
||||
|
||||
if (steps.includes('normalizeData')) {
|
||||
const legacyFixer = require('normalize-package-data/lib/fixer.js')
|
||||
const legacyMakeWarning = require('normalize-package-data/lib/make_warning.js')
|
||||
legacyFixer.warn = function () {
|
||||
changes?.push(legacyMakeWarning.apply(null, arguments))
|
||||
}
|
||||
|
|
0
my-app/node_modules/@npmcli/package-json/lib/update-dependencies.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/package-json/lib/update-dependencies.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/package-json/lib/update-scripts.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/package-json/lib/update-scripts.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/package-json/lib/update-workspaces.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/package-json/lib/update-workspaces.js
generated
vendored
Executable file → Normal file
BIN
my-app/node_modules/@npmcli/package-json/node_modules/.bin/glob
generated
vendored
BIN
my-app/node_modules/@npmcli/package-json/node_modules/.bin/glob
generated
vendored
Binary file not shown.
1
my-app/node_modules/@npmcli/package-json/node_modules/.bin/glob
generated
vendored
Symbolic link
1
my-app/node_modules/@npmcli/package-json/node_modules/.bin/glob
generated
vendored
Symbolic link
|
@ -0,0 +1 @@
|
|||
../glob/dist/esm/bin.mjs
|
0
my-app/node_modules/@npmcli/package-json/node_modules/glob/LICENSE
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/package-json/node_modules/glob/LICENSE
generated
vendored
Executable file → Normal file
55
my-app/node_modules/@npmcli/package-json/node_modules/glob/README.md
generated
vendored
Executable file → Normal file
55
my-app/node_modules/@npmcli/package-json/node_modules/glob/README.md
generated
vendored
Executable file → Normal file
|
@ -77,7 +77,7 @@ g3.stream().on('data', path => {
|
|||
'got a path object',
|
||||
path.fullpath(),
|
||||
path.isDirectory(),
|
||||
path.readdirSync().map(e => e.name)
|
||||
path.readdirSync().map(e => e.name),
|
||||
)
|
||||
})
|
||||
|
||||
|
@ -422,7 +422,7 @@ share the previously loaded cache.
|
|||
`process.cwd()`. See also: "Windows, CWDs, Drive Letters, and
|
||||
UNC Paths", below.
|
||||
|
||||
This option may be eiher a string path or a `file://` URL
|
||||
This option may be either a string path or a `file://` URL
|
||||
object or string.
|
||||
|
||||
- `root` A string path resolved against the `cwd` option, which
|
||||
|
@ -509,6 +509,9 @@ share the previously loaded cache.
|
|||
- `nodir` Do not match directories, only files. (Note: to match
|
||||
_only_ directories, put a `/` at the end of the pattern.)
|
||||
|
||||
Note: when `follow` and `nodir` are both set, then symbolic
|
||||
links to directories are also omitted.
|
||||
|
||||
- `stat` Call `lstat()` on all entries, whether required or not
|
||||
to determine whether it's a valid match. When used with
|
||||
`withFileTypes`, this means that matches will include data such
|
||||
|
@ -539,6 +542,9 @@ share the previously loaded cache.
|
|||
it is not the first item in the pattern, or none if it is the
|
||||
first item in the pattern, following the same behavior as Bash.
|
||||
|
||||
Note: when `follow` and `nodir` are both set, then symbolic
|
||||
links to directories are also omitted.
|
||||
|
||||
- `realpath` Set to true to call `fs.realpath` on all of the
|
||||
results. In the case of an entry that cannot be resolved, the
|
||||
entry is omitted. This incurs a slight performance penalty, of
|
||||
|
@ -587,6 +593,51 @@ share the previously loaded cache.
|
|||
explicitly, then any provided `scurry` object must match this
|
||||
setting.
|
||||
|
||||
- `includeChildMatches` boolean, default `true`. Do not match any
|
||||
children of any matches. For example, the pattern `**\/foo`
|
||||
would match `a/foo`, but not `a/foo/b/foo` in this mode.
|
||||
|
||||
This is especially useful for cases like "find all
|
||||
`node_modules` folders, but not the ones in `node_modules`".
|
||||
|
||||
In order to support this, the `Ignore` implementation must
|
||||
support an `add(pattern: string)` method. If using the default
|
||||
`Ignore` class, then this is fine, but if this is set to
|
||||
`false`, and a custom `Ignore` is provided that does not have
|
||||
an `add()` method, then it will throw an error.
|
||||
|
||||
**Caveat** It _only_ ignores matches that would be a descendant
|
||||
of a previous match, and only if that descendant is matched
|
||||
_after_ the ancestor is encountered. Since the file system walk
|
||||
happens in indeterminate order, it's possible that a match will
|
||||
already be added before its ancestor, if multiple or braced
|
||||
patterns are used.
|
||||
|
||||
For example:
|
||||
|
||||
```js
|
||||
const results = await glob(
|
||||
[
|
||||
// likely to match first, since it's just a stat
|
||||
'a/b/c/d/e/f',
|
||||
|
||||
// this pattern is more complicated! It must to various readdir()
|
||||
// calls and test the results against a regular expression, and that
|
||||
// is certainly going to take a little bit longer.
|
||||
//
|
||||
// So, later on, it encounters a match at 'a/b/c/d/e', but it's too
|
||||
// late to ignore a/b/c/d/e/f, because it's already been emitted.
|
||||
'a/[bdf]/?/[a-z]/*',
|
||||
],
|
||||
{ includeChildMatches: false },
|
||||
)
|
||||
```
|
||||
|
||||
It's best to only set this to `false` if you can be reasonably
|
||||
sure that no components of the pattern will potentially match
|
||||
one another's file system descendants, or if the occasional
|
||||
included child entry will not cause problems.
|
||||
|
||||
## Glob Primer
|
||||
|
||||
Much more information about glob pattern expansion can be found
|
||||
|
|
45
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/glob.d.ts
generated
vendored
Executable file → Normal file
45
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/glob.d.ts
generated
vendored
Executable file → Normal file
|
@ -247,6 +247,50 @@ export interface GlobOptions {
|
|||
* `'//?/C:/foo/bar'`
|
||||
*/
|
||||
posix?: boolean;
|
||||
/**
|
||||
* Do not match any children of any matches. For example, the pattern
|
||||
* `**\/foo` would match `a/foo`, but not `a/foo/b/foo` in this mode.
|
||||
*
|
||||
* This is especially useful for cases like "find all `node_modules`
|
||||
* folders, but not the ones in `node_modules`".
|
||||
*
|
||||
* In order to support this, the `Ignore` implementation must support an
|
||||
* `add(pattern: string)` method. If using the default `Ignore` class, then
|
||||
* this is fine, but if this is set to `false`, and a custom `Ignore` is
|
||||
* provided that does not have an `add()` method, then it will throw an
|
||||
* error.
|
||||
*
|
||||
* **Caveat** It *only* ignores matches that would be a descendant of a
|
||||
* previous match, and only if that descendant is matched *after* the
|
||||
* ancestor is encountered. Since the file system walk happens in
|
||||
* indeterminate order, it's possible that a match will already be added
|
||||
* before its ancestor, if multiple or braced patterns are used.
|
||||
*
|
||||
* For example:
|
||||
*
|
||||
* ```ts
|
||||
* const results = await glob([
|
||||
* // likely to match first, since it's just a stat
|
||||
* 'a/b/c/d/e/f',
|
||||
*
|
||||
* // this pattern is more complicated! It must to various readdir()
|
||||
* // calls and test the results against a regular expression, and that
|
||||
* // is certainly going to take a little bit longer.
|
||||
* //
|
||||
* // So, later on, it encounters a match at 'a/b/c/d/e', but it's too
|
||||
* // late to ignore a/b/c/d/e/f, because it's already been emitted.
|
||||
* 'a/[bdf]/?/[a-z]/*',
|
||||
* ], { includeChildMatches: false })
|
||||
* ```
|
||||
*
|
||||
* It's best to only set this to `false` if you can be reasonably sure that
|
||||
* no components of the pattern will potentially match one another's file
|
||||
* system descendants, or if the occasional included child entry will not
|
||||
* cause problems.
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
includeChildMatches?: boolean;
|
||||
}
|
||||
export type GlobOptionsWithFileTypesTrue = GlobOptions & {
|
||||
withFileTypes: true;
|
||||
|
@ -291,6 +335,7 @@ export declare class Glob<Opts extends GlobOptions> implements GlobOptions {
|
|||
signal?: AbortSignal;
|
||||
windowsPathsNoEscape: boolean;
|
||||
withFileTypes: FileTypes<Opts>;
|
||||
includeChildMatches: boolean;
|
||||
/**
|
||||
* The options provided to the constructor.
|
||||
*/
|
||||
|
|
2
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/glob.d.ts.map
generated
vendored
Executable file → Normal file
2
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/glob.d.ts.map
generated
vendored
Executable file → Normal file
|
@ -1 +1 @@
|
|||
{"version":3,"file":"glob.d.ts","sourceRoot":"","sources":["../../src/glob.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAoB,MAAM,WAAW,CAAA;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACnC,OAAO,EACL,QAAQ,EACR,IAAI,EACJ,UAAU,EAIX,MAAM,aAAa,CAAA;AAEpB,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAGtC,MAAM,MAAM,QAAQ,GAAG,SAAS,CAAC,KAAK,CAAC,CAAA;AACvC,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,SAAS,CAAC,CAAA;AAWlE;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EA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IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC;IAGnD,CAAC,MAAM,CAAC,aAAa,CAAC;CAGvB"}
|
44
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/glob.js
generated
vendored
Executable file → Normal file
44
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/glob.js
generated
vendored
Executable file → Normal file
|
@ -2,16 +2,16 @@
|
|||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.Glob = void 0;
|
||||
const minimatch_1 = require("minimatch");
|
||||
const node_url_1 = require("node:url");
|
||||
const path_scurry_1 = require("path-scurry");
|
||||
const url_1 = require("url");
|
||||
const pattern_js_1 = require("./pattern.js");
|
||||
const walker_js_1 = require("./walker.js");
|
||||
// if no process global, just call it linux.
|
||||
// so we default to case-sensitive, / separators
|
||||
const defaultPlatform = typeof process === 'object' &&
|
||||
const defaultPlatform = (typeof process === 'object' &&
|
||||
process &&
|
||||
typeof process.platform === 'string'
|
||||
? process.platform
|
||||
typeof process.platform === 'string') ?
|
||||
process.platform
|
||||
: 'linux';
|
||||
/**
|
||||
* An object that can perform glob pattern traversals.
|
||||
|
@ -41,6 +41,7 @@ class Glob {
|
|||
signal;
|
||||
windowsPathsNoEscape;
|
||||
withFileTypes;
|
||||
includeChildMatches;
|
||||
/**
|
||||
* The options provided to the constructor.
|
||||
*/
|
||||
|
@ -77,7 +78,7 @@ class Glob {
|
|||
this.cwd = '';
|
||||
}
|
||||
else if (opts.cwd instanceof URL || opts.cwd.startsWith('file://')) {
|
||||
opts.cwd = (0, url_1.fileURLToPath)(opts.cwd);
|
||||
opts.cwd = (0, node_url_1.fileURLToPath)(opts.cwd);
|
||||
}
|
||||
this.cwd = opts.cwd || '';
|
||||
this.root = opts.root;
|
||||
|
@ -86,6 +87,7 @@ class Glob {
|
|||
this.noext = !!opts.noext;
|
||||
this.realpath = !!opts.realpath;
|
||||
this.absolute = opts.absolute;
|
||||
this.includeChildMatches = opts.includeChildMatches !== false;
|
||||
this.noglobstar = !!opts.noglobstar;
|
||||
this.matchBase = !!opts.matchBase;
|
||||
this.maxDepth =
|
||||
|
@ -100,7 +102,8 @@ class Glob {
|
|||
}
|
||||
this.windowsPathsNoEscape =
|
||||
!!opts.windowsPathsNoEscape ||
|
||||
opts.allowWindowsEscape === false;
|
||||
opts.allowWindowsEscape ===
|
||||
false;
|
||||
if (this.windowsPathsNoEscape) {
|
||||
pattern = pattern.map(p => p.replace(/\\/g, '/'));
|
||||
}
|
||||
|
@ -121,12 +124,9 @@ class Glob {
|
|||
}
|
||||
}
|
||||
else {
|
||||
const Scurry = opts.platform === 'win32'
|
||||
? path_scurry_1.PathScurryWin32
|
||||
: opts.platform === 'darwin'
|
||||
? path_scurry_1.PathScurryDarwin
|
||||
: opts.platform
|
||||
? path_scurry_1.PathScurryPosix
|
||||
const Scurry = opts.platform === 'win32' ? path_scurry_1.PathScurryWin32
|
||||
: opts.platform === 'darwin' ? path_scurry_1.PathScurryDarwin
|
||||
: opts.platform ? path_scurry_1.PathScurryPosix
|
||||
: path_scurry_1.PathScurry;
|
||||
this.scurry = new Scurry(this.cwd, {
|
||||
nocase: opts.nocase,
|
||||
|
@ -178,11 +178,12 @@ class Glob {
|
|||
return [
|
||||
...(await new walker_js_1.GlobWalker(this.patterns, this.scurry.cwd, {
|
||||
...this.opts,
|
||||
maxDepth: this.maxDepth !== Infinity
|
||||
? this.maxDepth + this.scurry.cwd.depth()
|
||||
maxDepth: this.maxDepth !== Infinity ?
|
||||
this.maxDepth + this.scurry.cwd.depth()
|
||||
: Infinity,
|
||||
platform: this.platform,
|
||||
nocase: this.nocase,
|
||||
includeChildMatches: this.includeChildMatches,
|
||||
}).walk()),
|
||||
];
|
||||
}
|
||||
|
@ -190,32 +191,35 @@ class Glob {
|
|||
return [
|
||||
...new walker_js_1.GlobWalker(this.patterns, this.scurry.cwd, {
|
||||
...this.opts,
|
||||
maxDepth: this.maxDepth !== Infinity
|
||||
? this.maxDepth + this.scurry.cwd.depth()
|
||||
maxDepth: this.maxDepth !== Infinity ?
|
||||
this.maxDepth + this.scurry.cwd.depth()
|
||||
: Infinity,
|
||||
platform: this.platform,
|
||||
nocase: this.nocase,
|
||||
includeChildMatches: this.includeChildMatches,
|
||||
}).walkSync(),
|
||||
];
|
||||
}
|
||||
stream() {
|
||||
return new walker_js_1.GlobStream(this.patterns, this.scurry.cwd, {
|
||||
...this.opts,
|
||||
maxDepth: this.maxDepth !== Infinity
|
||||
? this.maxDepth + this.scurry.cwd.depth()
|
||||
maxDepth: this.maxDepth !== Infinity ?
|
||||
this.maxDepth + this.scurry.cwd.depth()
|
||||
: Infinity,
|
||||
platform: this.platform,
|
||||
nocase: this.nocase,
|
||||
includeChildMatches: this.includeChildMatches,
|
||||
}).stream();
|
||||
}
|
||||
streamSync() {
|
||||
return new walker_js_1.GlobStream(this.patterns, this.scurry.cwd, {
|
||||
...this.opts,
|
||||
maxDepth: this.maxDepth !== Infinity
|
||||
? this.maxDepth + this.scurry.cwd.depth()
|
||||
maxDepth: this.maxDepth !== Infinity ?
|
||||
this.maxDepth + this.scurry.cwd.depth()
|
||||
: Infinity,
|
||||
platform: this.platform,
|
||||
nocase: this.nocase,
|
||||
includeChildMatches: this.includeChildMatches,
|
||||
}).streamSync();
|
||||
}
|
||||
/**
|
||||
|
|
2
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/glob.js.map
generated
vendored
Executable file → Normal file
2
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/glob.js.map
generated
vendored
Executable file → Normal file
File diff suppressed because one or more lines are too long
0
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/has-magic.d.ts
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/has-magic.d.ts
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/has-magic.d.ts.map
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/has-magic.d.ts.map
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/has-magic.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/has-magic.js
generated
vendored
Executable file → Normal file
2
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/has-magic.js.map
generated
vendored
Executable file → Normal file
2
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/has-magic.js.map
generated
vendored
Executable file → Normal file
|
@ -1 +1 @@
|
|||
{"version":3,"file":"has-magic.js","sourceRoot":"","sources":["../../src/has-magic.ts"],"names":[],"mappings":";;;AAAA,yCAAqC;AAGrC;;;;;;;;;;GAUG;AACI,MAAM,QAAQ,GAAG,CACtB,OAA0B,EAC1B,UAAuB,EAAE,EAChB,EAAE;IACX,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;QAC3B,OAAO,GAAG,CAAC,OAAO,CAAC,CAAA;KACpB;IACD,KAAK,MAAM,CAAC,IAAI,OAAO,EAAE;QACvB,IAAI,IAAI,qBAAS,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE;YAAE,OAAO,IAAI,CAAA;KACtD;IACD,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AAXY,QAAA,QAAQ,YAWpB","sourcesContent":["import { Minimatch } from 'minimatch'\nimport { GlobOptions } from './glob.js'\n\n/**\n * Return true if the patterns provided contain any magic glob characters,\n * given the options provided.\n *\n * Brace expansion is not considered \"magic\" unless the `magicalBraces` option\n * is set, as brace expansion just turns one string into an array of strings.\n * So a pattern like `'x{a,b}y'` would return `false`, because `'xay'` and\n * `'xby'` both do not contain any magic glob characters, and it's treated the\n * same as if you had called it on `['xay', 'xby']`. When `magicalBraces:true`\n * is in the options, brace expansion _is_ treated as a pattern having magic.\n */\nexport const hasMagic = (\n pattern: string | string[],\n options: GlobOptions = {}\n): boolean => {\n if (!Array.isArray(pattern)) {\n pattern = [pattern]\n }\n for (const p of pattern) {\n if (new Minimatch(p, options).hasMagic()) return true\n }\n return false\n}\n"]}
|
||||
{"version":3,"file":"has-magic.js","sourceRoot":"","sources":["../../src/has-magic.ts"],"names":[],"mappings":";;;AAAA,yCAAqC;AAGrC;;;;;;;;;;GAUG;AACI,MAAM,QAAQ,GAAG,CACtB,OAA0B,EAC1B,UAAuB,EAAE,EAChB,EAAE;IACX,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;QAC5B,OAAO,GAAG,CAAC,OAAO,CAAC,CAAA;IACrB,CAAC;IACD,KAAK,MAAM,CAAC,IAAI,OAAO,EAAE,CAAC;QACxB,IAAI,IAAI,qBAAS,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE;YAAE,OAAO,IAAI,CAAA;IACvD,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AAXY,QAAA,QAAQ,YAWpB","sourcesContent":["import { Minimatch } from 'minimatch'\nimport { GlobOptions } from './glob.js'\n\n/**\n * Return true if the patterns provided contain any magic glob characters,\n * given the options provided.\n *\n * Brace expansion is not considered \"magic\" unless the `magicalBraces` option\n * is set, as brace expansion just turns one string into an array of strings.\n * So a pattern like `'x{a,b}y'` would return `false`, because `'xay'` and\n * `'xby'` both do not contain any magic glob characters, and it's treated the\n * same as if you had called it on `['xay', 'xby']`. When `magicalBraces:true`\n * is in the options, brace expansion _is_ treated as a pattern having magic.\n */\nexport const hasMagic = (\n pattern: string | string[],\n options: GlobOptions = {},\n): boolean => {\n if (!Array.isArray(pattern)) {\n pattern = [pattern]\n }\n for (const p of pattern) {\n if (new Minimatch(p, options).hasMagic()) return true\n }\n return false\n}\n"]}
|
7
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/ignore.d.ts
generated
vendored
Executable file → Normal file
7
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/ignore.d.ts
generated
vendored
Executable file → Normal file
|
@ -1,9 +1,11 @@
|
|||
import { Minimatch } from 'minimatch';
|
||||
/// <reference types="node" />
|
||||
import { Minimatch, MinimatchOptions } from 'minimatch';
|
||||
import { Path } from 'path-scurry';
|
||||
import { GlobWalkerOpts } from './walker.js';
|
||||
export interface IgnoreLike {
|
||||
ignored?: (p: Path) => boolean;
|
||||
childrenIgnored?: (p: Path) => boolean;
|
||||
add?: (ignore: string) => void;
|
||||
}
|
||||
/**
|
||||
* Class used to process ignored patterns
|
||||
|
@ -13,7 +15,10 @@ export declare class Ignore implements IgnoreLike {
|
|||
relativeChildren: Minimatch[];
|
||||
absolute: Minimatch[];
|
||||
absoluteChildren: Minimatch[];
|
||||
platform: NodeJS.Platform;
|
||||
mmopts: MinimatchOptions;
|
||||
constructor(ignored: string[], { nobrace, nocase, noext, noglobstar, platform, }: GlobWalkerOpts);
|
||||
add(ign: string): void;
|
||||
ignored(p: Path): boolean;
|
||||
childrenIgnored(p: Path): boolean;
|
||||
}
|
||||
|
|
2
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/ignore.d.ts.map
generated
vendored
Executable file → Normal file
2
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/ignore.d.ts.map
generated
vendored
Executable file → Normal file
|
@ -1 +1 @@
|
|||
{"version":3,"file":"ignore.d.ts","sourceRoot":"","sources":["../../src/ignore.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAElC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C,MAAM,WAAW,UAAU;IACzB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,KAAK,OAAO,CAAA;IAC9B,eAAe,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,KAAK,OAAO,CAAA;CACvC;AASD;;GAEG;AACH,qBAA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,EAAE,cAAc;IAqBnB,GAAG,CAAC,GAAG,EAAE,MAAM;IAyCf,OAAO,CAAC,CAAC,EAAE,IAAI,GAAG,OAAO;IAczB,eAAe,CAAC,CAAC,EAAE,IAAI,GAAG,OAAO;CAWlC"}
|
63
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/ignore.js
generated
vendored
Executable file → Normal file
63
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/ignore.js
generated
vendored
Executable file → Normal file
|
@ -7,10 +7,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
exports.Ignore = void 0;
|
||||
const minimatch_1 = require("minimatch");
|
||||
const pattern_js_1 = require("./pattern.js");
|
||||
const defaultPlatform = typeof process === 'object' &&
|
||||
const defaultPlatform = (typeof process === 'object' &&
|
||||
process &&
|
||||
typeof process.platform === 'string'
|
||||
? process.platform
|
||||
typeof process.platform === 'string') ?
|
||||
process.platform
|
||||
: 'linux';
|
||||
/**
|
||||
* Class used to process ignored patterns
|
||||
|
@ -20,12 +20,15 @@ class Ignore {
|
|||
relativeChildren;
|
||||
absolute;
|
||||
absoluteChildren;
|
||||
platform;
|
||||
mmopts;
|
||||
constructor(ignored, { nobrace, nocase, noext, noglobstar, platform = defaultPlatform, }) {
|
||||
this.relative = [];
|
||||
this.absolute = [];
|
||||
this.relativeChildren = [];
|
||||
this.absoluteChildren = [];
|
||||
const mmopts = {
|
||||
this.platform = platform;
|
||||
this.mmopts = {
|
||||
dot: true,
|
||||
nobrace,
|
||||
nocase,
|
||||
|
@ -36,6 +39,10 @@ class Ignore {
|
|||
nocomment: true,
|
||||
nonegate: true,
|
||||
};
|
||||
for (const ign of ignored)
|
||||
this.add(ign);
|
||||
}
|
||||
add(ign) {
|
||||
// this is a little weird, but it gives us a clean set of optimized
|
||||
// minimatch matchers, without getting tripped up if one of them
|
||||
// ends in /** inside a brace section, and it's only inefficient at
|
||||
|
@ -48,30 +55,34 @@ class Ignore {
|
|||
// for absolute-ness.
|
||||
// Yet another way, Minimatch could take an array of glob strings, and
|
||||
// a cwd option, and do the right thing.
|
||||
for (const ign of ignored) {
|
||||
const mm = new minimatch_1.Minimatch(ign, mmopts);
|
||||
for (let i = 0; i < mm.set.length; i++) {
|
||||
const parsed = mm.set[i];
|
||||
const globParts = mm.globParts[i];
|
||||
/* c8 ignore start */
|
||||
if (!parsed || !globParts) {
|
||||
throw new Error('invalid pattern object');
|
||||
}
|
||||
/* c8 ignore stop */
|
||||
const p = new pattern_js_1.Pattern(parsed, globParts, 0, platform);
|
||||
const m = new minimatch_1.Minimatch(p.globString(), mmopts);
|
||||
const children = globParts[globParts.length - 1] === '**';
|
||||
const absolute = p.isAbsolute();
|
||||
const mm = new minimatch_1.Minimatch(ign, this.mmopts);
|
||||
for (let i = 0; i < mm.set.length; i++) {
|
||||
const parsed = mm.set[i];
|
||||
const globParts = mm.globParts[i];
|
||||
/* c8 ignore start */
|
||||
if (!parsed || !globParts) {
|
||||
throw new Error('invalid pattern object');
|
||||
}
|
||||
// strip off leading ./ portions
|
||||
// https://github.com/isaacs/node-glob/issues/570
|
||||
while (parsed[0] === '.' && globParts[0] === '.') {
|
||||
parsed.shift();
|
||||
globParts.shift();
|
||||
}
|
||||
/* c8 ignore stop */
|
||||
const p = new pattern_js_1.Pattern(parsed, globParts, 0, this.platform);
|
||||
const m = new minimatch_1.Minimatch(p.globString(), this.mmopts);
|
||||
const children = globParts[globParts.length - 1] === '**';
|
||||
const absolute = p.isAbsolute();
|
||||
if (absolute)
|
||||
this.absolute.push(m);
|
||||
else
|
||||
this.relative.push(m);
|
||||
if (children) {
|
||||
if (absolute)
|
||||
this.absolute.push(m);
|
||||
this.absoluteChildren.push(m);
|
||||
else
|
||||
this.relative.push(m);
|
||||
if (children) {
|
||||
if (absolute)
|
||||
this.absoluteChildren.push(m);
|
||||
else
|
||||
this.relativeChildren.push(m);
|
||||
}
|
||||
this.relativeChildren.push(m);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
2
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/ignore.js.map
generated
vendored
Executable file → Normal file
2
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/ignore.js.map
generated
vendored
Executable file → Normal file
File diff suppressed because one or more lines are too long
15
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/index.d.ts
generated
vendored
Executable file → Normal file
15
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/index.d.ts
generated
vendored
Executable file → Normal file
|
@ -2,6 +2,14 @@ import { Minipass } from 'minipass';
|
|||
import { Path } from 'path-scurry';
|
||||
import type { GlobOptions, GlobOptionsWithFileTypesFalse, GlobOptionsWithFileTypesTrue, GlobOptionsWithFileTypesUnset } from './glob.js';
|
||||
import { Glob } from './glob.js';
|
||||
export { escape, unescape } from 'minimatch';
|
||||
export type { FSOption, Path, WalkOptions, WalkOptionsWithFileTypesTrue, WalkOptionsWithFileTypesUnset, } from 'path-scurry';
|
||||
export { Glob } from './glob.js';
|
||||
export type { GlobOptions, GlobOptionsWithFileTypesFalse, GlobOptionsWithFileTypesTrue, GlobOptionsWithFileTypesUnset, } from './glob.js';
|
||||
export { hasMagic } from './has-magic.js';
|
||||
export { Ignore } from './ignore.js';
|
||||
export type { IgnoreLike } from './ignore.js';
|
||||
export type { MatchStream } from './walker.js';
|
||||
/**
|
||||
* Syncronous form of {@link globStream}. Will read all the matches as fast as
|
||||
* you consume them, even all in a single tick if you consume them immediately,
|
||||
|
@ -62,13 +70,6 @@ export declare const sync: typeof globSync & {
|
|||
stream: typeof globStreamSync;
|
||||
iterate: typeof globIterateSync;
|
||||
};
|
||||
export { escape, unescape } from 'minimatch';
|
||||
export { Glob } from './glob.js';
|
||||
export type { GlobOptions, GlobOptionsWithFileTypesFalse, GlobOptionsWithFileTypesTrue, GlobOptionsWithFileTypesUnset, } from './glob.js';
|
||||
export { hasMagic } from './has-magic.js';
|
||||
export type { IgnoreLike } from './ignore.js';
|
||||
export type { MatchStream } from './walker.js';
|
||||
export type { Path, WalkOptionsWithFileTypesTrue, WalkOptionsWithFileTypesUnset, WalkOptions, FSOption, } from 'path-scurry';
|
||||
export declare const glob: typeof glob_ & {
|
||||
glob: typeof glob_;
|
||||
globSync: typeof globSync;
|
||||
|
|
2
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/index.d.ts.map
generated
vendored
Executable file → Normal file
2
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/index.d.ts.map
generated
vendored
Executable file → Normal file
|
@ -1 +1 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,KAAK,EACV,WAAW,EACX,6BAA6B,EAC7B,4BAA4B,EAC5B,6BAA6B,EAC9B,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAGhC;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,EAC1B,OAAO,EAAE,4BAA4B,GACpC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;AACvB,wBAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,EAC1B,OAAO,EAAE,6BAA6B,GACrC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;AAC3B,wBAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,EAC1B,OAAO,EAAE,6BAA6B,GACrC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;AAC3B,wBAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,EAC1B,OAAO,EAAE,WAAW,GACnB,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,QAAQ,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}
|
20
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/index.js
generated
vendored
Executable file → Normal file
20
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/index.js
generated
vendored
Executable file → Normal file
|
@ -1,9 +1,18 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.glob = exports.hasMagic = exports.Glob = exports.unescape = exports.escape = exports.sync = exports.iterate = exports.iterateSync = exports.stream = exports.streamSync = exports.globIterate = exports.globIterateSync = exports.globSync = exports.globStream = exports.globStreamSync = void 0;
|
||||
exports.glob = exports.sync = exports.iterate = exports.iterateSync = exports.stream = exports.streamSync = exports.globIterate = exports.globIterateSync = exports.globSync = exports.globStream = exports.globStreamSync = exports.Ignore = exports.hasMagic = exports.Glob = exports.unescape = exports.escape = void 0;
|
||||
const minimatch_1 = require("minimatch");
|
||||
const glob_js_1 = require("./glob.js");
|
||||
const has_magic_js_1 = require("./has-magic.js");
|
||||
var minimatch_2 = require("minimatch");
|
||||
Object.defineProperty(exports, "escape", { enumerable: true, get: function () { return minimatch_2.escape; } });
|
||||
Object.defineProperty(exports, "unescape", { enumerable: true, get: function () { return minimatch_2.unescape; } });
|
||||
var glob_js_2 = require("./glob.js");
|
||||
Object.defineProperty(exports, "Glob", { enumerable: true, get: function () { return glob_js_2.Glob; } });
|
||||
var has_magic_js_2 = require("./has-magic.js");
|
||||
Object.defineProperty(exports, "hasMagic", { enumerable: true, get: function () { return has_magic_js_2.hasMagic; } });
|
||||
var ignore_js_1 = require("./ignore.js");
|
||||
Object.defineProperty(exports, "Ignore", { enumerable: true, get: function () { return ignore_js_1.Ignore; } });
|
||||
function globStreamSync(pattern, options = {}) {
|
||||
return new glob_js_1.Glob(pattern, options).streamSync();
|
||||
}
|
||||
|
@ -38,15 +47,6 @@ exports.sync = Object.assign(globSync, {
|
|||
stream: globStreamSync,
|
||||
iterate: globIterateSync,
|
||||
});
|
||||
/* c8 ignore start */
|
||||
var minimatch_2 = require("minimatch");
|
||||
Object.defineProperty(exports, "escape", { enumerable: true, get: function () { return minimatch_2.escape; } });
|
||||
Object.defineProperty(exports, "unescape", { enumerable: true, get: function () { return minimatch_2.unescape; } });
|
||||
var glob_js_2 = require("./glob.js");
|
||||
Object.defineProperty(exports, "Glob", { enumerable: true, get: function () { return glob_js_2.Glob; } });
|
||||
var has_magic_js_2 = require("./has-magic.js");
|
||||
Object.defineProperty(exports, "hasMagic", { enumerable: true, get: function () { return has_magic_js_2.hasMagic; } });
|
||||
/* c8 ignore stop */
|
||||
exports.glob = Object.assign(glob_, {
|
||||
glob: glob_,
|
||||
globSync,
|
||||
|
|
2
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/index.js.map
generated
vendored
Executable file → Normal file
2
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/index.js.map
generated
vendored
Executable file → Normal file
File diff suppressed because one or more lines are too long
4
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/package.json
generated
vendored
Executable file → Normal file
4
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/package.json
generated
vendored
Executable file → Normal file
|
@ -1 +1,3 @@
|
|||
{"type":"commonjs"}
|
||||
{
|
||||
"type": "commonjs"
|
||||
}
|
||||
|
|
0
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/pattern.d.ts
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/pattern.d.ts
generated
vendored
Executable file → Normal file
2
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/pattern.d.ts.map
generated
vendored
Executable file → Normal file
2
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/pattern.d.ts.map
generated
vendored
Executable file → Normal file
|
@ -1 +1 @@
|
|||
{"version":3,"file":"pattern.d.ts","sourceRoot":"","sources":["../../src/pattern.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAA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;IACH,UAAU,IAAI,OAAO;IAGrB;;OAEG;IACH,QAAQ,IAAI,OAAO;IAInB;;OAEG;IACH,UAAU,IAAI,MAAM;IAUpB;;OAEG;IACH,OAAO,IAAI,OAAO;IAIlB;;OAEG;IACH,IAAI,IAAI,OAAO,GAAG,IAAI;IAetB;;OAEG;IACH,KAAK,IAAI,OAAO;IAoBhB;;OAEG;IACH,OAAO,IAAI,OAAO;IAelB;;OAEG;IACH,UAAU,IAAI,OAAO;IAUrB;;OAEG;IACH,IAAI,IAAI,MAAM;IASd;;;OAGG;IACH,mBAAmB,IAAI,OAAO;IAQ9B;;OAEG;IACH,kBAAkB,IAAI,OAAO;CAM9B"}
|
22
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/pattern.js
generated
vendored
Executable file → Normal file
22
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/pattern.js
generated
vendored
Executable file → Normal file
|
@ -110,9 +110,9 @@ class Pattern {
|
|||
globString() {
|
||||
return (this.#globString =
|
||||
this.#globString ||
|
||||
(this.#index === 0
|
||||
? this.isAbsolute()
|
||||
? this.#globList[0] + this.#globList.slice(1).join('/')
|
||||
(this.#index === 0 ?
|
||||
this.isAbsolute() ?
|
||||
this.#globList[0] + this.#globList.slice(1).join('/')
|
||||
: this.#globList.join('/')
|
||||
: this.#globList.slice(this.#index).join('/')));
|
||||
}
|
||||
|
@ -141,8 +141,8 @@ class Pattern {
|
|||
*/
|
||||
isUNC() {
|
||||
const pl = this.#patternList;
|
||||
return this.#isUNC !== undefined
|
||||
? this.#isUNC
|
||||
return this.#isUNC !== undefined ?
|
||||
this.#isUNC
|
||||
: (this.#isUNC =
|
||||
this.#platform === 'win32' &&
|
||||
this.#index === 0 &&
|
||||
|
@ -163,8 +163,8 @@ class Pattern {
|
|||
*/
|
||||
isDrive() {
|
||||
const pl = this.#patternList;
|
||||
return this.#isDrive !== undefined
|
||||
? this.#isDrive
|
||||
return this.#isDrive !== undefined ?
|
||||
this.#isDrive
|
||||
: (this.#isDrive =
|
||||
this.#platform === 'win32' &&
|
||||
this.#index === 0 &&
|
||||
|
@ -180,8 +180,8 @@ class Pattern {
|
|||
*/
|
||||
isAbsolute() {
|
||||
const pl = this.#patternList;
|
||||
return this.#isAbsolute !== undefined
|
||||
? this.#isAbsolute
|
||||
return this.#isAbsolute !== undefined ?
|
||||
this.#isAbsolute
|
||||
: (this.#isAbsolute =
|
||||
(pl[0] === '' && pl.length > 1) ||
|
||||
this.isDrive() ||
|
||||
|
@ -192,8 +192,8 @@ class Pattern {
|
|||
*/
|
||||
root() {
|
||||
const p = this.#patternList[0];
|
||||
return typeof p === 'string' && this.isAbsolute() && this.#index === 0
|
||||
? p
|
||||
return (typeof p === 'string' && this.isAbsolute() && this.#index === 0) ?
|
||||
p
|
||||
: '';
|
||||
}
|
||||
/**
|
||||
|
|
2
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/pattern.js.map
generated
vendored
Executable file → Normal file
2
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/pattern.js.map
generated
vendored
Executable file → Normal file
File diff suppressed because one or more lines are too long
0
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/processor.d.ts
generated
vendored
Executable file → Normal file
0
my-app/node_modules/@npmcli/package-json/node_modules/glob/dist/commonjs/processor.d.ts
generated
vendored
Executable file → Normal file
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue