@ekanos/cli 0.33.2 → 0.35.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/README.md +2 -1
- 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 +2 -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/migrate.d.ts +2 -0
- package/dist/commands/migrate.js +180 -0
- package/dist/commands/migrate.js.map +1 -0
- 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 +68 -173
- 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 +0 -26
- package/dist/commands/team-agent-access.js +1 -26
- 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 +0 -26
- 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 +3 -68
- 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 +1 -18
- package/dist/commands/team-agents.js +6 -16
- package/dist/commands/team-agents.js.map +1 -1
- package/dist/commands/team-api-keys.d.ts +4 -0
- package/dist/commands/team-api-keys.js +277 -0
- package/dist/commands/team-api-keys.js.map +1 -0
- 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 +4 -49
- 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-load.d.ts +8 -0
- package/dist/host-load.js +115 -0
- package/dist/host-load.js.map +1 -0
- 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 +33 -149
- 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/migrate-connection.d.ts +29 -0
- package/dist/migrate-connection.js +569 -0
- package/dist/migrate-connection.js.map +1 -0
- 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 +0 -43
- package/dist/secret-form.js +3 -9
- package/dist/secret-form.js.map +1 -1
- package/dist/secret-input.d.ts +0 -59
- package/dist/secret-input.js +0 -22
- 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 +6 -11
- 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 +5 -57
- 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/loader/declaration-loader.hooks.mjs +187 -0
- package/loader/host-load-probe.mjs +20 -0
- package/loader/register-declaration-loader.mjs +3 -0
- 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 +9 -4
- package/templates/AGENTS.md.tmpl +17 -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/build-integration/references/oauth-setup.md +3 -3
- package/templates/skills/ekanos-platform/SKILL.md +1 -1
|
@@ -0,0 +1,1632 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const { Transform } = require('node:stream')
|
|
4
|
+
const zlib = require('node:zlib')
|
|
5
|
+
const { redirectStatusSet, referrerPolicySet: referrerPolicyTokens, badPortsSet } = require('./constants')
|
|
6
|
+
const { getGlobalOrigin } = require('./global')
|
|
7
|
+
const { collectASequenceOfCodePoints, collectAnHTTPQuotedString, removeChars, parseMIMEType } = require('./data-url')
|
|
8
|
+
const { performance } = require('node:perf_hooks')
|
|
9
|
+
const { isBlobLike, ReadableStreamFrom, isValidHTTPToken, normalizedMethodRecordsBase } = require('../../core/util')
|
|
10
|
+
const assert = require('node:assert')
|
|
11
|
+
const { isUint8Array } = require('node:util/types')
|
|
12
|
+
const { webidl } = require('./webidl')
|
|
13
|
+
|
|
14
|
+
let supportedHashes = []
|
|
15
|
+
|
|
16
|
+
// https://nodejs.org/api/crypto.html#determining-if-crypto-support-is-unavailable
|
|
17
|
+
/** @type {import('crypto')} */
|
|
18
|
+
let crypto
|
|
19
|
+
try {
|
|
20
|
+
crypto = require('node:crypto')
|
|
21
|
+
const possibleRelevantHashes = ['sha256', 'sha384', 'sha512']
|
|
22
|
+
supportedHashes = crypto.getHashes().filter((hash) => possibleRelevantHashes.includes(hash))
|
|
23
|
+
/* c8 ignore next 3 */
|
|
24
|
+
} catch {
|
|
25
|
+
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function responseURL (response) {
|
|
29
|
+
// https://fetch.spec.whatwg.org/#responses
|
|
30
|
+
// A response has an associated URL. It is a pointer to the last URL
|
|
31
|
+
// in response’s URL list and null if response’s URL list is empty.
|
|
32
|
+
const urlList = response.urlList
|
|
33
|
+
const length = urlList.length
|
|
34
|
+
return length === 0 ? null : urlList[length - 1].toString()
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// https://fetch.spec.whatwg.org/#concept-response-location-url
|
|
38
|
+
function responseLocationURL (response, requestFragment) {
|
|
39
|
+
// 1. If response’s status is not a redirect status, then return null.
|
|
40
|
+
if (!redirectStatusSet.has(response.status)) {
|
|
41
|
+
return null
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// 2. Let location be the result of extracting header list values given
|
|
45
|
+
// `Location` and response’s header list.
|
|
46
|
+
let location = response.headersList.get('location', true)
|
|
47
|
+
|
|
48
|
+
// 3. If location is a header value, then set location to the result of
|
|
49
|
+
// parsing location with response’s URL.
|
|
50
|
+
if (location !== null && isValidHeaderValue(location)) {
|
|
51
|
+
if (!isValidEncodedURL(location)) {
|
|
52
|
+
// Some websites respond location header in UTF-8 form without encoding them as ASCII
|
|
53
|
+
// and major browsers redirect them to correctly UTF-8 encoded addresses.
|
|
54
|
+
// Here, we handle that behavior in the same way.
|
|
55
|
+
location = normalizeBinaryStringToUtf8(location)
|
|
56
|
+
}
|
|
57
|
+
location = new URL(location, responseURL(response))
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// 4. If location is a URL whose fragment is null, then set location’s
|
|
61
|
+
// fragment to requestFragment.
|
|
62
|
+
if (location && !location.hash) {
|
|
63
|
+
location.hash = requestFragment
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// 5. Return location.
|
|
67
|
+
return location
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @see https://www.rfc-editor.org/rfc/rfc1738#section-2.2
|
|
72
|
+
* @param {string} url
|
|
73
|
+
* @returns {boolean}
|
|
74
|
+
*/
|
|
75
|
+
function isValidEncodedURL (url) {
|
|
76
|
+
for (let i = 0; i < url.length; ++i) {
|
|
77
|
+
const code = url.charCodeAt(i)
|
|
78
|
+
|
|
79
|
+
if (
|
|
80
|
+
code > 0x7E || // Non-US-ASCII + DEL
|
|
81
|
+
code < 0x20 // Control characters NUL - US
|
|
82
|
+
) {
|
|
83
|
+
return false
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return true
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* If string contains non-ASCII characters, assumes it's UTF-8 encoded and decodes it.
|
|
91
|
+
* Since UTF-8 is a superset of ASCII, this will work for ASCII strings as well.
|
|
92
|
+
* @param {string} value
|
|
93
|
+
* @returns {string}
|
|
94
|
+
*/
|
|
95
|
+
function normalizeBinaryStringToUtf8 (value) {
|
|
96
|
+
return Buffer.from(value, 'binary').toString('utf8')
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/** @returns {URL} */
|
|
100
|
+
function requestCurrentURL (request) {
|
|
101
|
+
return request.urlList[request.urlList.length - 1]
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function requestBadPort (request) {
|
|
105
|
+
// 1. Let url be request’s current URL.
|
|
106
|
+
const url = requestCurrentURL(request)
|
|
107
|
+
|
|
108
|
+
// 2. If url’s scheme is an HTTP(S) scheme and url’s port is a bad port,
|
|
109
|
+
// then return blocked.
|
|
110
|
+
if (urlIsHttpHttpsScheme(url) && badPortsSet.has(url.port)) {
|
|
111
|
+
return 'blocked'
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// 3. Return allowed.
|
|
115
|
+
return 'allowed'
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
function isErrorLike (object) {
|
|
119
|
+
return object instanceof Error || (
|
|
120
|
+
object?.constructor?.name === 'Error' ||
|
|
121
|
+
object?.constructor?.name === 'DOMException'
|
|
122
|
+
)
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// Check whether |statusText| is a ByteString and
|
|
126
|
+
// matches the Reason-Phrase token production.
|
|
127
|
+
// RFC 2616: https://tools.ietf.org/html/rfc2616
|
|
128
|
+
// RFC 7230: https://tools.ietf.org/html/rfc7230
|
|
129
|
+
// "reason-phrase = *( HTAB / SP / VCHAR / obs-text )"
|
|
130
|
+
// https://github.com/chromium/chromium/blob/94.0.4604.1/third_party/blink/renderer/core/fetch/response.cc#L116
|
|
131
|
+
function isValidReasonPhrase (statusText) {
|
|
132
|
+
for (let i = 0; i < statusText.length; ++i) {
|
|
133
|
+
const c = statusText.charCodeAt(i)
|
|
134
|
+
if (
|
|
135
|
+
!(
|
|
136
|
+
(
|
|
137
|
+
c === 0x09 || // HTAB
|
|
138
|
+
(c >= 0x20 && c <= 0x7e) || // SP / VCHAR
|
|
139
|
+
(c >= 0x80 && c <= 0xff)
|
|
140
|
+
) // obs-text
|
|
141
|
+
)
|
|
142
|
+
) {
|
|
143
|
+
return false
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
return true
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* @see https://fetch.spec.whatwg.org/#header-name
|
|
151
|
+
* @param {string} potentialValue
|
|
152
|
+
*/
|
|
153
|
+
const isValidHeaderName = isValidHTTPToken
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* @see https://fetch.spec.whatwg.org/#header-value
|
|
157
|
+
* @param {string} potentialValue
|
|
158
|
+
*/
|
|
159
|
+
function isValidHeaderValue (potentialValue) {
|
|
160
|
+
// - Has no leading or trailing HTTP tab or space bytes.
|
|
161
|
+
// - Contains no 0x00 (NUL) or HTTP newline bytes.
|
|
162
|
+
return (
|
|
163
|
+
potentialValue[0] === '\t' ||
|
|
164
|
+
potentialValue[0] === ' ' ||
|
|
165
|
+
potentialValue[potentialValue.length - 1] === '\t' ||
|
|
166
|
+
potentialValue[potentialValue.length - 1] === ' ' ||
|
|
167
|
+
potentialValue.includes('\n') ||
|
|
168
|
+
potentialValue.includes('\r') ||
|
|
169
|
+
potentialValue.includes('\0')
|
|
170
|
+
) === false
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
// https://w3c.github.io/webappsec-referrer-policy/#set-requests-referrer-policy-on-redirect
|
|
174
|
+
function setRequestReferrerPolicyOnRedirect (request, actualResponse) {
|
|
175
|
+
// Given a request request and a response actualResponse, this algorithm
|
|
176
|
+
// updates request’s referrer policy according to the Referrer-Policy
|
|
177
|
+
// header (if any) in actualResponse.
|
|
178
|
+
|
|
179
|
+
// 1. Let policy be the result of executing § 8.1 Parse a referrer policy
|
|
180
|
+
// from a Referrer-Policy header on actualResponse.
|
|
181
|
+
|
|
182
|
+
// 8.1 Parse a referrer policy from a Referrer-Policy header
|
|
183
|
+
// 1. Let policy-tokens be the result of extracting header list values given `Referrer-Policy` and response’s header list.
|
|
184
|
+
const { headersList } = actualResponse
|
|
185
|
+
// 2. Let policy be the empty string.
|
|
186
|
+
// 3. For each token in policy-tokens, if token is a referrer policy and token is not the empty string, then set policy to token.
|
|
187
|
+
// 4. Return policy.
|
|
188
|
+
const policyHeader = (headersList.get('referrer-policy', true) ?? '').split(',')
|
|
189
|
+
|
|
190
|
+
// Note: As the referrer-policy can contain multiple policies
|
|
191
|
+
// separated by comma, we need to loop through all of them
|
|
192
|
+
// and pick the first valid one.
|
|
193
|
+
// Ref: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy#specify_a_fallback_policy
|
|
194
|
+
let policy = ''
|
|
195
|
+
if (policyHeader.length > 0) {
|
|
196
|
+
// The right-most policy takes precedence.
|
|
197
|
+
// The left-most policy is the fallback.
|
|
198
|
+
for (let i = policyHeader.length; i !== 0; i--) {
|
|
199
|
+
const token = policyHeader[i - 1].trim()
|
|
200
|
+
if (referrerPolicyTokens.has(token)) {
|
|
201
|
+
policy = token
|
|
202
|
+
break
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
// 2. If policy is not the empty string, then set request’s referrer policy to policy.
|
|
208
|
+
if (policy !== '') {
|
|
209
|
+
request.referrerPolicy = policy
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
// https://fetch.spec.whatwg.org/#cross-origin-resource-policy-check
|
|
214
|
+
function crossOriginResourcePolicyCheck () {
|
|
215
|
+
// TODO
|
|
216
|
+
return 'allowed'
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// https://fetch.spec.whatwg.org/#concept-cors-check
|
|
220
|
+
function corsCheck () {
|
|
221
|
+
// TODO
|
|
222
|
+
return 'success'
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
// https://fetch.spec.whatwg.org/#concept-tao-check
|
|
226
|
+
function TAOCheck () {
|
|
227
|
+
// TODO
|
|
228
|
+
return 'success'
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
function appendFetchMetadata (httpRequest) {
|
|
232
|
+
// https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-dest-header
|
|
233
|
+
// TODO
|
|
234
|
+
|
|
235
|
+
// https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-mode-header
|
|
236
|
+
|
|
237
|
+
// 1. Assert: r’s url is a potentially trustworthy URL.
|
|
238
|
+
// TODO
|
|
239
|
+
|
|
240
|
+
// 2. Let header be a Structured Header whose value is a token.
|
|
241
|
+
let header = null
|
|
242
|
+
|
|
243
|
+
// 3. Set header’s value to r’s mode.
|
|
244
|
+
header = httpRequest.mode
|
|
245
|
+
|
|
246
|
+
// 4. Set a structured field value `Sec-Fetch-Mode`/header in r’s header list.
|
|
247
|
+
httpRequest.headersList.set('sec-fetch-mode', header, true)
|
|
248
|
+
|
|
249
|
+
// https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-site-header
|
|
250
|
+
// TODO
|
|
251
|
+
|
|
252
|
+
// https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-user-header
|
|
253
|
+
// TODO
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
// https://fetch.spec.whatwg.org/#append-a-request-origin-header
|
|
257
|
+
function appendRequestOriginHeader (request) {
|
|
258
|
+
// 1. Let serializedOrigin be the result of byte-serializing a request origin
|
|
259
|
+
// with request.
|
|
260
|
+
// TODO: implement "byte-serializing a request origin"
|
|
261
|
+
let serializedOrigin = request.origin
|
|
262
|
+
|
|
263
|
+
// - "'client' is changed to an origin during fetching."
|
|
264
|
+
// This doesn't happen in undici (in most cases) because undici, by default,
|
|
265
|
+
// has no concept of origin.
|
|
266
|
+
// - request.origin can also be set to request.client.origin (client being
|
|
267
|
+
// an environment settings object), which is undefined without using
|
|
268
|
+
// setGlobalOrigin.
|
|
269
|
+
if (serializedOrigin === 'client' || serializedOrigin === undefined) {
|
|
270
|
+
return
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
// 2. If request’s response tainting is "cors" or request’s mode is "websocket",
|
|
274
|
+
// then append (`Origin`, serializedOrigin) to request’s header list.
|
|
275
|
+
// 3. Otherwise, if request’s method is neither `GET` nor `HEAD`, then:
|
|
276
|
+
if (request.responseTainting === 'cors' || request.mode === 'websocket') {
|
|
277
|
+
request.headersList.append('origin', serializedOrigin, true)
|
|
278
|
+
} else if (request.method !== 'GET' && request.method !== 'HEAD') {
|
|
279
|
+
// 1. Switch on request’s referrer policy:
|
|
280
|
+
switch (request.referrerPolicy) {
|
|
281
|
+
case 'no-referrer':
|
|
282
|
+
// Set serializedOrigin to `null`.
|
|
283
|
+
serializedOrigin = null
|
|
284
|
+
break
|
|
285
|
+
case 'no-referrer-when-downgrade':
|
|
286
|
+
case 'strict-origin':
|
|
287
|
+
case 'strict-origin-when-cross-origin':
|
|
288
|
+
// If request’s origin is a tuple origin, its scheme is "https", and
|
|
289
|
+
// request’s current URL’s scheme is not "https", then set
|
|
290
|
+
// serializedOrigin to `null`.
|
|
291
|
+
if (request.origin && urlHasHttpsScheme(request.origin) && !urlHasHttpsScheme(requestCurrentURL(request))) {
|
|
292
|
+
serializedOrigin = null
|
|
293
|
+
}
|
|
294
|
+
break
|
|
295
|
+
case 'same-origin':
|
|
296
|
+
// If request’s origin is not same origin with request’s current URL’s
|
|
297
|
+
// origin, then set serializedOrigin to `null`.
|
|
298
|
+
if (!sameOrigin(request, requestCurrentURL(request))) {
|
|
299
|
+
serializedOrigin = null
|
|
300
|
+
}
|
|
301
|
+
break
|
|
302
|
+
default:
|
|
303
|
+
// Do nothing.
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
// 2. Append (`Origin`, serializedOrigin) to request’s header list.
|
|
307
|
+
request.headersList.append('origin', serializedOrigin, true)
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
// https://w3c.github.io/hr-time/#dfn-coarsen-time
|
|
312
|
+
function coarsenTime (timestamp, crossOriginIsolatedCapability) {
|
|
313
|
+
// TODO
|
|
314
|
+
return timestamp
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
// https://fetch.spec.whatwg.org/#clamp-and-coarsen-connection-timing-info
|
|
318
|
+
function clampAndCoarsenConnectionTimingInfo (connectionTimingInfo, defaultStartTime, crossOriginIsolatedCapability) {
|
|
319
|
+
if (!connectionTimingInfo?.startTime || connectionTimingInfo.startTime < defaultStartTime) {
|
|
320
|
+
return {
|
|
321
|
+
domainLookupStartTime: defaultStartTime,
|
|
322
|
+
domainLookupEndTime: defaultStartTime,
|
|
323
|
+
connectionStartTime: defaultStartTime,
|
|
324
|
+
connectionEndTime: defaultStartTime,
|
|
325
|
+
secureConnectionStartTime: defaultStartTime,
|
|
326
|
+
ALPNNegotiatedProtocol: connectionTimingInfo?.ALPNNegotiatedProtocol
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
return {
|
|
331
|
+
domainLookupStartTime: coarsenTime(connectionTimingInfo.domainLookupStartTime, crossOriginIsolatedCapability),
|
|
332
|
+
domainLookupEndTime: coarsenTime(connectionTimingInfo.domainLookupEndTime, crossOriginIsolatedCapability),
|
|
333
|
+
connectionStartTime: coarsenTime(connectionTimingInfo.connectionStartTime, crossOriginIsolatedCapability),
|
|
334
|
+
connectionEndTime: coarsenTime(connectionTimingInfo.connectionEndTime, crossOriginIsolatedCapability),
|
|
335
|
+
secureConnectionStartTime: coarsenTime(connectionTimingInfo.secureConnectionStartTime, crossOriginIsolatedCapability),
|
|
336
|
+
ALPNNegotiatedProtocol: connectionTimingInfo.ALPNNegotiatedProtocol
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
// https://w3c.github.io/hr-time/#dfn-coarsened-shared-current-time
|
|
341
|
+
function coarsenedSharedCurrentTime (crossOriginIsolatedCapability) {
|
|
342
|
+
return coarsenTime(performance.now(), crossOriginIsolatedCapability)
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
// https://fetch.spec.whatwg.org/#create-an-opaque-timing-info
|
|
346
|
+
function createOpaqueTimingInfo (timingInfo) {
|
|
347
|
+
return {
|
|
348
|
+
startTime: timingInfo.startTime ?? 0,
|
|
349
|
+
redirectStartTime: 0,
|
|
350
|
+
redirectEndTime: 0,
|
|
351
|
+
postRedirectStartTime: timingInfo.startTime ?? 0,
|
|
352
|
+
finalServiceWorkerStartTime: 0,
|
|
353
|
+
finalNetworkResponseStartTime: 0,
|
|
354
|
+
finalNetworkRequestStartTime: 0,
|
|
355
|
+
endTime: 0,
|
|
356
|
+
encodedBodySize: 0,
|
|
357
|
+
decodedBodySize: 0,
|
|
358
|
+
finalConnectionTimingInfo: null
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
// https://html.spec.whatwg.org/multipage/origin.html#policy-container
|
|
363
|
+
function makePolicyContainer () {
|
|
364
|
+
// Note: the fetch spec doesn't make use of embedder policy or CSP list
|
|
365
|
+
return {
|
|
366
|
+
referrerPolicy: 'strict-origin-when-cross-origin'
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
// https://html.spec.whatwg.org/multipage/origin.html#clone-a-policy-container
|
|
371
|
+
function clonePolicyContainer (policyContainer) {
|
|
372
|
+
return {
|
|
373
|
+
referrerPolicy: policyContainer.referrerPolicy
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
// https://w3c.github.io/webappsec-referrer-policy/#determine-requests-referrer
|
|
378
|
+
function determineRequestsReferrer (request) {
|
|
379
|
+
// 1. Let policy be request's referrer policy.
|
|
380
|
+
const policy = request.referrerPolicy
|
|
381
|
+
|
|
382
|
+
// Note: policy cannot (shouldn't) be null or an empty string.
|
|
383
|
+
assert(policy)
|
|
384
|
+
|
|
385
|
+
// 2. Let environment be request’s client.
|
|
386
|
+
|
|
387
|
+
let referrerSource = null
|
|
388
|
+
|
|
389
|
+
// 3. Switch on request’s referrer:
|
|
390
|
+
if (request.referrer === 'client') {
|
|
391
|
+
// Note: node isn't a browser and doesn't implement document/iframes,
|
|
392
|
+
// so we bypass this step and replace it with our own.
|
|
393
|
+
|
|
394
|
+
const globalOrigin = getGlobalOrigin()
|
|
395
|
+
|
|
396
|
+
if (!globalOrigin || globalOrigin.origin === 'null') {
|
|
397
|
+
return 'no-referrer'
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
// note: we need to clone it as it's mutated
|
|
401
|
+
referrerSource = new URL(globalOrigin)
|
|
402
|
+
} else if (request.referrer instanceof URL) {
|
|
403
|
+
// Let referrerSource be request’s referrer.
|
|
404
|
+
referrerSource = request.referrer
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
// 4. Let request’s referrerURL be the result of stripping referrerSource for
|
|
408
|
+
// use as a referrer.
|
|
409
|
+
let referrerURL = stripURLForReferrer(referrerSource)
|
|
410
|
+
|
|
411
|
+
// 5. Let referrerOrigin be the result of stripping referrerSource for use as
|
|
412
|
+
// a referrer, with the origin-only flag set to true.
|
|
413
|
+
const referrerOrigin = stripURLForReferrer(referrerSource, true)
|
|
414
|
+
|
|
415
|
+
// 6. If the result of serializing referrerURL is a string whose length is
|
|
416
|
+
// greater than 4096, set referrerURL to referrerOrigin.
|
|
417
|
+
if (referrerURL.toString().length > 4096) {
|
|
418
|
+
referrerURL = referrerOrigin
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
const areSameOrigin = sameOrigin(request, referrerURL)
|
|
422
|
+
const isNonPotentiallyTrustWorthy = isURLPotentiallyTrustworthy(referrerURL) &&
|
|
423
|
+
!isURLPotentiallyTrustworthy(request.url)
|
|
424
|
+
|
|
425
|
+
// 8. Execute the switch statements corresponding to the value of policy:
|
|
426
|
+
switch (policy) {
|
|
427
|
+
case 'origin': return referrerOrigin != null ? referrerOrigin : stripURLForReferrer(referrerSource, true)
|
|
428
|
+
case 'unsafe-url': return referrerURL
|
|
429
|
+
case 'same-origin':
|
|
430
|
+
return areSameOrigin ? referrerOrigin : 'no-referrer'
|
|
431
|
+
case 'origin-when-cross-origin':
|
|
432
|
+
return areSameOrigin ? referrerURL : referrerOrigin
|
|
433
|
+
case 'strict-origin-when-cross-origin': {
|
|
434
|
+
const currentURL = requestCurrentURL(request)
|
|
435
|
+
|
|
436
|
+
// 1. If the origin of referrerURL and the origin of request’s current
|
|
437
|
+
// URL are the same, then return referrerURL.
|
|
438
|
+
if (sameOrigin(referrerURL, currentURL)) {
|
|
439
|
+
return referrerURL
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
// 2. If referrerURL is a potentially trustworthy URL and request’s
|
|
443
|
+
// current URL is not a potentially trustworthy URL, then return no
|
|
444
|
+
// referrer.
|
|
445
|
+
if (isURLPotentiallyTrustworthy(referrerURL) && !isURLPotentiallyTrustworthy(currentURL)) {
|
|
446
|
+
return 'no-referrer'
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
// 3. Return referrerOrigin.
|
|
450
|
+
return referrerOrigin
|
|
451
|
+
}
|
|
452
|
+
case 'strict-origin': // eslint-disable-line
|
|
453
|
+
/**
|
|
454
|
+
* 1. If referrerURL is a potentially trustworthy URL and
|
|
455
|
+
* request’s current URL is not a potentially trustworthy URL,
|
|
456
|
+
* then return no referrer.
|
|
457
|
+
* 2. Return referrerOrigin
|
|
458
|
+
*/
|
|
459
|
+
case 'no-referrer-when-downgrade': // eslint-disable-line
|
|
460
|
+
/**
|
|
461
|
+
* 1. If referrerURL is a potentially trustworthy URL and
|
|
462
|
+
* request’s current URL is not a potentially trustworthy URL,
|
|
463
|
+
* then return no referrer.
|
|
464
|
+
* 2. Return referrerOrigin
|
|
465
|
+
*/
|
|
466
|
+
|
|
467
|
+
default: // eslint-disable-line
|
|
468
|
+
return isNonPotentiallyTrustWorthy ? 'no-referrer' : referrerOrigin
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* @see https://w3c.github.io/webappsec-referrer-policy/#strip-url
|
|
474
|
+
* @param {URL} url
|
|
475
|
+
* @param {boolean|undefined} originOnly
|
|
476
|
+
*/
|
|
477
|
+
function stripURLForReferrer (url, originOnly) {
|
|
478
|
+
// 1. Assert: url is a URL.
|
|
479
|
+
assert(url instanceof URL)
|
|
480
|
+
|
|
481
|
+
url = new URL(url)
|
|
482
|
+
|
|
483
|
+
// 2. If url’s scheme is a local scheme, then return no referrer.
|
|
484
|
+
if (url.protocol === 'file:' || url.protocol === 'about:' || url.protocol === 'blank:') {
|
|
485
|
+
return 'no-referrer'
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
// 3. Set url’s username to the empty string.
|
|
489
|
+
url.username = ''
|
|
490
|
+
|
|
491
|
+
// 4. Set url’s password to the empty string.
|
|
492
|
+
url.password = ''
|
|
493
|
+
|
|
494
|
+
// 5. Set url’s fragment to null.
|
|
495
|
+
url.hash = ''
|
|
496
|
+
|
|
497
|
+
// 6. If the origin-only flag is true, then:
|
|
498
|
+
if (originOnly) {
|
|
499
|
+
// 1. Set url’s path to « the empty string ».
|
|
500
|
+
url.pathname = ''
|
|
501
|
+
|
|
502
|
+
// 2. Set url’s query to null.
|
|
503
|
+
url.search = ''
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
// 7. Return url.
|
|
507
|
+
return url
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
function isURLPotentiallyTrustworthy (url) {
|
|
511
|
+
if (!(url instanceof URL)) {
|
|
512
|
+
return false
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
// If child of about, return true
|
|
516
|
+
if (url.href === 'about:blank' || url.href === 'about:srcdoc') {
|
|
517
|
+
return true
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
// If scheme is data, return true
|
|
521
|
+
if (url.protocol === 'data:') return true
|
|
522
|
+
|
|
523
|
+
// If file, return true
|
|
524
|
+
if (url.protocol === 'file:') return true
|
|
525
|
+
|
|
526
|
+
return isOriginPotentiallyTrustworthy(url.origin)
|
|
527
|
+
|
|
528
|
+
function isOriginPotentiallyTrustworthy (origin) {
|
|
529
|
+
// If origin is explicitly null, return false
|
|
530
|
+
if (origin == null || origin === 'null') return false
|
|
531
|
+
|
|
532
|
+
const originAsURL = new URL(origin)
|
|
533
|
+
|
|
534
|
+
// If secure, return true
|
|
535
|
+
if (originAsURL.protocol === 'https:' || originAsURL.protocol === 'wss:') {
|
|
536
|
+
return true
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
// If localhost or variants, return true
|
|
540
|
+
if (/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(originAsURL.hostname) ||
|
|
541
|
+
(originAsURL.hostname === 'localhost' || originAsURL.hostname.includes('localhost.')) ||
|
|
542
|
+
(originAsURL.hostname.endsWith('.localhost'))) {
|
|
543
|
+
return true
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
// If any other, return false
|
|
547
|
+
return false
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
/**
|
|
552
|
+
* @see https://w3c.github.io/webappsec-subresource-integrity/#does-response-match-metadatalist
|
|
553
|
+
* @param {Uint8Array} bytes
|
|
554
|
+
* @param {string} metadataList
|
|
555
|
+
*/
|
|
556
|
+
function bytesMatch (bytes, metadataList) {
|
|
557
|
+
// If node is not built with OpenSSL support, we cannot check
|
|
558
|
+
// a request's integrity, so allow it by default (the spec will
|
|
559
|
+
// allow requests if an invalid hash is given, as precedence).
|
|
560
|
+
/* istanbul ignore if: only if node is built with --without-ssl */
|
|
561
|
+
if (crypto === undefined) {
|
|
562
|
+
return true
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
// 1. Let parsedMetadata be the result of parsing metadataList.
|
|
566
|
+
const parsedMetadata = parseMetadata(metadataList)
|
|
567
|
+
|
|
568
|
+
// 2. If parsedMetadata is no metadata, return true.
|
|
569
|
+
if (parsedMetadata === 'no metadata') {
|
|
570
|
+
return true
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
// 3. If response is not eligible for integrity validation, return false.
|
|
574
|
+
// TODO
|
|
575
|
+
|
|
576
|
+
// 4. If parsedMetadata is the empty set, return true.
|
|
577
|
+
if (parsedMetadata.length === 0) {
|
|
578
|
+
return true
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
// 5. Let metadata be the result of getting the strongest
|
|
582
|
+
// metadata from parsedMetadata.
|
|
583
|
+
const strongest = getStrongestMetadata(parsedMetadata)
|
|
584
|
+
const metadata = filterMetadataListByAlgorithm(parsedMetadata, strongest)
|
|
585
|
+
|
|
586
|
+
// 6. For each item in metadata:
|
|
587
|
+
for (const item of metadata) {
|
|
588
|
+
// 1. Let algorithm be the alg component of item.
|
|
589
|
+
const algorithm = item.algo
|
|
590
|
+
|
|
591
|
+
// 2. Let expectedValue be the val component of item.
|
|
592
|
+
const expectedValue = item.hash
|
|
593
|
+
|
|
594
|
+
// See https://github.com/web-platform-tests/wpt/commit/e4c5cc7a5e48093220528dfdd1c4012dc3837a0e
|
|
595
|
+
// "be liberal with padding". This is annoying, and it's not even in the spec.
|
|
596
|
+
|
|
597
|
+
// 3. Let actualValue be the result of applying algorithm to bytes.
|
|
598
|
+
let actualValue = crypto.createHash(algorithm).update(bytes).digest('base64')
|
|
599
|
+
|
|
600
|
+
if (actualValue[actualValue.length - 1] === '=') {
|
|
601
|
+
if (actualValue[actualValue.length - 2] === '=') {
|
|
602
|
+
actualValue = actualValue.slice(0, -2)
|
|
603
|
+
} else {
|
|
604
|
+
actualValue = actualValue.slice(0, -1)
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
// 4. If actualValue is a case-sensitive match for expectedValue,
|
|
609
|
+
// return true.
|
|
610
|
+
if (compareBase64Mixed(actualValue, expectedValue)) {
|
|
611
|
+
return true
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
// 7. Return false.
|
|
616
|
+
return false
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
// https://w3c.github.io/webappsec-subresource-integrity/#grammardef-hash-with-options
|
|
620
|
+
// https://www.w3.org/TR/CSP2/#source-list-syntax
|
|
621
|
+
// https://www.rfc-editor.org/rfc/rfc5234#appendix-B.1
|
|
622
|
+
const parseHashWithOptions = /(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* @see https://w3c.github.io/webappsec-subresource-integrity/#parse-metadata
|
|
626
|
+
* @param {string} metadata
|
|
627
|
+
*/
|
|
628
|
+
function parseMetadata (metadata) {
|
|
629
|
+
// 1. Let result be the empty set.
|
|
630
|
+
/** @type {{ algo: string, hash: string }[]} */
|
|
631
|
+
const result = []
|
|
632
|
+
|
|
633
|
+
// 2. Let empty be equal to true.
|
|
634
|
+
let empty = true
|
|
635
|
+
|
|
636
|
+
// 3. For each token returned by splitting metadata on spaces:
|
|
637
|
+
for (const token of metadata.split(' ')) {
|
|
638
|
+
// 1. Set empty to false.
|
|
639
|
+
empty = false
|
|
640
|
+
|
|
641
|
+
// 2. Parse token as a hash-with-options.
|
|
642
|
+
const parsedToken = parseHashWithOptions.exec(token)
|
|
643
|
+
|
|
644
|
+
// 3. If token does not parse, continue to the next token.
|
|
645
|
+
if (
|
|
646
|
+
parsedToken === null ||
|
|
647
|
+
parsedToken.groups === undefined ||
|
|
648
|
+
parsedToken.groups.algo === undefined
|
|
649
|
+
) {
|
|
650
|
+
// Note: Chromium blocks the request at this point, but Firefox
|
|
651
|
+
// gives a warning that an invalid integrity was given. The
|
|
652
|
+
// correct behavior is to ignore these, and subsequently not
|
|
653
|
+
// check the integrity of the resource.
|
|
654
|
+
continue
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
// 4. Let algorithm be the hash-algo component of token.
|
|
658
|
+
const algorithm = parsedToken.groups.algo.toLowerCase()
|
|
659
|
+
|
|
660
|
+
// 5. If algorithm is a hash function recognized by the user
|
|
661
|
+
// agent, add the parsed token to result.
|
|
662
|
+
if (supportedHashes.includes(algorithm)) {
|
|
663
|
+
result.push(parsedToken.groups)
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
// 4. Return no metadata if empty is true, otherwise return result.
|
|
668
|
+
if (empty === true) {
|
|
669
|
+
return 'no metadata'
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
return result
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* @param {{ algo: 'sha256' | 'sha384' | 'sha512' }[]} metadataList
|
|
677
|
+
*/
|
|
678
|
+
function getStrongestMetadata (metadataList) {
|
|
679
|
+
// Let algorithm be the algo component of the first item in metadataList.
|
|
680
|
+
// Can be sha256
|
|
681
|
+
let algorithm = metadataList[0].algo
|
|
682
|
+
// If the algorithm is sha512, then it is the strongest
|
|
683
|
+
// and we can return immediately
|
|
684
|
+
if (algorithm[3] === '5') {
|
|
685
|
+
return algorithm
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
for (let i = 1; i < metadataList.length; ++i) {
|
|
689
|
+
const metadata = metadataList[i]
|
|
690
|
+
// If the algorithm is sha512, then it is the strongest
|
|
691
|
+
// and we can break the loop immediately
|
|
692
|
+
if (metadata.algo[3] === '5') {
|
|
693
|
+
algorithm = 'sha512'
|
|
694
|
+
break
|
|
695
|
+
// If the algorithm is sha384, then a potential sha256 or sha384 is ignored
|
|
696
|
+
} else if (algorithm[3] === '3') {
|
|
697
|
+
continue
|
|
698
|
+
// algorithm is sha256, check if algorithm is sha384 and if so, set it as
|
|
699
|
+
// the strongest
|
|
700
|
+
} else if (metadata.algo[3] === '3') {
|
|
701
|
+
algorithm = 'sha384'
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
return algorithm
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
function filterMetadataListByAlgorithm (metadataList, algorithm) {
|
|
708
|
+
if (metadataList.length === 1) {
|
|
709
|
+
return metadataList
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
let pos = 0
|
|
713
|
+
for (let i = 0; i < metadataList.length; ++i) {
|
|
714
|
+
if (metadataList[i].algo === algorithm) {
|
|
715
|
+
metadataList[pos++] = metadataList[i]
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
metadataList.length = pos
|
|
720
|
+
|
|
721
|
+
return metadataList
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
/**
|
|
725
|
+
* Compares two base64 strings, allowing for base64url
|
|
726
|
+
* in the second string.
|
|
727
|
+
*
|
|
728
|
+
* @param {string} actualValue always base64
|
|
729
|
+
* @param {string} expectedValue base64 or base64url
|
|
730
|
+
* @returns {boolean}
|
|
731
|
+
*/
|
|
732
|
+
function compareBase64Mixed (actualValue, expectedValue) {
|
|
733
|
+
if (actualValue.length !== expectedValue.length) {
|
|
734
|
+
return false
|
|
735
|
+
}
|
|
736
|
+
for (let i = 0; i < actualValue.length; ++i) {
|
|
737
|
+
if (actualValue[i] !== expectedValue[i]) {
|
|
738
|
+
if (
|
|
739
|
+
(actualValue[i] === '+' && expectedValue[i] === '-') ||
|
|
740
|
+
(actualValue[i] === '/' && expectedValue[i] === '_')
|
|
741
|
+
) {
|
|
742
|
+
continue
|
|
743
|
+
}
|
|
744
|
+
return false
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
return true
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
// https://w3c.github.io/webappsec-upgrade-insecure-requests/#upgrade-request
|
|
752
|
+
function tryUpgradeRequestToAPotentiallyTrustworthyURL (request) {
|
|
753
|
+
// TODO
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* @link {https://html.spec.whatwg.org/multipage/origin.html#same-origin}
|
|
758
|
+
* @param {URL} A
|
|
759
|
+
* @param {URL} B
|
|
760
|
+
*/
|
|
761
|
+
function sameOrigin (A, B) {
|
|
762
|
+
// 1. If A and B are the same opaque origin, then return true.
|
|
763
|
+
if (A.origin === B.origin && A.origin === 'null') {
|
|
764
|
+
return true
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
// 2. If A and B are both tuple origins and their schemes,
|
|
768
|
+
// hosts, and port are identical, then return true.
|
|
769
|
+
if (A.protocol === B.protocol && A.hostname === B.hostname && A.port === B.port) {
|
|
770
|
+
return true
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
// 3. Return false.
|
|
774
|
+
return false
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
function createDeferredPromise () {
|
|
778
|
+
let res
|
|
779
|
+
let rej
|
|
780
|
+
const promise = new Promise((resolve, reject) => {
|
|
781
|
+
res = resolve
|
|
782
|
+
rej = reject
|
|
783
|
+
})
|
|
784
|
+
|
|
785
|
+
return { promise, resolve: res, reject: rej }
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
function isAborted (fetchParams) {
|
|
789
|
+
return fetchParams.controller.state === 'aborted'
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
function isCancelled (fetchParams) {
|
|
793
|
+
return fetchParams.controller.state === 'aborted' ||
|
|
794
|
+
fetchParams.controller.state === 'terminated'
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
/**
|
|
798
|
+
* @see https://fetch.spec.whatwg.org/#concept-method-normalize
|
|
799
|
+
* @param {string} method
|
|
800
|
+
*/
|
|
801
|
+
function normalizeMethod (method) {
|
|
802
|
+
return normalizedMethodRecordsBase[method.toLowerCase()] ?? method
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
// https://infra.spec.whatwg.org/#serialize-a-javascript-value-to-a-json-string
|
|
806
|
+
function serializeJavascriptValueToJSONString (value) {
|
|
807
|
+
// 1. Let result be ? Call(%JSON.stringify%, undefined, « value »).
|
|
808
|
+
const result = JSON.stringify(value)
|
|
809
|
+
|
|
810
|
+
// 2. If result is undefined, then throw a TypeError.
|
|
811
|
+
if (result === undefined) {
|
|
812
|
+
throw new TypeError('Value is not JSON serializable')
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
// 3. Assert: result is a string.
|
|
816
|
+
assert(typeof result === 'string')
|
|
817
|
+
|
|
818
|
+
// 4. Return result.
|
|
819
|
+
return result
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
// https://tc39.es/ecma262/#sec-%25iteratorprototype%25-object
|
|
823
|
+
const esIteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()))
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* @see https://webidl.spec.whatwg.org/#dfn-iterator-prototype-object
|
|
827
|
+
* @param {string} name name of the instance
|
|
828
|
+
* @param {symbol} kInternalIterator
|
|
829
|
+
* @param {string | number} [keyIndex]
|
|
830
|
+
* @param {string | number} [valueIndex]
|
|
831
|
+
*/
|
|
832
|
+
function createIterator (name, kInternalIterator, keyIndex = 0, valueIndex = 1) {
|
|
833
|
+
class FastIterableIterator {
|
|
834
|
+
/** @type {any} */
|
|
835
|
+
#target
|
|
836
|
+
/** @type {'key' | 'value' | 'key+value'} */
|
|
837
|
+
#kind
|
|
838
|
+
/** @type {number} */
|
|
839
|
+
#index
|
|
840
|
+
|
|
841
|
+
/**
|
|
842
|
+
* @see https://webidl.spec.whatwg.org/#dfn-default-iterator-object
|
|
843
|
+
* @param {unknown} target
|
|
844
|
+
* @param {'key' | 'value' | 'key+value'} kind
|
|
845
|
+
*/
|
|
846
|
+
constructor (target, kind) {
|
|
847
|
+
this.#target = target
|
|
848
|
+
this.#kind = kind
|
|
849
|
+
this.#index = 0
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
next () {
|
|
853
|
+
// 1. Let interface be the interface for which the iterator prototype object exists.
|
|
854
|
+
// 2. Let thisValue be the this value.
|
|
855
|
+
// 3. Let object be ? ToObject(thisValue).
|
|
856
|
+
// 4. If object is a platform object, then perform a security
|
|
857
|
+
// check, passing:
|
|
858
|
+
// 5. If object is not a default iterator object for interface,
|
|
859
|
+
// then throw a TypeError.
|
|
860
|
+
if (typeof this !== 'object' || this === null || !(#target in this)) {
|
|
861
|
+
throw new TypeError(
|
|
862
|
+
`'next' called on an object that does not implement interface ${name} Iterator.`
|
|
863
|
+
)
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
// 6. Let index be object’s index.
|
|
867
|
+
// 7. Let kind be object’s kind.
|
|
868
|
+
// 8. Let values be object’s target's value pairs to iterate over.
|
|
869
|
+
const index = this.#index
|
|
870
|
+
const values = this.#target[kInternalIterator]
|
|
871
|
+
|
|
872
|
+
// 9. Let len be the length of values.
|
|
873
|
+
const len = values.length
|
|
874
|
+
|
|
875
|
+
// 10. If index is greater than or equal to len, then return
|
|
876
|
+
// CreateIterResultObject(undefined, true).
|
|
877
|
+
if (index >= len) {
|
|
878
|
+
return {
|
|
879
|
+
value: undefined,
|
|
880
|
+
done: true
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
// 11. Let pair be the entry in values at index index.
|
|
885
|
+
const { [keyIndex]: key, [valueIndex]: value } = values[index]
|
|
886
|
+
|
|
887
|
+
// 12. Set object’s index to index + 1.
|
|
888
|
+
this.#index = index + 1
|
|
889
|
+
|
|
890
|
+
// 13. Return the iterator result for pair and kind.
|
|
891
|
+
|
|
892
|
+
// https://webidl.spec.whatwg.org/#iterator-result
|
|
893
|
+
|
|
894
|
+
// 1. Let result be a value determined by the value of kind:
|
|
895
|
+
let result
|
|
896
|
+
switch (this.#kind) {
|
|
897
|
+
case 'key':
|
|
898
|
+
// 1. Let idlKey be pair’s key.
|
|
899
|
+
// 2. Let key be the result of converting idlKey to an
|
|
900
|
+
// ECMAScript value.
|
|
901
|
+
// 3. result is key.
|
|
902
|
+
result = key
|
|
903
|
+
break
|
|
904
|
+
case 'value':
|
|
905
|
+
// 1. Let idlValue be pair’s value.
|
|
906
|
+
// 2. Let value be the result of converting idlValue to
|
|
907
|
+
// an ECMAScript value.
|
|
908
|
+
// 3. result is value.
|
|
909
|
+
result = value
|
|
910
|
+
break
|
|
911
|
+
case 'key+value':
|
|
912
|
+
// 1. Let idlKey be pair’s key.
|
|
913
|
+
// 2. Let idlValue be pair’s value.
|
|
914
|
+
// 3. Let key be the result of converting idlKey to an
|
|
915
|
+
// ECMAScript value.
|
|
916
|
+
// 4. Let value be the result of converting idlValue to
|
|
917
|
+
// an ECMAScript value.
|
|
918
|
+
// 5. Let array be ! ArrayCreate(2).
|
|
919
|
+
// 6. Call ! CreateDataProperty(array, "0", key).
|
|
920
|
+
// 7. Call ! CreateDataProperty(array, "1", value).
|
|
921
|
+
// 8. result is array.
|
|
922
|
+
result = [key, value]
|
|
923
|
+
break
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
// 2. Return CreateIterResultObject(result, false).
|
|
927
|
+
return {
|
|
928
|
+
value: result,
|
|
929
|
+
done: false
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
// https://webidl.spec.whatwg.org/#dfn-iterator-prototype-object
|
|
935
|
+
// @ts-ignore
|
|
936
|
+
delete FastIterableIterator.prototype.constructor
|
|
937
|
+
|
|
938
|
+
Object.setPrototypeOf(FastIterableIterator.prototype, esIteratorPrototype)
|
|
939
|
+
|
|
940
|
+
Object.defineProperties(FastIterableIterator.prototype, {
|
|
941
|
+
[Symbol.toStringTag]: {
|
|
942
|
+
writable: false,
|
|
943
|
+
enumerable: false,
|
|
944
|
+
configurable: true,
|
|
945
|
+
value: `${name} Iterator`
|
|
946
|
+
},
|
|
947
|
+
next: { writable: true, enumerable: true, configurable: true }
|
|
948
|
+
})
|
|
949
|
+
|
|
950
|
+
/**
|
|
951
|
+
* @param {unknown} target
|
|
952
|
+
* @param {'key' | 'value' | 'key+value'} kind
|
|
953
|
+
* @returns {IterableIterator<any>}
|
|
954
|
+
*/
|
|
955
|
+
return function (target, kind) {
|
|
956
|
+
return new FastIterableIterator(target, kind)
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
/**
|
|
961
|
+
* @see https://webidl.spec.whatwg.org/#dfn-iterator-prototype-object
|
|
962
|
+
* @param {string} name name of the instance
|
|
963
|
+
* @param {any} object class
|
|
964
|
+
* @param {symbol} kInternalIterator
|
|
965
|
+
* @param {string | number} [keyIndex]
|
|
966
|
+
* @param {string | number} [valueIndex]
|
|
967
|
+
*/
|
|
968
|
+
function iteratorMixin (name, object, kInternalIterator, keyIndex = 0, valueIndex = 1) {
|
|
969
|
+
const makeIterator = createIterator(name, kInternalIterator, keyIndex, valueIndex)
|
|
970
|
+
|
|
971
|
+
const properties = {
|
|
972
|
+
keys: {
|
|
973
|
+
writable: true,
|
|
974
|
+
enumerable: true,
|
|
975
|
+
configurable: true,
|
|
976
|
+
value: function keys () {
|
|
977
|
+
webidl.brandCheck(this, object)
|
|
978
|
+
return makeIterator(this, 'key')
|
|
979
|
+
}
|
|
980
|
+
},
|
|
981
|
+
values: {
|
|
982
|
+
writable: true,
|
|
983
|
+
enumerable: true,
|
|
984
|
+
configurable: true,
|
|
985
|
+
value: function values () {
|
|
986
|
+
webidl.brandCheck(this, object)
|
|
987
|
+
return makeIterator(this, 'value')
|
|
988
|
+
}
|
|
989
|
+
},
|
|
990
|
+
entries: {
|
|
991
|
+
writable: true,
|
|
992
|
+
enumerable: true,
|
|
993
|
+
configurable: true,
|
|
994
|
+
value: function entries () {
|
|
995
|
+
webidl.brandCheck(this, object)
|
|
996
|
+
return makeIterator(this, 'key+value')
|
|
997
|
+
}
|
|
998
|
+
},
|
|
999
|
+
forEach: {
|
|
1000
|
+
writable: true,
|
|
1001
|
+
enumerable: true,
|
|
1002
|
+
configurable: true,
|
|
1003
|
+
value: function forEach (callbackfn, thisArg = globalThis) {
|
|
1004
|
+
webidl.brandCheck(this, object)
|
|
1005
|
+
webidl.argumentLengthCheck(arguments, 1, `${name}.forEach`)
|
|
1006
|
+
if (typeof callbackfn !== 'function') {
|
|
1007
|
+
throw new TypeError(
|
|
1008
|
+
`Failed to execute 'forEach' on '${name}': parameter 1 is not of type 'Function'.`
|
|
1009
|
+
)
|
|
1010
|
+
}
|
|
1011
|
+
for (const { 0: key, 1: value } of makeIterator(this, 'key+value')) {
|
|
1012
|
+
callbackfn.call(thisArg, value, key, this)
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
return Object.defineProperties(object.prototype, {
|
|
1019
|
+
...properties,
|
|
1020
|
+
[Symbol.iterator]: {
|
|
1021
|
+
writable: true,
|
|
1022
|
+
enumerable: false,
|
|
1023
|
+
configurable: true,
|
|
1024
|
+
value: properties.entries.value
|
|
1025
|
+
}
|
|
1026
|
+
})
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
/**
|
|
1030
|
+
* @see https://fetch.spec.whatwg.org/#body-fully-read
|
|
1031
|
+
*/
|
|
1032
|
+
async function fullyReadBody (body, processBody, processBodyError) {
|
|
1033
|
+
// 1. If taskDestination is null, then set taskDestination to
|
|
1034
|
+
// the result of starting a new parallel queue.
|
|
1035
|
+
|
|
1036
|
+
// 2. Let successSteps given a byte sequence bytes be to queue a
|
|
1037
|
+
// fetch task to run processBody given bytes, with taskDestination.
|
|
1038
|
+
const successSteps = processBody
|
|
1039
|
+
|
|
1040
|
+
// 3. Let errorSteps be to queue a fetch task to run processBodyError,
|
|
1041
|
+
// with taskDestination.
|
|
1042
|
+
const errorSteps = processBodyError
|
|
1043
|
+
|
|
1044
|
+
// 4. Let reader be the result of getting a reader for body’s stream.
|
|
1045
|
+
// If that threw an exception, then run errorSteps with that
|
|
1046
|
+
// exception and return.
|
|
1047
|
+
let reader
|
|
1048
|
+
|
|
1049
|
+
try {
|
|
1050
|
+
reader = body.stream.getReader()
|
|
1051
|
+
} catch (e) {
|
|
1052
|
+
errorSteps(e)
|
|
1053
|
+
return
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
// 5. Read all bytes from reader, given successSteps and errorSteps.
|
|
1057
|
+
try {
|
|
1058
|
+
successSteps(await readAllBytes(reader))
|
|
1059
|
+
} catch (e) {
|
|
1060
|
+
errorSteps(e)
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
function isReadableStreamLike (stream) {
|
|
1065
|
+
return stream instanceof ReadableStream || (
|
|
1066
|
+
stream[Symbol.toStringTag] === 'ReadableStream' &&
|
|
1067
|
+
typeof stream.tee === 'function'
|
|
1068
|
+
)
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
/**
|
|
1072
|
+
* @param {ReadableStreamController<Uint8Array>} controller
|
|
1073
|
+
*/
|
|
1074
|
+
function readableStreamClose (controller) {
|
|
1075
|
+
try {
|
|
1076
|
+
controller.close()
|
|
1077
|
+
controller.byobRequest?.respond(0)
|
|
1078
|
+
} catch (err) {
|
|
1079
|
+
// TODO: add comment explaining why this error occurs.
|
|
1080
|
+
if (!err.message.includes('Controller is already closed') && !err.message.includes('ReadableStream is already closed')) {
|
|
1081
|
+
throw err
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
const invalidIsomorphicEncodeValueRegex = /[^\x00-\xFF]/ // eslint-disable-line
|
|
1087
|
+
|
|
1088
|
+
/**
|
|
1089
|
+
* @see https://infra.spec.whatwg.org/#isomorphic-encode
|
|
1090
|
+
* @param {string} input
|
|
1091
|
+
*/
|
|
1092
|
+
function isomorphicEncode (input) {
|
|
1093
|
+
// 1. Assert: input contains no code points greater than U+00FF.
|
|
1094
|
+
assert(!invalidIsomorphicEncodeValueRegex.test(input))
|
|
1095
|
+
|
|
1096
|
+
// 2. Return a byte sequence whose length is equal to input’s code
|
|
1097
|
+
// point length and whose bytes have the same values as the
|
|
1098
|
+
// values of input’s code points, in the same order
|
|
1099
|
+
return input
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
/**
|
|
1103
|
+
* @see https://streams.spec.whatwg.org/#readablestreamdefaultreader-read-all-bytes
|
|
1104
|
+
* @see https://streams.spec.whatwg.org/#read-loop
|
|
1105
|
+
* @param {ReadableStreamDefaultReader} reader
|
|
1106
|
+
*/
|
|
1107
|
+
async function readAllBytes (reader) {
|
|
1108
|
+
const bytes = []
|
|
1109
|
+
let byteLength = 0
|
|
1110
|
+
|
|
1111
|
+
while (true) {
|
|
1112
|
+
const { done, value: chunk } = await reader.read()
|
|
1113
|
+
|
|
1114
|
+
if (done) {
|
|
1115
|
+
// 1. Call successSteps with bytes.
|
|
1116
|
+
return Buffer.concat(bytes, byteLength)
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
// 1. If chunk is not a Uint8Array object, call failureSteps
|
|
1120
|
+
// with a TypeError and abort these steps.
|
|
1121
|
+
if (!isUint8Array(chunk)) {
|
|
1122
|
+
throw new TypeError('Received non-Uint8Array chunk')
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
// 2. Append the bytes represented by chunk to bytes.
|
|
1126
|
+
bytes.push(chunk)
|
|
1127
|
+
byteLength += chunk.length
|
|
1128
|
+
|
|
1129
|
+
// 3. Read-loop given reader, bytes, successSteps, and failureSteps.
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
/**
|
|
1134
|
+
* @see https://fetch.spec.whatwg.org/#is-local
|
|
1135
|
+
* @param {URL} url
|
|
1136
|
+
*/
|
|
1137
|
+
function urlIsLocal (url) {
|
|
1138
|
+
assert('protocol' in url) // ensure it's a url object
|
|
1139
|
+
|
|
1140
|
+
const protocol = url.protocol
|
|
1141
|
+
|
|
1142
|
+
return protocol === 'about:' || protocol === 'blob:' || protocol === 'data:'
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
/**
|
|
1146
|
+
* @param {string|URL} url
|
|
1147
|
+
* @returns {boolean}
|
|
1148
|
+
*/
|
|
1149
|
+
function urlHasHttpsScheme (url) {
|
|
1150
|
+
return (
|
|
1151
|
+
(
|
|
1152
|
+
typeof url === 'string' &&
|
|
1153
|
+
url[5] === ':' &&
|
|
1154
|
+
url[0] === 'h' &&
|
|
1155
|
+
url[1] === 't' &&
|
|
1156
|
+
url[2] === 't' &&
|
|
1157
|
+
url[3] === 'p' &&
|
|
1158
|
+
url[4] === 's'
|
|
1159
|
+
) ||
|
|
1160
|
+
url.protocol === 'https:'
|
|
1161
|
+
)
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
/**
|
|
1165
|
+
* @see https://fetch.spec.whatwg.org/#http-scheme
|
|
1166
|
+
* @param {URL} url
|
|
1167
|
+
*/
|
|
1168
|
+
function urlIsHttpHttpsScheme (url) {
|
|
1169
|
+
assert('protocol' in url) // ensure it's a url object
|
|
1170
|
+
|
|
1171
|
+
const protocol = url.protocol
|
|
1172
|
+
|
|
1173
|
+
return protocol === 'http:' || protocol === 'https:'
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
* @see https://fetch.spec.whatwg.org/#simple-range-header-value
|
|
1178
|
+
* @param {string} value
|
|
1179
|
+
* @param {boolean} allowWhitespace
|
|
1180
|
+
*/
|
|
1181
|
+
function simpleRangeHeaderValue (value, allowWhitespace) {
|
|
1182
|
+
// 1. Let data be the isomorphic decoding of value.
|
|
1183
|
+
// Note: isomorphic decoding takes a sequence of bytes (ie. a Uint8Array) and turns it into a string,
|
|
1184
|
+
// nothing more. We obviously don't need to do that if value is a string already.
|
|
1185
|
+
const data = value
|
|
1186
|
+
|
|
1187
|
+
// 2. If data does not start with "bytes", then return failure.
|
|
1188
|
+
if (!data.startsWith('bytes')) {
|
|
1189
|
+
return 'failure'
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
// 3. Let position be a position variable for data, initially pointing at the 5th code point of data.
|
|
1193
|
+
const position = { position: 5 }
|
|
1194
|
+
|
|
1195
|
+
// 4. If allowWhitespace is true, collect a sequence of code points that are HTTP tab or space,
|
|
1196
|
+
// from data given position.
|
|
1197
|
+
if (allowWhitespace) {
|
|
1198
|
+
collectASequenceOfCodePoints(
|
|
1199
|
+
(char) => char === '\t' || char === ' ',
|
|
1200
|
+
data,
|
|
1201
|
+
position
|
|
1202
|
+
)
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
// 5. If the code point at position within data is not U+003D (=), then return failure.
|
|
1206
|
+
if (data.charCodeAt(position.position) !== 0x3D) {
|
|
1207
|
+
return 'failure'
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
// 6. Advance position by 1.
|
|
1211
|
+
position.position++
|
|
1212
|
+
|
|
1213
|
+
// 7. If allowWhitespace is true, collect a sequence of code points that are HTTP tab or space, from
|
|
1214
|
+
// data given position.
|
|
1215
|
+
if (allowWhitespace) {
|
|
1216
|
+
collectASequenceOfCodePoints(
|
|
1217
|
+
(char) => char === '\t' || char === ' ',
|
|
1218
|
+
data,
|
|
1219
|
+
position
|
|
1220
|
+
)
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
// 8. Let rangeStart be the result of collecting a sequence of code points that are ASCII digits,
|
|
1224
|
+
// from data given position.
|
|
1225
|
+
const rangeStart = collectASequenceOfCodePoints(
|
|
1226
|
+
(char) => {
|
|
1227
|
+
const code = char.charCodeAt(0)
|
|
1228
|
+
|
|
1229
|
+
return code >= 0x30 && code <= 0x39
|
|
1230
|
+
},
|
|
1231
|
+
data,
|
|
1232
|
+
position
|
|
1233
|
+
)
|
|
1234
|
+
|
|
1235
|
+
// 9. Let rangeStartValue be rangeStart, interpreted as decimal number, if rangeStart is not the
|
|
1236
|
+
// empty string; otherwise null.
|
|
1237
|
+
const rangeStartValue = rangeStart.length ? Number(rangeStart) : null
|
|
1238
|
+
|
|
1239
|
+
// 10. If allowWhitespace is true, collect a sequence of code points that are HTTP tab or space,
|
|
1240
|
+
// from data given position.
|
|
1241
|
+
if (allowWhitespace) {
|
|
1242
|
+
collectASequenceOfCodePoints(
|
|
1243
|
+
(char) => char === '\t' || char === ' ',
|
|
1244
|
+
data,
|
|
1245
|
+
position
|
|
1246
|
+
)
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
// 11. If the code point at position within data is not U+002D (-), then return failure.
|
|
1250
|
+
if (data.charCodeAt(position.position) !== 0x2D) {
|
|
1251
|
+
return 'failure'
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
// 12. Advance position by 1.
|
|
1255
|
+
position.position++
|
|
1256
|
+
|
|
1257
|
+
// 13. If allowWhitespace is true, collect a sequence of code points that are HTTP tab
|
|
1258
|
+
// or space, from data given position.
|
|
1259
|
+
// Note from Khafra: its the same step as in #8 again lol
|
|
1260
|
+
if (allowWhitespace) {
|
|
1261
|
+
collectASequenceOfCodePoints(
|
|
1262
|
+
(char) => char === '\t' || char === ' ',
|
|
1263
|
+
data,
|
|
1264
|
+
position
|
|
1265
|
+
)
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
// 14. Let rangeEnd be the result of collecting a sequence of code points that are
|
|
1269
|
+
// ASCII digits, from data given position.
|
|
1270
|
+
// Note from Khafra: you wouldn't guess it, but this is also the same step as #8
|
|
1271
|
+
const rangeEnd = collectASequenceOfCodePoints(
|
|
1272
|
+
(char) => {
|
|
1273
|
+
const code = char.charCodeAt(0)
|
|
1274
|
+
|
|
1275
|
+
return code >= 0x30 && code <= 0x39
|
|
1276
|
+
},
|
|
1277
|
+
data,
|
|
1278
|
+
position
|
|
1279
|
+
)
|
|
1280
|
+
|
|
1281
|
+
// 15. Let rangeEndValue be rangeEnd, interpreted as decimal number, if rangeEnd
|
|
1282
|
+
// is not the empty string; otherwise null.
|
|
1283
|
+
// Note from Khafra: THE SAME STEP, AGAIN!!!
|
|
1284
|
+
// Note: why interpret as a decimal if we only collect ascii digits?
|
|
1285
|
+
const rangeEndValue = rangeEnd.length ? Number(rangeEnd) : null
|
|
1286
|
+
|
|
1287
|
+
// 16. If position is not past the end of data, then return failure.
|
|
1288
|
+
if (position.position < data.length) {
|
|
1289
|
+
return 'failure'
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
// 17. If rangeEndValue and rangeStartValue are null, then return failure.
|
|
1293
|
+
if (rangeEndValue === null && rangeStartValue === null) {
|
|
1294
|
+
return 'failure'
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
// 18. If rangeStartValue and rangeEndValue are numbers, and rangeStartValue is
|
|
1298
|
+
// greater than rangeEndValue, then return failure.
|
|
1299
|
+
// Note: ... when can they not be numbers?
|
|
1300
|
+
if (rangeStartValue > rangeEndValue) {
|
|
1301
|
+
return 'failure'
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
// 19. Return (rangeStartValue, rangeEndValue).
|
|
1305
|
+
return { rangeStartValue, rangeEndValue }
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
/**
|
|
1309
|
+
* @see https://fetch.spec.whatwg.org/#build-a-content-range
|
|
1310
|
+
* @param {number} rangeStart
|
|
1311
|
+
* @param {number} rangeEnd
|
|
1312
|
+
* @param {number} fullLength
|
|
1313
|
+
*/
|
|
1314
|
+
function buildContentRange (rangeStart, rangeEnd, fullLength) {
|
|
1315
|
+
// 1. Let contentRange be `bytes `.
|
|
1316
|
+
let contentRange = 'bytes '
|
|
1317
|
+
|
|
1318
|
+
// 2. Append rangeStart, serialized and isomorphic encoded, to contentRange.
|
|
1319
|
+
contentRange += isomorphicEncode(`${rangeStart}`)
|
|
1320
|
+
|
|
1321
|
+
// 3. Append 0x2D (-) to contentRange.
|
|
1322
|
+
contentRange += '-'
|
|
1323
|
+
|
|
1324
|
+
// 4. Append rangeEnd, serialized and isomorphic encoded to contentRange.
|
|
1325
|
+
contentRange += isomorphicEncode(`${rangeEnd}`)
|
|
1326
|
+
|
|
1327
|
+
// 5. Append 0x2F (/) to contentRange.
|
|
1328
|
+
contentRange += '/'
|
|
1329
|
+
|
|
1330
|
+
// 6. Append fullLength, serialized and isomorphic encoded to contentRange.
|
|
1331
|
+
contentRange += isomorphicEncode(`${fullLength}`)
|
|
1332
|
+
|
|
1333
|
+
// 7. Return contentRange.
|
|
1334
|
+
return contentRange
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
// A Stream, which pipes the response to zlib.createInflate() or
|
|
1338
|
+
// zlib.createInflateRaw() depending on the first byte of the Buffer.
|
|
1339
|
+
// If the lower byte of the first byte is 0x08, then the stream is
|
|
1340
|
+
// interpreted as a zlib stream, otherwise it's interpreted as a
|
|
1341
|
+
// raw deflate stream.
|
|
1342
|
+
class InflateStream extends Transform {
|
|
1343
|
+
#zlibOptions
|
|
1344
|
+
|
|
1345
|
+
/** @param {zlib.ZlibOptions} [zlibOptions] */
|
|
1346
|
+
constructor (zlibOptions) {
|
|
1347
|
+
super()
|
|
1348
|
+
this.#zlibOptions = zlibOptions
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
_transform (chunk, encoding, callback) {
|
|
1352
|
+
if (!this._inflateStream) {
|
|
1353
|
+
if (chunk.length === 0) {
|
|
1354
|
+
callback()
|
|
1355
|
+
return
|
|
1356
|
+
}
|
|
1357
|
+
this._inflateStream = (chunk[0] & 0x0F) === 0x08
|
|
1358
|
+
? zlib.createInflate(this.#zlibOptions)
|
|
1359
|
+
: zlib.createInflateRaw(this.#zlibOptions)
|
|
1360
|
+
|
|
1361
|
+
this._inflateStream.on('data', this.push.bind(this))
|
|
1362
|
+
this._inflateStream.on('end', () => this.push(null))
|
|
1363
|
+
this._inflateStream.on('error', (err) => this.destroy(err))
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
this._inflateStream.write(chunk, encoding, callback)
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
_final (callback) {
|
|
1370
|
+
if (this._inflateStream) {
|
|
1371
|
+
this._inflateStream.end()
|
|
1372
|
+
this._inflateStream = null
|
|
1373
|
+
}
|
|
1374
|
+
callback()
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
/**
|
|
1379
|
+
* @param {zlib.ZlibOptions} [zlibOptions]
|
|
1380
|
+
* @returns {InflateStream}
|
|
1381
|
+
*/
|
|
1382
|
+
function createInflate (zlibOptions) {
|
|
1383
|
+
return new InflateStream(zlibOptions)
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
/**
|
|
1387
|
+
* @see https://fetch.spec.whatwg.org/#concept-header-extract-mime-type
|
|
1388
|
+
* @param {import('./headers').HeadersList} headers
|
|
1389
|
+
*/
|
|
1390
|
+
function extractMimeType (headers) {
|
|
1391
|
+
// 1. Let charset be null.
|
|
1392
|
+
let charset = null
|
|
1393
|
+
|
|
1394
|
+
// 2. Let essence be null.
|
|
1395
|
+
let essence = null
|
|
1396
|
+
|
|
1397
|
+
// 3. Let mimeType be null.
|
|
1398
|
+
let mimeType = null
|
|
1399
|
+
|
|
1400
|
+
// 4. Let values be the result of getting, decoding, and splitting `Content-Type` from headers.
|
|
1401
|
+
const values = getDecodeSplit('content-type', headers)
|
|
1402
|
+
|
|
1403
|
+
// 5. If values is null, then return failure.
|
|
1404
|
+
if (values === null) {
|
|
1405
|
+
return 'failure'
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
// 6. For each value of values:
|
|
1409
|
+
for (const value of values) {
|
|
1410
|
+
// 6.1. Let temporaryMimeType be the result of parsing value.
|
|
1411
|
+
const temporaryMimeType = parseMIMEType(value)
|
|
1412
|
+
|
|
1413
|
+
// 6.2. If temporaryMimeType is failure or its essence is "*/*", then continue.
|
|
1414
|
+
if (temporaryMimeType === 'failure' || temporaryMimeType.essence === '*/*') {
|
|
1415
|
+
continue
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
// 6.3. Set mimeType to temporaryMimeType.
|
|
1419
|
+
mimeType = temporaryMimeType
|
|
1420
|
+
|
|
1421
|
+
// 6.4. If mimeType’s essence is not essence, then:
|
|
1422
|
+
if (mimeType.essence !== essence) {
|
|
1423
|
+
// 6.4.1. Set charset to null.
|
|
1424
|
+
charset = null
|
|
1425
|
+
|
|
1426
|
+
// 6.4.2. If mimeType’s parameters["charset"] exists, then set charset to
|
|
1427
|
+
// mimeType’s parameters["charset"].
|
|
1428
|
+
if (mimeType.parameters.has('charset')) {
|
|
1429
|
+
charset = mimeType.parameters.get('charset')
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
// 6.4.3. Set essence to mimeType’s essence.
|
|
1433
|
+
essence = mimeType.essence
|
|
1434
|
+
} else if (!mimeType.parameters.has('charset') && charset !== null) {
|
|
1435
|
+
// 6.5. Otherwise, if mimeType’s parameters["charset"] does not exist, and
|
|
1436
|
+
// charset is non-null, set mimeType’s parameters["charset"] to charset.
|
|
1437
|
+
mimeType.parameters.set('charset', charset)
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
// 7. If mimeType is null, then return failure.
|
|
1442
|
+
if (mimeType == null) {
|
|
1443
|
+
return 'failure'
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
// 8. Return mimeType.
|
|
1447
|
+
return mimeType
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
/**
|
|
1451
|
+
* @see https://fetch.spec.whatwg.org/#header-value-get-decode-and-split
|
|
1452
|
+
* @param {string|null} value
|
|
1453
|
+
*/
|
|
1454
|
+
function gettingDecodingSplitting (value) {
|
|
1455
|
+
// 1. Let input be the result of isomorphic decoding value.
|
|
1456
|
+
const input = value
|
|
1457
|
+
|
|
1458
|
+
// 2. Let position be a position variable for input, initially pointing at the start of input.
|
|
1459
|
+
const position = { position: 0 }
|
|
1460
|
+
|
|
1461
|
+
// 3. Let values be a list of strings, initially empty.
|
|
1462
|
+
const values = []
|
|
1463
|
+
|
|
1464
|
+
// 4. Let temporaryValue be the empty string.
|
|
1465
|
+
let temporaryValue = ''
|
|
1466
|
+
|
|
1467
|
+
// 5. While position is not past the end of input:
|
|
1468
|
+
while (position.position < input.length) {
|
|
1469
|
+
// 5.1. Append the result of collecting a sequence of code points that are not U+0022 (")
|
|
1470
|
+
// or U+002C (,) from input, given position, to temporaryValue.
|
|
1471
|
+
temporaryValue += collectASequenceOfCodePoints(
|
|
1472
|
+
(char) => char !== '"' && char !== ',',
|
|
1473
|
+
input,
|
|
1474
|
+
position
|
|
1475
|
+
)
|
|
1476
|
+
|
|
1477
|
+
// 5.2. If position is not past the end of input, then:
|
|
1478
|
+
if (position.position < input.length) {
|
|
1479
|
+
// 5.2.1. If the code point at position within input is U+0022 ("), then:
|
|
1480
|
+
if (input.charCodeAt(position.position) === 0x22) {
|
|
1481
|
+
// 5.2.1.1. Append the result of collecting an HTTP quoted string from input, given position, to temporaryValue.
|
|
1482
|
+
temporaryValue += collectAnHTTPQuotedString(
|
|
1483
|
+
input,
|
|
1484
|
+
position
|
|
1485
|
+
)
|
|
1486
|
+
|
|
1487
|
+
// 5.2.1.2. If position is not past the end of input, then continue.
|
|
1488
|
+
if (position.position < input.length) {
|
|
1489
|
+
continue
|
|
1490
|
+
}
|
|
1491
|
+
} else {
|
|
1492
|
+
// 5.2.2. Otherwise:
|
|
1493
|
+
|
|
1494
|
+
// 5.2.2.1. Assert: the code point at position within input is U+002C (,).
|
|
1495
|
+
assert(input.charCodeAt(position.position) === 0x2C)
|
|
1496
|
+
|
|
1497
|
+
// 5.2.2.2. Advance position by 1.
|
|
1498
|
+
position.position++
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
// 5.3. Remove all HTTP tab or space from the start and end of temporaryValue.
|
|
1503
|
+
temporaryValue = removeChars(temporaryValue, true, true, (char) => char === 0x9 || char === 0x20)
|
|
1504
|
+
|
|
1505
|
+
// 5.4. Append temporaryValue to values.
|
|
1506
|
+
values.push(temporaryValue)
|
|
1507
|
+
|
|
1508
|
+
// 5.6. Set temporaryValue to the empty string.
|
|
1509
|
+
temporaryValue = ''
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
// 6. Return values.
|
|
1513
|
+
return values
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
/**
|
|
1517
|
+
* @see https://fetch.spec.whatwg.org/#concept-header-list-get-decode-split
|
|
1518
|
+
* @param {string} name lowercase header name
|
|
1519
|
+
* @param {import('./headers').HeadersList} list
|
|
1520
|
+
*/
|
|
1521
|
+
function getDecodeSplit (name, list) {
|
|
1522
|
+
// 1. Let value be the result of getting name from list.
|
|
1523
|
+
const value = list.get(name, true)
|
|
1524
|
+
|
|
1525
|
+
// 2. If value is null, then return null.
|
|
1526
|
+
if (value === null) {
|
|
1527
|
+
return null
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
// 3. Return the result of getting, decoding, and splitting value.
|
|
1531
|
+
return gettingDecodingSplitting(value)
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
const textDecoder = new TextDecoder()
|
|
1535
|
+
|
|
1536
|
+
/**
|
|
1537
|
+
* @see https://encoding.spec.whatwg.org/#utf-8-decode
|
|
1538
|
+
* @param {Buffer} buffer
|
|
1539
|
+
*/
|
|
1540
|
+
function utf8DecodeBytes (buffer) {
|
|
1541
|
+
if (buffer.length === 0) {
|
|
1542
|
+
return ''
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
// 1. Let buffer be the result of peeking three bytes from
|
|
1546
|
+
// ioQueue, converted to a byte sequence.
|
|
1547
|
+
|
|
1548
|
+
// 2. If buffer is 0xEF 0xBB 0xBF, then read three
|
|
1549
|
+
// bytes from ioQueue. (Do nothing with those bytes.)
|
|
1550
|
+
if (buffer[0] === 0xEF && buffer[1] === 0xBB && buffer[2] === 0xBF) {
|
|
1551
|
+
buffer = buffer.subarray(3)
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
// 3. Process a queue with an instance of UTF-8’s
|
|
1555
|
+
// decoder, ioQueue, output, and "replacement".
|
|
1556
|
+
const output = textDecoder.decode(buffer)
|
|
1557
|
+
|
|
1558
|
+
// 4. Return output.
|
|
1559
|
+
return output
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1562
|
+
class EnvironmentSettingsObjectBase {
|
|
1563
|
+
get baseUrl () {
|
|
1564
|
+
return getGlobalOrigin()
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1567
|
+
get origin () {
|
|
1568
|
+
return this.baseUrl?.origin
|
|
1569
|
+
}
|
|
1570
|
+
|
|
1571
|
+
policyContainer = makePolicyContainer()
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
class EnvironmentSettingsObject {
|
|
1575
|
+
settingsObject = new EnvironmentSettingsObjectBase()
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
const environmentSettingsObject = new EnvironmentSettingsObject()
|
|
1579
|
+
|
|
1580
|
+
module.exports = {
|
|
1581
|
+
isAborted,
|
|
1582
|
+
isCancelled,
|
|
1583
|
+
isValidEncodedURL,
|
|
1584
|
+
createDeferredPromise,
|
|
1585
|
+
ReadableStreamFrom,
|
|
1586
|
+
tryUpgradeRequestToAPotentiallyTrustworthyURL,
|
|
1587
|
+
clampAndCoarsenConnectionTimingInfo,
|
|
1588
|
+
coarsenedSharedCurrentTime,
|
|
1589
|
+
determineRequestsReferrer,
|
|
1590
|
+
makePolicyContainer,
|
|
1591
|
+
clonePolicyContainer,
|
|
1592
|
+
appendFetchMetadata,
|
|
1593
|
+
appendRequestOriginHeader,
|
|
1594
|
+
TAOCheck,
|
|
1595
|
+
corsCheck,
|
|
1596
|
+
crossOriginResourcePolicyCheck,
|
|
1597
|
+
createOpaqueTimingInfo,
|
|
1598
|
+
setRequestReferrerPolicyOnRedirect,
|
|
1599
|
+
isValidHTTPToken,
|
|
1600
|
+
requestBadPort,
|
|
1601
|
+
requestCurrentURL,
|
|
1602
|
+
responseURL,
|
|
1603
|
+
responseLocationURL,
|
|
1604
|
+
isBlobLike,
|
|
1605
|
+
isURLPotentiallyTrustworthy,
|
|
1606
|
+
isValidReasonPhrase,
|
|
1607
|
+
sameOrigin,
|
|
1608
|
+
normalizeMethod,
|
|
1609
|
+
serializeJavascriptValueToJSONString,
|
|
1610
|
+
iteratorMixin,
|
|
1611
|
+
createIterator,
|
|
1612
|
+
isValidHeaderName,
|
|
1613
|
+
isValidHeaderValue,
|
|
1614
|
+
isErrorLike,
|
|
1615
|
+
fullyReadBody,
|
|
1616
|
+
bytesMatch,
|
|
1617
|
+
isReadableStreamLike,
|
|
1618
|
+
readableStreamClose,
|
|
1619
|
+
isomorphicEncode,
|
|
1620
|
+
urlIsLocal,
|
|
1621
|
+
urlHasHttpsScheme,
|
|
1622
|
+
urlIsHttpHttpsScheme,
|
|
1623
|
+
readAllBytes,
|
|
1624
|
+
simpleRangeHeaderValue,
|
|
1625
|
+
buildContentRange,
|
|
1626
|
+
parseMetadata,
|
|
1627
|
+
createInflate,
|
|
1628
|
+
extractMimeType,
|
|
1629
|
+
getDecodeSplit,
|
|
1630
|
+
utf8DecodeBytes,
|
|
1631
|
+
environmentSettingsObject
|
|
1632
|
+
}
|