@ekanos/cli 0.33.1 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agents-api.d.ts +0 -24
- package/dist/agents-api.js.map +1 -1
- package/dist/apps-api.d.ts +0 -14
- package/dist/apps-api.js.map +1 -1
- package/dist/auth/credential-store.d.ts +0 -60
- package/dist/auth/credential-store.js +2 -72
- package/dist/auth/credential-store.js.map +1 -1
- package/dist/auth/device-flow.d.ts +0 -35
- package/dist/auth/device-flow.js +0 -45
- package/dist/auth/device-flow.js.map +1 -1
- package/dist/auth/ekanos-api.d.ts +0 -54
- package/dist/auth/ekanos-api.js +2 -174
- package/dist/auth/ekanos-api.js.map +1 -1
- package/dist/auth/host-trust.d.ts +0 -35
- package/dist/auth/host-trust.js +2 -34
- package/dist/auth/host-trust.js.map +1 -1
- package/dist/auth/session.d.ts +0 -63
- package/dist/auth/session.js +0 -68
- package/dist/auth/session.js.map +1 -1
- package/dist/banner.d.ts +0 -22
- package/dist/banner.js +0 -25
- package/dist/banner.js.map +1 -1
- package/dist/bin.js +0 -15
- package/dist/bin.js.map +1 -1
- package/dist/catalog-api.d.ts +0 -23
- package/dist/catalog-api.js +0 -6
- package/dist/catalog-api.js.map +1 -1
- package/dist/claude-docs.d.ts +1 -23
- package/dist/claude-docs.js +0 -8
- package/dist/claude-docs.js.map +1 -1
- package/dist/commands/add.js +0 -1
- package/dist/commands/add.js.map +1 -1
- package/dist/commands/agents-edit.d.ts +1 -19
- package/dist/commands/agents-edit.js +2 -10
- package/dist/commands/agents-edit.js.map +1 -1
- package/dist/commands/agents-init.d.ts +0 -21
- package/dist/commands/agents-init.js +3 -16
- package/dist/commands/agents-init.js.map +1 -1
- package/dist/commands/agents.d.ts +0 -40
- package/dist/commands/agents.js +3 -50
- package/dist/commands/agents.js.map +1 -1
- package/dist/commands/apps.d.ts +0 -43
- package/dist/commands/apps.js +4 -59
- package/dist/commands/apps.js.map +1 -1
- package/dist/commands/audiences.d.ts +0 -21
- package/dist/commands/audiences.js +0 -21
- package/dist/commands/audiences.js.map +1 -1
- package/dist/commands/catalog.d.ts +0 -15
- package/dist/commands/catalog.js +0 -34
- package/dist/commands/catalog.js.map +1 -1
- package/dist/commands/contract.d.ts +0 -16
- package/dist/commands/contract.js +1 -9
- package/dist/commands/contract.js.map +1 -1
- package/dist/commands/dev.d.ts +0 -36
- package/dist/commands/dev.js +1 -95
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/doctor.d.ts +0 -18
- package/dist/commands/doctor.js +0 -20
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/feedback.d.ts +0 -17
- package/dist/commands/feedback.js +0 -22
- package/dist/commands/feedback.js.map +1 -1
- package/dist/commands/index-experience.d.ts +2 -13
- package/dist/commands/index-experience.js +0 -4
- package/dist/commands/index-experience.js.map +1 -1
- package/dist/commands/init.d.ts +0 -85
- package/dist/commands/init.js +1 -124
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/knowledge.d.ts +0 -37
- package/dist/commands/knowledge.js +4 -42
- package/dist/commands/knowledge.js.map +1 -1
- package/dist/commands/login.d.ts +0 -31
- package/dist/commands/login.js +1 -49
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/logout.d.ts +0 -21
- package/dist/commands/logout.js +0 -40
- package/dist/commands/logout.js.map +1 -1
- package/dist/commands/names.d.ts +0 -8
- package/dist/commands/names.js +1 -7
- package/dist/commands/names.js.map +1 -1
- package/dist/commands/publish.d.ts +1 -130
- package/dist/commands/publish.js +2 -187
- package/dist/commands/publish.js.map +1 -1
- package/dist/commands/reviewers.d.ts +0 -10
- package/dist/commands/reviewers.js +1 -8
- package/dist/commands/reviewers.js.map +1 -1
- package/dist/commands/routes.d.ts +0 -12
- package/dist/commands/routes.js +1 -11
- package/dist/commands/routes.js.map +1 -1
- package/dist/commands/runs.d.ts +0 -30
- package/dist/commands/runs.js +2 -46
- package/dist/commands/runs.js.map +1 -1
- package/dist/commands/scope-notice.d.ts +0 -16
- package/dist/commands/scope-notice.js +0 -18
- package/dist/commands/scope-notice.js.map +1 -1
- package/dist/commands/skills.d.ts +0 -22
- package/dist/commands/skills.js +3 -28
- package/dist/commands/skills.js.map +1 -1
- package/dist/commands/sources-roles.js +0 -17
- package/dist/commands/sources-roles.js.map +1 -1
- package/dist/commands/sources.d.ts +0 -19
- package/dist/commands/sources.js +0 -38
- package/dist/commands/sources.js.map +1 -1
- package/dist/commands/status.d.ts +2 -102
- package/dist/commands/status.js +50 -171
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/sync.js +0 -10
- package/dist/commands/sync.js.map +1 -1
- package/dist/commands/team-agent-access.d.ts +2 -16
- package/dist/commands/team-agent-access.js +18 -19
- package/dist/commands/team-agent-access.js.map +1 -1
- package/dist/commands/team-agent-readiness.d.ts +2 -38
- package/dist/commands/team-agent-readiness.js +1 -27
- package/dist/commands/team-agent-readiness.js.map +1 -1
- package/dist/commands/team-agents-agents.d.ts +0 -29
- package/dist/commands/team-agents-agents.js +8 -73
- package/dist/commands/team-agents-agents.js.map +1 -1
- package/dist/commands/team-agents-define.d.ts +0 -27
- package/dist/commands/team-agents-define.js +1 -29
- package/dist/commands/team-agents-define.js.map +1 -1
- package/dist/commands/team-agents-mcp.js +0 -26
- package/dist/commands/team-agents-mcp.js.map +1 -1
- package/dist/commands/team-agents-triggers.d.ts +0 -7
- package/dist/commands/team-agents-triggers.js +0 -45
- package/dist/commands/team-agents-triggers.js.map +1 -1
- package/dist/commands/team-agents.d.ts +0 -17
- package/dist/commands/team-agents.js +0 -16
- package/dist/commands/team-agents.js.map +1 -1
- package/dist/commands/team-llm-key.d.ts +0 -10
- package/dist/commands/team-llm-key.js +0 -12
- package/dist/commands/team-llm-key.js.map +1 -1
- package/dist/commands/teams-audience.d.ts +0 -17
- package/dist/commands/teams-audience.js +1 -22
- package/dist/commands/teams-audience.js.map +1 -1
- package/dist/commands/teams-channel-install.d.ts +0 -13
- package/dist/commands/teams-channel-install.js +0 -13
- package/dist/commands/teams-channel-install.js.map +1 -1
- package/dist/commands/teams-connect.d.ts +0 -60
- package/dist/commands/teams-connect.js +1 -86
- package/dist/commands/teams-connect.js.map +1 -1
- package/dist/commands/teams-events.d.ts +0 -7
- package/dist/commands/teams-events.js +0 -8
- package/dist/commands/teams-events.js.map +1 -1
- package/dist/commands/teams-lifecycle.d.ts +0 -25
- package/dist/commands/teams-lifecycle.js +1 -24
- package/dist/commands/teams-lifecycle.js.map +1 -1
- package/dist/commands/teams-onboard.d.ts +0 -10
- package/dist/commands/teams-onboard.js +0 -7
- package/dist/commands/teams-onboard.js.map +1 -1
- package/dist/commands/teams-overview.d.ts +0 -7
- package/dist/commands/teams-overview.js +0 -15
- package/dist/commands/teams-overview.js.map +1 -1
- package/dist/commands/teams-scope.d.ts +0 -6
- package/dist/commands/teams-scope.js +0 -6
- package/dist/commands/teams-scope.js.map +1 -1
- package/dist/commands/teams.d.ts +0 -49
- package/dist/commands/teams.js +3 -48
- package/dist/commands/teams.js.map +1 -1
- package/dist/commands/test.d.ts +0 -29
- package/dist/commands/test.js +1 -41
- package/dist/commands/test.js.map +1 -1
- package/dist/commands/upgrade.d.ts +0 -17
- package/dist/commands/upgrade.js +3 -142
- package/dist/commands/upgrade.js.map +1 -1
- package/dist/commands/use.d.ts +0 -12
- package/dist/commands/use.js +0 -12
- package/dist/commands/use.js.map +1 -1
- package/dist/commands/validate.d.ts +0 -15
- package/dist/commands/validate.js +0 -41
- package/dist/commands/validate.js.map +1 -1
- package/dist/commands/whoami.d.ts +0 -18
- package/dist/commands/whoami.js +0 -17
- package/dist/commands/whoami.js.map +1 -1
- package/dist/commands/workflows.d.ts +0 -11
- package/dist/commands/workflows.js +2 -14
- package/dist/commands/workflows.js.map +1 -1
- package/dist/compatibility.d.ts +0 -108
- package/dist/compatibility.js +0 -109
- package/dist/compatibility.js.map +1 -1
- package/dist/connect-fields.d.ts +0 -19
- package/dist/connect-fields.js +0 -21
- package/dist/connect-fields.js.map +1 -1
- package/dist/connections-api.d.ts +4 -7
- package/dist/connections-api.js +1 -14
- package/dist/connections-api.js.map +1 -1
- package/dist/context.d.ts +0 -80
- package/dist/context.js +0 -71
- package/dist/context.js.map +1 -1
- package/dist/contract-verification.d.ts +0 -10
- package/dist/contract-verification.js +0 -10
- package/dist/contract-verification.js.map +1 -1
- package/dist/contracts-api.d.ts +0 -16
- package/dist/contracts-api.js.map +1 -1
- package/dist/copy-tree.d.ts +0 -38
- package/dist/copy-tree.js +0 -17
- package/dist/copy-tree.js.map +1 -1
- package/dist/delegate.d.ts +0 -18
- package/dist/delegate.js +0 -59
- package/dist/delegate.js.map +1 -1
- package/dist/design-findings.d.ts +0 -20
- package/dist/design-findings.js +0 -20
- package/dist/design-findings.js.map +1 -1
- package/dist/dev-experience.d.ts +0 -36
- package/dist/dev-experience.js +1 -30
- package/dist/dev-experience.js.map +1 -1
- package/dist/did-you-mean.d.ts +0 -32
- package/dist/did-you-mean.js +1 -53
- package/dist/did-you-mean.js.map +1 -1
- package/dist/docs-links.d.ts +0 -15
- package/dist/docs-links.js +0 -15
- package/dist/docs-links.js.map +1 -1
- package/dist/doctor-api.d.ts +0 -22
- package/dist/doctor-api.js +0 -2
- package/dist/doctor-api.js.map +1 -1
- package/dist/errors.d.ts +0 -23
- package/dist/errors.js +0 -22
- package/dist/errors.js.map +1 -1
- package/dist/exit-codes.d.ts +0 -12
- package/dist/exit-codes.js +0 -12
- package/dist/exit-codes.js.map +1 -1
- package/dist/experience/boundary.d.ts +0 -9
- package/dist/experience/boundary.js +4 -15
- package/dist/experience/boundary.js.map +1 -1
- package/dist/experience/build.d.ts +0 -9
- package/dist/experience/build.js +5 -14
- package/dist/experience/build.js.map +1 -1
- package/dist/experience/checks.d.ts +0 -11
- package/dist/experience/checks.js +3 -9
- package/dist/experience/checks.js.map +1 -1
- package/dist/experience/clean-room.d.ts +5 -29
- package/dist/experience/clean-room.js +19 -45
- package/dist/experience/clean-room.js.map +1 -1
- package/dist/experience/contract-sources.d.ts +1 -23
- package/dist/experience/contract-sources.js +5 -15
- package/dist/experience/contract-sources.js.map +1 -1
- package/dist/experience/definition-checks.d.ts +0 -22
- package/dist/experience/definition-checks.js +2 -27
- package/dist/experience/definition-checks.js.map +1 -1
- package/dist/experience/definition-shape.d.ts +3 -11
- package/dist/experience/definition-shape.js.map +1 -1
- package/dist/experience/host-contract-source.d.ts +0 -17
- package/dist/experience/host-contract-source.js +0 -16
- package/dist/experience/host-contract-source.js.map +1 -1
- package/dist/experience/host-npm.d.ts +12 -0
- package/dist/experience/host-npm.js +40 -0
- package/dist/experience/host-npm.js.map +1 -0
- package/dist/experience/init.d.ts +0 -1
- package/dist/experience/init.js +0 -3
- package/dist/experience/init.js.map +1 -1
- package/dist/experience/integrations-codegen.d.ts +0 -8
- package/dist/experience/integrations-codegen.js +1 -7
- package/dist/experience/integrations-codegen.js.map +1 -1
- package/dist/experience/json-schema-to-ts.js.map +1 -1
- package/dist/experience/load-experience.d.ts +0 -11
- package/dist/experience/load-experience.js +0 -22
- package/dist/experience/load-experience.js.map +1 -1
- package/dist/experience/overrides.d.ts +0 -6
- package/dist/experience/overrides.js +0 -6
- package/dist/experience/overrides.js.map +1 -1
- package/dist/experience/pin-integration.d.ts +0 -2
- package/dist/experience/pin-integration.js +0 -3
- package/dist/experience/pin-integration.js.map +1 -1
- package/dist/experience/pin-ops.d.ts +1 -9
- package/dist/experience/pin-ops.js +0 -7
- package/dist/experience/pin-ops.js.map +1 -1
- package/dist/experience/pins.d.ts +0 -23
- package/dist/experience/pins.js +2 -18
- package/dist/experience/pins.js.map +1 -1
- package/dist/experience/project.d.ts +0 -30
- package/dist/experience/project.js +4 -33
- package/dist/experience/project.js.map +1 -1
- package/dist/experience/publish.d.ts +0 -47
- package/dist/experience/publish.js +20 -61
- package/dist/experience/publish.js.map +1 -1
- package/dist/experience/regenerate.d.ts +0 -3
- package/dist/experience/regenerate.js +1 -5
- package/dist/experience/regenerate.js.map +1 -1
- package/dist/experience/report.d.ts +0 -5
- package/dist/experience/report.js +0 -5
- package/dist/experience/report.js.map +1 -1
- package/dist/feedback-api.d.ts +0 -20
- package/dist/feedback-api.js +0 -5
- package/dist/feedback-api.js.map +1 -1
- package/dist/feedback-context.d.ts +0 -19
- package/dist/feedback-context.js +2 -37
- package/dist/feedback-context.js.map +1 -1
- package/dist/feedback-updates.d.ts +0 -4
- package/dist/feedback-updates.js +5 -34
- package/dist/feedback-updates.js.map +1 -1
- package/dist/findings-renderer.d.ts +0 -37
- package/dist/findings-renderer.js +0 -49
- package/dist/findings-renderer.js.map +1 -1
- package/dist/harness-scaffold.d.ts +3 -212
- package/dist/harness-scaffold.js +11 -230
- package/dist/harness-scaffold.js.map +1 -1
- package/dist/host-snapshots.d.ts +0 -36
- package/dist/host-snapshots.js +1 -41
- package/dist/host-snapshots.js.map +1 -1
- package/dist/http-trace.d.ts +0 -10
- package/dist/http-trace.js +0 -11
- package/dist/http-trace.js.map +1 -1
- package/dist/icon-findings.d.ts +0 -16
- package/dist/icon-findings.js +0 -28
- package/dist/icon-findings.js.map +1 -1
- package/dist/index.d.ts +0 -46
- package/dist/index.js +17 -146
- package/dist/index.js.map +1 -1
- package/dist/invocation.d.ts +0 -26
- package/dist/invocation.js +0 -27
- package/dist/invocation.js.map +1 -1
- package/dist/knowledge-api.d.ts +0 -29
- package/dist/knowledge-api.js +0 -30
- package/dist/knowledge-api.js.map +1 -1
- package/dist/last-error.d.ts +0 -3
- package/dist/last-error.js +1 -16
- package/dist/last-error.js.map +1 -1
- package/dist/load-definition.d.ts +0 -10
- package/dist/load-definition.js +0 -29
- package/dist/load-definition.js.map +1 -1
- package/dist/lockfile-instances.d.ts +6 -41
- package/dist/lockfile-instances.js +3 -32
- package/dist/lockfile-instances.js.map +1 -1
- package/dist/merge-manifest.d.ts +0 -27
- package/dist/merge-manifest.js +0 -47
- package/dist/merge-manifest.js.map +1 -1
- package/dist/names-api.d.ts +4 -30
- package/dist/names-api.js +3 -3
- package/dist/names-api.js.map +1 -1
- package/dist/open-url.d.ts +0 -12
- package/dist/open-url.js +1 -27
- package/dist/open-url.js.map +1 -1
- package/dist/pack-hygiene.d.ts +0 -6
- package/dist/pack-hygiene.js +0 -8
- package/dist/pack-hygiene.js.map +1 -1
- package/dist/pack.d.ts +0 -7
- package/dist/pack.js +6 -79
- package/dist/pack.js.map +1 -1
- package/dist/package-manager.d.ts +2 -50
- package/dist/package-manager.js +0 -48
- package/dist/package-manager.js.map +1 -1
- package/dist/parse-argv.d.ts +2 -21
- package/dist/parse-argv.js +0 -7
- package/dist/parse-argv.js.map +1 -1
- package/dist/pnpm-builds.d.ts +0 -32
- package/dist/pnpm-builds.js +0 -45
- package/dist/pnpm-builds.js.map +1 -1
- package/dist/product-kinds.d.ts +0 -7
- package/dist/product-kinds.js +0 -7
- package/dist/product-kinds.js.map +1 -1
- package/dist/product-slug.d.ts +0 -6
- package/dist/product-slug.js +0 -6
- package/dist/product-slug.js.map +1 -1
- package/dist/project-checks.d.ts +0 -80
- package/dist/project-checks.js +2 -104
- package/dist/project-checks.js.map +1 -1
- package/dist/project.d.ts +1 -46
- package/dist/project.js +1 -122
- package/dist/project.js.map +1 -1
- package/dist/publish-api.d.ts +2 -120
- package/dist/publish-api.js +1 -95
- package/dist/publish-api.js.map +1 -1
- package/dist/pull-write.d.ts +0 -15
- package/dist/pull-write.js +0 -5
- package/dist/pull-write.js.map +1 -1
- package/dist/repo/publish.d.ts +0 -34
- package/dist/repo/publish.js +1 -18
- package/dist/repo/publish.js.map +1 -1
- package/dist/repo/scaffold.d.ts +0 -9
- package/dist/repo/scaffold.js +2 -14
- package/dist/repo/scaffold.js.map +1 -1
- package/dist/reviewers-api.d.ts +0 -16
- package/dist/reviewers-api.js.map +1 -1
- package/dist/routes-api.d.ts +0 -10
- package/dist/routes-api.js +0 -24
- package/dist/routes-api.js.map +1 -1
- package/dist/runs-api.d.ts +0 -11
- package/dist/runs-api.js.map +1 -1
- package/dist/safe-fs.d.ts +0 -57
- package/dist/safe-fs.js +0 -61
- package/dist/safe-fs.js.map +1 -1
- package/dist/schema-skew.d.ts +0 -68
- package/dist/schema-skew.js +2 -75
- package/dist/schema-skew.js.map +1 -1
- package/dist/seats.d.ts +1 -11
- package/dist/seats.js.map +1 -1
- package/dist/secret-file.d.ts +0 -8
- package/dist/secret-file.js +1 -17
- package/dist/secret-file.js.map +1 -1
- package/dist/secret-form.d.ts +1 -37
- package/dist/secret-form.js +7 -10
- package/dist/secret-form.js.map +1 -1
- package/dist/secret-input.d.ts +0 -59
- package/dist/secret-input.js +2 -20
- package/dist/secret-input.js.map +1 -1
- package/dist/setup-api.d.ts +8 -0
- package/dist/setup-api.js +25 -0
- package/dist/setup-api.js.map +1 -0
- package/dist/skills-api.d.ts +0 -21
- package/dist/skills-api.js +0 -1
- package/dist/skills-api.js.map +1 -1
- package/dist/source-locator.d.ts +0 -50
- package/dist/source-locator.js +0 -77
- package/dist/source-locator.js.map +1 -1
- package/dist/source-products-api.d.ts +2 -1
- package/dist/source-products-api.js +1 -25
- package/dist/source-products-api.js.map +1 -1
- package/dist/source-target.d.ts +0 -6
- package/dist/source-target.js +0 -6
- package/dist/source-target.js.map +1 -1
- package/dist/sources-api.d.ts +1 -31
- package/dist/sources-api.js +0 -6
- package/dist/sources-api.js.map +1 -1
- package/dist/team-connect-api.d.ts +1 -20
- package/dist/team-connect-api.js +1 -32
- package/dist/team-connect-api.js.map +1 -1
- package/dist/team-lifecycle-api.d.ts +3 -4
- package/dist/team-lifecycle-api.js +3 -26
- package/dist/team-lifecycle-api.js.map +1 -1
- package/dist/teams-api.d.ts +0 -50
- package/dist/teams-api.js +2 -12
- package/dist/teams-api.js.map +1 -1
- package/dist/templates.d.ts +0 -18
- package/dist/templates.js +0 -18
- package/dist/templates.js.map +1 -1
- package/dist/test-report.d.ts +2 -18
- package/dist/test-report.js +1 -85
- package/dist/test-report.js.map +1 -1
- package/dist/toolchain-api.d.ts +4 -60
- package/dist/toolchain-api.js +5 -6
- package/dist/toolchain-api.js.map +1 -1
- package/dist/toolchain-resolve.d.ts +0 -3
- package/dist/toolchain-resolve.js +0 -27
- package/dist/toolchain-resolve.js.map +1 -1
- package/dist/toolchain-snapshot.d.ts +0 -16
- package/dist/toolchain-snapshot.js +0 -20
- package/dist/toolchain-snapshot.js.map +1 -1
- package/dist/toolchain.d.ts +0 -9
- package/dist/toolchain.js +0 -16
- package/dist/toolchain.js.map +1 -1
- package/dist/ui.d.ts +6 -62
- package/dist/ui.js +0 -23
- package/dist/ui.js.map +1 -1
- package/dist/unknown-command.d.ts +0 -13
- package/dist/unknown-command.js +0 -14
- package/dist/unknown-command.js.map +1 -1
- package/dist/update-notice.d.ts +0 -26
- package/dist/update-notice.js +1 -74
- package/dist/update-notice.js.map +1 -1
- package/dist/validate-findings.d.ts +0 -39
- package/dist/validate-findings.js +0 -56
- package/dist/validate-findings.js.map +1 -1
- package/dist/wizard.d.ts +2 -63
- package/dist/wizard.js +0 -38
- package/dist/wizard.js.map +1 -1
- package/dist/workflows-api.d.ts +1 -19
- package/dist/workflows-api.js.map +1 -1
- package/dist/workspace-root.d.ts +0 -15
- package/dist/workspace-root.js +1 -17
- package/dist/workspace-root.js.map +1 -1
- package/node_modules/@gar/promise-retry/LICENSE +20 -0
- package/node_modules/@gar/promise-retry/lib/index.js +62 -0
- package/node_modules/@gar/promise-retry/lib/retry.js +109 -0
- package/node_modules/@gar/promise-retry/package.json +45 -0
- package/node_modules/@isaacs/fs-minipass/LICENSE +15 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +430 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +3 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.js +420 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/package.json +3 -0
- package/node_modules/@isaacs/fs-minipass/package.json +72 -0
- package/node_modules/@isaacs/string-locale-compare/LICENSE +15 -0
- package/node_modules/@isaacs/string-locale-compare/index.js +42 -0
- package/node_modules/@isaacs/string-locale-compare/package.json +28 -0
- package/node_modules/@npmcli/agent/lib/agents.js +258 -0
- package/node_modules/@npmcli/agent/lib/dns.js +53 -0
- package/node_modules/@npmcli/agent/lib/errors.js +61 -0
- package/node_modules/@npmcli/agent/lib/index.js +56 -0
- package/node_modules/@npmcli/agent/lib/options.js +90 -0
- package/node_modules/@npmcli/agent/lib/proxy.js +88 -0
- package/node_modules/@npmcli/agent/package.json +62 -0
- package/node_modules/@npmcli/arborist/LICENSE.md +20 -0
- package/node_modules/@npmcli/arborist/README.md +315 -0
- package/node_modules/@npmcli/arborist/bin/actual.js +19 -0
- package/node_modules/@npmcli/arborist/bin/audit.js +51 -0
- package/node_modules/@npmcli/arborist/bin/funding.js +38 -0
- package/node_modules/@npmcli/arborist/bin/ideal.js +14 -0
- package/node_modules/@npmcli/arborist/bin/index.js +112 -0
- package/node_modules/@npmcli/arborist/bin/lib/logging.js +77 -0
- package/node_modules/@npmcli/arborist/bin/lib/options.js +123 -0
- package/node_modules/@npmcli/arborist/bin/lib/print-tree.js +4 -0
- package/node_modules/@npmcli/arborist/bin/lib/timers.js +33 -0
- package/node_modules/@npmcli/arborist/bin/license.js +48 -0
- package/node_modules/@npmcli/arborist/bin/prune.js +48 -0
- package/node_modules/@npmcli/arborist/bin/reify.js +48 -0
- package/node_modules/@npmcli/arborist/bin/shrinkwrap.js +7 -0
- package/node_modules/@npmcli/arborist/bin/virtual.js +14 -0
- package/node_modules/@npmcli/arborist/lib/add-rm-pkg-deps.js +143 -0
- package/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js +1706 -0
- package/node_modules/@npmcli/arborist/lib/arborist/index.js +322 -0
- package/node_modules/@npmcli/arborist/lib/arborist/isolated-reifier.js +513 -0
- package/node_modules/@npmcli/arborist/lib/arborist/load-actual.js +491 -0
- package/node_modules/@npmcli/arborist/lib/arborist/load-virtual.js +311 -0
- package/node_modules/@npmcli/arborist/lib/arborist/rebuild.js +426 -0
- package/node_modules/@npmcli/arborist/lib/arborist/reify.js +2023 -0
- package/node_modules/@npmcli/arborist/lib/audit-report.js +389 -0
- package/node_modules/@npmcli/arborist/lib/calc-dep-flags.js +123 -0
- package/node_modules/@npmcli/arborist/lib/can-place-dep.js +449 -0
- package/node_modules/@npmcli/arborist/lib/case-insensitive-map.js +50 -0
- package/node_modules/@npmcli/arborist/lib/consistent-resolve.js +44 -0
- package/node_modules/@npmcli/arborist/lib/debug.js +32 -0
- package/node_modules/@npmcli/arborist/lib/deepest-nesting-target.js +18 -0
- package/node_modules/@npmcli/arborist/lib/dep-valid.js +179 -0
- package/node_modules/@npmcli/arborist/lib/diff.js +330 -0
- package/node_modules/@npmcli/arborist/lib/edge.js +364 -0
- package/node_modules/@npmcli/arborist/lib/from-path.js +30 -0
- package/node_modules/@npmcli/arborist/lib/gather-dep-set.js +43 -0
- package/node_modules/@npmcli/arborist/lib/index.js +6 -0
- package/node_modules/@npmcli/arborist/lib/install-scripts.js +114 -0
- package/node_modules/@npmcli/arborist/lib/inventory.js +137 -0
- package/node_modules/@npmcli/arborist/lib/isolated-classes.js +148 -0
- package/node_modules/@npmcli/arborist/lib/link.js +162 -0
- package/node_modules/@npmcli/arborist/lib/node.js +1632 -0
- package/node_modules/@npmcli/arborist/lib/optional-set.js +32 -0
- package/node_modules/@npmcli/arborist/lib/override-resolves.js +11 -0
- package/node_modules/@npmcli/arborist/lib/override-set.js +304 -0
- package/node_modules/@npmcli/arborist/lib/packument-cache.js +77 -0
- package/node_modules/@npmcli/arborist/lib/peer-entry-sets.js +77 -0
- package/node_modules/@npmcli/arborist/lib/place-dep.js +570 -0
- package/node_modules/@npmcli/arborist/lib/printable.js +198 -0
- package/node_modules/@npmcli/arborist/lib/query-selector-all.js +961 -0
- package/node_modules/@npmcli/arborist/lib/realpath.js +95 -0
- package/node_modules/@npmcli/arborist/lib/release-age-exclude.js +45 -0
- package/node_modules/@npmcli/arborist/lib/relpath.js +3 -0
- package/node_modules/@npmcli/arborist/lib/reset-dep-flags.js +11 -0
- package/node_modules/@npmcli/arborist/lib/retire-path.js +19 -0
- package/node_modules/@npmcli/arborist/lib/script-allowed.js +384 -0
- package/node_modules/@npmcli/arborist/lib/shrinkwrap.js +1231 -0
- package/node_modules/@npmcli/arborist/lib/signal-handling.js +74 -0
- package/node_modules/@npmcli/arborist/lib/signals.js +58 -0
- package/node_modules/@npmcli/arborist/lib/spec-from-lock.js +34 -0
- package/node_modules/@npmcli/arborist/lib/tracker.js +86 -0
- package/node_modules/@npmcli/arborist/lib/tree-check.js +155 -0
- package/node_modules/@npmcli/arborist/lib/unreviewed-scripts.js +101 -0
- package/node_modules/@npmcli/arborist/lib/version-from-tgz.js +47 -0
- package/node_modules/@npmcli/arborist/lib/vuln.js +218 -0
- package/node_modules/@npmcli/arborist/lib/yarn-lock.js +377 -0
- package/node_modules/@npmcli/arborist/package.json +99 -0
- package/node_modules/@npmcli/config/LICENSE +15 -0
- package/node_modules/@npmcli/config/README.md +226 -0
- package/node_modules/@npmcli/config/lib/definitions/definition.js +255 -0
- package/node_modules/@npmcli/config/lib/definitions/definitions.js +2711 -0
- package/node_modules/@npmcli/config/lib/definitions/index.js +88 -0
- package/node_modules/@npmcli/config/lib/env-replace.js +16 -0
- package/node_modules/@npmcli/config/lib/errors.js +23 -0
- package/node_modules/@npmcli/config/lib/index.js +1034 -0
- package/node_modules/@npmcli/config/lib/nerf-dart.js +18 -0
- package/node_modules/@npmcli/config/lib/parse-allow-scripts-list.js +23 -0
- package/node_modules/@npmcli/config/lib/parse-field.js +86 -0
- package/node_modules/@npmcli/config/lib/set-envs.js +113 -0
- package/node_modules/@npmcli/config/lib/type-defs.js +61 -0
- package/node_modules/@npmcli/config/lib/type-description.js +21 -0
- package/node_modules/@npmcli/config/lib/umask.js +35 -0
- package/node_modules/@npmcli/config/package.json +57 -0
- package/node_modules/@npmcli/fs/LICENSE.md +20 -0
- package/node_modules/@npmcli/fs/lib/common/get-options.js +20 -0
- package/node_modules/@npmcli/fs/lib/common/node.js +9 -0
- package/node_modules/@npmcli/fs/lib/cp/LICENSE +15 -0
- package/node_modules/@npmcli/fs/lib/cp/errors.js +129 -0
- package/node_modules/@npmcli/fs/lib/cp/index.js +22 -0
- package/node_modules/@npmcli/fs/lib/cp/polyfill.js +428 -0
- package/node_modules/@npmcli/fs/lib/index.js +13 -0
- package/node_modules/@npmcli/fs/lib/move-file.js +78 -0
- package/node_modules/@npmcli/fs/lib/readdir-scoped.js +20 -0
- package/node_modules/@npmcli/fs/lib/with-temp-dir.js +39 -0
- package/node_modules/@npmcli/fs/package.json +54 -0
- package/node_modules/@npmcli/git/LICENSE +15 -0
- package/node_modules/@npmcli/git/lib/clone.js +172 -0
- package/node_modules/@npmcli/git/lib/errors.js +36 -0
- package/node_modules/@npmcli/git/lib/find.js +15 -0
- package/node_modules/@npmcli/git/lib/index.js +9 -0
- package/node_modules/@npmcli/git/lib/is-clean.js +6 -0
- package/node_modules/@npmcli/git/lib/is.js +4 -0
- package/node_modules/@npmcli/git/lib/lines-to-revs.js +147 -0
- package/node_modules/@npmcli/git/lib/make-error.js +33 -0
- package/node_modules/@npmcli/git/lib/opts.js +57 -0
- package/node_modules/@npmcli/git/lib/revs.js +22 -0
- package/node_modules/@npmcli/git/lib/spawn.js +44 -0
- package/node_modules/@npmcli/git/lib/utils.js +3 -0
- package/node_modules/@npmcli/git/lib/which.js +18 -0
- package/node_modules/@npmcli/git/package.json +58 -0
- package/node_modules/@npmcli/installed-package-contents/LICENSE +15 -0
- package/node_modules/@npmcli/installed-package-contents/README.md +109 -0
- package/node_modules/@npmcli/installed-package-contents/bin/index.js +44 -0
- package/node_modules/@npmcli/installed-package-contents/lib/index.js +181 -0
- package/node_modules/@npmcli/installed-package-contents/package.json +52 -0
- package/node_modules/@npmcli/map-workspaces/LICENSE.md +20 -0
- package/node_modules/@npmcli/map-workspaces/lib/index.js +226 -0
- package/node_modules/@npmcli/map-workspaces/package.json +61 -0
- package/node_modules/@npmcli/metavuln-calculator/LICENSE +15 -0
- package/node_modules/@npmcli/metavuln-calculator/lib/advisory.js +435 -0
- package/node_modules/@npmcli/metavuln-calculator/lib/get-dep-spec.js +15 -0
- package/node_modules/@npmcli/metavuln-calculator/lib/hash.js +5 -0
- package/node_modules/@npmcli/metavuln-calculator/lib/index.js +128 -0
- package/node_modules/@npmcli/metavuln-calculator/package.json +62 -0
- package/node_modules/@npmcli/name-from-folder/LICENSE +15 -0
- package/node_modules/@npmcli/name-from-folder/lib/index.js +7 -0
- package/node_modules/@npmcli/name-from-folder/package.json +45 -0
- package/node_modules/@npmcli/node-gyp/LICENSE +7 -0
- package/node_modules/@npmcli/node-gyp/lib/index.js +14 -0
- package/node_modules/@npmcli/node-gyp/package.json +50 -0
- package/node_modules/@npmcli/package-json/LICENSE +18 -0
- package/node_modules/@npmcli/package-json/lib/index.js +296 -0
- package/node_modules/@npmcli/package-json/lib/license.js +27 -0
- package/node_modules/@npmcli/package-json/lib/normalize-data.js +254 -0
- package/node_modules/@npmcli/package-json/lib/normalize.js +614 -0
- package/node_modules/@npmcli/package-json/lib/read-package.js +39 -0
- package/node_modules/@npmcli/package-json/lib/sort.js +101 -0
- package/node_modules/@npmcli/package-json/lib/update-dependencies.js +75 -0
- package/node_modules/@npmcli/package-json/lib/update-scripts.js +29 -0
- package/node_modules/@npmcli/package-json/lib/update-workspaces.js +26 -0
- package/node_modules/@npmcli/package-json/package.json +59 -0
- package/node_modules/@npmcli/promise-spawn/LICENSE +15 -0
- package/node_modules/@npmcli/promise-spawn/lib/escape.js +67 -0
- package/node_modules/@npmcli/promise-spawn/lib/index.js +218 -0
- package/node_modules/@npmcli/promise-spawn/package.json +51 -0
- package/node_modules/@npmcli/query/LICENSE +20 -0
- package/node_modules/@npmcli/query/lib/index.js +255 -0
- package/node_modules/@npmcli/query/package.json +64 -0
- package/node_modules/@npmcli/redact/LICENSE +21 -0
- package/node_modules/@npmcli/redact/lib/deep-map.js +71 -0
- package/node_modules/@npmcli/redact/lib/error.js +28 -0
- package/node_modules/@npmcli/redact/lib/index.js +44 -0
- package/node_modules/@npmcli/redact/lib/matchers.js +88 -0
- package/node_modules/@npmcli/redact/lib/server.js +59 -0
- package/node_modules/@npmcli/redact/lib/utils.js +202 -0
- package/node_modules/@npmcli/redact/package.json +52 -0
- package/node_modules/@npmcli/run-script/LICENSE +15 -0
- package/node_modules/@npmcli/run-script/lib/is-server-package.js +11 -0
- package/node_modules/@npmcli/run-script/lib/make-spawn-args.js +53 -0
- package/node_modules/@npmcli/run-script/lib/node-gyp-bin/node-gyp +2 -0
- package/node_modules/@npmcli/run-script/lib/node-gyp-bin/node-gyp.cmd +1 -0
- package/node_modules/@npmcli/run-script/lib/package-envs.js +29 -0
- package/node_modules/@npmcli/run-script/lib/run-script-pkg.js +114 -0
- package/node_modules/@npmcli/run-script/lib/run-script.js +15 -0
- package/node_modules/@npmcli/run-script/lib/set-path.js +53 -0
- package/node_modules/@npmcli/run-script/lib/signal-manager.js +50 -0
- package/node_modules/@npmcli/run-script/lib/validate-options.js +39 -0
- package/node_modules/@npmcli/run-script/package.json +53 -0
- package/node_modules/@sigstore/bundle/LICENSE +202 -0
- package/node_modules/@sigstore/bundle/dist/build.js +100 -0
- package/node_modules/@sigstore/bundle/dist/bundle.js +24 -0
- package/node_modules/@sigstore/bundle/dist/error.js +25 -0
- package/node_modules/@sigstore/bundle/dist/index.js +43 -0
- package/node_modules/@sigstore/bundle/dist/serialized.js +49 -0
- package/node_modules/@sigstore/bundle/dist/utility.js +2 -0
- package/node_modules/@sigstore/bundle/dist/validate.js +199 -0
- package/node_modules/@sigstore/bundle/package.json +35 -0
- package/node_modules/@sigstore/core/LICENSE +202 -0
- package/node_modules/@sigstore/core/dist/asn1/error.js +24 -0
- package/node_modules/@sigstore/core/dist/asn1/index.js +20 -0
- package/node_modules/@sigstore/core/dist/asn1/length.js +62 -0
- package/node_modules/@sigstore/core/dist/asn1/obj.js +155 -0
- package/node_modules/@sigstore/core/dist/asn1/parse.js +124 -0
- package/node_modules/@sigstore/core/dist/asn1/tag.js +89 -0
- package/node_modules/@sigstore/core/dist/crypto.js +69 -0
- package/node_modules/@sigstore/core/dist/dsse.js +29 -0
- package/node_modules/@sigstore/core/dist/encoding.js +27 -0
- package/node_modules/@sigstore/core/dist/index.js +66 -0
- package/node_modules/@sigstore/core/dist/json.js +60 -0
- package/node_modules/@sigstore/core/dist/oid.js +20 -0
- package/node_modules/@sigstore/core/dist/pem.js +43 -0
- package/node_modules/@sigstore/core/dist/rfc3161/error.js +21 -0
- package/node_modules/@sigstore/core/dist/rfc3161/index.js +20 -0
- package/node_modules/@sigstore/core/dist/rfc3161/timestamp.js +212 -0
- package/node_modules/@sigstore/core/dist/rfc3161/tstinfo.js +72 -0
- package/node_modules/@sigstore/core/dist/stream.js +117 -0
- package/node_modules/@sigstore/core/dist/x509/cert.js +245 -0
- package/node_modules/@sigstore/core/dist/x509/ext.js +146 -0
- package/node_modules/@sigstore/core/dist/x509/index.js +23 -0
- package/node_modules/@sigstore/core/dist/x509/sct.js +158 -0
- package/node_modules/@sigstore/core/package.json +31 -0
- package/node_modules/@sigstore/protobuf-specs/LICENSE +202 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/envelope.js +59 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/events.js +174 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/api/field_behavior.js +141 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/any.js +35 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/descriptor.js +2179 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/timestamp.js +29 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/rekor/v2/dsse.js +55 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/rekor/v2/entry.js +81 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/rekor/v2/hashedrekord.js +56 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/rekor/v2/verifier.js +74 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_bundle.js +103 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_common.js +612 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_rekor.js +137 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_trustroot.js +284 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_verification.js +281 -0
- package/node_modules/@sigstore/protobuf-specs/dist/index.js +37 -0
- package/node_modules/@sigstore/protobuf-specs/dist/rekor/v2/index.js +35 -0
- package/node_modules/@sigstore/protobuf-specs/package.json +35 -0
- package/node_modules/@sigstore/sign/LICENSE +202 -0
- package/node_modules/@sigstore/sign/dist/bundler/base.js +52 -0
- package/node_modules/@sigstore/sign/dist/bundler/bundle.js +81 -0
- package/node_modules/@sigstore/sign/dist/bundler/dsse.js +47 -0
- package/node_modules/@sigstore/sign/dist/bundler/index.js +7 -0
- package/node_modules/@sigstore/sign/dist/bundler/message.js +30 -0
- package/node_modules/@sigstore/sign/dist/config.js +143 -0
- package/node_modules/@sigstore/sign/dist/error.js +41 -0
- package/node_modules/@sigstore/sign/dist/external/error.js +28 -0
- package/node_modules/@sigstore/sign/dist/external/fetch.js +98 -0
- package/node_modules/@sigstore/sign/dist/external/fulcio.js +42 -0
- package/node_modules/@sigstore/sign/dist/external/rekor-v2.js +45 -0
- package/node_modules/@sigstore/sign/dist/external/rekor.js +81 -0
- package/node_modules/@sigstore/sign/dist/external/tsa.js +44 -0
- package/node_modules/@sigstore/sign/dist/identity/ci.js +74 -0
- package/node_modules/@sigstore/sign/dist/identity/index.js +20 -0
- package/node_modules/@sigstore/sign/dist/identity/provider.js +2 -0
- package/node_modules/@sigstore/sign/dist/index.js +19 -0
- package/node_modules/@sigstore/sign/dist/signer/fulcio/ca.js +60 -0
- package/node_modules/@sigstore/sign/dist/signer/fulcio/ephemeral.js +43 -0
- package/node_modules/@sigstore/sign/dist/signer/fulcio/index.js +90 -0
- package/node_modules/@sigstore/sign/dist/signer/index.js +22 -0
- package/node_modules/@sigstore/sign/dist/signer/signer.js +17 -0
- package/node_modules/@sigstore/sign/dist/types/fetch.js +2 -0
- package/node_modules/@sigstore/sign/dist/util/index.js +59 -0
- package/node_modules/@sigstore/sign/dist/util/oidc.js +35 -0
- package/node_modules/@sigstore/sign/dist/util/ua.js +32 -0
- package/node_modules/@sigstore/sign/dist/witness/index.js +24 -0
- package/node_modules/@sigstore/sign/dist/witness/tlog/client.js +92 -0
- package/node_modules/@sigstore/sign/dist/witness/tlog/entry.js +197 -0
- package/node_modules/@sigstore/sign/dist/witness/tlog/index.js +97 -0
- package/node_modules/@sigstore/sign/dist/witness/tsa/client.js +47 -0
- package/node_modules/@sigstore/sign/dist/witness/tsa/index.js +45 -0
- package/node_modules/@sigstore/sign/dist/witness/witness.js +2 -0
- package/node_modules/@sigstore/sign/package.json +45 -0
- package/node_modules/@sigstore/tuf/LICENSE +202 -0
- package/node_modules/@sigstore/tuf/dist/appdata.js +43 -0
- package/node_modules/@sigstore/tuf/dist/client.js +116 -0
- package/node_modules/@sigstore/tuf/dist/error.js +14 -0
- package/node_modules/@sigstore/tuf/dist/index.js +56 -0
- package/node_modules/@sigstore/tuf/dist/target.js +79 -0
- package/node_modules/@sigstore/tuf/package.json +41 -0
- package/node_modules/@sigstore/tuf/seeds.json +1 -0
- package/node_modules/@sigstore/verify/dist/bundle/dsse.js +44 -0
- package/node_modules/@sigstore/verify/dist/bundle/index.js +59 -0
- package/node_modules/@sigstore/verify/dist/bundle/message.js +54 -0
- package/node_modules/@sigstore/verify/dist/error.js +34 -0
- package/node_modules/@sigstore/verify/dist/index.js +28 -0
- package/node_modules/@sigstore/verify/dist/key/certificate.js +216 -0
- package/node_modules/@sigstore/verify/dist/key/index.js +75 -0
- package/node_modules/@sigstore/verify/dist/key/sct.js +78 -0
- package/node_modules/@sigstore/verify/dist/policy.js +50 -0
- package/node_modules/@sigstore/verify/dist/shared.types.js +2 -0
- package/node_modules/@sigstore/verify/dist/timestamp/index.js +24 -0
- package/node_modules/@sigstore/verify/dist/timestamp/tsa.js +63 -0
- package/node_modules/@sigstore/verify/dist/tlog/checkpoint.js +154 -0
- package/node_modules/@sigstore/verify/dist/tlog/dsse.js +106 -0
- package/node_modules/@sigstore/verify/dist/tlog/hashedrekord.js +94 -0
- package/node_modules/@sigstore/verify/dist/tlog/index.js +92 -0
- package/node_modules/@sigstore/verify/dist/tlog/intoto.js +62 -0
- package/node_modules/@sigstore/verify/dist/tlog/merkle.js +104 -0
- package/node_modules/@sigstore/verify/dist/tlog/set.js +60 -0
- package/node_modules/@sigstore/verify/dist/trust/filter.js +23 -0
- package/node_modules/@sigstore/verify/dist/trust/index.js +90 -0
- package/node_modules/@sigstore/verify/dist/trust/trust.types.js +2 -0
- package/node_modules/@sigstore/verify/dist/verifier.js +160 -0
- package/node_modules/@sigstore/verify/package.json +36 -0
- package/node_modules/@tufjs/canonical-json/LICENSE +21 -0
- package/node_modules/@tufjs/canonical-json/lib/index.js +64 -0
- package/node_modules/@tufjs/canonical-json/package.json +35 -0
- package/node_modules/@tufjs/models/LICENSE +21 -0
- package/node_modules/@tufjs/models/dist/base.js +96 -0
- package/node_modules/@tufjs/models/dist/delegations.js +119 -0
- package/node_modules/@tufjs/models/dist/error.js +27 -0
- package/node_modules/@tufjs/models/dist/file.js +191 -0
- package/node_modules/@tufjs/models/dist/index.js +24 -0
- package/node_modules/@tufjs/models/dist/key.js +90 -0
- package/node_modules/@tufjs/models/dist/metadata.js +165 -0
- package/node_modules/@tufjs/models/dist/role.js +310 -0
- package/node_modules/@tufjs/models/dist/root.js +119 -0
- package/node_modules/@tufjs/models/dist/signature.js +40 -0
- package/node_modules/@tufjs/models/dist/snapshot.js +72 -0
- package/node_modules/@tufjs/models/dist/targets.js +94 -0
- package/node_modules/@tufjs/models/dist/timestamp.js +59 -0
- package/node_modules/@tufjs/models/dist/utils/guard.js +32 -0
- package/node_modules/@tufjs/models/dist/utils/index.js +38 -0
- package/node_modules/@tufjs/models/dist/utils/key.js +142 -0
- package/node_modules/@tufjs/models/dist/utils/oid.js +26 -0
- package/node_modules/@tufjs/models/dist/utils/types.js +2 -0
- package/node_modules/@tufjs/models/dist/utils/verify.js +13 -0
- package/node_modules/@tufjs/models/package.json +37 -0
- package/node_modules/abbrev/LICENSE +46 -0
- package/node_modules/abbrev/lib/index.js +53 -0
- package/node_modules/abbrev/package.json +41 -0
- package/node_modules/agent-base/LICENSE +22 -0
- package/node_modules/agent-base/dist/helpers.js +66 -0
- package/node_modules/agent-base/dist/index.js +178 -0
- package/node_modules/agent-base/package.json +46 -0
- package/node_modules/aproba/LICENSE +14 -0
- package/node_modules/aproba/index.js +105 -0
- package/node_modules/aproba/package.json +35 -0
- package/node_modules/archy/LICENSE +18 -0
- package/node_modules/archy/examples/beep.js +24 -0
- package/node_modules/archy/examples/multi_line.js +25 -0
- package/node_modules/archy/index.js +35 -0
- package/node_modules/archy/package.json +40 -0
- package/node_modules/archy/test/beep.js +40 -0
- package/node_modules/archy/test/multi_line.js +45 -0
- package/node_modules/archy/test/non_unicode.js +40 -0
- package/node_modules/balanced-match/LICENSE.md +23 -0
- package/node_modules/balanced-match/dist/commonjs/index.js +59 -0
- package/node_modules/balanced-match/dist/commonjs/package.json +3 -0
- package/node_modules/balanced-match/dist/esm/index.js +54 -0
- package/node_modules/balanced-match/dist/esm/package.json +3 -0
- package/node_modules/balanced-match/package.json +68 -0
- package/node_modules/bin-links/LICENSE +15 -0
- package/node_modules/bin-links/lib/bin-target.js +9 -0
- package/node_modules/bin-links/lib/check-bin.js +78 -0
- package/node_modules/bin-links/lib/check-bins.js +18 -0
- package/node_modules/bin-links/lib/fix-bin.js +42 -0
- package/node_modules/bin-links/lib/get-node-modules.js +19 -0
- package/node_modules/bin-links/lib/get-paths.js +42 -0
- package/node_modules/bin-links/lib/get-prefix.js +3 -0
- package/node_modules/bin-links/lib/index.js +44 -0
- package/node_modules/bin-links/lib/is-windows.js +2 -0
- package/node_modules/bin-links/lib/link-bin.js +9 -0
- package/node_modules/bin-links/lib/link-bins.js +23 -0
- package/node_modules/bin-links/lib/link-gently.js +96 -0
- package/node_modules/bin-links/lib/link-mans.js +53 -0
- package/node_modules/bin-links/lib/man-target.js +6 -0
- package/node_modules/bin-links/lib/shim-bin.js +87 -0
- package/node_modules/bin-links/package.json +63 -0
- package/node_modules/binary-extensions/binary-extensions.json +264 -0
- package/node_modules/binary-extensions/index.js +3 -0
- package/node_modules/binary-extensions/license +10 -0
- package/node_modules/binary-extensions/package.json +45 -0
- package/node_modules/brace-expansion/LICENSE +23 -0
- package/node_modules/brace-expansion/dist/commonjs/index.js +289 -0
- package/node_modules/brace-expansion/dist/commonjs/package.json +3 -0
- package/node_modules/brace-expansion/dist/esm/index.js +285 -0
- package/node_modules/brace-expansion/dist/esm/package.json +3 -0
- package/node_modules/brace-expansion/package.json +64 -0
- package/node_modules/cacache/LICENSE.md +16 -0
- package/node_modules/cacache/lib/content/path.js +29 -0
- package/node_modules/cacache/lib/content/read.js +165 -0
- package/node_modules/cacache/lib/content/rm.js +18 -0
- package/node_modules/cacache/lib/content/write.js +206 -0
- package/node_modules/cacache/lib/entry-index.js +336 -0
- package/node_modules/cacache/lib/get.js +170 -0
- package/node_modules/cacache/lib/index.js +42 -0
- package/node_modules/cacache/lib/memoization.js +72 -0
- package/node_modules/cacache/lib/put.js +80 -0
- package/node_modules/cacache/lib/rm.js +31 -0
- package/node_modules/cacache/lib/util/glob.js +7 -0
- package/node_modules/cacache/lib/util/hash-to-segments.js +7 -0
- package/node_modules/cacache/lib/util/tmp.js +32 -0
- package/node_modules/cacache/lib/verify.js +258 -0
- package/node_modules/cacache/package.json +81 -0
- package/node_modules/chalk/license +9 -0
- package/node_modules/chalk/package.json +83 -0
- package/node_modules/chalk/source/index.js +225 -0
- package/node_modules/chalk/source/utilities.js +33 -0
- package/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/node_modules/chalk/source/vendor/supports-color/browser.js +34 -0
- package/node_modules/chalk/source/vendor/supports-color/index.js +190 -0
- package/node_modules/chownr/LICENSE.md +63 -0
- package/node_modules/chownr/dist/commonjs/index.js +93 -0
- package/node_modules/chownr/dist/commonjs/package.json +3 -0
- package/node_modules/chownr/dist/esm/index.js +85 -0
- package/node_modules/chownr/dist/esm/package.json +3 -0
- package/node_modules/chownr/package.json +69 -0
- package/node_modules/ci-info/LICENSE +21 -0
- package/node_modules/ci-info/index.js +104 -0
- package/node_modules/ci-info/package.json +54 -0
- package/node_modules/ci-info/vendors.json +363 -0
- package/node_modules/cidr-regex/LICENSE +22 -0
- package/node_modules/cidr-regex/dist/index.js +21 -0
- package/node_modules/cidr-regex/package.json +51 -0
- package/node_modules/cmd-shim/LICENSE +15 -0
- package/node_modules/cmd-shim/lib/index.js +247 -0
- package/node_modules/cmd-shim/lib/to-batch-syntax.js +49 -0
- package/node_modules/cmd-shim/package.json +48 -0
- package/node_modules/common-ancestor-path/LICENSE.md +55 -0
- package/node_modules/common-ancestor-path/dist/commonjs/index.js +20 -0
- package/node_modules/common-ancestor-path/dist/commonjs/package.json +3 -0
- package/node_modules/common-ancestor-path/dist/esm/index.js +16 -0
- package/node_modules/common-ancestor-path/dist/esm/package.json +3 -0
- package/node_modules/common-ancestor-path/package.json +60 -0
- package/node_modules/cssesc/LICENSE-MIT.txt +20 -0
- package/node_modules/cssesc/README.md +201 -0
- package/node_modules/cssesc/bin/cssesc +116 -0
- package/node_modules/cssesc/cssesc.js +110 -0
- package/node_modules/cssesc/man/cssesc.1 +70 -0
- package/node_modules/cssesc/package.json +51 -0
- package/node_modules/debug/LICENSE +20 -0
- package/node_modules/debug/package.json +64 -0
- package/node_modules/debug/src/browser.js +272 -0
- package/node_modules/debug/src/common.js +292 -0
- package/node_modules/debug/src/index.js +10 -0
- package/node_modules/debug/src/node.js +263 -0
- package/node_modules/diff/CONTRIBUTING.md +28 -0
- package/node_modules/diff/LICENSE +29 -0
- package/node_modules/diff/dist/diff.js +1782 -0
- package/node_modules/diff/dist/diff.min.js +1 -0
- package/node_modules/diff/eslint.config.mjs +182 -0
- package/node_modules/diff/libcjs/convert/dmp.js +24 -0
- package/node_modules/diff/libcjs/convert/xml.js +34 -0
- package/node_modules/diff/libcjs/diff/array.js +40 -0
- package/node_modules/diff/libcjs/diff/base.js +265 -0
- package/node_modules/diff/libcjs/diff/character.js +31 -0
- package/node_modules/diff/libcjs/diff/css.js +34 -0
- package/node_modules/diff/libcjs/diff/json.js +105 -0
- package/node_modules/diff/libcjs/diff/line.js +89 -0
- package/node_modules/diff/libcjs/diff/sentence.js +67 -0
- package/node_modules/diff/libcjs/diff/word.js +312 -0
- package/node_modules/diff/libcjs/index.js +64 -0
- package/node_modules/diff/libcjs/package.json +1 -0
- package/node_modules/diff/libcjs/patch/apply.js +267 -0
- package/node_modules/diff/libcjs/patch/create.js +251 -0
- package/node_modules/diff/libcjs/patch/line-endings.js +61 -0
- package/node_modules/diff/libcjs/patch/parse.js +150 -0
- package/node_modules/diff/libcjs/patch/reverse.js +37 -0
- package/node_modules/diff/libcjs/types.js +2 -0
- package/node_modules/diff/libcjs/util/array.js +21 -0
- package/node_modules/diff/libcjs/util/distance-iterator.js +40 -0
- package/node_modules/diff/libcjs/util/params.js +17 -0
- package/node_modules/diff/libcjs/util/string.js +200 -0
- package/node_modules/diff/libesm/convert/dmp.js +21 -0
- package/node_modules/diff/libesm/convert/xml.js +31 -0
- package/node_modules/diff/libesm/diff/array.js +16 -0
- package/node_modules/diff/libesm/diff/base.js +253 -0
- package/node_modules/diff/libesm/diff/character.js +7 -0
- package/node_modules/diff/libesm/diff/css.js +10 -0
- package/node_modules/diff/libesm/diff/json.js +78 -0
- package/node_modules/diff/libesm/diff/line.js +65 -0
- package/node_modules/diff/libesm/diff/sentence.js +43 -0
- package/node_modules/diff/libesm/diff/word.js +281 -0
- package/node_modules/diff/libesm/index.js +30 -0
- package/node_modules/diff/libesm/package.json +1 -0
- package/node_modules/diff/libesm/patch/apply.js +257 -0
- package/node_modules/diff/libesm/patch/create.js +228 -0
- package/node_modules/diff/libesm/patch/line-endings.js +44 -0
- package/node_modules/diff/libesm/patch/parse.js +147 -0
- package/node_modules/diff/libesm/patch/reverse.js +23 -0
- package/node_modules/diff/libesm/types.js +1 -0
- package/node_modules/diff/libesm/util/array.js +17 -0
- package/node_modules/diff/libesm/util/distance-iterator.js +37 -0
- package/node_modules/diff/libesm/util/params.js +14 -0
- package/node_modules/diff/libesm/util/string.js +184 -0
- package/node_modules/diff/package.json +130 -0
- package/node_modules/diff/release-notes.md +432 -0
- package/node_modules/env-paths/index.js +74 -0
- package/node_modules/env-paths/license +9 -0
- package/node_modules/env-paths/package.json +45 -0
- package/node_modules/exponential-backoff/LICENSE +202 -0
- package/node_modules/exponential-backoff/dist/backoff.js +124 -0
- package/node_modules/exponential-backoff/dist/delay/always/always.delay.js +25 -0
- package/node_modules/exponential-backoff/dist/delay/delay.base.js +45 -0
- package/node_modules/exponential-backoff/dist/delay/delay.factory.js +17 -0
- package/node_modules/exponential-backoff/dist/delay/delay.interface.js +3 -0
- package/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.js +82 -0
- package/node_modules/exponential-backoff/dist/jitter/full/full.jitter.js +8 -0
- package/node_modules/exponential-backoff/dist/jitter/jitter.factory.js +15 -0
- package/node_modules/exponential-backoff/dist/jitter/no/no.jitter.js +7 -0
- package/node_modules/exponential-backoff/dist/options.js +31 -0
- package/node_modules/exponential-backoff/package.json +62 -0
- package/node_modules/fastest-levenshtein/LICENSE.md +21 -0
- package/node_modules/fastest-levenshtein/bench.js +96 -0
- package/node_modules/fastest-levenshtein/esm/mod.js +138 -0
- package/node_modules/fastest-levenshtein/mod.js +142 -0
- package/node_modules/fastest-levenshtein/package.json +72 -0
- package/node_modules/fastest-levenshtein/test.js +55 -0
- package/node_modules/fdir/LICENSE +7 -0
- package/node_modules/fdir/dist/index.cjs +588 -0
- package/node_modules/fdir/dist/index.d.cts +155 -0
- package/node_modules/fdir/dist/index.d.mts +155 -0
- package/node_modules/fdir/dist/index.mjs +570 -0
- package/node_modules/fdir/package.json +103 -0
- package/node_modules/fs-minipass/LICENSE +15 -0
- package/node_modules/fs-minipass/lib/index.js +443 -0
- package/node_modules/fs-minipass/package.json +54 -0
- package/node_modules/glob/LICENSE.md +63 -0
- package/node_modules/glob/dist/commonjs/glob.js +248 -0
- package/node_modules/glob/dist/commonjs/has-magic.js +27 -0
- package/node_modules/glob/dist/commonjs/ignore.js +119 -0
- package/node_modules/glob/dist/commonjs/index.js +68 -0
- package/node_modules/glob/dist/commonjs/index.min.js +4 -0
- package/node_modules/glob/dist/commonjs/package.json +3 -0
- package/node_modules/glob/dist/commonjs/pattern.js +223 -0
- package/node_modules/glob/dist/commonjs/processor.js +301 -0
- package/node_modules/glob/dist/commonjs/walker.js +387 -0
- package/node_modules/glob/dist/esm/glob.js +244 -0
- package/node_modules/glob/dist/esm/has-magic.js +23 -0
- package/node_modules/glob/dist/esm/ignore.js +115 -0
- package/node_modules/glob/dist/esm/index.js +55 -0
- package/node_modules/glob/dist/esm/index.min.js +4 -0
- package/node_modules/glob/dist/esm/package.json +3 -0
- package/node_modules/glob/dist/esm/pattern.js +219 -0
- package/node_modules/glob/dist/esm/processor.js +294 -0
- package/node_modules/glob/dist/esm/walker.js +381 -0
- package/node_modules/glob/package.json +98 -0
- package/node_modules/graceful-fs/LICENSE +15 -0
- package/node_modules/graceful-fs/clone.js +23 -0
- package/node_modules/graceful-fs/graceful-fs.js +448 -0
- package/node_modules/graceful-fs/legacy-streams.js +118 -0
- package/node_modules/graceful-fs/package.json +53 -0
- package/node_modules/graceful-fs/polyfills.js +355 -0
- package/node_modules/hosted-git-info/LICENSE +13 -0
- package/node_modules/hosted-git-info/lib/from-url.js +122 -0
- package/node_modules/hosted-git-info/lib/hosts.js +229 -0
- package/node_modules/hosted-git-info/lib/index.js +227 -0
- package/node_modules/hosted-git-info/lib/parse-url.js +81 -0
- package/node_modules/hosted-git-info/package.json +57 -0
- package/node_modules/http-cache-semantics/LICENSE +9 -0
- package/node_modules/http-cache-semantics/index.js +928 -0
- package/node_modules/http-cache-semantics/package.json +22 -0
- package/node_modules/http-proxy-agent/LICENSE +22 -0
- package/node_modules/http-proxy-agent/dist/index.js +148 -0
- package/node_modules/http-proxy-agent/package.json +47 -0
- package/node_modules/https-proxy-agent/LICENSE +22 -0
- package/node_modules/https-proxy-agent/dist/index.js +180 -0
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.js +101 -0
- package/node_modules/https-proxy-agent/package.json +50 -0
- package/node_modules/iconv-lite/LICENSE +21 -0
- package/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
- package/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
- package/node_modules/iconv-lite/encodings/index.js +23 -0
- package/node_modules/iconv-lite/encodings/internal.js +218 -0
- package/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
- package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/node_modules/iconv-lite/encodings/sbcs-data.js +178 -0
- package/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
- package/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/node_modules/iconv-lite/encodings/utf16.js +187 -0
- package/node_modules/iconv-lite/encodings/utf32.js +307 -0
- package/node_modules/iconv-lite/encodings/utf7.js +283 -0
- package/node_modules/iconv-lite/lib/bom-handling.js +48 -0
- package/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
- package/node_modules/iconv-lite/lib/index.js +182 -0
- package/node_modules/iconv-lite/lib/streams.js +105 -0
- package/node_modules/iconv-lite/package.json +70 -0
- package/node_modules/ignore-walk/LICENSE +15 -0
- package/node_modules/ignore-walk/lib/index.js +310 -0
- package/node_modules/ignore-walk/package.json +64 -0
- package/node_modules/ini/LICENSE +15 -0
- package/node_modules/ini/lib/ini.js +280 -0
- package/node_modules/ini/package.json +45 -0
- package/node_modules/init-package-json/LICENSE.md +18 -0
- package/node_modules/init-package-json/lib/default-input.js +286 -0
- package/node_modules/init-package-json/lib/init-package-json.js +147 -0
- package/node_modules/init-package-json/package.json +66 -0
- package/node_modules/ip-address/LICENSE +19 -0
- package/node_modules/ip-address/dist/address-error.js +12 -0
- package/node_modules/ip-address/dist/common.js +106 -0
- package/node_modules/ip-address/dist/ip-address.js +35 -0
- package/node_modules/ip-address/dist/ipv4.js +505 -0
- package/node_modules/ip-address/dist/ipv6.js +1353 -0
- package/node_modules/ip-address/dist/v4/constants.js +12 -0
- package/node_modules/ip-address/dist/v6/constants.js +82 -0
- package/node_modules/ip-address/dist/v6/helpers.js +54 -0
- package/node_modules/ip-address/dist/v6/regular-expressions.js +95 -0
- package/node_modules/ip-address/package.json +90 -0
- package/node_modules/is-cidr/LICENSE +22 -0
- package/node_modules/is-cidr/dist/index.js +11 -0
- package/node_modules/is-cidr/package.json +41 -0
- package/node_modules/isexe/LICENSE.md +55 -0
- package/node_modules/isexe/dist/commonjs/index.js +56 -0
- package/node_modules/isexe/dist/commonjs/index.min.js +2 -0
- package/node_modules/isexe/dist/commonjs/options.js +3 -0
- package/node_modules/isexe/dist/commonjs/package.json +3 -0
- package/node_modules/isexe/dist/commonjs/posix.js +67 -0
- package/node_modules/isexe/dist/commonjs/win32.js +63 -0
- package/node_modules/isexe/dist/esm/index.js +16 -0
- package/node_modules/isexe/dist/esm/index.min.js +2 -0
- package/node_modules/isexe/dist/esm/options.js +2 -0
- package/node_modules/isexe/dist/esm/package.json +3 -0
- package/node_modules/isexe/dist/esm/posix.js +62 -0
- package/node_modules/isexe/dist/esm/win32.js +58 -0
- package/node_modules/isexe/package.json +78 -0
- package/node_modules/json-parse-even-better-errors/LICENSE.md +25 -0
- package/node_modules/json-parse-even-better-errors/lib/index.js +137 -0
- package/node_modules/json-parse-even-better-errors/package.json +50 -0
- package/node_modules/json-stringify-nice/LICENSE +15 -0
- package/node_modules/json-stringify-nice/index.js +38 -0
- package/node_modules/json-stringify-nice/package.json +40 -0
- package/node_modules/jsonparse/LICENSE +24 -0
- package/node_modules/jsonparse/bench.js +26 -0
- package/node_modules/jsonparse/examples/twitterfeed.js +30 -0
- package/node_modules/jsonparse/jsonparse.js +413 -0
- package/node_modules/jsonparse/package.json +22 -0
- package/node_modules/jsonparse/samplejson/basic.json +167 -0
- package/node_modules/jsonparse/samplejson/basic2.json +180 -0
- package/node_modules/jsonparse/test/big-token.js +24 -0
- package/node_modules/jsonparse/test/boundary.js +110 -0
- package/node_modules/jsonparse/test/offset.js +67 -0
- package/node_modules/jsonparse/test/primitives.js +57 -0
- package/node_modules/jsonparse/test/surrogate.js +26 -0
- package/node_modules/jsonparse/test/unvalid.js +15 -0
- package/node_modules/jsonparse/test/utf8.js +38 -0
- package/node_modules/just-diff/LICENSE +21 -0
- package/node_modules/just-diff/index.cjs +230 -0
- package/node_modules/just-diff/index.mjs +227 -0
- package/node_modules/just-diff/package.json +33 -0
- package/node_modules/just-diff/rollup.config.js +3 -0
- package/node_modules/just-diff-apply/LICENSE +21 -0
- package/node_modules/just-diff-apply/index.cjs +161 -0
- package/node_modules/just-diff-apply/index.mjs +158 -0
- package/node_modules/just-diff-apply/package.json +34 -0
- package/node_modules/just-diff-apply/rollup.config.js +3 -0
- package/node_modules/libnpmaccess/LICENSE +13 -0
- package/node_modules/libnpmaccess/README.md +93 -0
- package/node_modules/libnpmaccess/lib/index.js +140 -0
- package/node_modules/libnpmaccess/package.json +53 -0
- package/node_modules/libnpmdiff/LICENSE +15 -0
- package/node_modules/libnpmdiff/README.md +103 -0
- package/node_modules/libnpmdiff/lib/format-diff.js +118 -0
- package/node_modules/libnpmdiff/lib/index.js +65 -0
- package/node_modules/libnpmdiff/lib/should-print-patch.js +22 -0
- package/node_modules/libnpmdiff/lib/tarball.js +38 -0
- package/node_modules/libnpmdiff/lib/untar.js +96 -0
- package/node_modules/libnpmdiff/package.json +70 -0
- package/node_modules/libnpmexec/LICENSE +15 -0
- package/node_modules/libnpmexec/README.md +47 -0
- package/node_modules/libnpmexec/lib/file-exists.js +33 -0
- package/node_modules/libnpmexec/lib/get-bin-from-manifest.js +22 -0
- package/node_modules/libnpmexec/lib/index.js +332 -0
- package/node_modules/libnpmexec/lib/is-windows.js +1 -0
- package/node_modules/libnpmexec/lib/no-tty.js +1 -0
- package/node_modules/libnpmexec/lib/run-script.js +75 -0
- package/node_modules/libnpmexec/lib/strict-allow-scripts-preflight.js +40 -0
- package/node_modules/libnpmexec/lib/with-lock.js +177 -0
- package/node_modules/libnpmexec/package.json +81 -0
- package/node_modules/libnpmfund/LICENSE +15 -0
- package/node_modules/libnpmfund/README.md +131 -0
- package/node_modules/libnpmfund/lib/index.js +210 -0
- package/node_modules/libnpmfund/package.json +65 -0
- package/node_modules/libnpmorg/LICENSE +13 -0
- package/node_modules/libnpmorg/README.md +148 -0
- package/node_modules/libnpmorg/lib/index.js +64 -0
- package/node_modules/libnpmorg/package.json +62 -0
- package/node_modules/libnpmpack/LICENSE +13 -0
- package/node_modules/libnpmpack/README.md +55 -0
- package/node_modules/libnpmpack/lib/index.js +67 -0
- package/node_modules/libnpmpack/package.json +59 -0
- package/node_modules/libnpmpublish/LICENSE +13 -0
- package/node_modules/libnpmpublish/README.md +127 -0
- package/node_modules/libnpmpublish/lib/index.js +4 -0
- package/node_modules/libnpmpublish/lib/provenance.js +245 -0
- package/node_modules/libnpmpublish/lib/publish.js +231 -0
- package/node_modules/libnpmpublish/lib/unpublish.js +119 -0
- package/node_modules/libnpmpublish/package.json +64 -0
- package/node_modules/libnpmsearch/LICENSE +13 -0
- package/node_modules/libnpmsearch/README.md +173 -0
- package/node_modules/libnpmsearch/lib/index.js +71 -0
- package/node_modules/libnpmsearch/package.json +58 -0
- package/node_modules/libnpmteam/LICENSE +13 -0
- package/node_modules/libnpmteam/README.md +172 -0
- package/node_modules/libnpmteam/lib/index.js +92 -0
- package/node_modules/libnpmteam/package.json +52 -0
- package/node_modules/libnpmversion/LICENSE +15 -0
- package/node_modules/libnpmversion/README.md +166 -0
- package/node_modules/libnpmversion/lib/commit.js +17 -0
- package/node_modules/libnpmversion/lib/enforce-clean.js +32 -0
- package/node_modules/libnpmversion/lib/index.js +38 -0
- package/node_modules/libnpmversion/lib/read-json.js +6 -0
- package/node_modules/libnpmversion/lib/retrieve-tag.js +13 -0
- package/node_modules/libnpmversion/lib/tag.js +30 -0
- package/node_modules/libnpmversion/lib/version.js +136 -0
- package/node_modules/libnpmversion/lib/write-json.js +15 -0
- package/node_modules/libnpmversion/package.json +55 -0
- package/node_modules/lru-cache/LICENSE.md +55 -0
- package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +7 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.js +1726 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.min.js +2 -0
- package/node_modules/lru-cache/dist/commonjs/browser/perf.js +10 -0
- package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +7 -0
- package/node_modules/lru-cache/dist/commonjs/index.js +1726 -0
- package/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
- package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +9 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.js +1726 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
- package/node_modules/lru-cache/dist/commonjs/node/perf.js +10 -0
- package/node_modules/lru-cache/dist/commonjs/package.json +3 -0
- package/node_modules/lru-cache/dist/commonjs/perf.js +10 -0
- package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +4 -0
- package/node_modules/lru-cache/dist/esm/browser/index.js +1722 -0
- package/node_modules/lru-cache/dist/esm/browser/index.min.js +2 -0
- package/node_modules/lru-cache/dist/esm/browser/perf.js +7 -0
- package/node_modules/lru-cache/dist/esm/diagnostics-channel.js +19 -0
- package/node_modules/lru-cache/dist/esm/index.js +1722 -0
- package/node_modules/lru-cache/dist/esm/index.min.js +2 -0
- package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +6 -0
- package/node_modules/lru-cache/dist/esm/node/index.js +1722 -0
- package/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
- package/node_modules/lru-cache/dist/esm/node/perf.js +7 -0
- package/node_modules/lru-cache/dist/esm/package.json +3 -0
- package/node_modules/lru-cache/dist/esm/perf.js +7 -0
- package/node_modules/lru-cache/package.json +154 -0
- package/node_modules/make-fetch-happen/LICENSE +16 -0
- package/node_modules/make-fetch-happen/lib/cache/entry.js +471 -0
- package/node_modules/make-fetch-happen/lib/cache/errors.js +11 -0
- package/node_modules/make-fetch-happen/lib/cache/index.js +49 -0
- package/node_modules/make-fetch-happen/lib/cache/key.js +17 -0
- package/node_modules/make-fetch-happen/lib/cache/policy.js +161 -0
- package/node_modules/make-fetch-happen/lib/fetch.js +118 -0
- package/node_modules/make-fetch-happen/lib/index.js +41 -0
- package/node_modules/make-fetch-happen/lib/options.js +59 -0
- package/node_modules/make-fetch-happen/lib/pipeline.js +41 -0
- package/node_modules/make-fetch-happen/lib/remote.js +134 -0
- package/node_modules/make-fetch-happen/package.json +75 -0
- package/node_modules/minimatch/LICENSE.md +55 -0
- package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
- package/node_modules/minimatch/dist/commonjs/ast.js +845 -0
- package/node_modules/minimatch/dist/commonjs/brace-expressions.js +150 -0
- package/node_modules/minimatch/dist/commonjs/escape.js +30 -0
- package/node_modules/minimatch/dist/commonjs/index.js +1127 -0
- package/node_modules/minimatch/dist/commonjs/package.json +3 -0
- package/node_modules/minimatch/dist/commonjs/unescape.js +38 -0
- package/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
- package/node_modules/minimatch/dist/esm/ast.js +841 -0
- package/node_modules/minimatch/dist/esm/brace-expressions.js +146 -0
- package/node_modules/minimatch/dist/esm/escape.js +26 -0
- package/node_modules/minimatch/dist/esm/index.js +1114 -0
- package/node_modules/minimatch/dist/esm/package.json +3 -0
- package/node_modules/minimatch/dist/esm/unescape.js +34 -0
- package/node_modules/minimatch/package.json +73 -0
- package/node_modules/minipass/LICENSE.md +55 -0
- package/node_modules/minipass/dist/commonjs/index.js +1038 -0
- package/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/node_modules/minipass/dist/esm/index.js +1020 -0
- package/node_modules/minipass/dist/esm/package.json +3 -0
- package/node_modules/minipass/package.json +77 -0
- package/node_modules/minipass-collect/LICENSE +15 -0
- package/node_modules/minipass-collect/index.js +71 -0
- package/node_modules/minipass-collect/package.json +30 -0
- package/node_modules/minipass-fetch/LICENSE +28 -0
- package/node_modules/minipass-fetch/lib/abort-error.js +17 -0
- package/node_modules/minipass-fetch/lib/blob.js +97 -0
- package/node_modules/minipass-fetch/lib/body.js +360 -0
- package/node_modules/minipass-fetch/lib/fetch-error.js +32 -0
- package/node_modules/minipass-fetch/lib/headers.js +267 -0
- package/node_modules/minipass-fetch/lib/index.js +376 -0
- package/node_modules/minipass-fetch/lib/request.js +282 -0
- package/node_modules/minipass-fetch/lib/response.js +90 -0
- package/node_modules/minipass-fetch/package.json +70 -0
- package/node_modules/minipass-flush/LICENSE.md +55 -0
- package/node_modules/minipass-flush/index.js +39 -0
- package/node_modules/minipass-flush/package.json +39 -0
- package/node_modules/minipass-pipeline/LICENSE +15 -0
- package/node_modules/minipass-pipeline/index.js +128 -0
- package/node_modules/minipass-pipeline/node_modules/minipass/LICENSE +15 -0
- package/node_modules/minipass-pipeline/node_modules/minipass/index.js +649 -0
- package/node_modules/minipass-pipeline/node_modules/minipass/node_modules/yallist/LICENSE +15 -0
- package/node_modules/minipass-pipeline/node_modules/minipass/node_modules/yallist/iterator.js +8 -0
- package/node_modules/minipass-pipeline/node_modules/minipass/node_modules/yallist/package.json +29 -0
- package/node_modules/minipass-pipeline/node_modules/minipass/node_modules/yallist/yallist.js +426 -0
- package/node_modules/minipass-pipeline/node_modules/minipass/package.json +56 -0
- package/node_modules/minipass-pipeline/package.json +29 -0
- package/node_modules/minipass-sized/LICENSE +15 -0
- package/node_modules/minipass-sized/dist/commonjs/index.js +69 -0
- package/node_modules/minipass-sized/dist/commonjs/package.json +3 -0
- package/node_modules/minipass-sized/dist/esm/index.js +64 -0
- package/node_modules/minipass-sized/dist/esm/package.json +3 -0
- package/node_modules/minipass-sized/package.json +69 -0
- package/node_modules/minizlib/LICENSE +26 -0
- package/node_modules/minizlib/dist/commonjs/constants.js +123 -0
- package/node_modules/minizlib/dist/commonjs/index.js +416 -0
- package/node_modules/minizlib/dist/commonjs/package.json +3 -0
- package/node_modules/minizlib/dist/esm/constants.js +117 -0
- package/node_modules/minizlib/dist/esm/index.js +363 -0
- package/node_modules/minizlib/dist/esm/package.json +3 -0
- package/node_modules/minizlib/package.json +80 -0
- package/node_modules/ms/index.js +162 -0
- package/node_modules/ms/license.md +21 -0
- package/node_modules/ms/package.json +38 -0
- package/node_modules/mute-stream/LICENSE +15 -0
- package/node_modules/mute-stream/lib/index.js +142 -0
- package/node_modules/mute-stream/package.json +54 -0
- package/node_modules/negotiator/HISTORY.md +114 -0
- package/node_modules/negotiator/LICENSE +24 -0
- package/node_modules/negotiator/index.js +83 -0
- package/node_modules/negotiator/lib/charset.js +169 -0
- package/node_modules/negotiator/lib/encoding.js +205 -0
- package/node_modules/negotiator/lib/language.js +179 -0
- package/node_modules/negotiator/lib/mediaType.js +294 -0
- package/node_modules/negotiator/package.json +43 -0
- package/node_modules/node-gyp/.release-please-manifest.json +3 -0
- package/node_modules/node-gyp/CHANGELOG.md +1240 -0
- package/node_modules/node-gyp/CODE_OF_CONDUCT.md +4 -0
- package/node_modules/node-gyp/CONTRIBUTING.md +44 -0
- package/node_modules/node-gyp/LICENSE +24 -0
- package/node_modules/node-gyp/README.md +290 -0
- package/node_modules/node-gyp/SECURITY.md +2 -0
- package/node_modules/node-gyp/addon.gypi +204 -0
- package/node_modules/node-gyp/bin/node-gyp.js +145 -0
- package/node_modules/node-gyp/eslint.config.js +3 -0
- package/node_modules/node-gyp/gyp/.release-please-manifest.json +3 -0
- package/node_modules/node-gyp/gyp/LICENSE +28 -0
- package/node_modules/node-gyp/gyp/data/ninja/build.ninja +4 -0
- package/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc +12 -0
- package/node_modules/node-gyp/gyp/docs/GypVsCMake.md +116 -0
- package/node_modules/node-gyp/gyp/docs/Hacking.md +46 -0
- package/node_modules/node-gyp/gyp/docs/InputFormatReference.md +1083 -0
- package/node_modules/node-gyp/gyp/docs/LanguageSpecification.md +430 -0
- package/node_modules/node-gyp/gyp/docs/README.md +27 -0
- package/node_modules/node-gyp/gyp/docs/Testing.md +450 -0
- package/node_modules/node-gyp/gyp/docs/UserDocumentation.md +965 -0
- package/node_modules/node-gyp/gyp/gyp +8 -0
- package/node_modules/node-gyp/gyp/gyp.bat +5 -0
- package/node_modules/node-gyp/gyp/gyp_main.py +45 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +365 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +206 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +1283 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +1545 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +59 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +152 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +270 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +607 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +706 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/common.py +725 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +186 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +170 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +113 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +55 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +805 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +1169 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +1316 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +128 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +104 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +461 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +88 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +55 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +2755 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +3970 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +44 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +2957 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +77 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +1389 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +26 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/input.py +3097 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +99 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +765 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +1255 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +174 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +61 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +371 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +1936 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +54 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +301 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +3180 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +64 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/LICENSE +3 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +177 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.BSD +23 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/__init__.py +15 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/_elffile.py +107 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/_manylinux.py +252 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/_musllinux.py +83 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/_parser.py +359 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/_structures.py +61 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/_tokenizer.py +192 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/markers.py +251 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +807 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/py.typed +0 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/requirements.py +90 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/specifiers.py +1030 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/tags.py +541 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/utils.py +172 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/version.py +563 -0
- package/node_modules/node-gyp/gyp/pyproject.toml +116 -0
- package/node_modules/node-gyp/gyp/release-please-config.json +11 -0
- package/node_modules/node-gyp/gyp/test_gyp.py +260 -0
- package/node_modules/node-gyp/lib/Find-VisualStudio.cs +250 -0
- package/node_modules/node-gyp/lib/build.js +230 -0
- package/node_modules/node-gyp/lib/clean.js +15 -0
- package/node_modules/node-gyp/lib/configure.js +328 -0
- package/node_modules/node-gyp/lib/create-config-gypi.js +153 -0
- package/node_modules/node-gyp/lib/download.js +86 -0
- package/node_modules/node-gyp/lib/find-node-directory.js +63 -0
- package/node_modules/node-gyp/lib/find-python.js +304 -0
- package/node_modules/node-gyp/lib/find-visualstudio.js +606 -0
- package/node_modules/node-gyp/lib/install.js +411 -0
- package/node_modules/node-gyp/lib/list.js +26 -0
- package/node_modules/node-gyp/lib/log.js +168 -0
- package/node_modules/node-gyp/lib/node-gyp.js +199 -0
- package/node_modules/node-gyp/lib/process-release.js +144 -0
- package/node_modules/node-gyp/lib/rebuild.js +12 -0
- package/node_modules/node-gyp/lib/remove.js +43 -0
- package/node_modules/node-gyp/lib/util.js +81 -0
- package/node_modules/node-gyp/macOS_Catalina_acid_test.sh +21 -0
- package/node_modules/node-gyp/package.json +52 -0
- package/node_modules/node-gyp/release-please-config.json +40 -0
- package/node_modules/node-gyp/src/win_delay_load_hook.cc +41 -0
- package/node_modules/nopt/LICENSE +15 -0
- package/node_modules/nopt/README.md +214 -0
- package/node_modules/nopt/bin/nopt.js +29 -0
- package/node_modules/nopt/lib/debug.js +5 -0
- package/node_modules/nopt/lib/nopt-lib.js +514 -0
- package/node_modules/nopt/lib/nopt.js +34 -0
- package/node_modules/nopt/lib/type-defs.js +91 -0
- package/node_modules/nopt/package.json +52 -0
- package/node_modules/npm/LICENSE +235 -0
- package/node_modules/npm/README.md +53 -0
- package/node_modules/npm/bin/node-gyp-bin/node-gyp +6 -0
- package/node_modules/npm/bin/node-gyp-bin/node-gyp.cmd +5 -0
- package/node_modules/npm/bin/npm +65 -0
- package/node_modules/npm/bin/npm-cli.js +2 -0
- package/node_modules/npm/bin/npm-prefix.js +30 -0
- package/node_modules/npm/bin/npm.cmd +20 -0
- package/node_modules/npm/bin/npm.ps1 +50 -0
- package/node_modules/npm/bin/npx +65 -0
- package/node_modules/npm/bin/npx-cli.js +130 -0
- package/node_modules/npm/bin/npx.cmd +20 -0
- package/node_modules/npm/bin/npx.ps1 +50 -0
- package/node_modules/npm/docs/content/commands/npm-access.md +95 -0
- package/node_modules/npm/docs/content/commands/npm-adduser.md +87 -0
- package/node_modules/npm/docs/content/commands/npm-approve-scripts.md +142 -0
- package/node_modules/npm/docs/content/commands/npm-audit.md +449 -0
- package/node_modules/npm/docs/content/commands/npm-bugs.md +106 -0
- package/node_modules/npm/docs/content/commands/npm-cache.md +100 -0
- package/node_modules/npm/docs/content/commands/npm-ci.md +446 -0
- package/node_modules/npm/docs/content/commands/npm-completion.md +36 -0
- package/node_modules/npm/docs/content/commands/npm-config.md +176 -0
- package/node_modules/npm/docs/content/commands/npm-dedupe.md +389 -0
- package/node_modules/npm/docs/content/commands/npm-deny-scripts.md +110 -0
- package/node_modules/npm/docs/content/commands/npm-deprecate.md +85 -0
- package/node_modules/npm/docs/content/commands/npm-diff.md +282 -0
- package/node_modules/npm/docs/content/commands/npm-dist-tag.md +138 -0
- package/node_modules/npm/docs/content/commands/npm-docs.md +106 -0
- package/node_modules/npm/docs/content/commands/npm-doctor.md +98 -0
- package/node_modules/npm/docs/content/commands/npm-edit.md +41 -0
- package/node_modules/npm/docs/content/commands/npm-exec.md +368 -0
- package/node_modules/npm/docs/content/commands/npm-explain.md +101 -0
- package/node_modules/npm/docs/content/commands/npm-explore.md +46 -0
- package/node_modules/npm/docs/content/commands/npm-find-dupes.md +253 -0
- package/node_modules/npm/docs/content/commands/npm-fund.md +136 -0
- package/node_modules/npm/docs/content/commands/npm-get.md +32 -0
- package/node_modules/npm/docs/content/commands/npm-help-search.md +38 -0
- package/node_modules/npm/docs/content/commands/npm-help.md +44 -0
- package/node_modules/npm/docs/content/commands/npm-init.md +348 -0
- package/node_modules/npm/docs/content/commands/npm-install-ci-test.md +400 -0
- package/node_modules/npm/docs/content/commands/npm-install-scripts.md +166 -0
- package/node_modules/npm/docs/content/commands/npm-install-test.md +593 -0
- package/node_modules/npm/docs/content/commands/npm-install.md +976 -0
- package/node_modules/npm/docs/content/commands/npm-link.md +456 -0
- package/node_modules/npm/docs/content/commands/npm-ll.md +230 -0
- package/node_modules/npm/docs/content/commands/npm-login.md +93 -0
- package/node_modules/npm/docs/content/commands/npm-logout.md +72 -0
- package/node_modules/npm/docs/content/commands/npm-ls.md +260 -0
- package/node_modules/npm/docs/content/commands/npm-org.md +113 -0
- package/node_modules/npm/docs/content/commands/npm-outdated.md +247 -0
- package/node_modules/npm/docs/content/commands/npm-owner.md +104 -0
- package/node_modules/npm/docs/content/commands/npm-pack.md +135 -0
- package/node_modules/npm/docs/content/commands/npm-ping.md +46 -0
- package/node_modules/npm/docs/content/commands/npm-pkg.md +244 -0
- package/node_modules/npm/docs/content/commands/npm-prefix.md +58 -0
- package/node_modules/npm/docs/content/commands/npm-profile.md +115 -0
- package/node_modules/npm/docs/content/commands/npm-prune.md +191 -0
- package/node_modules/npm/docs/content/commands/npm-publish.md +247 -0
- package/node_modules/npm/docs/content/commands/npm-query.md +354 -0
- package/node_modules/npm/docs/content/commands/npm-rebuild.md +224 -0
- package/node_modules/npm/docs/content/commands/npm-repo.md +99 -0
- package/node_modules/npm/docs/content/commands/npm-restart.md +68 -0
- package/node_modules/npm/docs/content/commands/npm-root.md +51 -0
- package/node_modules/npm/docs/content/commands/npm-run.md +231 -0
- package/node_modules/npm/docs/content/commands/npm-sbom.md +317 -0
- package/node_modules/npm/docs/content/commands/npm-search.md +154 -0
- package/node_modules/npm/docs/content/commands/npm-set.md +58 -0
- package/node_modules/npm/docs/content/commands/npm-shrinkwrap.md +29 -0
- package/node_modules/npm/docs/content/commands/npm-stage.md +253 -0
- package/node_modules/npm/docs/content/commands/npm-star.md +79 -0
- package/node_modules/npm/docs/content/commands/npm-stars.md +38 -0
- package/node_modules/npm/docs/content/commands/npm-start.md +76 -0
- package/node_modules/npm/docs/content/commands/npm-stop.md +71 -0
- package/node_modules/npm/docs/content/commands/npm-team.md +144 -0
- package/node_modules/npm/docs/content/commands/npm-test.md +69 -0
- package/node_modules/npm/docs/content/commands/npm-token.md +203 -0
- package/node_modules/npm/docs/content/commands/npm-trust.md +176 -0
- package/node_modules/npm/docs/content/commands/npm-undeprecate.md +61 -0
- package/node_modules/npm/docs/content/commands/npm-uninstall.md +151 -0
- package/node_modules/npm/docs/content/commands/npm-unpublish.md +126 -0
- package/node_modules/npm/docs/content/commands/npm-unstar.md +73 -0
- package/node_modules/npm/docs/content/commands/npm-update.md +576 -0
- package/node_modules/npm/docs/content/commands/npm-version.md +256 -0
- package/node_modules/npm/docs/content/commands/npm-view.md +258 -0
- package/node_modules/npm/docs/content/commands/npm-whoami.md +38 -0
- package/node_modules/npm/docs/content/commands/npm.md +148 -0
- package/node_modules/npm/docs/content/commands/npx.md +139 -0
- package/node_modules/npm/docs/content/configuring-npm/folders.md +172 -0
- package/node_modules/npm/docs/content/configuring-npm/install.md +53 -0
- package/node_modules/npm/docs/content/configuring-npm/npm-shrinkwrap-json.md +25 -0
- package/node_modules/npm/docs/content/configuring-npm/npmrc.md +193 -0
- package/node_modules/npm/docs/content/configuring-npm/package-json.md +1210 -0
- package/node_modules/npm/docs/content/configuring-npm/package-lock-json.md +182 -0
- package/node_modules/npm/docs/content/using-npm/config.md +2411 -0
- package/node_modules/npm/docs/content/using-npm/dependency-selectors.md +247 -0
- package/node_modules/npm/docs/content/using-npm/developers.md +233 -0
- package/node_modules/npm/docs/content/using-npm/logging.md +99 -0
- package/node_modules/npm/docs/content/using-npm/orgs.md +98 -0
- package/node_modules/npm/docs/content/using-npm/package-spec.md +92 -0
- package/node_modules/npm/docs/content/using-npm/registry.md +61 -0
- package/node_modules/npm/docs/content/using-npm/removal.md +55 -0
- package/node_modules/npm/docs/content/using-npm/scope.md +123 -0
- package/node_modules/npm/docs/content/using-npm/scripts.md +373 -0
- package/node_modules/npm/docs/content/using-npm/workspaces.md +219 -0
- package/node_modules/npm/docs/output/commands/npm-access.html +280 -0
- package/node_modules/npm/docs/output/commands/npm-adduser.html +271 -0
- package/node_modules/npm/docs/output/commands/npm-approve-scripts.html +319 -0
- package/node_modules/npm/docs/output/commands/npm-audit.html +528 -0
- package/node_modules/npm/docs/output/commands/npm-bugs.html +293 -0
- package/node_modules/npm/docs/output/commands/npm-cache.html +300 -0
- package/node_modules/npm/docs/output/commands/npm-ci.html +549 -0
- package/node_modules/npm/docs/output/commands/npm-completion.html +234 -0
- package/node_modules/npm/docs/output/commands/npm-config.html +331 -0
- package/node_modules/npm/docs/output/commands/npm-dedupe.html +500 -0
- package/node_modules/npm/docs/output/commands/npm-deny-scripts.html +291 -0
- package/node_modules/npm/docs/output/commands/npm-deprecate.html +267 -0
- package/node_modules/npm/docs/output/commands/npm-diff.html +415 -0
- package/node_modules/npm/docs/output/commands/npm-dist-tag.html +318 -0
- package/node_modules/npm/docs/output/commands/npm-docs.html +293 -0
- package/node_modules/npm/docs/output/commands/npm-doctor.html +282 -0
- package/node_modules/npm/docs/output/commands/npm-edit.html +238 -0
- package/node_modules/npm/docs/output/commands/npm-exec.html +477 -0
- package/node_modules/npm/docs/output/commands/npm-explain.html +291 -0
- package/node_modules/npm/docs/output/commands/npm-explore.html +240 -0
- package/node_modules/npm/docs/output/commands/npm-find-dupes.html +400 -0
- package/node_modules/npm/docs/output/commands/npm-fund.html +311 -0
- package/node_modules/npm/docs/output/commands/npm-get.html +231 -0
- package/node_modules/npm/docs/output/commands/npm-help-search.html +235 -0
- package/node_modules/npm/docs/output/commands/npm-help.html +241 -0
- package/node_modules/npm/docs/output/commands/npm-init.html +467 -0
- package/node_modules/npm/docs/output/commands/npm-install-ci-test.html +514 -0
- package/node_modules/npm/docs/output/commands/npm-install-scripts.html +341 -0
- package/node_modules/npm/docs/output/commands/npm-install-test.html +657 -0
- package/node_modules/npm/docs/output/commands/npm-install.html +963 -0
- package/node_modules/npm/docs/output/commands/npm-link.html +546 -0
- package/node_modules/npm/docs/output/commands/npm-ll.html +382 -0
- package/node_modules/npm/docs/output/commands/npm-login.html +274 -0
- package/node_modules/npm/docs/output/commands/npm-logout.html +259 -0
- package/node_modules/npm/docs/output/commands/npm-ls.html +404 -0
- package/node_modules/npm/docs/output/commands/npm-org.html +283 -0
- package/node_modules/npm/docs/output/commands/npm-outdated.html +407 -0
- package/node_modules/npm/docs/output/commands/npm-owner.html +294 -0
- package/node_modules/npm/docs/output/commands/npm-pack.html +314 -0
- package/node_modules/npm/docs/output/commands/npm-ping.html +242 -0
- package/node_modules/npm/docs/output/commands/npm-pkg.html +389 -0
- package/node_modules/npm/docs/output/commands/npm-prefix.html +252 -0
- package/node_modules/npm/docs/output/commands/npm-profile.html +309 -0
- package/node_modules/npm/docs/output/commands/npm-prune.html +352 -0
- package/node_modules/npm/docs/output/commands/npm-publish.html +397 -0
- package/node_modules/npm/docs/output/commands/npm-query.html +500 -0
- package/node_modules/npm/docs/output/commands/npm-rebuild.html +384 -0
- package/node_modules/npm/docs/output/commands/npm-repo.html +286 -0
- package/node_modules/npm/docs/output/commands/npm-restart.html +263 -0
- package/node_modules/npm/docs/output/commands/npm-root.html +248 -0
- package/node_modules/npm/docs/output/commands/npm-run.html +376 -0
- package/node_modules/npm/docs/output/commands/npm-sbom.html +490 -0
- package/node_modules/npm/docs/output/commands/npm-search.html +320 -0
- package/node_modules/npm/docs/output/commands/npm-set.html +255 -0
- package/node_modules/npm/docs/output/commands/npm-shrinkwrap.html +232 -0
- package/node_modules/npm/docs/output/commands/npm-stage.html +609 -0
- package/node_modules/npm/docs/output/commands/npm-star.html +263 -0
- package/node_modules/npm/docs/output/commands/npm-stars.html +236 -0
- package/node_modules/npm/docs/output/commands/npm-start.html +263 -0
- package/node_modules/npm/docs/output/commands/npm-stop.html +260 -0
- package/node_modules/npm/docs/output/commands/npm-team.html +314 -0
- package/node_modules/npm/docs/output/commands/npm-test.html +259 -0
- package/node_modules/npm/docs/output/commands/npm-token.html +351 -0
- package/node_modules/npm/docs/output/commands/npm-trust.html +552 -0
- package/node_modules/npm/docs/output/commands/npm-undeprecate.html +252 -0
- package/node_modules/npm/docs/output/commands/npm-uninstall.html +323 -0
- package/node_modules/npm/docs/output/commands/npm-unpublish.html +310 -0
- package/node_modules/npm/docs/output/commands/npm-unstar.html +258 -0
- package/node_modules/npm/docs/output/commands/npm-update.html +635 -0
- package/node_modules/npm/docs/output/commands/npm-version.html +404 -0
- package/node_modules/npm/docs/output/commands/npm-view.html +383 -0
- package/node_modules/npm/docs/output/commands/npm-whoami.html +235 -0
- package/node_modules/npm/docs/output/commands/npm.html +323 -0
- package/node_modules/npm/docs/output/commands/npx.html +308 -0
- package/node_modules/npm/docs/output/configuring-npm/folders.html +331 -0
- package/node_modules/npm/docs/output/configuring-npm/install.html +249 -0
- package/node_modules/npm/docs/output/configuring-npm/npm-global.html +331 -0
- package/node_modules/npm/docs/output/configuring-npm/npm-json.html +1097 -0
- package/node_modules/npm/docs/output/configuring-npm/npm-shrinkwrap-json.html +229 -0
- package/node_modules/npm/docs/output/configuring-npm/npmrc.html +347 -0
- package/node_modules/npm/docs/output/configuring-npm/package-json.html +1097 -0
- package/node_modules/npm/docs/output/configuring-npm/package-lock-json.html +391 -0
- package/node_modules/npm/docs/output/using-npm/config.html +1956 -0
- package/node_modules/npm/docs/output/using-npm/dependency-selectors.html +425 -0
- package/node_modules/npm/docs/output/using-npm/developers.html +389 -0
- package/node_modules/npm/docs/output/using-npm/logging.html +284 -0
- package/node_modules/npm/docs/output/using-npm/orgs.html +294 -0
- package/node_modules/npm/docs/output/using-npm/package-spec.html +295 -0
- package/node_modules/npm/docs/output/using-npm/registry.html +255 -0
- package/node_modules/npm/docs/output/using-npm/removal.html +245 -0
- package/node_modules/npm/docs/output/using-npm/scope.html +290 -0
- package/node_modules/npm/docs/output/using-npm/scripts.html +539 -0
- package/node_modules/npm/docs/output/using-npm/workspaces.html +352 -0
- package/node_modules/npm/index.js +5 -0
- package/node_modules/npm/lib/arborist-cmd.js +49 -0
- package/node_modules/npm/lib/base-cmd.js +437 -0
- package/node_modules/npm/lib/cli/entry.js +72 -0
- package/node_modules/npm/lib/cli/exit-handler.js +168 -0
- package/node_modules/npm/lib/cli/update-notifier.js +115 -0
- package/node_modules/npm/lib/cli/validate-engines.js +43 -0
- package/node_modules/npm/lib/cli.js +12 -0
- package/node_modules/npm/lib/commands/access.js +226 -0
- package/node_modules/npm/lib/commands/adduser.js +50 -0
- package/node_modules/npm/lib/commands/approve-scripts.js +10 -0
- package/node_modules/npm/lib/commands/audit.js +138 -0
- package/node_modules/npm/lib/commands/bugs.js +34 -0
- package/node_modules/npm/lib/commands/cache.js +363 -0
- package/node_modules/npm/lib/commands/ci.js +138 -0
- package/node_modules/npm/lib/commands/completion.js +329 -0
- package/node_modules/npm/lib/commands/config.js +414 -0
- package/node_modules/npm/lib/commands/dedupe.js +57 -0
- package/node_modules/npm/lib/commands/deny-scripts.js +10 -0
- package/node_modules/npm/lib/commands/deprecate.js +86 -0
- package/node_modules/npm/lib/commands/diff.js +280 -0
- package/node_modules/npm/lib/commands/dist-tag.js +207 -0
- package/node_modules/npm/lib/commands/docs.js +21 -0
- package/node_modules/npm/lib/commands/doctor.js +343 -0
- package/node_modules/npm/lib/commands/edit.js +64 -0
- package/node_modules/npm/lib/commands/exec.js +119 -0
- package/node_modules/npm/lib/commands/explain.js +128 -0
- package/node_modules/npm/lib/commands/explore.js +70 -0
- package/node_modules/npm/lib/commands/find-dupes.js +27 -0
- package/node_modules/npm/lib/commands/fund.js +215 -0
- package/node_modules/npm/lib/commands/get.js +21 -0
- package/node_modules/npm/lib/commands/help-search.js +194 -0
- package/node_modules/npm/lib/commands/help.js +113 -0
- package/node_modules/npm/lib/commands/init.js +240 -0
- package/node_modules/npm/lib/commands/install-ci-test.js +13 -0
- package/node_modules/npm/lib/commands/install-scripts.js +53 -0
- package/node_modules/npm/lib/commands/install-test.js +13 -0
- package/node_modules/npm/lib/commands/install.js +184 -0
- package/node_modules/npm/lib/commands/link.js +205 -0
- package/node_modules/npm/lib/commands/ll.js +13 -0
- package/node_modules/npm/lib/commands/login.js +50 -0
- package/node_modules/npm/lib/commands/logout.js +50 -0
- package/node_modules/npm/lib/commands/ls.js +572 -0
- package/node_modules/npm/lib/commands/org.js +148 -0
- package/node_modules/npm/lib/commands/outdated.js +294 -0
- package/node_modules/npm/lib/commands/owner.js +244 -0
- package/node_modules/npm/lib/commands/pack.js +98 -0
- package/node_modules/npm/lib/commands/ping.js +30 -0
- package/node_modules/npm/lib/commands/pkg.js +127 -0
- package/node_modules/npm/lib/commands/prefix.js +14 -0
- package/node_modules/npm/lib/commands/profile.js +366 -0
- package/node_modules/npm/lib/commands/prune.js +36 -0
- package/node_modules/npm/lib/commands/publish.js +314 -0
- package/node_modules/npm/lib/commands/query.js +164 -0
- package/node_modules/npm/lib/commands/rebuild.js +123 -0
- package/node_modules/npm/lib/commands/repo.js +55 -0
- package/node_modules/npm/lib/commands/restart.js +13 -0
- package/node_modules/npm/lib/commands/root.js +14 -0
- package/node_modules/npm/lib/commands/run.js +222 -0
- package/node_modules/npm/lib/commands/sbom.js +130 -0
- package/node_modules/npm/lib/commands/search.js +70 -0
- package/node_modules/npm/lib/commands/set.js +24 -0
- package/node_modules/npm/lib/commands/shrinkwrap.js +70 -0
- package/node_modules/npm/lib/commands/stage/approve.js +35 -0
- package/node_modules/npm/lib/commands/stage/download.js +70 -0
- package/node_modules/npm/lib/commands/stage/index.js +25 -0
- package/node_modules/npm/lib/commands/stage/list.js +72 -0
- package/node_modules/npm/lib/commands/stage/publish.js +13 -0
- package/node_modules/npm/lib/commands/stage/reject.js +37 -0
- package/node_modules/npm/lib/commands/stage/view.js +34 -0
- package/node_modules/npm/lib/commands/star.js +72 -0
- package/node_modules/npm/lib/commands/stars.js +39 -0
- package/node_modules/npm/lib/commands/start.js +13 -0
- package/node_modules/npm/lib/commands/stop.js +13 -0
- package/node_modules/npm/lib/commands/team.js +158 -0
- package/node_modules/npm/lib/commands/test.js +13 -0
- package/node_modules/npm/lib/commands/token.js +285 -0
- package/node_modules/npm/lib/commands/trust/circleci.js +178 -0
- package/node_modules/npm/lib/commands/trust/github.js +107 -0
- package/node_modules/npm/lib/commands/trust/gitlab.js +108 -0
- package/node_modules/npm/lib/commands/trust/index.js +25 -0
- package/node_modules/npm/lib/commands/trust/list.js +50 -0
- package/node_modules/npm/lib/commands/trust/revoke.js +52 -0
- package/node_modules/npm/lib/commands/undeprecate.js +13 -0
- package/node_modules/npm/lib/commands/uninstall.js +57 -0
- package/node_modules/npm/lib/commands/unpublish.js +163 -0
- package/node_modules/npm/lib/commands/unstar.js +8 -0
- package/node_modules/npm/lib/commands/update.js +77 -0
- package/node_modules/npm/lib/commands/version.js +152 -0
- package/node_modules/npm/lib/commands/view.js +488 -0
- package/node_modules/npm/lib/commands/whoami.js +20 -0
- package/node_modules/npm/lib/lifecycle-cmd.js +20 -0
- package/node_modules/npm/lib/npm.js +526 -0
- package/node_modules/npm/lib/package-url-cmd.js +63 -0
- package/node_modules/npm/lib/trust-cmd.js +345 -0
- package/node_modules/npm/lib/utils/allow-scripts-cmd.js +403 -0
- package/node_modules/npm/lib/utils/allow-scripts-prune.js +47 -0
- package/node_modules/npm/lib/utils/allow-scripts-remediation.js +9 -0
- package/node_modules/npm/lib/utils/allow-scripts-writer.js +362 -0
- package/node_modules/npm/lib/utils/audit-error.js +40 -0
- package/node_modules/npm/lib/utils/auth.js +108 -0
- package/node_modules/npm/lib/utils/check-allow-scripts.js +27 -0
- package/node_modules/npm/lib/utils/cmd-list.js +183 -0
- package/node_modules/npm/lib/utils/completion.fish +40 -0
- package/node_modules/npm/lib/utils/completion.sh +70 -0
- package/node_modules/npm/lib/utils/did-you-mean.js +33 -0
- package/node_modules/npm/lib/utils/display.js +558 -0
- package/node_modules/npm/lib/utils/error-message.js +453 -0
- package/node_modules/npm/lib/utils/explain-dep.js +116 -0
- package/node_modules/npm/lib/utils/explain-eresolve.js +64 -0
- package/node_modules/npm/lib/utils/format-bytes.js +29 -0
- package/node_modules/npm/lib/utils/format-search-stream.js +175 -0
- package/node_modules/npm/lib/utils/format.js +56 -0
- package/node_modules/npm/lib/utils/get-identity.js +25 -0
- package/node_modules/npm/lib/utils/get-workspaces.js +54 -0
- package/node_modules/npm/lib/utils/installed-deep.js +45 -0
- package/node_modules/npm/lib/utils/installed-shallow.js +19 -0
- package/node_modules/npm/lib/utils/is-windows.js +4 -0
- package/node_modules/npm/lib/utils/key-values.js +42 -0
- package/node_modules/npm/lib/utils/log-file.js +247 -0
- package/node_modules/npm/lib/utils/npm-usage.js +74 -0
- package/node_modules/npm/lib/utils/oidc.js +177 -0
- package/node_modules/npm/lib/utils/open-url.js +97 -0
- package/node_modules/npm/lib/utils/output-error.js +30 -0
- package/node_modules/npm/lib/utils/ping.js +6 -0
- package/node_modules/npm/lib/utils/queryable.js +292 -0
- package/node_modules/npm/lib/utils/read-user-info.js +69 -0
- package/node_modules/npm/lib/utils/reify-finish.js +25 -0
- package/node_modules/npm/lib/utils/reify-output.js +291 -0
- package/node_modules/npm/lib/utils/resolve-allow-scripts.js +181 -0
- package/node_modules/npm/lib/utils/sbom-cyclonedx.js +210 -0
- package/node_modules/npm/lib/utils/sbom-spdx.js +211 -0
- package/node_modules/npm/lib/utils/strict-allow-scripts-preflight.js +76 -0
- package/node_modules/npm/lib/utils/tar.js +110 -0
- package/node_modules/npm/lib/utils/timers.js +89 -0
- package/node_modules/npm/lib/utils/update-workspaces.js +37 -0
- package/node_modules/npm/lib/utils/validate-lockfile.js +29 -0
- package/node_modules/npm/lib/utils/validate-uuid.js +10 -0
- package/node_modules/npm/lib/utils/verify-signatures.js +397 -0
- package/node_modules/npm/lib/utils/warn-workspace-allow-scripts.js +40 -0
- package/node_modules/npm/man/man1/npm-access.1 +105 -0
- package/node_modules/npm/man/man1/npm-adduser.1 +93 -0
- package/node_modules/npm/man/man1/npm-approve-scripts.1 +117 -0
- package/node_modules/npm/man/man1/npm-audit.1 +466 -0
- package/node_modules/npm/man/man1/npm-bugs.1 +115 -0
- package/node_modules/npm/man/man1/npm-cache.1 +95 -0
- package/node_modules/npm/man/man1/npm-ci.1 +377 -0
- package/node_modules/npm/man/man1/npm-completion.1 +35 -0
- package/node_modules/npm/man/man1/npm-config.1 +186 -0
- package/node_modules/npm/man/man1/npm-dedupe.1 +340 -0
- package/node_modules/npm/man/man1/npm-deny-scripts.1 +99 -0
- package/node_modules/npm/man/man1/npm-deprecate.1 +85 -0
- package/node_modules/npm/man/man1/npm-diff.1 +310 -0
- package/node_modules/npm/man/man1/npm-dist-tag.1 +144 -0
- package/node_modules/npm/man/man1/npm-docs.1 +113 -0
- package/node_modules/npm/man/man1/npm-doctor.1 +82 -0
- package/node_modules/npm/man/man1/npm-edit.1 +43 -0
- package/node_modules/npm/man/man1/npm-exec.1 +388 -0
- package/node_modules/npm/man/man1/npm-explain.1 +118 -0
- package/node_modules/npm/man/man1/npm-explore.1 +49 -0
- package/node_modules/npm/man/man1/npm-find-dupes.1 +227 -0
- package/node_modules/npm/man/man1/npm-fund.1 +142 -0
- package/node_modules/npm/man/man1/npm-get.1 +31 -0
- package/node_modules/npm/man/man1/npm-help-search.1 +37 -0
- package/node_modules/npm/man/man1/npm-help.1 +47 -0
- package/node_modules/npm/man/man1/npm-init.1 +393 -0
- package/node_modules/npm/man/man1/npm-install-ci-test.1 +327 -0
- package/node_modules/npm/man/man1/npm-install-scripts.1 +133 -0
- package/node_modules/npm/man/man1/npm-install-test.1 +497 -0
- package/node_modules/npm/man/man1/npm-install.1 +941 -0
- package/node_modules/npm/man/man1/npm-link.1 +405 -0
- package/node_modules/npm/man/man1/npm-ll.1 +231 -0
- package/node_modules/npm/man/man1/npm-login.1 +97 -0
- package/node_modules/npm/man/man1/npm-logout.1 +75 -0
- package/node_modules/npm/man/man1/npm-ls.1 +271 -0
- package/node_modules/npm/man/man1/npm-org.1 +125 -0
- package/node_modules/npm/man/man1/npm-outdated.1 +247 -0
- package/node_modules/npm/man/man1/npm-owner.1 +110 -0
- package/node_modules/npm/man/man1/npm-pack.1 +142 -0
- package/node_modules/npm/man/man1/npm-ping.1 +52 -0
- package/node_modules/npm/man/man1/npm-pkg.1 +286 -0
- package/node_modules/npm/man/man1/npm-prefix.1 +63 -0
- package/node_modules/npm/man/man1/npm-profile.1 +126 -0
- package/node_modules/npm/man/man1/npm-prune.1 +184 -0
- package/node_modules/npm/man/man1/npm-publish.1 +263 -0
- package/node_modules/npm/man/man1/npm-query.1 +344 -0
- package/node_modules/npm/man/man1/npm-rebuild.1 +216 -0
- package/node_modules/npm/man/man1/npm-repo.1 +103 -0
- package/node_modules/npm/man/man1/npm-restart.1 +84 -0
- package/node_modules/npm/man/man1/npm-root.1 +56 -0
- package/node_modules/npm/man/man1/npm-run.1 +234 -0
- package/node_modules/npm/man/man1/npm-sbom.1 +314 -0
- package/node_modules/npm/man/man1/npm-search.1 +156 -0
- package/node_modules/npm/man/man1/npm-set.1 +61 -0
- package/node_modules/npm/man/man1/npm-shrinkwrap.1 +32 -0
- package/node_modules/npm/man/man1/npm-stage.1 +178 -0
- package/node_modules/npm/man/man1/npm-star.1 +76 -0
- package/node_modules/npm/man/man1/npm-stars.1 +41 -0
- package/node_modules/npm/man/man1/npm-start.1 +79 -0
- package/node_modules/npm/man/man1/npm-stop.1 +75 -0
- package/node_modules/npm/man/man1/npm-team.1 +148 -0
- package/node_modules/npm/man/man1/npm-test.1 +73 -0
- package/node_modules/npm/man/man1/npm-token.1 +200 -0
- package/node_modules/npm/man/man1/npm-trust.1 +143 -0
- package/node_modules/npm/man/man1/npm-undeprecate.1 +57 -0
- package/node_modules/npm/man/man1/npm-uninstall.1 +159 -0
- package/node_modules/npm/man/man1/npm-unpublish.1 +137 -0
- package/node_modules/npm/man/man1/npm-unstar.1 +70 -0
- package/node_modules/npm/man/man1/npm-update.1 +509 -0
- package/node_modules/npm/man/man1/npm-version.1 +259 -0
- package/node_modules/npm/man/man1/npm-view.1 +284 -0
- package/node_modules/npm/man/man1/npm-whoami.1 +39 -0
- package/node_modules/npm/man/man1/npm.1 +131 -0
- package/node_modules/npm/man/man1/npx.1 +158 -0
- package/node_modules/npm/man/man5/folders.5 +147 -0
- package/node_modules/npm/man/man5/install.5 +54 -0
- package/node_modules/npm/man/man5/npm-global.5 +147 -0
- package/node_modules/npm/man/man5/npm-json.5 +1269 -0
- package/node_modules/npm/man/man5/npm-shrinkwrap-json.5 +23 -0
- package/node_modules/npm/man/man5/npmrc.5 +195 -0
- package/node_modules/npm/man/man5/package-json.5 +1269 -0
- package/node_modules/npm/man/man5/package-lock-json.5 +166 -0
- package/node_modules/npm/man/man7/config.7 +2379 -0
- package/node_modules/npm/man/man7/dependency-selectors.7 +331 -0
- package/node_modules/npm/man/man7/developers.7 +251 -0
- package/node_modules/npm/man/man7/logging.7 +108 -0
- package/node_modules/npm/man/man7/orgs.7 +145 -0
- package/node_modules/npm/man/man7/package-spec.7 +126 -0
- package/node_modules/npm/man/man7/registry.7 +49 -0
- package/node_modules/npm/man/man7/removal.7 +54 -0
- package/node_modules/npm/man/man7/scope.7 +113 -0
- package/node_modules/npm/man/man7/scripts.7 +467 -0
- package/node_modules/npm/man/man7/workspaces.7 +236 -0
- package/node_modules/npm/package.json +259 -0
- package/node_modules/npm-audit-report/LICENSE +16 -0
- package/node_modules/npm-audit-report/lib/colors.js +22 -0
- package/node_modules/npm-audit-report/lib/exit-code.js +14 -0
- package/node_modules/npm-audit-report/lib/index.js +41 -0
- package/node_modules/npm-audit-report/lib/reporters/detail.js +86 -0
- package/node_modules/npm-audit-report/lib/reporters/install.js +75 -0
- package/node_modules/npm-audit-report/lib/reporters/json.js +1 -0
- package/node_modules/npm-audit-report/lib/reporters/quiet.js +1 -0
- package/node_modules/npm-audit-report/package.json +62 -0
- package/node_modules/npm-bundled/LICENSE +15 -0
- package/node_modules/npm-bundled/lib/index.js +254 -0
- package/node_modules/npm-bundled/package.json +49 -0
- package/node_modules/npm-install-checks/LICENSE +27 -0
- package/node_modules/npm-install-checks/lib/current-env.js +91 -0
- package/node_modules/npm-install-checks/lib/dev-engines.js +145 -0
- package/node_modules/npm-install-checks/lib/index.js +90 -0
- package/node_modules/npm-install-checks/package.json +52 -0
- package/node_modules/npm-normalize-package-bin/LICENSE +15 -0
- package/node_modules/npm-normalize-package-bin/lib/index.js +64 -0
- package/node_modules/npm-normalize-package-bin/package.json +45 -0
- package/node_modules/npm-package-arg/LICENSE +15 -0
- package/node_modules/npm-package-arg/lib/npa.js +479 -0
- package/node_modules/npm-package-arg/package.json +60 -0
- package/node_modules/npm-packlist/LICENSE +15 -0
- package/node_modules/npm-packlist/lib/index.js +464 -0
- package/node_modules/npm-packlist/package.json +62 -0
- package/node_modules/npm-pick-manifest/LICENSE.md +16 -0
- package/node_modules/npm-pick-manifest/lib/index.js +219 -0
- package/node_modules/npm-pick-manifest/package.json +58 -0
- package/node_modules/npm-profile/LICENSE.md +20 -0
- package/node_modules/npm-profile/lib/index.js +305 -0
- package/node_modules/npm-profile/package.json +52 -0
- package/node_modules/npm-registry-fetch/LICENSE.md +20 -0
- package/node_modules/npm-registry-fetch/lib/auth.js +181 -0
- package/node_modules/npm-registry-fetch/lib/check-response.js +108 -0
- package/node_modules/npm-registry-fetch/lib/default-opts.js +19 -0
- package/node_modules/npm-registry-fetch/lib/errors.js +80 -0
- package/node_modules/npm-registry-fetch/lib/index.js +248 -0
- package/node_modules/npm-registry-fetch/lib/json-stream.js +223 -0
- package/node_modules/npm-registry-fetch/package.json +68 -0
- package/node_modules/npm-user-validate/LICENSE +27 -0
- package/node_modules/npm-user-validate/lib/index.js +61 -0
- package/node_modules/npm-user-validate/package.json +50 -0
- package/node_modules/p-map/index.js +283 -0
- package/node_modules/p-map/license +9 -0
- package/node_modules/p-map/package.json +57 -0
- package/node_modules/pacote/LICENSE +15 -0
- package/node_modules/pacote/README.md +251 -0
- package/node_modules/pacote/bin/index.js +158 -0
- package/node_modules/pacote/lib/dir.js +105 -0
- package/node_modules/pacote/lib/fetcher.js +519 -0
- package/node_modules/pacote/lib/file.js +94 -0
- package/node_modules/pacote/lib/git.js +329 -0
- package/node_modules/pacote/lib/index.js +23 -0
- package/node_modules/pacote/lib/registry.js +373 -0
- package/node_modules/pacote/lib/remote.js +89 -0
- package/node_modules/pacote/lib/util/add-git-sha.js +18 -0
- package/node_modules/pacote/lib/util/cache-dir.js +15 -0
- package/node_modules/pacote/lib/util/is-package-bin.js +25 -0
- package/node_modules/pacote/lib/util/npm.js +14 -0
- package/node_modules/pacote/lib/util/protected.js +5 -0
- package/node_modules/pacote/lib/util/tar-create-options.js +31 -0
- package/node_modules/pacote/lib/util/trailing-slashes.js +10 -0
- package/node_modules/pacote/package.json +80 -0
- package/node_modules/parse-conflict-json/LICENSE.md +20 -0
- package/node_modules/parse-conflict-json/lib/index.js +104 -0
- package/node_modules/parse-conflict-json/package.json +51 -0
- package/node_modules/path-scurry/LICENSE.md +55 -0
- package/node_modules/path-scurry/dist/commonjs/index.js +2018 -0
- package/node_modules/path-scurry/dist/commonjs/package.json +3 -0
- package/node_modules/path-scurry/dist/esm/index.js +1983 -0
- package/node_modules/path-scurry/dist/esm/package.json +3 -0
- package/node_modules/path-scurry/package.json +72 -0
- package/node_modules/picomatch/LICENSE +21 -0
- package/node_modules/picomatch/index.js +17 -0
- package/node_modules/picomatch/lib/constants.js +184 -0
- package/node_modules/picomatch/lib/parse.js +1386 -0
- package/node_modules/picomatch/lib/picomatch.js +349 -0
- package/node_modules/picomatch/lib/scan.js +391 -0
- package/node_modules/picomatch/lib/utils.js +72 -0
- package/node_modules/picomatch/package.json +82 -0
- package/node_modules/picomatch/posix.js +3 -0
- package/node_modules/postcss-selector-parser/API.md +874 -0
- package/node_modules/postcss-selector-parser/LICENSE-MIT +22 -0
- package/node_modules/postcss-selector-parser/dist/index.js +44 -0
- package/node_modules/postcss-selector-parser/dist/parser.js +1105 -0
- package/node_modules/postcss-selector-parser/dist/processor.js +153 -0
- package/node_modules/postcss-selector-parser/dist/selectors/attribute.js +440 -0
- package/node_modules/postcss-selector-parser/dist/selectors/className.js +59 -0
- package/node_modules/postcss-selector-parser/dist/selectors/combinator.js +33 -0
- package/node_modules/postcss-selector-parser/dist/selectors/comment.js +33 -0
- package/node_modules/postcss-selector-parser/dist/selectors/constructors.js +43 -0
- package/node_modules/postcss-selector-parser/dist/selectors/container.js +433 -0
- package/node_modules/postcss-selector-parser/dist/selectors/guards.js +61 -0
- package/node_modules/postcss-selector-parser/dist/selectors/id.js +36 -0
- package/node_modules/postcss-selector-parser/dist/selectors/index.js +20 -0
- package/node_modules/postcss-selector-parser/dist/selectors/namespace.js +96 -0
- package/node_modules/postcss-selector-parser/dist/selectors/nesting.js +34 -0
- package/node_modules/postcss-selector-parser/dist/selectors/node.js +195 -0
- package/node_modules/postcss-selector-parser/dist/selectors/pseudo.js +45 -0
- package/node_modules/postcss-selector-parser/dist/selectors/root.js +56 -0
- package/node_modules/postcss-selector-parser/dist/selectors/selector.js +33 -0
- package/node_modules/postcss-selector-parser/dist/selectors/string.js +33 -0
- package/node_modules/postcss-selector-parser/dist/selectors/tag.js +33 -0
- package/node_modules/postcss-selector-parser/dist/selectors/types.js +16 -0
- package/node_modules/postcss-selector-parser/dist/selectors/universal.js +34 -0
- package/node_modules/postcss-selector-parser/dist/sortAscending.js +7 -0
- package/node_modules/postcss-selector-parser/dist/tokenTypes.js +37 -0
- package/node_modules/postcss-selector-parser/dist/tokenize.js +301 -0
- package/node_modules/postcss-selector-parser/dist/util/ensureObject.js +17 -0
- package/node_modules/postcss-selector-parser/dist/util/getProp.js +18 -0
- package/node_modules/postcss-selector-parser/dist/util/index.js +18 -0
- package/node_modules/postcss-selector-parser/dist/util/maxNestingDepth.js +25 -0
- package/node_modules/postcss-selector-parser/dist/util/stripComments.js +20 -0
- package/node_modules/postcss-selector-parser/dist/util/unesc.js +72 -0
- package/node_modules/postcss-selector-parser/package.json +63 -0
- package/node_modules/proc-log/LICENSE +15 -0
- package/node_modules/proc-log/lib/index.js +158 -0
- package/node_modules/proc-log/package.json +46 -0
- package/node_modules/proggy/LICENSE +15 -0
- package/node_modules/proggy/lib/client.js +114 -0
- package/node_modules/proggy/lib/index.js +15 -0
- package/node_modules/proggy/lib/tracker.js +68 -0
- package/node_modules/proggy/package.json +50 -0
- package/node_modules/promise-all-reject-late/LICENSE +15 -0
- package/node_modules/promise-all-reject-late/index.js +27 -0
- package/node_modules/promise-all-reject-late/package.json +22 -0
- package/node_modules/promise-all-reject-late/test/index.js +88 -0
- package/node_modules/promise-call-limit/LICENSE +15 -0
- package/node_modules/promise-call-limit/dist/commonjs/index.js +87 -0
- package/node_modules/promise-call-limit/dist/commonjs/package.json +3 -0
- package/node_modules/promise-call-limit/dist/esm/index.js +60 -0
- package/node_modules/promise-call-limit/dist/esm/package.json +3 -0
- package/node_modules/promise-call-limit/package.json +68 -0
- package/node_modules/promzard/LICENSE +15 -0
- package/node_modules/promzard/lib/index.js +176 -0
- package/node_modules/promzard/package.json +50 -0
- package/node_modules/qrcode-terminal/.travis.yml +3 -0
- package/node_modules/qrcode-terminal/LICENSE +222 -0
- package/node_modules/qrcode-terminal/README.md +82 -0
- package/node_modules/qrcode-terminal/bin/qrcode-terminal.js +101 -0
- package/node_modules/qrcode-terminal/example/basic.js +2 -0
- package/node_modules/qrcode-terminal/example/basic.png +0 -0
- package/node_modules/qrcode-terminal/example/callback.js +4 -0
- package/node_modules/qrcode-terminal/example/small-qrcode.js +6 -0
- package/node_modules/qrcode-terminal/lib/main.js +100 -0
- package/node_modules/qrcode-terminal/package.json +37 -0
- package/node_modules/qrcode-terminal/test/main.js +63 -0
- package/node_modules/qrcode-terminal/vendor/QRCode/QR8bitByte.js +22 -0
- package/node_modules/qrcode-terminal/vendor/QRCode/QRBitBuffer.js +38 -0
- package/node_modules/qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js +7 -0
- package/node_modules/qrcode-terminal/vendor/QRCode/QRMaskPattern.js +10 -0
- package/node_modules/qrcode-terminal/vendor/QRCode/QRMath.js +44 -0
- package/node_modules/qrcode-terminal/vendor/QRCode/QRMode.js +6 -0
- package/node_modules/qrcode-terminal/vendor/QRCode/QRPolynomial.js +66 -0
- package/node_modules/qrcode-terminal/vendor/QRCode/QRRSBlock.js +298 -0
- package/node_modules/qrcode-terminal/vendor/QRCode/QRUtil.js +272 -0
- package/node_modules/qrcode-terminal/vendor/QRCode/index.js +462 -0
- package/node_modules/read/LICENSE +15 -0
- package/node_modules/read/dist/commonjs/package.json +3 -0
- package/node_modules/read/dist/commonjs/read.js +94 -0
- package/node_modules/read/dist/esm/package.json +3 -0
- package/node_modules/read/dist/esm/read.js +88 -0
- package/node_modules/read/package.json +88 -0
- package/node_modules/read-cmd-shim/LICENSE +14 -0
- package/node_modules/read-cmd-shim/lib/index.js +75 -0
- package/node_modules/read-cmd-shim/package.json +48 -0
- package/node_modules/safer-buffer/LICENSE +21 -0
- package/node_modules/safer-buffer/Porting-Buffer.md +268 -0
- package/node_modules/safer-buffer/dangerous.js +58 -0
- package/node_modules/safer-buffer/package.json +34 -0
- package/node_modules/safer-buffer/safer.js +77 -0
- package/node_modules/safer-buffer/tests.js +406 -0
- package/node_modules/semver/LICENSE +15 -0
- package/node_modules/semver/README.md +680 -0
- package/node_modules/semver/bin/semver.js +195 -0
- package/node_modules/semver/classes/comparator.js +143 -0
- package/node_modules/semver/classes/index.js +7 -0
- package/node_modules/semver/classes/range.js +577 -0
- package/node_modules/semver/classes/semver.js +350 -0
- package/node_modules/semver/functions/clean.js +8 -0
- package/node_modules/semver/functions/cmp.js +54 -0
- package/node_modules/semver/functions/coerce.js +62 -0
- package/node_modules/semver/functions/compare-build.js +9 -0
- package/node_modules/semver/functions/compare-loose.js +5 -0
- package/node_modules/semver/functions/compare.js +7 -0
- package/node_modules/semver/functions/diff.js +60 -0
- package/node_modules/semver/functions/eq.js +5 -0
- package/node_modules/semver/functions/gt.js +5 -0
- package/node_modules/semver/functions/gte.js +5 -0
- package/node_modules/semver/functions/inc.js +21 -0
- package/node_modules/semver/functions/lt.js +5 -0
- package/node_modules/semver/functions/lte.js +5 -0
- package/node_modules/semver/functions/major.js +5 -0
- package/node_modules/semver/functions/minor.js +5 -0
- package/node_modules/semver/functions/neq.js +5 -0
- package/node_modules/semver/functions/parse.js +18 -0
- package/node_modules/semver/functions/patch.js +5 -0
- package/node_modules/semver/functions/prerelease.js +8 -0
- package/node_modules/semver/functions/rcompare.js +5 -0
- package/node_modules/semver/functions/rsort.js +5 -0
- package/node_modules/semver/functions/satisfies.js +12 -0
- package/node_modules/semver/functions/sort.js +5 -0
- package/node_modules/semver/functions/truncate.js +48 -0
- package/node_modules/semver/functions/valid.js +8 -0
- package/node_modules/semver/index.js +93 -0
- package/node_modules/semver/internal/constants.js +37 -0
- package/node_modules/semver/internal/debug.js +11 -0
- package/node_modules/semver/internal/identifiers.js +29 -0
- package/node_modules/semver/internal/lrucache.js +42 -0
- package/node_modules/semver/internal/parse-options.js +17 -0
- package/node_modules/semver/internal/re.js +223 -0
- package/node_modules/semver/package.json +78 -0
- package/node_modules/semver/preload.js +4 -0
- package/node_modules/semver/range.bnf +17 -0
- package/node_modules/semver/ranges/gtr.js +6 -0
- package/node_modules/semver/ranges/intersects.js +9 -0
- package/node_modules/semver/ranges/ltr.js +6 -0
- package/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/node_modules/semver/ranges/min-version.js +63 -0
- package/node_modules/semver/ranges/outside.js +82 -0
- package/node_modules/semver/ranges/simplify.js +49 -0
- package/node_modules/semver/ranges/subset.js +249 -0
- package/node_modules/semver/ranges/to-comparators.js +10 -0
- package/node_modules/semver/ranges/valid.js +13 -0
- package/node_modules/signal-exit/LICENSE.txt +16 -0
- package/node_modules/signal-exit/dist/cjs/browser.js +10 -0
- package/node_modules/signal-exit/dist/cjs/index.js +279 -0
- package/node_modules/signal-exit/dist/cjs/package.json +3 -0
- package/node_modules/signal-exit/dist/cjs/signals.js +42 -0
- package/node_modules/signal-exit/dist/mjs/browser.js +4 -0
- package/node_modules/signal-exit/dist/mjs/index.js +275 -0
- package/node_modules/signal-exit/dist/mjs/package.json +3 -0
- package/node_modules/signal-exit/dist/mjs/signals.js +39 -0
- package/node_modules/signal-exit/package.json +106 -0
- package/node_modules/sigstore/LICENSE +202 -0
- package/node_modules/sigstore/dist/config.js +126 -0
- package/node_modules/sigstore/dist/index.js +34 -0
- package/node_modules/sigstore/dist/sigstore.js +112 -0
- package/node_modules/sigstore/package.json +47 -0
- package/node_modules/smart-buffer/LICENSE +20 -0
- package/node_modules/smart-buffer/build/smartbuffer.js +1233 -0
- package/node_modules/smart-buffer/build/utils.js +108 -0
- package/node_modules/smart-buffer/docs/ROADMAP.md +0 -0
- package/node_modules/smart-buffer/package.json +79 -0
- package/node_modules/socks/LICENSE +20 -0
- package/node_modules/socks/build/client/socksclient.js +793 -0
- package/node_modules/socks/build/common/constants.js +108 -0
- package/node_modules/socks/build/common/helpers.js +167 -0
- package/node_modules/socks/build/common/receivebuffer.js +43 -0
- package/node_modules/socks/build/common/util.js +25 -0
- package/node_modules/socks/build/index.js +18 -0
- package/node_modules/socks/docs/examples/index.md +17 -0
- package/node_modules/socks/docs/examples/javascript/associateExample.md +90 -0
- package/node_modules/socks/docs/examples/javascript/bindExample.md +83 -0
- package/node_modules/socks/docs/examples/javascript/connectExample.md +258 -0
- package/node_modules/socks/docs/examples/typescript/associateExample.md +93 -0
- package/node_modules/socks/docs/examples/typescript/bindExample.md +86 -0
- package/node_modules/socks/docs/examples/typescript/connectExample.md +265 -0
- package/node_modules/socks/docs/index.md +5 -0
- package/node_modules/socks/docs/migratingFromV1.md +86 -0
- package/node_modules/socks/package.json +58 -0
- package/node_modules/socks-proxy-agent/LICENSE +22 -0
- package/node_modules/socks-proxy-agent/dist/index.js +195 -0
- package/node_modules/socks-proxy-agent/package.json +142 -0
- package/node_modules/spdx-exceptions/deprecated.json +3 -0
- package/node_modules/spdx-exceptions/index.json +68 -0
- package/node_modules/spdx-exceptions/package.json +19 -0
- package/node_modules/spdx-expression-parse/AUTHORS +4 -0
- package/node_modules/spdx-expression-parse/LICENSE +22 -0
- package/node_modules/spdx-expression-parse/index.js +8 -0
- package/node_modules/spdx-expression-parse/package.json +39 -0
- package/node_modules/spdx-expression-parse/parse.js +138 -0
- package/node_modules/spdx-expression-parse/scan.js +131 -0
- package/node_modules/spdx-license-ids/deprecated.json +28 -0
- package/node_modules/spdx-license-ids/index.json +697 -0
- package/node_modules/spdx-license-ids/package.json +29 -0
- package/node_modules/ssri/LICENSE.md +16 -0
- package/node_modules/ssri/lib/index.js +550 -0
- package/node_modules/ssri/package.json +66 -0
- package/node_modules/supports-color/browser.js +35 -0
- package/node_modules/supports-color/index.js +202 -0
- package/node_modules/supports-color/license +9 -0
- package/node_modules/supports-color/package.json +64 -0
- package/node_modules/tar/LICENSE.md +55 -0
- package/node_modules/tar/dist/commonjs/create.js +82 -0
- package/node_modules/tar/dist/commonjs/cwd-error.js +18 -0
- package/node_modules/tar/dist/commonjs/extract.js +88 -0
- package/node_modules/tar/dist/commonjs/get-write-flag.js +32 -0
- package/node_modules/tar/dist/commonjs/header.js +348 -0
- package/node_modules/tar/dist/commonjs/index.js +64 -0
- package/node_modules/tar/dist/commonjs/index.min.js +4 -0
- package/node_modules/tar/dist/commonjs/large-numbers.js +99 -0
- package/node_modules/tar/dist/commonjs/list.js +153 -0
- package/node_modules/tar/dist/commonjs/make-command.js +52 -0
- package/node_modules/tar/dist/commonjs/mkdir.js +187 -0
- package/node_modules/tar/dist/commonjs/mode-fix.js +29 -0
- package/node_modules/tar/dist/commonjs/normalize-unicode.js +38 -0
- package/node_modules/tar/dist/commonjs/normalize-windows-path.js +12 -0
- package/node_modules/tar/dist/commonjs/options.js +66 -0
- package/node_modules/tar/dist/commonjs/pack.js +544 -0
- package/node_modules/tar/dist/commonjs/package.json +3 -0
- package/node_modules/tar/dist/commonjs/parse.js +655 -0
- package/node_modules/tar/dist/commonjs/path-reservations.js +170 -0
- package/node_modules/tar/dist/commonjs/pax.js +182 -0
- package/node_modules/tar/dist/commonjs/process-umask.js +7 -0
- package/node_modules/tar/dist/commonjs/read-entry.js +136 -0
- package/node_modules/tar/dist/commonjs/replace.js +227 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.js +29 -0
- package/node_modules/tar/dist/commonjs/strip-trailing-slashes.js +18 -0
- package/node_modules/tar/dist/commonjs/symlink-error.js +19 -0
- package/node_modules/tar/dist/commonjs/types.js +70 -0
- package/node_modules/tar/dist/commonjs/unpack.js +932 -0
- package/node_modules/tar/dist/commonjs/update.js +33 -0
- package/node_modules/tar/dist/commonjs/warn-method.js +31 -0
- package/node_modules/tar/dist/commonjs/winchars.js +14 -0
- package/node_modules/tar/dist/commonjs/write-entry.js +698 -0
- package/node_modules/tar/dist/esm/create.js +76 -0
- package/node_modules/tar/dist/esm/cwd-error.js +14 -0
- package/node_modules/tar/dist/esm/extract.js +49 -0
- package/node_modules/tar/dist/esm/get-write-flag.js +26 -0
- package/node_modules/tar/dist/esm/header.js +311 -0
- package/node_modules/tar/dist/esm/index.js +20 -0
- package/node_modules/tar/dist/esm/index.min.js +4 -0
- package/node_modules/tar/dist/esm/large-numbers.js +94 -0
- package/node_modules/tar/dist/esm/list.js +113 -0
- package/node_modules/tar/dist/esm/make-command.js +48 -0
- package/node_modules/tar/dist/esm/mkdir.js +179 -0
- package/node_modules/tar/dist/esm/mode-fix.js +25 -0
- package/node_modules/tar/dist/esm/normalize-unicode.js +34 -0
- package/node_modules/tar/dist/esm/normalize-windows-path.js +9 -0
- package/node_modules/tar/dist/esm/options.js +54 -0
- package/node_modules/tar/dist/esm/pack.js +502 -0
- package/node_modules/tar/dist/esm/package.json +3 -0
- package/node_modules/tar/dist/esm/parse.js +651 -0
- package/node_modules/tar/dist/esm/path-reservations.js +166 -0
- package/node_modules/tar/dist/esm/pax.js +178 -0
- package/node_modules/tar/dist/esm/process-umask.js +3 -0
- package/node_modules/tar/dist/esm/read-entry.js +132 -0
- package/node_modules/tar/dist/esm/replace.js +221 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.js +25 -0
- package/node_modules/tar/dist/esm/strip-trailing-slashes.js +14 -0
- package/node_modules/tar/dist/esm/symlink-error.js +15 -0
- package/node_modules/tar/dist/esm/types.js +65 -0
- package/node_modules/tar/dist/esm/unpack.js +891 -0
- package/node_modules/tar/dist/esm/update.js +30 -0
- package/node_modules/tar/dist/esm/warn-method.js +27 -0
- package/node_modules/tar/dist/esm/winchars.js +9 -0
- package/node_modules/tar/dist/esm/write-entry.js +656 -0
- package/node_modules/tar/package.json +298 -0
- package/node_modules/text-table/LICENSE +18 -0
- package/node_modules/text-table/example/align.js +8 -0
- package/node_modules/text-table/example/center.js +8 -0
- package/node_modules/text-table/example/dotalign.js +9 -0
- package/node_modules/text-table/example/doubledot.js +11 -0
- package/node_modules/text-table/example/table.js +6 -0
- package/node_modules/text-table/index.js +86 -0
- package/node_modules/text-table/package.json +44 -0
- package/node_modules/text-table/test/align.js +18 -0
- package/node_modules/text-table/test/ansi-colors.js +32 -0
- package/node_modules/text-table/test/center.js +18 -0
- package/node_modules/text-table/test/dotalign.js +20 -0
- package/node_modules/text-table/test/doubledot.js +24 -0
- package/node_modules/text-table/test/table.js +14 -0
- package/node_modules/tiny-relative-date/LICENSE.md +21 -0
- package/node_modules/tiny-relative-date/lib/factory.js +100 -0
- package/node_modules/tiny-relative-date/lib/index.js +18 -0
- package/node_modules/tiny-relative-date/package.json +39 -0
- package/node_modules/tiny-relative-date/src/factory.js +112 -0
- package/node_modules/tiny-relative-date/src/index.js +4 -0
- package/node_modules/tiny-relative-date/translations/da.js +31 -0
- package/node_modules/tiny-relative-date/translations/de.js +31 -0
- package/node_modules/tiny-relative-date/translations/en-short.js +31 -0
- package/node_modules/tiny-relative-date/translations/en.js +31 -0
- package/node_modules/tiny-relative-date/translations/es.js +31 -0
- package/node_modules/tiny-relative-date/translations/fa.js +31 -0
- package/node_modules/tiny-relative-date/translations/ne.js +31 -0
- package/node_modules/tinyglobby/LICENSE +21 -0
- package/node_modules/tinyglobby/dist/index.cjs +335 -0
- package/node_modules/tinyglobby/dist/index.d.cts +148 -0
- package/node_modules/tinyglobby/dist/index.d.mts +148 -0
- package/node_modules/tinyglobby/dist/index.mjs +307 -0
- package/node_modules/tinyglobby/package.json +70 -0
- package/node_modules/treeverse/LICENSE +15 -0
- package/node_modules/treeverse/lib/breadth.js +67 -0
- package/node_modules/treeverse/lib/depth-descent.js +88 -0
- package/node_modules/treeverse/lib/depth.js +76 -0
- package/node_modules/treeverse/lib/index.js +4 -0
- package/node_modules/treeverse/package.json +51 -0
- package/node_modules/tuf-js/LICENSE +21 -0
- package/node_modules/tuf-js/dist/config.js +16 -0
- package/node_modules/tuf-js/dist/error.js +49 -0
- package/node_modules/tuf-js/dist/fetcher.js +92 -0
- package/node_modules/tuf-js/dist/index.js +9 -0
- package/node_modules/tuf-js/dist/store.js +219 -0
- package/node_modules/tuf-js/dist/updater.js +373 -0
- package/node_modules/tuf-js/dist/utils/tmpfile.js +25 -0
- package/node_modules/tuf-js/dist/utils/url.js +13 -0
- package/node_modules/tuf-js/package.json +43 -0
- package/node_modules/undici/LICENSE +21 -0
- package/node_modules/undici/docs/docs/api/Agent.md +80 -0
- package/node_modules/undici/docs/docs/api/BalancedPool.md +99 -0
- package/node_modules/undici/docs/docs/api/CacheStorage.md +30 -0
- package/node_modules/undici/docs/docs/api/Client.md +277 -0
- package/node_modules/undici/docs/docs/api/Connector.md +115 -0
- package/node_modules/undici/docs/docs/api/ContentType.md +57 -0
- package/node_modules/undici/docs/docs/api/Cookies.md +101 -0
- package/node_modules/undici/docs/docs/api/Debug.md +62 -0
- package/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +204 -0
- package/node_modules/undici/docs/docs/api/DispatchInterceptor.md +60 -0
- package/node_modules/undici/docs/docs/api/Dispatcher.md +1347 -0
- package/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +162 -0
- package/node_modules/undici/docs/docs/api/Errors.md +49 -0
- package/node_modules/undici/docs/docs/api/EventSource.md +45 -0
- package/node_modules/undici/docs/docs/api/Fetch.md +52 -0
- package/node_modules/undici/docs/docs/api/MockAgent.md +540 -0
- package/node_modules/undici/docs/docs/api/MockClient.md +77 -0
- package/node_modules/undici/docs/docs/api/MockErrors.md +12 -0
- package/node_modules/undici/docs/docs/api/MockPool.md +547 -0
- package/node_modules/undici/docs/docs/api/Pool.md +84 -0
- package/node_modules/undici/docs/docs/api/PoolStats.md +35 -0
- package/node_modules/undici/docs/docs/api/ProxyAgent.md +131 -0
- package/node_modules/undici/docs/docs/api/RedirectHandler.md +96 -0
- package/node_modules/undici/docs/docs/api/RetryAgent.md +45 -0
- package/node_modules/undici/docs/docs/api/RetryHandler.md +117 -0
- package/node_modules/undici/docs/docs/api/Util.md +25 -0
- package/node_modules/undici/docs/docs/api/WebSocket.md +51 -0
- package/node_modules/undici/docs/docs/api/api-lifecycle.md +91 -0
- package/node_modules/undici/docs/docs/best-practices/client-certificate.md +64 -0
- package/node_modules/undici/docs/docs/best-practices/mocking-request.md +136 -0
- package/node_modules/undici/docs/docs/best-practices/proxy.md +127 -0
- package/node_modules/undici/docs/docs/best-practices/writing-tests.md +20 -0
- package/node_modules/undici/index-fetch.js +35 -0
- package/node_modules/undici/index.js +169 -0
- package/node_modules/undici/lib/api/abort-signal.js +57 -0
- package/node_modules/undici/lib/api/api-connect.js +108 -0
- package/node_modules/undici/lib/api/api-pipeline.js +251 -0
- package/node_modules/undici/lib/api/api-request.js +214 -0
- package/node_modules/undici/lib/api/api-stream.js +220 -0
- package/node_modules/undici/lib/api/api-upgrade.js +108 -0
- package/node_modules/undici/lib/api/index.js +7 -0
- package/node_modules/undici/lib/api/readable.js +385 -0
- package/node_modules/undici/lib/api/util.js +93 -0
- package/node_modules/undici/lib/core/connect.js +240 -0
- package/node_modules/undici/lib/core/constants.js +118 -0
- package/node_modules/undici/lib/core/diagnostics.js +202 -0
- package/node_modules/undici/lib/core/errors.js +425 -0
- package/node_modules/undici/lib/core/request.js +416 -0
- package/node_modules/undici/lib/core/symbols.js +67 -0
- package/node_modules/undici/lib/core/tree.js +152 -0
- package/node_modules/undici/lib/core/util.js +719 -0
- package/node_modules/undici/lib/dispatcher/agent.js +129 -0
- package/node_modules/undici/lib/dispatcher/balanced-pool.js +209 -0
- package/node_modules/undici/lib/dispatcher/client-h1.js +1496 -0
- package/node_modules/undici/lib/dispatcher/client-h2.js +744 -0
- package/node_modules/undici/lib/dispatcher/client.js +623 -0
- package/node_modules/undici/lib/dispatcher/dispatcher-base.js +199 -0
- package/node_modules/undici/lib/dispatcher/dispatcher.js +65 -0
- package/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +160 -0
- package/node_modules/undici/lib/dispatcher/fixed-queue.js +117 -0
- package/node_modules/undici/lib/dispatcher/pool-base.js +194 -0
- package/node_modules/undici/lib/dispatcher/pool-stats.js +34 -0
- package/node_modules/undici/lib/dispatcher/pool.js +107 -0
- package/node_modules/undici/lib/dispatcher/proxy-agent.js +274 -0
- package/node_modules/undici/lib/dispatcher/retry-agent.js +35 -0
- package/node_modules/undici/lib/global.js +32 -0
- package/node_modules/undici/lib/handler/decorator-handler.js +44 -0
- package/node_modules/undici/lib/handler/redirect-handler.js +232 -0
- package/node_modules/undici/lib/handler/retry-handler.js +408 -0
- package/node_modules/undici/lib/interceptor/dns.js +375 -0
- package/node_modules/undici/lib/interceptor/dump.js +123 -0
- package/node_modules/undici/lib/interceptor/redirect-interceptor.js +21 -0
- package/node_modules/undici/lib/interceptor/redirect.js +24 -0
- package/node_modules/undici/lib/interceptor/response-error.js +86 -0
- package/node_modules/undici/lib/interceptor/retry.js +19 -0
- package/node_modules/undici/lib/llhttp/constants.js +278 -0
- package/node_modules/undici/lib/llhttp/llhttp-wasm.js +5 -0
- package/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +5 -0
- package/node_modules/undici/lib/llhttp/utils.js +15 -0
- package/node_modules/undici/lib/mock/mock-agent.js +160 -0
- package/node_modules/undici/lib/mock/mock-client.js +59 -0
- package/node_modules/undici/lib/mock/mock-errors.js +28 -0
- package/node_modules/undici/lib/mock/mock-interceptor.js +207 -0
- package/node_modules/undici/lib/mock/mock-pool.js +59 -0
- package/node_modules/undici/lib/mock/mock-symbols.js +23 -0
- package/node_modules/undici/lib/mock/mock-utils.js +367 -0
- package/node_modules/undici/lib/mock/pending-interceptors-formatter.js +43 -0
- package/node_modules/undici/lib/mock/pluralizer.js +29 -0
- package/node_modules/undici/lib/util/timers.js +423 -0
- package/node_modules/undici/lib/web/cache/cache.js +859 -0
- package/node_modules/undici/lib/web/cache/cachestorage.js +152 -0
- package/node_modules/undici/lib/web/cache/symbols.js +5 -0
- package/node_modules/undici/lib/web/cache/util.js +45 -0
- package/node_modules/undici/lib/web/cookies/constants.js +12 -0
- package/node_modules/undici/lib/web/cookies/index.js +184 -0
- package/node_modules/undici/lib/web/cookies/parse.js +310 -0
- package/node_modules/undici/lib/web/cookies/util.js +352 -0
- package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +398 -0
- package/node_modules/undici/lib/web/eventsource/eventsource.js +480 -0
- package/node_modules/undici/lib/web/eventsource/util.js +37 -0
- package/node_modules/undici/lib/web/fetch/LICENSE +21 -0
- package/node_modules/undici/lib/web/fetch/body.js +529 -0
- package/node_modules/undici/lib/web/fetch/constants.js +124 -0
- package/node_modules/undici/lib/web/fetch/data-url.js +744 -0
- package/node_modules/undici/lib/web/fetch/dispatcher-weakref.js +46 -0
- package/node_modules/undici/lib/web/fetch/file.js +126 -0
- package/node_modules/undici/lib/web/fetch/formdata-parser.js +474 -0
- package/node_modules/undici/lib/web/fetch/formdata.js +252 -0
- package/node_modules/undici/lib/web/fetch/global.js +40 -0
- package/node_modules/undici/lib/web/fetch/headers.js +687 -0
- package/node_modules/undici/lib/web/fetch/index.js +2272 -0
- package/node_modules/undici/lib/web/fetch/request.js +1037 -0
- package/node_modules/undici/lib/web/fetch/response.js +610 -0
- package/node_modules/undici/lib/web/fetch/symbols.js +9 -0
- package/node_modules/undici/lib/web/fetch/util.js +1632 -0
- package/node_modules/undici/lib/web/fetch/webidl.js +695 -0
- package/node_modules/undici/lib/web/fileapi/encoding.js +290 -0
- package/node_modules/undici/lib/web/fileapi/filereader.js +344 -0
- package/node_modules/undici/lib/web/fileapi/progressevent.js +78 -0
- package/node_modules/undici/lib/web/fileapi/symbols.js +10 -0
- package/node_modules/undici/lib/web/fileapi/util.js +391 -0
- package/node_modules/undici/lib/web/websocket/connection.js +371 -0
- package/node_modules/undici/lib/web/websocket/constants.js +66 -0
- package/node_modules/undici/lib/web/websocket/events.js +329 -0
- package/node_modules/undici/lib/web/websocket/frame.js +96 -0
- package/node_modules/undici/lib/web/websocket/permessage-deflate.js +100 -0
- package/node_modules/undici/lib/web/websocket/receiver.js +513 -0
- package/node_modules/undici/lib/web/websocket/sender.js +104 -0
- package/node_modules/undici/lib/web/websocket/symbols.js +12 -0
- package/node_modules/undici/lib/web/websocket/util.js +322 -0
- package/node_modules/undici/lib/web/websocket/websocket.js +595 -0
- package/node_modules/undici/package.json +160 -0
- package/node_modules/undici/scripts/strip-comments.js +8 -0
- package/node_modules/util-deprecate/History.md +16 -0
- package/node_modules/util-deprecate/LICENSE +24 -0
- package/node_modules/util-deprecate/browser.js +67 -0
- package/node_modules/util-deprecate/node.js +6 -0
- package/node_modules/util-deprecate/package.json +27 -0
- package/node_modules/validate-npm-package-name/LICENSE +6 -0
- package/node_modules/validate-npm-package-name/lib/builtin-modules.json +1 -0
- package/node_modules/validate-npm-package-name/lib/index.js +114 -0
- package/node_modules/validate-npm-package-name/package.json +59 -0
- package/node_modules/walk-up-path/LICENSE +15 -0
- package/node_modules/walk-up-path/dist/commonjs/index.js +18 -0
- package/node_modules/walk-up-path/dist/commonjs/package.json +3 -0
- package/node_modules/walk-up-path/dist/esm/index.js +14 -0
- package/node_modules/walk-up-path/dist/esm/package.json +3 -0
- package/node_modules/walk-up-path/package.json +71 -0
- package/node_modules/which/LICENSE +15 -0
- package/node_modules/which/README.md +51 -0
- package/node_modules/which/bin/which.js +52 -0
- package/node_modules/which/lib/index.js +111 -0
- package/node_modules/which/package.json +52 -0
- package/node_modules/write-file-atomic/LICENSE.md +6 -0
- package/node_modules/write-file-atomic/lib/index.js +269 -0
- package/node_modules/write-file-atomic/package.json +57 -0
- package/node_modules/yallist/LICENSE.md +63 -0
- package/node_modules/yallist/dist/commonjs/index.js +384 -0
- package/node_modules/yallist/dist/commonjs/package.json +3 -0
- package/node_modules/yallist/dist/esm/index.js +379 -0
- package/node_modules/yallist/dist/esm/package.json +3 -0
- package/node_modules/yallist/package.json +68 -0
- package/package.json +7 -3
- package/templates/experience/package.json.tmpl +4 -4
- package/templates/package.json.tmpl +4 -4
- package/templates/skills/build-agent/SKILL.md +1 -1
- package/templates/skills/ekanos-platform/SKILL.md +1 -1
|
@@ -0,0 +1,1706 @@
|
|
|
1
|
+
// mixin implementing the buildIdealTree method
|
|
2
|
+
const localeCompare = require('@isaacs/string-locale-compare')('en')
|
|
3
|
+
const PackageJson = require('@npmcli/package-json')
|
|
4
|
+
const npa = require('npm-package-arg')
|
|
5
|
+
const pacote = require('pacote')
|
|
6
|
+
const cacache = require('cacache')
|
|
7
|
+
const { callLimit: promiseCallLimit } = require('promise-call-limit')
|
|
8
|
+
const realpath = require('../../lib/realpath.js')
|
|
9
|
+
const { resolve, dirname, sep } = require('node:path')
|
|
10
|
+
const treeCheck = require('../tree-check.js')
|
|
11
|
+
const { readdirScoped } = require('@npmcli/fs')
|
|
12
|
+
const { lstat, readlink } = require('node:fs/promises')
|
|
13
|
+
const { depth } = require('treeverse')
|
|
14
|
+
const { log, time } = require('proc-log')
|
|
15
|
+
const { redact } = require('@npmcli/redact')
|
|
16
|
+
|
|
17
|
+
const {
|
|
18
|
+
OK,
|
|
19
|
+
REPLACE,
|
|
20
|
+
CONFLICT,
|
|
21
|
+
} = require('../can-place-dep.js')
|
|
22
|
+
const PlaceDep = require('../place-dep.js')
|
|
23
|
+
|
|
24
|
+
const debug = require('../debug.js')
|
|
25
|
+
const fromPath = require('../from-path.js')
|
|
26
|
+
const calcDepFlags = require('../calc-dep-flags.js')
|
|
27
|
+
const { isReleaseAgeExcluded, trustedSpecName } = require('../release-age-exclude.js')
|
|
28
|
+
const Shrinkwrap = require('../shrinkwrap.js')
|
|
29
|
+
const { defaultLockfileVersion } = Shrinkwrap
|
|
30
|
+
const Node = require('../node.js')
|
|
31
|
+
const Link = require('../link.js')
|
|
32
|
+
|
|
33
|
+
// Maps a parsed spec.type to the corresponding allow-* arborist option name.
|
|
34
|
+
// Hoisted to module scope so #checkAllow doesn't re-allocate it per call.
|
|
35
|
+
const ALLOW_OPTION_FOR_TYPE = {
|
|
36
|
+
git: 'allowGit',
|
|
37
|
+
remote: 'allowRemote',
|
|
38
|
+
file: 'allowFile',
|
|
39
|
+
directory: 'allowDirectory',
|
|
40
|
+
}
|
|
41
|
+
const addRmPkgDeps = require('../add-rm-pkg-deps.js')
|
|
42
|
+
const optionalSet = require('../optional-set.js')
|
|
43
|
+
const { checkEngine, checkPlatform } = require('npm-install-checks')
|
|
44
|
+
const relpath = require('../relpath.js')
|
|
45
|
+
const resetDepFlags = require('../reset-dep-flags.js')
|
|
46
|
+
|
|
47
|
+
// note: some of these symbols are shared so we can hit
|
|
48
|
+
// them with unit tests and reuse them across mixins
|
|
49
|
+
const _updateAll = Symbol.for('updateAll')
|
|
50
|
+
const _flagsSuspect = Symbol.for('flagsSuspect')
|
|
51
|
+
const _setWorkspaces = Symbol.for('setWorkspaces')
|
|
52
|
+
const _updateNames = Symbol.for('updateNames')
|
|
53
|
+
const _resolvedAdd = Symbol.for('resolvedAdd')
|
|
54
|
+
const _rpcache = Symbol.for('realpathCache')
|
|
55
|
+
const _stcache = Symbol.for('statCache')
|
|
56
|
+
|
|
57
|
+
// used by Reify mixin
|
|
58
|
+
const _addNodeToTrashList = Symbol.for('addNodeToTrashList')
|
|
59
|
+
|
|
60
|
+
// Push items in, pop them sorted by depth and then path
|
|
61
|
+
// Sorts physically shallower deps up to the front of the queue, because
|
|
62
|
+
// they'll affect things deeper in, then alphabetical for consistency between
|
|
63
|
+
// installs
|
|
64
|
+
class DepsQueue {
|
|
65
|
+
#deps = []
|
|
66
|
+
#sorted = true
|
|
67
|
+
|
|
68
|
+
get length () {
|
|
69
|
+
return this.#deps.length
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
push (item) {
|
|
73
|
+
if (!this.#deps.includes(item)) {
|
|
74
|
+
this.#sorted = false
|
|
75
|
+
this.#deps.push(item)
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
pop () {
|
|
80
|
+
if (!this.#sorted) {
|
|
81
|
+
this.#deps.sort((a, b) => (a.depth - b.depth) || localeCompare(a.path, b.path))
|
|
82
|
+
this.#sorted = true
|
|
83
|
+
}
|
|
84
|
+
return this.#deps.shift()
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
module.exports = cls => class IdealTreeBuilder extends cls {
|
|
89
|
+
#complete
|
|
90
|
+
#currentDep = null
|
|
91
|
+
#depsQueue = new DepsQueue()
|
|
92
|
+
#depsSeen = new Set()
|
|
93
|
+
#explicitRequests = new Set()
|
|
94
|
+
#follow
|
|
95
|
+
#installStrategy
|
|
96
|
+
#linkNodes = new Set()
|
|
97
|
+
#loadFailures = new Set()
|
|
98
|
+
#manifests = new Map()
|
|
99
|
+
#mutateTree = false
|
|
100
|
+
#requestedTreeMutation = false
|
|
101
|
+
// a map of each module in a peer set to the thing that depended on
|
|
102
|
+
// that set of peers in the first place. Use a WeakMap so that we
|
|
103
|
+
// don't hold onto references for nodes that are garbage collected.
|
|
104
|
+
#peerSetSource = new WeakMap()
|
|
105
|
+
#preferDedupe = false
|
|
106
|
+
#prune
|
|
107
|
+
#strictPeerDeps
|
|
108
|
+
#virtualRoots = new Map()
|
|
109
|
+
|
|
110
|
+
constructor (options) {
|
|
111
|
+
super(options)
|
|
112
|
+
|
|
113
|
+
const {
|
|
114
|
+
follow = false,
|
|
115
|
+
installStrategy = 'hoisted',
|
|
116
|
+
strictPeerDeps = false,
|
|
117
|
+
global,
|
|
118
|
+
} = options
|
|
119
|
+
|
|
120
|
+
this.#strictPeerDeps = !!strictPeerDeps
|
|
121
|
+
|
|
122
|
+
this.#installStrategy = global ? 'shallow' : installStrategy
|
|
123
|
+
this.#follow = !!follow
|
|
124
|
+
|
|
125
|
+
this[_updateAll] = false
|
|
126
|
+
this[_updateNames] = []
|
|
127
|
+
this[_resolvedAdd] = []
|
|
128
|
+
|
|
129
|
+
// caches for cached realpath calls
|
|
130
|
+
const cwd = process.cwd()
|
|
131
|
+
// assume that the cwd is real enough for our purposes
|
|
132
|
+
this[_rpcache] = new Map([[cwd, cwd]])
|
|
133
|
+
this[_stcache] = new Map()
|
|
134
|
+
this[_flagsSuspect] = false
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
get explicitRequests () {
|
|
138
|
+
return new Set(this.#explicitRequests)
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// public method
|
|
142
|
+
async buildIdealTree (options = {}) {
|
|
143
|
+
if (this.idealTree) {
|
|
144
|
+
return this.idealTree
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// allow the user to set reify options on the ctor as well.
|
|
148
|
+
// XXX: deprecate separate reify() options object.
|
|
149
|
+
options = { ...this.options, ...options }
|
|
150
|
+
|
|
151
|
+
// an empty array or any falsey value is the same as null
|
|
152
|
+
if (!options.add || options.add.length === 0) {
|
|
153
|
+
options.add = null
|
|
154
|
+
}
|
|
155
|
+
if (!options.rm || options.rm.length === 0) {
|
|
156
|
+
options.rm = null
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
const timeEnd = time.start('idealTree')
|
|
160
|
+
|
|
161
|
+
if (!options.add && !options.rm && !options.update && this.options.global) {
|
|
162
|
+
throw new Error('global requires add, rm, or update option')
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
// first get the virtual tree, if possible. If there's a lockfile, then
|
|
166
|
+
// that defines the ideal tree, unless the root package.json is not
|
|
167
|
+
// satisfied by what the ideal tree provides.
|
|
168
|
+
// from there, we start adding nodes to it to satisfy the deps requested
|
|
169
|
+
// by the package.json in the root.
|
|
170
|
+
|
|
171
|
+
this.#parseSettings(options)
|
|
172
|
+
|
|
173
|
+
// start tracker block
|
|
174
|
+
this.addTracker('idealTree')
|
|
175
|
+
|
|
176
|
+
try {
|
|
177
|
+
await this.#initTree()
|
|
178
|
+
await this.#inflateAncientLockfile()
|
|
179
|
+
await this.#applyUserRequests(options)
|
|
180
|
+
await this.#buildDeps()
|
|
181
|
+
await this.#fixDepFlags()
|
|
182
|
+
await this.#pruneFailedOptional()
|
|
183
|
+
await this.#checkEngineAndPlatform()
|
|
184
|
+
} finally {
|
|
185
|
+
timeEnd()
|
|
186
|
+
this.finishTracker('idealTree')
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
return treeCheck(this.idealTree)
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
async #checkEngineAndPlatform () {
|
|
193
|
+
const { engineStrict, npmVersion, nodeVersion, omit = [], cpu, os, libc } = this.options
|
|
194
|
+
const omitSet = new Set(omit)
|
|
195
|
+
|
|
196
|
+
for (const node of this.idealTree.inventory.values()) {
|
|
197
|
+
if (!node.optional && !node.shouldOmit(omitSet)) {
|
|
198
|
+
try {
|
|
199
|
+
// if devEngines is present in the root node we ignore the engines check
|
|
200
|
+
if (!(node.isRoot && node.package.devEngines)) {
|
|
201
|
+
checkEngine(node.package, npmVersion, nodeVersion, this.options.force)
|
|
202
|
+
}
|
|
203
|
+
} catch (err) {
|
|
204
|
+
if (engineStrict) {
|
|
205
|
+
throw err
|
|
206
|
+
}
|
|
207
|
+
log.warn(err.code, err.message, {
|
|
208
|
+
package: err.pkgid,
|
|
209
|
+
required: err.required,
|
|
210
|
+
current: err.current,
|
|
211
|
+
})
|
|
212
|
+
}
|
|
213
|
+
checkPlatform(node.package, this.options.force)
|
|
214
|
+
}
|
|
215
|
+
if (node.optional && !node.inert) {
|
|
216
|
+
// Mark any optional packages we can't install as inert.
|
|
217
|
+
// We ignore the --force and --engine-strict flags.
|
|
218
|
+
try {
|
|
219
|
+
checkEngine(node.package, npmVersion, nodeVersion, false)
|
|
220
|
+
checkPlatform(node.package, false, { cpu, os, libc })
|
|
221
|
+
} catch (error) {
|
|
222
|
+
const set = optionalSet(node)
|
|
223
|
+
for (const node of set) {
|
|
224
|
+
node.inert = true
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
#parseSettings (options) {
|
|
232
|
+
const update = options.update === true ? { all: true }
|
|
233
|
+
: Array.isArray(options.update) ? { names: options.update }
|
|
234
|
+
: options.update || {}
|
|
235
|
+
|
|
236
|
+
if (update.all || !Array.isArray(update.names)) {
|
|
237
|
+
update.names = []
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
this.#complete = !!options.complete
|
|
241
|
+
this.#preferDedupe = !!options.preferDedupe
|
|
242
|
+
|
|
243
|
+
// validates list of update names, they must
|
|
244
|
+
// be dep names only, no semver ranges are supported
|
|
245
|
+
for (const name of update.names) {
|
|
246
|
+
const spec = npa(name)
|
|
247
|
+
const validationError =
|
|
248
|
+
new TypeError(`Update arguments must only contain package names, eg:
|
|
249
|
+
npm update ${spec.name}`)
|
|
250
|
+
validationError.code = 'EUPDATEARGS'
|
|
251
|
+
|
|
252
|
+
// If they gave us anything other than a bare package name
|
|
253
|
+
if (spec.raw !== spec.name) {
|
|
254
|
+
throw validationError
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
this[_updateNames] = update.names
|
|
258
|
+
|
|
259
|
+
this[_updateAll] = update.all
|
|
260
|
+
// we prune by default unless explicitly set to boolean false
|
|
261
|
+
this.#prune = options.prune !== false
|
|
262
|
+
|
|
263
|
+
// set if we add anything, but also set here if we know we'll make
|
|
264
|
+
// changes and thus have to maybe prune later.
|
|
265
|
+
this.#requestedTreeMutation = !!(
|
|
266
|
+
options.add ||
|
|
267
|
+
options.rm ||
|
|
268
|
+
update.all ||
|
|
269
|
+
update.names.length
|
|
270
|
+
)
|
|
271
|
+
this.#mutateTree = this.#requestedTreeMutation
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
// load the initial tree, either the virtualTree from a shrinkwrap,
|
|
275
|
+
// or just the root node from a package.json
|
|
276
|
+
async #initTree () {
|
|
277
|
+
const timeEnd = time.start('idealTree:init')
|
|
278
|
+
let root
|
|
279
|
+
if (this.options.global) {
|
|
280
|
+
root = await this.#globalRootNode()
|
|
281
|
+
} else {
|
|
282
|
+
try {
|
|
283
|
+
const { content: pkg } = await PackageJson.normalize(this.path)
|
|
284
|
+
root = await this.#rootNodeFromPackage(pkg)
|
|
285
|
+
} catch (err) {
|
|
286
|
+
if (err.code === 'EJSONPARSE') {
|
|
287
|
+
throw err
|
|
288
|
+
}
|
|
289
|
+
root = await this.#rootNodeFromPackage({})
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
return this[_setWorkspaces](root)
|
|
293
|
+
// ok to not have a virtual tree. probably initial install.
|
|
294
|
+
// When updating all, we load the shrinkwrap, but don't bother
|
|
295
|
+
// to build out the full virtual tree from it, since we'll be
|
|
296
|
+
// reconstructing it anyway.
|
|
297
|
+
.then(root => {
|
|
298
|
+
if (this.options.global) {
|
|
299
|
+
return root
|
|
300
|
+
} else if (!this.options.usePackageLock || this[_updateAll]) {
|
|
301
|
+
return Shrinkwrap.reset({
|
|
302
|
+
path: this.path,
|
|
303
|
+
lockfileVersion: this.options.lockfileVersion,
|
|
304
|
+
resolveOptions: this.options,
|
|
305
|
+
}).then(meta => Object.assign(root, { meta }))
|
|
306
|
+
} else {
|
|
307
|
+
return this.loadVirtual({ root })
|
|
308
|
+
}
|
|
309
|
+
})
|
|
310
|
+
|
|
311
|
+
// if we don't have a lockfile to go from, then start with the
|
|
312
|
+
// actual tree, so we only make the minimum required changes.
|
|
313
|
+
// don't do this for global installs or updates, because in those
|
|
314
|
+
// cases we don't use a lockfile anyway.
|
|
315
|
+
// Load on a new Arborist object, so the Nodes aren't the same,
|
|
316
|
+
// or else it'll get super confusing when we change them!
|
|
317
|
+
.then(async root => {
|
|
318
|
+
if ((!this[_updateAll] && !this.options.global && !root.meta.loadedFromDisk) || (this.options.global && this[_updateNames].length)) {
|
|
319
|
+
await new this.constructor(this.options).loadActual({ root })
|
|
320
|
+
const tree = root.target
|
|
321
|
+
// even though we didn't load it from a package-lock.json FILE,
|
|
322
|
+
// we still loaded it "from disk", meaning we have to reset
|
|
323
|
+
// dep flags before assuming that any mutations were reflected.
|
|
324
|
+
if (tree.children.size) {
|
|
325
|
+
root.meta.loadedFromDisk = true
|
|
326
|
+
// set these so that we don't try to ancient lockfile reload it
|
|
327
|
+
root.meta.originalLockfileVersion = root.meta.lockfileVersion = this.options.lockfileVersion || defaultLockfileVersion
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
root.meta.inferFormattingOptions(root.package)
|
|
331
|
+
return root
|
|
332
|
+
})
|
|
333
|
+
|
|
334
|
+
.then(tree => {
|
|
335
|
+
// search the virtual tree for missing/invalid edges, if any are found add their source to
|
|
336
|
+
// the depsQueue so that we'll fix it later
|
|
337
|
+
depth({
|
|
338
|
+
tree,
|
|
339
|
+
getChildren: (node) => {
|
|
340
|
+
const children = []
|
|
341
|
+
for (const edge of node.edgesOut.values()) {
|
|
342
|
+
children.push(edge.to)
|
|
343
|
+
}
|
|
344
|
+
return children
|
|
345
|
+
},
|
|
346
|
+
filter: node => node,
|
|
347
|
+
visit: node => {
|
|
348
|
+
for (const edge of node.edgesOut.values()) {
|
|
349
|
+
const skipPeerOptional = edge.type === 'peerOptional' &&
|
|
350
|
+
this.options.save === false &&
|
|
351
|
+
!this.#requestedTreeMutation
|
|
352
|
+
if (!skipPeerOptional && (!edge.to || !edge.valid)) {
|
|
353
|
+
this.#depsQueue.push(node)
|
|
354
|
+
break // no need to continue the loop after the first hit
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
})
|
|
359
|
+
// null the virtual tree, because we're about to hack away at it
|
|
360
|
+
// if you want another one, load another copy.
|
|
361
|
+
this.idealTree = tree
|
|
362
|
+
this.virtualTree = null
|
|
363
|
+
timeEnd()
|
|
364
|
+
return tree
|
|
365
|
+
})
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
async #globalRootNode () {
|
|
369
|
+
const root = await this.#rootNodeFromPackage({ dependencies: {} })
|
|
370
|
+
// this is a gross kludge to handle the fact that we don't save
|
|
371
|
+
// metadata on the root node in global installs, because the "root"
|
|
372
|
+
// node is something like /usr/local/lib.
|
|
373
|
+
const meta = new Shrinkwrap({
|
|
374
|
+
path: this.path,
|
|
375
|
+
lockfileVersion: this.options.lockfileVersion,
|
|
376
|
+
resolveOptions: this.options,
|
|
377
|
+
})
|
|
378
|
+
meta.reset()
|
|
379
|
+
root.meta = meta
|
|
380
|
+
return root
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
async #rootNodeFromPackage (pkg) {
|
|
384
|
+
// if the path doesn't exist, then we explode at this point. Note that
|
|
385
|
+
// this is not a problem for reify(), since it creates the root path
|
|
386
|
+
// before ever loading trees.
|
|
387
|
+
// TODO: make buildIdealTree() and loadActual handle a missing root path,
|
|
388
|
+
// or a symlink to a missing target, and let reify() create it as needed.
|
|
389
|
+
const real = await realpath(this.path, this[_rpcache], this[_stcache])
|
|
390
|
+
const Cls = real === this.path ? Node : Link
|
|
391
|
+
const root = new Cls({
|
|
392
|
+
path: this.path,
|
|
393
|
+
realpath: real,
|
|
394
|
+
pkg,
|
|
395
|
+
extraneous: false,
|
|
396
|
+
dev: false,
|
|
397
|
+
devOptional: false,
|
|
398
|
+
peer: false,
|
|
399
|
+
optional: false,
|
|
400
|
+
global: this.options.global,
|
|
401
|
+
installLinks: this.installLinks,
|
|
402
|
+
legacyPeerDeps: this.legacyPeerDeps,
|
|
403
|
+
loadOverrides: true,
|
|
404
|
+
})
|
|
405
|
+
if (root.isLink) {
|
|
406
|
+
root.target = new Node({
|
|
407
|
+
path: real,
|
|
408
|
+
realpath: real,
|
|
409
|
+
pkg,
|
|
410
|
+
extraneous: false,
|
|
411
|
+
dev: false,
|
|
412
|
+
devOptional: false,
|
|
413
|
+
peer: false,
|
|
414
|
+
optional: false,
|
|
415
|
+
global: this.options.global,
|
|
416
|
+
installLinks: this.installLinks,
|
|
417
|
+
legacyPeerDeps: this.legacyPeerDeps,
|
|
418
|
+
loadOverrides: true,
|
|
419
|
+
root,
|
|
420
|
+
})
|
|
421
|
+
}
|
|
422
|
+
return root
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
// process the add/rm requests by modifying the root node, and the
|
|
426
|
+
// update.names request by queueing nodes dependent on those named.
|
|
427
|
+
async #applyUserRequests (options) {
|
|
428
|
+
const timeEnd = time.start('idealTree:userRequests')
|
|
429
|
+
const tree = this.idealTree.target
|
|
430
|
+
|
|
431
|
+
if (!this.options.workspaces.length) {
|
|
432
|
+
await this.#applyUserRequestsToNode(tree, options)
|
|
433
|
+
} else {
|
|
434
|
+
const nodes = this.workspaceNodes(tree, this.options.workspaces)
|
|
435
|
+
if (this.options.includeWorkspaceRoot) {
|
|
436
|
+
nodes.push(tree)
|
|
437
|
+
}
|
|
438
|
+
const appliedRequests = nodes.map(
|
|
439
|
+
node => this.#applyUserRequestsToNode(node, options)
|
|
440
|
+
)
|
|
441
|
+
await Promise.all(appliedRequests)
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
timeEnd()
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
async #applyUserRequestsToNode (tree, options) {
|
|
448
|
+
// If we have a list of package names to update, and we know it's
|
|
449
|
+
// going to update them wherever they are, add any paths into those
|
|
450
|
+
// named nodes to the buildIdealTree queue.
|
|
451
|
+
if (!this.options.global && this[_updateNames].length) {
|
|
452
|
+
this.#queueNamedUpdates()
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
// global updates only update the globalTop nodes, but we need to know
|
|
456
|
+
// that they're there, and not reinstall the world unnecessarily.
|
|
457
|
+
const globalExplicitUpdateNames = []
|
|
458
|
+
if (this.options.global && (this[_updateAll] || this[_updateNames].length)) {
|
|
459
|
+
const nm = resolve(this.path, 'node_modules')
|
|
460
|
+
const paths = await readdirScoped(nm).catch(() => [])
|
|
461
|
+
for (const p of paths) {
|
|
462
|
+
const name = p.replace(/\\/g, '/')
|
|
463
|
+
// Match loadActual behavior: hidden entries and retired scoped package
|
|
464
|
+
// folders are not installed global packages.
|
|
465
|
+
if (/^(@[^/]+\/)?\./.test(name)) {
|
|
466
|
+
continue
|
|
467
|
+
}
|
|
468
|
+
const updateName = this[_updateNames].includes(name)
|
|
469
|
+
if (this[_updateAll] || updateName) {
|
|
470
|
+
if (updateName) {
|
|
471
|
+
globalExplicitUpdateNames.push(name)
|
|
472
|
+
}
|
|
473
|
+
const dir = resolve(nm, name)
|
|
474
|
+
const st = await lstat(dir)
|
|
475
|
+
.catch(/* istanbul ignore next */ () => null)
|
|
476
|
+
if (st && st.isSymbolicLink()) {
|
|
477
|
+
const target = await readlink(dir)
|
|
478
|
+
const real = resolve(dirname(dir), target)
|
|
479
|
+
tree.package.dependencies[name] = `file:${real}`
|
|
480
|
+
} else {
|
|
481
|
+
tree.package.dependencies[name] = '*'
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
if (this.auditReport && this.auditReport.size > 0) {
|
|
488
|
+
await this.#queueVulnDependents(options)
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
const { add, rm } = options
|
|
492
|
+
|
|
493
|
+
if (rm && rm.length) {
|
|
494
|
+
addRmPkgDeps.rm(tree.package, rm)
|
|
495
|
+
for (const name of rm) {
|
|
496
|
+
this.#explicitRequests.add({ from: tree, name, action: 'DELETE' })
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
if (add && add.length) {
|
|
501
|
+
await this.#add(tree, options)
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
// triggers a refresh of all edgesOut. this has to be done BEFORE
|
|
505
|
+
// adding the edges to explicitRequests, because the package setter
|
|
506
|
+
// resets all edgesOut.
|
|
507
|
+
if (add && add.length || rm && rm.length || this.options.global) {
|
|
508
|
+
tree.package = tree.package
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
for (const spec of this[_resolvedAdd]) {
|
|
512
|
+
if (spec.tree === tree) {
|
|
513
|
+
this.#explicitRequests.add(tree.edgesOut.get(spec.name))
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
for (const name of globalExplicitUpdateNames) {
|
|
517
|
+
this.#explicitRequests.add(tree.edgesOut.get(name))
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
this.#depsQueue.push(tree)
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
// This returns a promise because we might not have the name yet, and need to call pacote.manifest to find the name.
|
|
524
|
+
async #add (tree, { add, saveType = null, saveBundle = false }) {
|
|
525
|
+
// If we have a link it will need to be added relative to the target's path
|
|
526
|
+
const path = tree.target.path
|
|
527
|
+
|
|
528
|
+
// Get the name for each of the specs in the list.
|
|
529
|
+
// e.g. doing `foo@bar` we just return foo but if it's a url or git, we don't know the name until we fetch it and look in its manifest.
|
|
530
|
+
await Promise.all(add.map(async rawSpec => {
|
|
531
|
+
// We do NOT provide the path to npa here, because user-additions need to be resolved relative to the tree being added to.
|
|
532
|
+
let spec = npa(rawSpec)
|
|
533
|
+
|
|
534
|
+
// if it's just @'' then we reload whatever's there, or get latest.
|
|
535
|
+
// if it's an explicit tag, we need to install that specific tag version.
|
|
536
|
+
const isTag = spec.rawSpec && spec.type === 'tag'
|
|
537
|
+
|
|
538
|
+
// look up the names of file/directory/git specs
|
|
539
|
+
if (!spec.name || isTag) {
|
|
540
|
+
const _isRoot = tree.isProjectRoot || tree.isWorkspace
|
|
541
|
+
const mani = await pacote.manifest(spec, {
|
|
542
|
+
...this.options,
|
|
543
|
+
_isRoot,
|
|
544
|
+
before: this.#releaseAgeBefore(spec),
|
|
545
|
+
})
|
|
546
|
+
if (isTag) {
|
|
547
|
+
// translate tag to a version
|
|
548
|
+
spec = npa(`${mani.name}@${mani.version}`)
|
|
549
|
+
}
|
|
550
|
+
spec.name = mani.name
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
const { name } = spec
|
|
554
|
+
if (spec.type === 'file') {
|
|
555
|
+
spec = npa(`file:${relpath(path, spec.fetchSpec)}`, path)
|
|
556
|
+
spec.name = name
|
|
557
|
+
} else if (spec.type === 'directory') {
|
|
558
|
+
try {
|
|
559
|
+
const real = await realpath(spec.fetchSpec, this[_rpcache], this[_stcache])
|
|
560
|
+
spec = npa(`file:${relpath(path, real)}`, path)
|
|
561
|
+
spec.name = name
|
|
562
|
+
} catch {
|
|
563
|
+
// TODO: create synthetic test case to simulate realpath failure
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
spec.tree = tree
|
|
567
|
+
this[_resolvedAdd].push(spec)
|
|
568
|
+
}))
|
|
569
|
+
|
|
570
|
+
// now this._resolvedAdd is a list of spec objects with names.
|
|
571
|
+
// find a home for each of them!
|
|
572
|
+
addRmPkgDeps.add({
|
|
573
|
+
pkg: tree.package,
|
|
574
|
+
add: this[_resolvedAdd],
|
|
575
|
+
saveBundle,
|
|
576
|
+
saveType,
|
|
577
|
+
})
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
// TODO: provide a way to fix bundled deps by exposing metadata about
|
|
581
|
+
// what's in the bundle at each published manifest. Without that, we
|
|
582
|
+
// can't possibly fix bundled deps without breaking a ton of other stuff,
|
|
583
|
+
// and leaving the user subject to getting it overwritten later anyway.
|
|
584
|
+
async #queueVulnDependents (options) {
|
|
585
|
+
for (const vuln of this.auditReport.values()) {
|
|
586
|
+
// A fix is available in-range but a release-age window blocks the patched
|
|
587
|
+
// version, so audit fix leaves this package at a vulnerable version.
|
|
588
|
+
if (vuln.fixBlockedByReleaseAge) {
|
|
589
|
+
const { version, before } = vuln.fixBlockedByReleaseAge
|
|
590
|
+
const cutoff = new Date(before).toISOString().slice(0, 10)
|
|
591
|
+
log.warn('audit', `A fix for ${vuln.name} is available (${vuln.name}@${version}) ` +
|
|
592
|
+
`but was published after the configured release-age cutoff (${cutoff}), so ` +
|
|
593
|
+
`${vuln.name} was left at a vulnerable version.\n` +
|
|
594
|
+
`To install it, add "${vuln.name}" to min-release-age-exclude, or relax ` +
|
|
595
|
+
'min-release-age or before.')
|
|
596
|
+
}
|
|
597
|
+
for (const node of vuln.nodes) {
|
|
598
|
+
const bundler = node.getBundler()
|
|
599
|
+
|
|
600
|
+
// XXX this belongs in the audit report itself, not here.
|
|
601
|
+
// We shouldn't even get these things here, and they shouldn't
|
|
602
|
+
// be printed by npm-audit-report as if they can be fixed, because
|
|
603
|
+
// they can't.
|
|
604
|
+
if (bundler) {
|
|
605
|
+
log.warn(`audit fix ${node.name}@${node.version}`,
|
|
606
|
+
`${node.location}\nis a bundled dependency of\n${
|
|
607
|
+
bundler.name}@${bundler.version} at ${bundler.location}\n` +
|
|
608
|
+
'It cannot be fixed automatically.\n' +
|
|
609
|
+
`Check for updates to the ${bundler.name} package.`)
|
|
610
|
+
continue
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
for (const edge of node.edgesIn) {
|
|
614
|
+
this.addTracker('idealTree', edge.from.name, edge.from.location)
|
|
615
|
+
this.#depsQueue.push(edge.from)
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
// note any that can't be fixed at the root level without --force
|
|
621
|
+
// if there's a fix, we use that. otherwise, the user has to remove it,
|
|
622
|
+
// find a different thing, fix the upstream, etc.
|
|
623
|
+
//
|
|
624
|
+
// XXX: how to handle top nodes that aren't the root? Maybe the report
|
|
625
|
+
// just tells the user to cd into that directory and fix it?
|
|
626
|
+
if (this.options.force && this.auditReport && this.auditReport.topVulns.size) {
|
|
627
|
+
options.add = options.add || []
|
|
628
|
+
options.rm = options.rm || []
|
|
629
|
+
const nodesTouched = new Set()
|
|
630
|
+
for (const [name, topVuln] of this.auditReport.topVulns.entries()) {
|
|
631
|
+
const {
|
|
632
|
+
simpleRange,
|
|
633
|
+
topNodes,
|
|
634
|
+
fixAvailable,
|
|
635
|
+
} = topVuln
|
|
636
|
+
for (const node of topNodes) {
|
|
637
|
+
if (!node.isProjectRoot && !node.isWorkspace) {
|
|
638
|
+
// not something we're going to fix, sorry. have to cd into
|
|
639
|
+
// that directory and fix it yourself.
|
|
640
|
+
log.warn('audit', 'Manual fix required in linked project ' +
|
|
641
|
+
`at ./${node.location} for ${name}@${simpleRange}.\n` +
|
|
642
|
+
`'cd ./${node.location}' and run 'npm audit' for details.`)
|
|
643
|
+
continue
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
if (!fixAvailable) {
|
|
647
|
+
log.warn('audit', `No fix available for ${name}@${simpleRange}`)
|
|
648
|
+
continue
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
// name may be different if parent fixes the dep
|
|
652
|
+
// see Vuln fixAvailable setter
|
|
653
|
+
const { isSemVerMajor, version, name: fixName } = fixAvailable
|
|
654
|
+
const breakingMessage = isSemVerMajor
|
|
655
|
+
? 'a SemVer major change'
|
|
656
|
+
: 'outside your stated dependency range'
|
|
657
|
+
log.warn('audit', `Updating ${fixName} to ${version}, ` +
|
|
658
|
+
`which is ${breakingMessage}.`)
|
|
659
|
+
|
|
660
|
+
await this.#add(node, { add: [`${fixName}@${version}`] })
|
|
661
|
+
nodesTouched.add(node)
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
for (const node of nodesTouched) {
|
|
665
|
+
node.package = node.package
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
#avoidRange (name) {
|
|
671
|
+
if (!this.auditReport) {
|
|
672
|
+
return null
|
|
673
|
+
}
|
|
674
|
+
const vuln = this.auditReport.get(name)
|
|
675
|
+
if (!vuln) {
|
|
676
|
+
return null
|
|
677
|
+
}
|
|
678
|
+
return vuln.range
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
// Enforces the allow-git / allow-file / allow-directory / allow-remote configs at the arborist resolution layer, before any branching into the symlink (Link) path or the manifest-fetch path.
|
|
682
|
+
// Pacote also enforces these inside FetcherBase.get() as defense-in-depth, but the symlink branch never reaches pacote, and the manifest cache here would bypass pacote on a cached hit.
|
|
683
|
+
// Throws the same { code: EALLOW${TYPE} } shape pacote uses, so callers and downstream consumers stay consistent.
|
|
684
|
+
#checkAllow (spec, edge) {
|
|
685
|
+
const optName = ALLOW_OPTION_FOR_TYPE[spec.type]
|
|
686
|
+
if (!optName) {
|
|
687
|
+
return
|
|
688
|
+
}
|
|
689
|
+
const allow = this.options[optName] ?? 'all'
|
|
690
|
+
if (allow === 'all') {
|
|
691
|
+
return
|
|
692
|
+
}
|
|
693
|
+
const isRoot = !!(edge?.from?.isProjectRoot || edge?.from?.isWorkspace)
|
|
694
|
+
if (allow !== 'none' && isRoot) {
|
|
695
|
+
return
|
|
696
|
+
}
|
|
697
|
+
throw Object.assign(
|
|
698
|
+
new Error(`Fetching${allow === 'root' ? ' non-root' : ''} packages of type "${spec.type}" have been disabled`),
|
|
699
|
+
{
|
|
700
|
+
code: `EALLOW${spec.type.toUpperCase()}`,
|
|
701
|
+
package: spec.toString(),
|
|
702
|
+
}
|
|
703
|
+
)
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
// Builds a Node representing a spec we failed to load (allow-* gate, network failure, ENOTARGET, etc.) and records it in #loadFailures so #pruneFailedOptional can later decide whether the failure is fatal or silently dropped for optional deps.
|
|
707
|
+
#failureNode (name, parent, error, edge) {
|
|
708
|
+
error.requiredBy = edge?.from?.location || '.'
|
|
709
|
+
const n = new Node({
|
|
710
|
+
name,
|
|
711
|
+
parent,
|
|
712
|
+
error,
|
|
713
|
+
installLinks: this.installLinks,
|
|
714
|
+
legacyPeerDeps: this.legacyPeerDeps,
|
|
715
|
+
})
|
|
716
|
+
this.#loadFailures.add(n)
|
|
717
|
+
return n
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
#queueNamedUpdates () {
|
|
721
|
+
// ignore top nodes, since they are not loaded the same way, and
|
|
722
|
+
// probably have their own project associated with them.
|
|
723
|
+
|
|
724
|
+
// for every node with one of the names on the list, we add its
|
|
725
|
+
// dependents to the queue to be evaluated. in buildDepStep,
|
|
726
|
+
// anything on the update names list will get refreshed, even if
|
|
727
|
+
// it isn't a problem.
|
|
728
|
+
|
|
729
|
+
// XXX this could be faster by doing a series of inventory.query('name')
|
|
730
|
+
// calls rather than walking over everything in the tree.
|
|
731
|
+
for (const node of this.idealTree.inventory.values()) {
|
|
732
|
+
// XXX add any invalid edgesOut to the queue
|
|
733
|
+
if (this[_updateNames].includes(node.name) &&
|
|
734
|
+
!node.isTop && !node.inDepBundle && !node.inShrinkwrap) {
|
|
735
|
+
for (const edge of node.edgesIn) {
|
|
736
|
+
this.addTracker('idealTree', edge.from.name, edge.from.location)
|
|
737
|
+
this.#depsQueue.push(edge.from)
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
async #inflateAncientLockfile () {
|
|
744
|
+
const { meta, inventory } = this.idealTree
|
|
745
|
+
const ancient = meta.ancientLockfile
|
|
746
|
+
const old = meta.loadedFromDisk && !(meta.originalLockfileVersion >= 2)
|
|
747
|
+
|
|
748
|
+
if (inventory.size === 0 || !ancient && !old) {
|
|
749
|
+
return
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
// if the lockfile is from node v5 or earlier, then we'll have to reload
|
|
753
|
+
// all the manifests of everything we encounter. this is costly, but at
|
|
754
|
+
// least it's just a one-time hit.
|
|
755
|
+
const timeEnd = time.start('idealTree:inflate')
|
|
756
|
+
|
|
757
|
+
// don't warn if we're not gonna actually write it back anyway.
|
|
758
|
+
const heading = ancient ? 'ancient lockfile' : 'old lockfile'
|
|
759
|
+
if (ancient || !this.options.lockfileVersion ||
|
|
760
|
+
this.options.lockfileVersion >= defaultLockfileVersion) {
|
|
761
|
+
log.warn(heading,
|
|
762
|
+
`
|
|
763
|
+
The ${meta.type} file was created with an old version of npm,
|
|
764
|
+
so supplemental metadata must be fetched from the registry.
|
|
765
|
+
|
|
766
|
+
This is a one-time fix-up, please be patient...
|
|
767
|
+
`)
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
this.addTracker('idealTree:inflate')
|
|
771
|
+
const queue = []
|
|
772
|
+
for (const node of inventory.values()) {
|
|
773
|
+
if (node.isProjectRoot) {
|
|
774
|
+
continue
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
// if the node's location isn't within node_modules then this is actually
|
|
778
|
+
// a link target, so skip it. the link node itself will be queued later.
|
|
779
|
+
if (!node.location.startsWith('node_modules')) {
|
|
780
|
+
continue
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
queue.push(async () => {
|
|
784
|
+
log.silly('inflate', node.location)
|
|
785
|
+
const { resolved, version, path, name, location, integrity } = node
|
|
786
|
+
// don't try to hit the registry for linked deps
|
|
787
|
+
const useResolved = resolved && (
|
|
788
|
+
!version || resolved.startsWith('file:')
|
|
789
|
+
)
|
|
790
|
+
const id = useResolved ? resolved : version
|
|
791
|
+
const spec = npa.resolve(name, id, dirname(path))
|
|
792
|
+
const t = `idealTree:inflate:${location}`
|
|
793
|
+
this.addTracker(t)
|
|
794
|
+
try {
|
|
795
|
+
const mani = await pacote.manifest(spec, {
|
|
796
|
+
...this.options,
|
|
797
|
+
resolved: resolved,
|
|
798
|
+
integrity: integrity,
|
|
799
|
+
fullMetadata: false,
|
|
800
|
+
before: this.#releaseAgeBefore(spec),
|
|
801
|
+
})
|
|
802
|
+
node.package = { ...mani, _id: `${mani.name}@${mani.version}` }
|
|
803
|
+
} catch (er) {
|
|
804
|
+
const warning = `Could not fetch metadata for ${name}@${id}`
|
|
805
|
+
log.warn(heading, warning, er)
|
|
806
|
+
}
|
|
807
|
+
this.finishTracker(t)
|
|
808
|
+
})
|
|
809
|
+
}
|
|
810
|
+
await promiseCallLimit(queue)
|
|
811
|
+
|
|
812
|
+
// have to re-calc dep flags, because the nodes don't have edges
|
|
813
|
+
// until their packages get assigned, so everything looks extraneous
|
|
814
|
+
resetDepFlags(this.idealTree)
|
|
815
|
+
calcDepFlags(this.idealTree)
|
|
816
|
+
|
|
817
|
+
// yes, yes, this isn't the "original" version, but now that it's been
|
|
818
|
+
// upgraded, we need to make sure we don't do the work to upgrade it
|
|
819
|
+
// again, since it's now as new as can be.
|
|
820
|
+
if (!this.options.lockfileVersion && !meta.hiddenLockfile) {
|
|
821
|
+
meta.originalLockfileVersion = defaultLockfileVersion
|
|
822
|
+
}
|
|
823
|
+
this.finishTracker('idealTree:inflate')
|
|
824
|
+
timeEnd()
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
// at this point we have a virtual tree with the actual root node's
|
|
828
|
+
// package deps, which may be partly or entirely incomplete, invalid
|
|
829
|
+
// or extraneous.
|
|
830
|
+
#buildDeps () {
|
|
831
|
+
const timeEnd = time.start('idealTree:buildDeps')
|
|
832
|
+
const tree = this.idealTree.target
|
|
833
|
+
tree.assertRootOverrides()
|
|
834
|
+
this.#depsQueue.push(tree)
|
|
835
|
+
// XXX also push anything that depends on a node with a name
|
|
836
|
+
// in the override list
|
|
837
|
+
log.silly('idealTree', 'buildDeps')
|
|
838
|
+
this.addTracker('idealTree', tree.name, '')
|
|
839
|
+
return this.#buildDepStep().then(timeEnd)
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
async #buildDepStep () {
|
|
843
|
+
// removes tracker of previous dependency in the queue
|
|
844
|
+
if (this.#currentDep) {
|
|
845
|
+
const { location, name } = this.#currentDep
|
|
846
|
+
time.end(`idealTree:${location || '#root'}`)
|
|
847
|
+
this.finishTracker('idealTree', name, location)
|
|
848
|
+
this.#currentDep = null
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
if (!this.#depsQueue.length) {
|
|
852
|
+
return this.#resolveLinks()
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
const node = this.#depsQueue.pop()
|
|
856
|
+
const bd = node.package.bundleDependencies
|
|
857
|
+
const hasBundle = bd && Array.isArray(bd) && bd.length
|
|
858
|
+
const { hasShrinkwrap } = node
|
|
859
|
+
|
|
860
|
+
// if the node was already visited, or has since been removed from the
|
|
861
|
+
// tree, skip over it and process the rest of the queue. If a node has
|
|
862
|
+
// a shrinkwrap, also skip it, because it's going to get its deps
|
|
863
|
+
// satisfied by whatever's in that file anyway.
|
|
864
|
+
if (this.#depsSeen.has(node) ||
|
|
865
|
+
node.root !== this.idealTree ||
|
|
866
|
+
hasShrinkwrap && !this.#complete) {
|
|
867
|
+
return this.#buildDepStep()
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
this.#depsSeen.add(node)
|
|
871
|
+
this.#currentDep = node
|
|
872
|
+
time.start(`idealTree:${node.location || '#root'}`)
|
|
873
|
+
|
|
874
|
+
// if we're loading a _complete_ ideal tree, for a --package-lock-only
|
|
875
|
+
// installation for example, we have to crack open the tarball and
|
|
876
|
+
// look inside if it has bundle deps or shrinkwraps. note that this is
|
|
877
|
+
// not necessary during a reification, because we just update the
|
|
878
|
+
// ideal tree by reading bundles/shrinkwraps in place.
|
|
879
|
+
// Don't bother if the node is from the actual tree and hasn't
|
|
880
|
+
// been resolved, because we can't fetch it anyway, could be anything!
|
|
881
|
+
const crackOpen = this.#complete &&
|
|
882
|
+
node !== this.idealTree &&
|
|
883
|
+
node.resolved &&
|
|
884
|
+
(hasBundle || hasShrinkwrap) &&
|
|
885
|
+
!node.inert
|
|
886
|
+
if (crackOpen) {
|
|
887
|
+
const Arborist = this.constructor
|
|
888
|
+
const opt = { ...this.options }
|
|
889
|
+
await cacache.tmp.withTmp(this.cache, opt, async path => {
|
|
890
|
+
await pacote.extract(node.resolved, path, {
|
|
891
|
+
...opt,
|
|
892
|
+
Arborist,
|
|
893
|
+
resolved: node.resolved,
|
|
894
|
+
integrity: node.integrity,
|
|
895
|
+
})
|
|
896
|
+
|
|
897
|
+
if (hasShrinkwrap) {
|
|
898
|
+
await new Arborist({ ...this.options, path })
|
|
899
|
+
.loadVirtual({ root: node, subtreeOnly: true })
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
if (hasBundle) {
|
|
903
|
+
await new Arborist({ ...this.options, path })
|
|
904
|
+
.loadActual({ root: node, ignoreMissing: true })
|
|
905
|
+
}
|
|
906
|
+
})
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
// if any deps are missing or invalid, then we fetch the manifest for
|
|
910
|
+
// the thing we want, and build a new dep node from that.
|
|
911
|
+
// Then, find the ideal placement for that node. The ideal placement
|
|
912
|
+
// searches from the node's deps (or parent deps in the case of non-root
|
|
913
|
+
// peer deps), and walks up the tree until it finds the highest spot
|
|
914
|
+
// where it doesn't cause any conflicts.
|
|
915
|
+
//
|
|
916
|
+
// A conflict can be:
|
|
917
|
+
// - A node by that name already exists at that location.
|
|
918
|
+
// - The parent has a peer dep on that name
|
|
919
|
+
// - One of the node's peer deps conflicts at that location, unless the
|
|
920
|
+
// peer dep is met by a node at that location, which is fine.
|
|
921
|
+
//
|
|
922
|
+
// If we create a new node, then build its ideal deps as well.
|
|
923
|
+
//
|
|
924
|
+
// Note: this is the same "maximally naive" deduping tree-building
|
|
925
|
+
// algorithm that npm has used since v3. In a case like this:
|
|
926
|
+
//
|
|
927
|
+
// root -> (a@1, b@1||2)
|
|
928
|
+
// a -> (b@1)
|
|
929
|
+
//
|
|
930
|
+
// You'll end up with a tree like this:
|
|
931
|
+
//
|
|
932
|
+
// root
|
|
933
|
+
// +-- a@1
|
|
934
|
+
// | +-- b@1
|
|
935
|
+
// +-- b@2
|
|
936
|
+
//
|
|
937
|
+
// rather than this, more deduped, but just as correct tree:
|
|
938
|
+
//
|
|
939
|
+
// root
|
|
940
|
+
// +-- a@1
|
|
941
|
+
// +-- b@1
|
|
942
|
+
//
|
|
943
|
+
// Another way to look at it is that this algorithm favors getting higher
|
|
944
|
+
// version deps at higher levels in the tree, even if that reduces
|
|
945
|
+
// potential deduplication.
|
|
946
|
+
//
|
|
947
|
+
// Set `preferDedupe: true` in the options to replace the shallower
|
|
948
|
+
// dep if allowed.
|
|
949
|
+
|
|
950
|
+
const tasks = []
|
|
951
|
+
const peerSource = this.#peerSetSource.get(node) || node
|
|
952
|
+
for (const edge of this.#problemEdges(node)) {
|
|
953
|
+
if (edge.peerConflicted) {
|
|
954
|
+
continue
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
// peerSetSource is only relevant when we have a peerEntryEdge
|
|
958
|
+
// otherwise we're setting regular non-peer deps as if they have
|
|
959
|
+
// a virtual root of whatever brought in THIS node.
|
|
960
|
+
// so we VR the node itself if the edge is not a peer
|
|
961
|
+
const source = edge.peer ? peerSource : node
|
|
962
|
+
|
|
963
|
+
const virtualRoot = this.#virtualRoot(source, true)
|
|
964
|
+
// reuse virtual root if we already have one, but don't
|
|
965
|
+
// try to do the override ahead of time, since we MAY be able
|
|
966
|
+
// to create a more correct tree than the virtual root could.
|
|
967
|
+
const vrEdge = virtualRoot && virtualRoot.edgesOut.get(edge.name)
|
|
968
|
+
const vrDep = vrEdge && vrEdge.valid && vrEdge.to
|
|
969
|
+
// only re-use the virtualRoot if it's a peer edge we're placing.
|
|
970
|
+
// otherwise, we end up in situations where we override peer deps that
|
|
971
|
+
// we could have otherwise found homes for. Eg:
|
|
972
|
+
// xy -> (x, y)
|
|
973
|
+
// x -> PEER(z@1)
|
|
974
|
+
// y -> PEER(z@2)
|
|
975
|
+
// If xy is a dependency, we can resolve this like:
|
|
976
|
+
// project
|
|
977
|
+
// +-- xy
|
|
978
|
+
// | +-- y
|
|
979
|
+
// | +-- z@2
|
|
980
|
+
// +-- x
|
|
981
|
+
// +-- z@1
|
|
982
|
+
// But if x and y are loaded in the same virtual root, then they will
|
|
983
|
+
// be forced to agree on a version of z.
|
|
984
|
+
const required = new Set([edge.from])
|
|
985
|
+
const parent = edge.peer ? virtualRoot : null
|
|
986
|
+
let dep = vrDep && vrDep.satisfies(edge) ? vrDep : null
|
|
987
|
+
|
|
988
|
+
// A peerOptional conflict can be resolved by finding an existing node in the tree that satisfies the edge, avoiding a registry fetch that may introduce an extraneous package. See npm/cli#9249.
|
|
989
|
+
// Skip the shortcut when the user has signaled an explicit re-fetch intent (npm update by name, explicit request, or audit fix), so we honor those signals rather than silently keeping the existing node.
|
|
990
|
+
const skipExistingShortcut = this[_updateNames].includes(edge.name)
|
|
991
|
+
|| this.#explicitRequests.has(edge)
|
|
992
|
+
|| (edge.to && this.auditReport?.isVulnerable(edge.to))
|
|
993
|
+
if (!dep && edge.type === 'peerOptional' && !skipExistingShortcut) {
|
|
994
|
+
dep = this.#findHoistableNode(
|
|
995
|
+
/* istanbul ignore next - resolveParent is always set for non-root nodes */
|
|
996
|
+
edge.from.resolveParent || edge.from, edge)
|
|
997
|
+
}
|
|
998
|
+
if (!dep) {
|
|
999
|
+
dep = await this.#nodeFromEdge(edge, parent, null, required)
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
/* istanbul ignore next */
|
|
1003
|
+
debug(() => {
|
|
1004
|
+
if (!dep) {
|
|
1005
|
+
throw new Error('no dep??')
|
|
1006
|
+
}
|
|
1007
|
+
})
|
|
1008
|
+
|
|
1009
|
+
tasks.push({ edge, dep })
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
const placeDeps = tasks.sort((a, b) => localeCompare(a.edge.name, b.edge.name))
|
|
1013
|
+
|
|
1014
|
+
const promises = []
|
|
1015
|
+
for (const { edge, dep } of placeDeps) {
|
|
1016
|
+
const pd = new PlaceDep({
|
|
1017
|
+
edge,
|
|
1018
|
+
dep,
|
|
1019
|
+
|
|
1020
|
+
auditReport: this.auditReport,
|
|
1021
|
+
explicitRequest: this.#explicitRequests.has(edge),
|
|
1022
|
+
force: this.options.force,
|
|
1023
|
+
installLinks: this.installLinks,
|
|
1024
|
+
installStrategy: this.#installStrategy,
|
|
1025
|
+
legacyPeerDeps: this.legacyPeerDeps,
|
|
1026
|
+
preferDedupe: this.#preferDedupe,
|
|
1027
|
+
strictPeerDeps: this.#strictPeerDeps,
|
|
1028
|
+
updateNames: this[_updateNames],
|
|
1029
|
+
})
|
|
1030
|
+
// placing a dep is actually a tree of placing the dep itself
|
|
1031
|
+
// and all of its peer group that aren't already met by the tree
|
|
1032
|
+
depth({
|
|
1033
|
+
tree: pd,
|
|
1034
|
+
getChildren: pd => pd.children,
|
|
1035
|
+
visit: pd => {
|
|
1036
|
+
const { placed, edge, canPlace: cpd, parent } = pd
|
|
1037
|
+
// if we didn't place anything, nothing to do here
|
|
1038
|
+
if (!placed) {
|
|
1039
|
+
return
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
// we placed something, that means we changed the tree
|
|
1043
|
+
if (placed.errors.length) {
|
|
1044
|
+
this.#loadFailures.add(placed)
|
|
1045
|
+
}
|
|
1046
|
+
this.#mutateTree = true
|
|
1047
|
+
if (cpd.canPlaceSelf === OK) {
|
|
1048
|
+
for (const edgeIn of placed.edgesIn) {
|
|
1049
|
+
if (edgeIn === edge) {
|
|
1050
|
+
continue
|
|
1051
|
+
}
|
|
1052
|
+
const { from, valid, peerConflicted } = edgeIn
|
|
1053
|
+
if (!peerConflicted && !valid) {
|
|
1054
|
+
if (this.#depsSeen.has(from) &&
|
|
1055
|
+
(this.options.save ||
|
|
1056
|
+
(this.options.save === false && this.#requestedTreeMutation))) {
|
|
1057
|
+
// Re-queue already-processed nodes when a newly placed dep
|
|
1058
|
+
// creates an invalid edge during npm install or another
|
|
1059
|
+
// lockfile-mutating operation. This handles the case where a
|
|
1060
|
+
// peerOptional dep was valid (missing) when the node was
|
|
1061
|
+
// first processed, but becomes invalid when the dep is later
|
|
1062
|
+
// placed by another path with a version that doesn't satisfy
|
|
1063
|
+
// the peer spec.
|
|
1064
|
+
// See npm/cli#8726.
|
|
1065
|
+
this.#depsSeen.delete(from)
|
|
1066
|
+
this.#depsQueue.push(from)
|
|
1067
|
+
} else if (!this.#depsSeen.has(from)) {
|
|
1068
|
+
this.addTracker('idealTree', from.name, from.location)
|
|
1069
|
+
this.#depsQueue.push(from)
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
} else {
|
|
1074
|
+
/* istanbul ignore else - should be only OK or REPLACE here */
|
|
1075
|
+
if (cpd.canPlaceSelf === REPLACE) {
|
|
1076
|
+
// this may also create some invalid edges, for example if we're
|
|
1077
|
+
// intentionally causing something to get nested which was
|
|
1078
|
+
// previously placed in this location.
|
|
1079
|
+
for (const edgeIn of placed.edgesIn) {
|
|
1080
|
+
if (edgeIn === edge) {
|
|
1081
|
+
continue
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
const { valid, peerConflicted } = edgeIn
|
|
1085
|
+
if (!valid && !peerConflicted) {
|
|
1086
|
+
// if it's already been visited, we have to re-visit
|
|
1087
|
+
// otherwise, just enqueue normally.
|
|
1088
|
+
this.#depsSeen.delete(edgeIn.from)
|
|
1089
|
+
this.#depsQueue.push(edgeIn.from)
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
/* istanbul ignore if - should be impossible */
|
|
1096
|
+
if (cpd.canPlaceSelf === CONFLICT) {
|
|
1097
|
+
debug(() => {
|
|
1098
|
+
const er = new Error('placed with canPlaceSelf=CONFLICT')
|
|
1099
|
+
throw Object.assign(er, { placeDep: pd })
|
|
1100
|
+
})
|
|
1101
|
+
return
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
// lastly, also check for the missing deps of the node we placed, and any holes created by pruning out conflicted peer sets.
|
|
1105
|
+
this.#depsQueue.push(placed)
|
|
1106
|
+
for (const dep of pd.needEvaluation) {
|
|
1107
|
+
this.#depsSeen.delete(dep)
|
|
1108
|
+
this.#depsQueue.push(dep)
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
// pre-fetch any problem edges, since we'll need these soon
|
|
1112
|
+
// if it fails at this point, though, don't worry because it may well be an optional dep that has gone missing
|
|
1113
|
+
// it'll fail later anyway
|
|
1114
|
+
for (const e of this.#problemEdges(placed)) {
|
|
1115
|
+
// XXX This is somehow load bearing. This makes tests that print the ideal tree of a tree with tarball dependencies fail
|
|
1116
|
+
// This can't be changed or removed till we figure out why
|
|
1117
|
+
// The test is named "tarball deps with transitive tarball deps"
|
|
1118
|
+
promises.push(() =>
|
|
1119
|
+
this.#fetchManifest(npa.resolve(e.name, e.spec, fromPath(placed, e)), parent, e)
|
|
1120
|
+
.catch(() => null)
|
|
1121
|
+
)
|
|
1122
|
+
}
|
|
1123
|
+
},
|
|
1124
|
+
})
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
for (const { to } of node.edgesOut.values()) {
|
|
1128
|
+
if (to && to.isLink && to.target) {
|
|
1129
|
+
this.#linkNodes.add(to)
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
await promiseCallLimit(promises)
|
|
1134
|
+
return this.#buildDepStep()
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
// BFS descendants of `root` for a node satisfying `edge`.
|
|
1138
|
+
// Prefers nodes closer to root. Skips bundled nodes.
|
|
1139
|
+
#findHoistableNode (root, edge) {
|
|
1140
|
+
const queue = [...root.children.values()]
|
|
1141
|
+
while (queue.length) {
|
|
1142
|
+
const node = queue.shift()
|
|
1143
|
+
if (node.name === edge.name
|
|
1144
|
+
&& !node.inDepBundle
|
|
1145
|
+
&& node.satisfies(edge)) {
|
|
1146
|
+
return node
|
|
1147
|
+
}
|
|
1148
|
+
for (const child of node.children.values()) {
|
|
1149
|
+
queue.push(child)
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
return null
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
// loads a node from an edge, and then loads its peer deps (and their peer deps, on down the line) into a virtual root parent.
|
|
1156
|
+
async #nodeFromEdge (edge, parent_, secondEdge, required) {
|
|
1157
|
+
// create a virtual root node with the same deps as the node that is requesting this one, so that we can get all the peer deps in a context where they're likely to be resolvable.
|
|
1158
|
+
// Note that the virtual root will also have virtual copies of the targets of any child Links, so that they resolve appropriately.
|
|
1159
|
+
const parent = parent_ || this.#virtualRoot(edge.from)
|
|
1160
|
+
|
|
1161
|
+
const spec = npa.resolve(edge.name, edge.spec, edge.from.path)
|
|
1162
|
+
const first = await this.#nodeFromSpec(edge.name, spec, parent, edge)
|
|
1163
|
+
|
|
1164
|
+
// we might have a case where the parent has a peer dependency on `foo@*` which resolves to v2, but another dep in the set has a peerDependency on `foo@1`.
|
|
1165
|
+
// In that case, if we force it to be v2, we're unnecessarily triggering an ERESOLVE.
|
|
1166
|
+
// If we have a second edge to worry about, and it's not satisfied by the first node, try a second and see if that satisfies the original edge here.
|
|
1167
|
+
const spec2 = secondEdge && npa.resolve(
|
|
1168
|
+
edge.name,
|
|
1169
|
+
secondEdge.spec,
|
|
1170
|
+
secondEdge.from.path
|
|
1171
|
+
)
|
|
1172
|
+
const second = secondEdge && !secondEdge.valid
|
|
1173
|
+
? await this.#nodeFromSpec(edge.name, spec2, parent, secondEdge)
|
|
1174
|
+
: null
|
|
1175
|
+
|
|
1176
|
+
// pick the second one if they're both happy with that; otherwise, first
|
|
1177
|
+
const node = second && edge.valid ? second : first
|
|
1178
|
+
// ensure the one we want is the one that's placed
|
|
1179
|
+
node.parent = parent
|
|
1180
|
+
|
|
1181
|
+
if (required.has(edge.from) && edge.type !== 'peerOptional' ||
|
|
1182
|
+
secondEdge && (
|
|
1183
|
+
required.has(secondEdge.from) && secondEdge.type !== 'peerOptional')) {
|
|
1184
|
+
required.add(node)
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
// keep track of the thing that caused this node to be included.
|
|
1188
|
+
const src = parent.sourceReference
|
|
1189
|
+
this.#peerSetSource.set(node, src)
|
|
1190
|
+
|
|
1191
|
+
// do not load the peers along with the set if this is a global top pkg
|
|
1192
|
+
// otherwise we'll be tempted to put peers as other top-level installed
|
|
1193
|
+
// things, potentially clobbering what's there already, which is not
|
|
1194
|
+
// what we want. the missing edges will be picked up on the next pass.
|
|
1195
|
+
if (this.options.global && edge.from.isProjectRoot) {
|
|
1196
|
+
return node
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
// otherwise, we have to make sure that our peers can go along with us.
|
|
1200
|
+
return this.#loadPeerSet(node, required)
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
#virtualRoot (node, reuse = false) {
|
|
1204
|
+
if (reuse && this.#virtualRoots.has(node)) {
|
|
1205
|
+
return this.#virtualRoots.get(node)
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
const vr = new Node({
|
|
1209
|
+
path: node.realpath,
|
|
1210
|
+
sourceReference: node,
|
|
1211
|
+
installLinks: this.installLinks,
|
|
1212
|
+
legacyPeerDeps: this.legacyPeerDeps,
|
|
1213
|
+
overrides: node.overrides,
|
|
1214
|
+
})
|
|
1215
|
+
|
|
1216
|
+
// also need to set up any targets from any link deps, so that
|
|
1217
|
+
// they are properly reflected in the virtual environment
|
|
1218
|
+
for (const child of node.children.values()) {
|
|
1219
|
+
if (child.isLink) {
|
|
1220
|
+
new Node({
|
|
1221
|
+
path: child.realpath,
|
|
1222
|
+
sourceReference: child.target,
|
|
1223
|
+
root: vr,
|
|
1224
|
+
})
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
this.#virtualRoots.set(node, vr)
|
|
1229
|
+
return vr
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
#problemEdges (node) {
|
|
1233
|
+
// skip over any bundled deps, they're not our problem.
|
|
1234
|
+
// Note that this WILL fetch bundled meta-deps which are also dependencies
|
|
1235
|
+
// but not listed as bundled deps. When reifying, we first unpack any
|
|
1236
|
+
// nodes that have bundleDependencies, then do a loadActual on them, move
|
|
1237
|
+
// the nodes into the ideal tree, and then prune. So, fetching those
|
|
1238
|
+
// possibly-bundled meta-deps at this point doesn't cause any worse
|
|
1239
|
+
// problems than a few unnecessary packument fetches.
|
|
1240
|
+
|
|
1241
|
+
// also skip over any nodes in the tree that failed to load, since those
|
|
1242
|
+
// will crash the install later on anyway.
|
|
1243
|
+
const bd = node.isProjectRoot || node.isWorkspace ? null
|
|
1244
|
+
: node.package.bundleDependencies
|
|
1245
|
+
const bundled = new Set(bd || [])
|
|
1246
|
+
|
|
1247
|
+
const problems = []
|
|
1248
|
+
for (const edge of node.edgesOut.values()) {
|
|
1249
|
+
// If it's included in a bundle, we take whatever is specified.
|
|
1250
|
+
if (bundled.has(edge.name)) {
|
|
1251
|
+
continue
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
// If it's already been logged as a load failure, skip it.
|
|
1255
|
+
if (edge.to && this.#loadFailures.has(edge.to)) {
|
|
1256
|
+
continue
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
// If it's shrinkwrapped, we use what the shrinkwap wants.
|
|
1260
|
+
if (edge.to && edge.to.inShrinkwrap) {
|
|
1261
|
+
continue
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
// If the edge has no destination, that's a problem, unless
|
|
1265
|
+
// if it's peerOptional and not explicitly requested.
|
|
1266
|
+
if (!edge.to) {
|
|
1267
|
+
if (edge.type !== 'peerOptional' ||
|
|
1268
|
+
this.#explicitRequests.has(edge)) {
|
|
1269
|
+
problems.push(edge)
|
|
1270
|
+
}
|
|
1271
|
+
continue
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
// If the edge has an error, there's a problem, unless it's peerOptional
|
|
1275
|
+
// and we're not saving or otherwise mutating (e.g. npm ci), in which
|
|
1276
|
+
// case we trust the lockfile and skip re-resolution. When saving (npm
|
|
1277
|
+
// install) or updating, peerOptional invalid edges ARE treated as
|
|
1278
|
+
// problems so the lockfile gets fixed.
|
|
1279
|
+
// See npm/cli#8726.
|
|
1280
|
+
if (!edge.valid) {
|
|
1281
|
+
if (edge.type !== 'peerOptional' ||
|
|
1282
|
+
this.options.save !== false ||
|
|
1283
|
+
this.#requestedTreeMutation) {
|
|
1284
|
+
problems.push(edge)
|
|
1285
|
+
}
|
|
1286
|
+
continue
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
// If the edge is a workspace, and it's valid, leave it alone
|
|
1290
|
+
if (edge.to.isWorkspace) {
|
|
1291
|
+
continue
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
// user explicitly asked to update this package by name, problem
|
|
1295
|
+
if (this[_updateNames].includes(edge.name)) {
|
|
1296
|
+
problems.push(edge)
|
|
1297
|
+
continue
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
// fixing a security vulnerability with this package, problem
|
|
1301
|
+
if (this.auditReport && this.auditReport.isVulnerable(edge.to)) {
|
|
1302
|
+
problems.push(edge)
|
|
1303
|
+
continue
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
// user has explicitly asked to install this package, problem
|
|
1307
|
+
if (this.#explicitRequests.has(edge)) {
|
|
1308
|
+
problems.push(edge)
|
|
1309
|
+
continue
|
|
1310
|
+
}
|
|
1311
|
+
}
|
|
1312
|
+
return problems
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
// The effective `before` filter for a package, applying `min-release-age-exclude`.
|
|
1316
|
+
// Returns null (no age filter) for an exempted package, otherwise the
|
|
1317
|
+
// configured `before`. The exemption is keyed on the spec's trusted registry
|
|
1318
|
+
// identity (alias targets are unwrapped) so an `npm:` alias key cannot disable
|
|
1319
|
+
// the filter for the package it actually resolves to.
|
|
1320
|
+
#releaseAgeBefore (spec) {
|
|
1321
|
+
const { before, minReleaseAgeExclude } = this.options
|
|
1322
|
+
if (!before) {
|
|
1323
|
+
return before
|
|
1324
|
+
}
|
|
1325
|
+
return isReleaseAgeExcluded(trustedSpecName(spec), minReleaseAgeExclude) ? null : before
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
async #fetchManifest (spec, parent, edge) {
|
|
1329
|
+
// Enforce allow-* gates before consulting the manifest cache so a cached entry from a different edge cannot bypass the policy.
|
|
1330
|
+
this.#checkAllow(spec, edge)
|
|
1331
|
+
const options = {
|
|
1332
|
+
...this.options,
|
|
1333
|
+
avoid: this.#avoidRange(spec.name),
|
|
1334
|
+
fullMetadata: true,
|
|
1335
|
+
before: this.#releaseAgeBefore(spec),
|
|
1336
|
+
_isRoot: !!(edge?.from?.isProjectRoot || edge?.from?.isWorkspace),
|
|
1337
|
+
}
|
|
1338
|
+
// get the intended spec and stored metadata from yarn.lock file,
|
|
1339
|
+
// if available and valid.
|
|
1340
|
+
spec = this.idealTree.meta.checkYarnLock(spec, options)
|
|
1341
|
+
|
|
1342
|
+
if (this.#manifests.has(spec.raw)) {
|
|
1343
|
+
return this.#manifests.get(spec.raw)
|
|
1344
|
+
} else {
|
|
1345
|
+
log.silly('fetch manifest', spec.raw.replace(spec.rawSpec, redact(spec.rawSpec)))
|
|
1346
|
+
const mani = await pacote.manifest(spec, options)
|
|
1347
|
+
this.#manifests.set(spec.raw, mani)
|
|
1348
|
+
return mani
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
async #nodeFromSpec (name, spec, parent, edge) {
|
|
1353
|
+
// Enforce allow-git / allow-file / allow-directory / allow-remote before any branching, so the symlink (Link) path is enforced as well as the manifest-fetch path.
|
|
1354
|
+
// Route the failure through #loadFailures so optional-dep semantics apply (e.g. a transitive optionalDependencies entry that resolves to a disallowed git URL is silently dropped rather than failing the install).
|
|
1355
|
+
try {
|
|
1356
|
+
this.#checkAllow(spec, edge)
|
|
1357
|
+
} catch (error) {
|
|
1358
|
+
return this.#failureNode(name, parent, error, edge)
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
// pacote will slap integrity on its options, so we have to clone the object so it doesn't get mutated.
|
|
1362
|
+
// Don't bother to load the manifest for link deps, because the target might be within another package that doesn't exist yet.
|
|
1363
|
+
const { installLinks, legacyPeerDeps } = this
|
|
1364
|
+
const isWorkspace = this.idealTree.workspaces && this.idealTree.workspaces.has(spec.name)
|
|
1365
|
+
|
|
1366
|
+
// spec is a directory, link it if:
|
|
1367
|
+
// - it's a workspace, OR
|
|
1368
|
+
// - it's a project-internal file: dependency (always linked), OR
|
|
1369
|
+
// - it's external and installLinks is false
|
|
1370
|
+
// TODO post arborist refactor, will need to check for installStrategy=linked
|
|
1371
|
+
let isProjectInternalFileSpec = false
|
|
1372
|
+
if (edge?.rawSpec.startsWith('file:../') || edge?.rawSpec.startsWith('file:./')) {
|
|
1373
|
+
const targetPath = resolve(parent.realpath, edge.rawSpec.slice(5))
|
|
1374
|
+
const resolvedProjectRoot = resolve(this.idealTree.realpath)
|
|
1375
|
+
// Check if the target is within the project root
|
|
1376
|
+
isProjectInternalFileSpec = targetPath.startsWith(resolvedProjectRoot + sep) || targetPath === resolvedProjectRoot
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
// When using --install-links, we need to handle transitive file dependencies specially
|
|
1380
|
+
// If the parent was installed (not linked) due to --install-links, and this is a file: dep, we should also install it rather than link it
|
|
1381
|
+
const parentWasInstalled = parent && !parent.isLink && parent.resolved?.startsWith('file:')
|
|
1382
|
+
const isTransitiveFileDep = spec.type === 'directory' && parentWasInstalled && installLinks
|
|
1383
|
+
|
|
1384
|
+
// Decide whether to link or copy the dependency
|
|
1385
|
+
const shouldLink = (isWorkspace || isProjectInternalFileSpec || !installLinks) && !isTransitiveFileDep
|
|
1386
|
+
if (spec.type === 'directory' && shouldLink) {
|
|
1387
|
+
const realpath = spec.fetchSpec
|
|
1388
|
+
const { content: pkg } = await PackageJson.normalize(realpath).catch(() => {
|
|
1389
|
+
return { content: {} }
|
|
1390
|
+
})
|
|
1391
|
+
const link = new Link({ name, parent, realpath, pkg, installLinks, legacyPeerDeps })
|
|
1392
|
+
this.#linkNodes.add(link)
|
|
1393
|
+
return link
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
// if the spec matches a workspace name, then see if the workspace node will satisfy the edge. if it does, we return the workspace node to make sure it takes priority.
|
|
1397
|
+
if (isWorkspace) {
|
|
1398
|
+
const existingNode = this.idealTree.edgesOut.get(spec.name).to
|
|
1399
|
+
if (existingNode && existingNode.isWorkspace && existingNode.satisfies(edge)) {
|
|
1400
|
+
return existingNode
|
|
1401
|
+
}
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
// For file: dependencies that we're installing (not linking), ensure proper resolution
|
|
1405
|
+
if (isTransitiveFileDep && edge) {
|
|
1406
|
+
// For transitive file deps, resolve relative to the parent's original source location
|
|
1407
|
+
const parentOriginalPath = parent.resolved.slice(5) // Remove 'file:' prefix
|
|
1408
|
+
const relativePath = edge.rawSpec.slice(5) // Remove 'file:' prefix
|
|
1409
|
+
const absolutePath = resolve(parentOriginalPath, relativePath)
|
|
1410
|
+
spec = npa.resolve(name, `file:${absolutePath}`)
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1413
|
+
// spec isn't a directory, and either isn't a workspace or the workspace we have
|
|
1414
|
+
// doesn't satisfy the edge. try to fetch a manifest and build a node from that.
|
|
1415
|
+
return this.#fetchManifest(spec, parent, edge)
|
|
1416
|
+
.then(
|
|
1417
|
+
pkg => {
|
|
1418
|
+
// When a proxy/upstream registry returns an incomplete manifest
|
|
1419
|
+
// (e.g. missing version field for platform-specific packages it
|
|
1420
|
+
// hasn't cached), treat it as a load failure so that optional deps
|
|
1421
|
+
// are properly pruned instead of written to the lockfile without
|
|
1422
|
+
// version metadata. Only apply to registry specs — file: deps
|
|
1423
|
+
// legitimately omit version.
|
|
1424
|
+
if (!pkg.version && spec.registry) {
|
|
1425
|
+
const error = Object.assign(
|
|
1426
|
+
new Error(`incomplete manifest for ${name}, missing version`),
|
|
1427
|
+
{ code: 'EINCOMPLETEMANIFEST' }
|
|
1428
|
+
)
|
|
1429
|
+
return this.#failureNode(name, parent, error, edge)
|
|
1430
|
+
}
|
|
1431
|
+
return new Node({ name, pkg, parent, installLinks, legacyPeerDeps })
|
|
1432
|
+
},
|
|
1433
|
+
error => this.#failureNode(name, parent, error, edge)
|
|
1434
|
+
)
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
// load all peer deps and meta-peer deps into the node's parent
|
|
1438
|
+
// At the end of this, the node's peer-type outward edges are all
|
|
1439
|
+
// resolved, and so are all of theirs, but other dep types are not.
|
|
1440
|
+
// We prefer to get peer deps that meet the requiring node's dependency,
|
|
1441
|
+
// if possible, since that almost certainly works (since that package was
|
|
1442
|
+
// developed with this set of deps) and will typically be more restrictive.
|
|
1443
|
+
// Note that the peers in the set can conflict either with each other,
|
|
1444
|
+
// or with a direct dependency from the virtual root parent! In strict
|
|
1445
|
+
// mode, this is always an error. In force mode, it never is, and we
|
|
1446
|
+
// prefer the parent's non-peer dep over a peer dep, or the version that
|
|
1447
|
+
// gets placed first. In non-strict mode, we behave strictly if the
|
|
1448
|
+
// virtual root is based on the root project, and allow non-peer parent
|
|
1449
|
+
// deps to override, but throw if no preference can be determined.
|
|
1450
|
+
async #loadPeerSet (node, required) {
|
|
1451
|
+
const peerEdges = [...node.edgesOut.values()]
|
|
1452
|
+
// we typically only install non-optional peers, but we have to
|
|
1453
|
+
// factor them into the peerSet so that we can avoid conflicts
|
|
1454
|
+
.filter(e => e.peer && !(e.valid && e.to))
|
|
1455
|
+
.sort(({ name: a }, { name: b }) => localeCompare(a, b))
|
|
1456
|
+
|
|
1457
|
+
for (const edge of peerEdges) {
|
|
1458
|
+
// node.parent gets mutated during loop execution due to recursive #nodeFromEdge calls.
|
|
1459
|
+
// When a compatible peer is found (e.g. a@1.1.0 replaces a@1.2.0), the original node loses its parent.
|
|
1460
|
+
// if node is detached/removed from the tree, or has no parent, so no need to check remaining edgesOut for that node.
|
|
1461
|
+
if (!node.parent) {
|
|
1462
|
+
break
|
|
1463
|
+
}
|
|
1464
|
+
// already placed this one, and we're happy with it.
|
|
1465
|
+
if (edge.valid && edge.to) {
|
|
1466
|
+
continue
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
const parentEdge = node.parent.edgesOut.get(edge.name)
|
|
1470
|
+
const { isProjectRoot, isWorkspace } = node.parent.sourceReference
|
|
1471
|
+
const isMine = isProjectRoot || isWorkspace
|
|
1472
|
+
const conflictOK = this.options.force || !isMine && !this.#strictPeerDeps
|
|
1473
|
+
|
|
1474
|
+
if (!edge.to) {
|
|
1475
|
+
if (!parentEdge) {
|
|
1476
|
+
// easy, just put the thing there
|
|
1477
|
+
await this.#nodeFromEdge(edge, node.parent, null, required)
|
|
1478
|
+
continue
|
|
1479
|
+
} else {
|
|
1480
|
+
// if the parent's edge is very broad like >=1, and the edge in
|
|
1481
|
+
// question is something like 1.x, then we want to get a 1.x, not
|
|
1482
|
+
// a 2.x. pass along the child edge as an advisory guideline.
|
|
1483
|
+
// if the parent edge doesn't satisfy the child edge, and the
|
|
1484
|
+
// child edge doesn't satisfy the parent edge, then we have
|
|
1485
|
+
// a conflict. this is always a problem in strict mode, never
|
|
1486
|
+
// in force mode, and a problem in non-strict mode if this isn't
|
|
1487
|
+
// on behalf of our project. in all such cases, we warn at least.
|
|
1488
|
+
const dep = await this.#nodeFromEdge(
|
|
1489
|
+
parentEdge,
|
|
1490
|
+
node.parent,
|
|
1491
|
+
edge,
|
|
1492
|
+
required
|
|
1493
|
+
)
|
|
1494
|
+
|
|
1495
|
+
// hooray! that worked!
|
|
1496
|
+
if (edge.valid) {
|
|
1497
|
+
continue
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1500
|
+
// allow it. either we're overriding, or it's not something
|
|
1501
|
+
// that will be installed by default anyway, and we'll fail when
|
|
1502
|
+
// we get to the point where we need to, if we need to.
|
|
1503
|
+
if (conflictOK || !required.has(dep)) {
|
|
1504
|
+
edge.peerConflicted = true
|
|
1505
|
+
continue
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
// The recursion above may replace node with a compatible peer, detaching it.
|
|
1509
|
+
// A detached node has no real conflict to report, so stop instead of crashing on it.
|
|
1510
|
+
if (!node.parent) {
|
|
1511
|
+
break
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
// problem
|
|
1515
|
+
this.#failPeerConflict(edge, parentEdge)
|
|
1516
|
+
}
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
// There is something present already, and we're not happy about it
|
|
1520
|
+
// See if the thing we WOULD be happy with is also going to satisfy
|
|
1521
|
+
// the other dependents on the current node.
|
|
1522
|
+
const current = edge.to
|
|
1523
|
+
const dep = await this.#nodeFromEdge(edge, null, null, required)
|
|
1524
|
+
if (dep.canReplace(current)) {
|
|
1525
|
+
await this.#nodeFromEdge(edge, node.parent, null, required)
|
|
1526
|
+
continue
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
// at this point we know that there is a dep there, and
|
|
1530
|
+
// we don't like it. always fail strictly, always allow forcibly or
|
|
1531
|
+
// in non-strict mode if it's not our fault. don't warn here, because
|
|
1532
|
+
// we are going to warn again when we place the deps, if we end up
|
|
1533
|
+
// overriding for something else. If the thing that has this dep
|
|
1534
|
+
// isn't also required, then there's a good chance we won't need it,
|
|
1535
|
+
// so allow it for now and let it conflict if it turns out to actually
|
|
1536
|
+
// be necessary for the installation.
|
|
1537
|
+
if (conflictOK || !required.has(edge.from)) {
|
|
1538
|
+
continue
|
|
1539
|
+
}
|
|
1540
|
+
|
|
1541
|
+
// ok, it's the root, or we're in unforced strict mode, so this is bad
|
|
1542
|
+
this.#failPeerConflict(edge, parentEdge)
|
|
1543
|
+
}
|
|
1544
|
+
return node
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1547
|
+
#failPeerConflict (edge, currentEdge) {
|
|
1548
|
+
const expl = this.#explainPeerConflict(edge, currentEdge)
|
|
1549
|
+
throw Object.assign(new Error('unable to resolve dependency tree'), expl)
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
#explainPeerConflict (edge, currentEdge) {
|
|
1553
|
+
const node = edge.from
|
|
1554
|
+
const curNode = node.resolve(edge.name)
|
|
1555
|
+
const current = curNode.explain()
|
|
1556
|
+
return {
|
|
1557
|
+
code: 'ERESOLVE',
|
|
1558
|
+
current,
|
|
1559
|
+
// it SHOULD be impossible to get here without a current node in place,
|
|
1560
|
+
// but this at least gives us something report on when bugs creep into
|
|
1561
|
+
// the tree handling logic.
|
|
1562
|
+
currentEdge: currentEdge ? currentEdge.explain() : null,
|
|
1563
|
+
edge: edge.explain(),
|
|
1564
|
+
strictPeerDeps: this.#strictPeerDeps,
|
|
1565
|
+
force: this.options.force,
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
// go through all the links in the this.#linkNodes set
|
|
1570
|
+
// for each one:
|
|
1571
|
+
// - if outside the root, ignore it, assume it's fine, it's not our problem
|
|
1572
|
+
// - if a node in the tree already, assign the target to that node.
|
|
1573
|
+
// - if a path under an existing node, then assign that as the fsParent,
|
|
1574
|
+
// and add it to the _depsQueue
|
|
1575
|
+
//
|
|
1576
|
+
// call buildDepStep if anything was added to the queue; otherwise, we're done
|
|
1577
|
+
// XXX load-virtual also has a #resolveLinks, is there overlap?
|
|
1578
|
+
#resolveLinks () {
|
|
1579
|
+
for (const link of this.#linkNodes) {
|
|
1580
|
+
this.#linkNodes.delete(link)
|
|
1581
|
+
|
|
1582
|
+
// link we never ended up placing, skip it
|
|
1583
|
+
if (link.root !== this.idealTree) {
|
|
1584
|
+
continue
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
const tree = this.idealTree.target
|
|
1588
|
+
const external = !link.target.isDescendantOf(tree)
|
|
1589
|
+
|
|
1590
|
+
// outside the root, somebody else's problem, ignore it
|
|
1591
|
+
if (external && !this.#follow) {
|
|
1592
|
+
continue
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
// didn't find a parent for it or it has not been seen yet
|
|
1596
|
+
// so go ahead and process it.
|
|
1597
|
+
const unseenLink = (link.target.parent || link.target.fsParent) &&
|
|
1598
|
+
!this.#depsSeen.has(link.target)
|
|
1599
|
+
|
|
1600
|
+
if (this.#follow &&
|
|
1601
|
+
!link.target.parent &&
|
|
1602
|
+
!link.target.fsParent ||
|
|
1603
|
+
unseenLink) {
|
|
1604
|
+
// Forward the link's overrides before its subtree resolves, so a root override reaches a transitive dep across the link boundary (npm/cli#9659).
|
|
1605
|
+
if (link.overrides) {
|
|
1606
|
+
link.target.updateOverridesEdgeInAdded(link.overrides)
|
|
1607
|
+
}
|
|
1608
|
+
this.addTracker('idealTree', link.target.name, link.target.location)
|
|
1609
|
+
this.#depsQueue.push(link.target)
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
if (this.#depsQueue.length) {
|
|
1614
|
+
return this.#buildDepStep()
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
#fixDepFlags () {
|
|
1619
|
+
const timeEnd = time.start('idealTree:fixDepFlags')
|
|
1620
|
+
const metaFromDisk = this.idealTree.meta.loadedFromDisk
|
|
1621
|
+
const flagsSuspect = this[_flagsSuspect]
|
|
1622
|
+
const mutateTree = this.#mutateTree
|
|
1623
|
+
// if the options set prune:false, then we don't prune, but we still
|
|
1624
|
+
// mark the extraneous items in the tree if we modified it at all.
|
|
1625
|
+
// If we did no modifications, we just iterate over the extraneous nodes.
|
|
1626
|
+
// if we started with an empty tree, then the dep flags are already
|
|
1627
|
+
// all set to true, and there can be nothing extraneous, so there's
|
|
1628
|
+
// nothing to prune, because we built it from scratch. if we didn't
|
|
1629
|
+
// add or remove anything, then also nothing to do.
|
|
1630
|
+
if (metaFromDisk && mutateTree) {
|
|
1631
|
+
resetDepFlags(this.idealTree)
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
// update all the dev/optional/etc flags in the tree
|
|
1635
|
+
// either we started with a fresh tree, or we
|
|
1636
|
+
// reset all the flags to find the extraneous nodes.
|
|
1637
|
+
//
|
|
1638
|
+
// if we started from a blank slate, or changed something, then
|
|
1639
|
+
// the dep flags will be all set to true.
|
|
1640
|
+
if (!metaFromDisk || mutateTree) {
|
|
1641
|
+
calcDepFlags(this.idealTree)
|
|
1642
|
+
} else {
|
|
1643
|
+
// otherwise just unset all the flags on the root node
|
|
1644
|
+
// since they will sometimes have the default value
|
|
1645
|
+
this.idealTree.unsetDepFlags()
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
// at this point, any node marked as extraneous should be pruned.
|
|
1649
|
+
// if we started from a shrinkwrap, and then added/removed something,
|
|
1650
|
+
// then the tree is suspect. Prune what is marked as extraneous.
|
|
1651
|
+
// otherwise, don't bother.
|
|
1652
|
+
const needPrune = metaFromDisk && (mutateTree || flagsSuspect)
|
|
1653
|
+
if (this.#prune && needPrune) {
|
|
1654
|
+
this.#idealTreePrune()
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1657
|
+
timeEnd()
|
|
1658
|
+
}
|
|
1659
|
+
|
|
1660
|
+
#idealTreePrune () {
|
|
1661
|
+
for (const node of this.idealTree.inventory.values()) {
|
|
1662
|
+
if (node.extraneous) {
|
|
1663
|
+
node.parent = null
|
|
1664
|
+
}
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
#pruneFailedOptional () {
|
|
1669
|
+
for (const node of this.#loadFailures) {
|
|
1670
|
+
if (!node.optional) {
|
|
1671
|
+
throw node.errors[0]
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
const set = optionalSet(node)
|
|
1675
|
+
for (const node of set) {
|
|
1676
|
+
node.inert = true
|
|
1677
|
+
}
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1681
|
+
async prune (options = {}) {
|
|
1682
|
+
// allow the user to set options on the ctor as well.
|
|
1683
|
+
// XXX: deprecate separate method options objects.
|
|
1684
|
+
options = { ...this.options, ...options }
|
|
1685
|
+
|
|
1686
|
+
await this.buildIdealTree(options)
|
|
1687
|
+
|
|
1688
|
+
this.#idealTreePrune()
|
|
1689
|
+
|
|
1690
|
+
if (!this.options.workspacesEnabled) {
|
|
1691
|
+
const excludeNodes = this.excludeWorkspacesDependencySet(this.idealTree)
|
|
1692
|
+
for (const node of this.idealTree.inventory.values()) {
|
|
1693
|
+
if (
|
|
1694
|
+
node.parent !== null
|
|
1695
|
+
&& !node.isProjectRoot
|
|
1696
|
+
&& !excludeNodes.has(node)
|
|
1697
|
+
&& !node.inert
|
|
1698
|
+
) {
|
|
1699
|
+
this[_addNodeToTrashList](node)
|
|
1700
|
+
}
|
|
1701
|
+
}
|
|
1702
|
+
}
|
|
1703
|
+
|
|
1704
|
+
return this.reify(options)
|
|
1705
|
+
}
|
|
1706
|
+
}
|