projen 0.99.71 → 0.99.73
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/.jsii +3 -3
- package/lib/ai-instructions.js +2 -2
- package/lib/awscdk/auto-discover.js +6 -6
- package/lib/awscdk/awscdk-app-java.js +1 -1
- package/lib/awscdk/awscdk-app-py.js +1 -1
- package/lib/awscdk/awscdk-app-ts.js +1 -1
- package/lib/awscdk/awscdk-construct.js +2 -2
- package/lib/awscdk/awscdk-deps-java.js +1 -1
- package/lib/awscdk/awscdk-deps-js.js +1 -1
- package/lib/awscdk/awscdk-deps-py.js +1 -1
- package/lib/awscdk/awscdk-deps.js +1 -1
- package/lib/awscdk/cdk-config.js +4 -4
- package/lib/awscdk/cdk-tasks.js +1 -1
- package/lib/awscdk/integration-test.js +1 -1
- package/lib/awscdk/lambda-extension.js +1 -1
- package/lib/awscdk/lambda-function.js +2 -2
- package/lib/awscdk/private/feature-flags-v2.const.d.ts +1 -1
- package/lib/awscdk/private/feature-flags-v2.const.js +2 -2
- package/lib/build/build-workflow.js +1 -1
- package/lib/cdk/auto-discover-base.js +2 -2
- package/lib/cdk/construct-lib.js +1 -1
- package/lib/cdk/integration-test-base.js +1 -1
- package/lib/cdk/jsii-build.js +1 -1
- package/lib/cdk/jsii-docgen.js +1 -1
- package/lib/cdk/jsii-project.js +1 -1
- package/lib/cdk8s/auto-discover.js +2 -2
- package/lib/cdk8s/cdk8s-app-py.js +1 -1
- package/lib/cdk8s/cdk8s-app-ts.js +1 -1
- package/lib/cdk8s/cdk8s-construct.js +1 -1
- package/lib/cdk8s/cdk8s-deps-py.js +1 -1
- package/lib/cdk8s/cdk8s-deps.js +1 -1
- package/lib/cdk8s/integration-test.js +1 -1
- package/lib/cdktf/cdktf-construct.js +1 -1
- package/lib/circleci/circleci.js +1 -1
- package/lib/component.js +1 -1
- package/lib/dependencies.js +1 -1
- package/lib/dev-env.js +1 -1
- package/lib/docker-compose/docker-compose-service.js +1 -1
- package/lib/docker-compose/docker-compose.js +1 -1
- package/lib/file.js +1 -1
- package/lib/gitattributes.js +1 -1
- package/lib/github/actions-provider.js +1 -1
- package/lib/github/auto-approve.js +1 -1
- package/lib/github/auto-merge.js +1 -1
- package/lib/github/auto-queue.js +1 -1
- package/lib/github/dependabot.js +1 -1
- package/lib/github/dependency-review.js +1 -1
- package/lib/github/github-credentials.js +1 -1
- package/lib/github/github-project.js +1 -1
- package/lib/github/github.js +1 -1
- package/lib/github/merge-queue.js +1 -1
- package/lib/github/mergify.js +1 -1
- package/lib/github/pr-template.js +1 -1
- package/lib/github/pull-request-backport.js +1 -1
- package/lib/github/pull-request-lint.js +1 -1
- package/lib/github/stale.js +1 -1
- package/lib/github/task-workflow-job.js +1 -1
- package/lib/github/task-workflow.js +1 -1
- package/lib/github/workflow-actions.js +1 -1
- package/lib/github/workflow-jobs.js +1 -1
- package/lib/github/workflow-steps.js +1 -1
- package/lib/github/workflows.js +1 -1
- package/lib/gitlab/configuration.js +1 -1
- package/lib/gitlab/gitlab-configuration.js +1 -1
- package/lib/gitlab/nested-configuration.js +1 -1
- package/lib/gitpod.js +1 -1
- package/lib/ignore-file.js +1 -1
- package/lib/ini.js +1 -1
- package/lib/java/java-project.js +1 -1
- package/lib/java/junit.js +1 -1
- package/lib/java/maven-compile.js +1 -1
- package/lib/java/maven-packaging.js +1 -1
- package/lib/java/maven-sample.js +1 -1
- package/lib/java/pom.js +2 -2
- package/lib/java/projenrc.js +1 -1
- package/lib/javascript/biome/biome.js +1 -1
- package/lib/javascript/bundler.js +1 -1
- package/lib/javascript/eslint.js +1 -1
- package/lib/javascript/jest.js +4 -4
- package/lib/javascript/license-checker.js +1 -1
- package/lib/javascript/node-package.js +1 -1
- package/lib/javascript/node-project.js +1 -1
- package/lib/javascript/npm-config.js +1 -1
- package/lib/javascript/prettier.js +1 -1
- package/lib/javascript/projenrc.js +1 -1
- package/lib/javascript/typescript-config.js +2 -2
- package/lib/javascript/upgrade-dependencies.js +2 -2
- package/lib/javascript/yarnrc.js +1 -1
- package/lib/json-patch.js +1 -1
- package/lib/json.js +1 -1
- package/lib/license.js +1 -1
- package/lib/logger.js +1 -1
- package/lib/makefile.js +1 -1
- package/lib/object-file.js +1 -1
- package/lib/project-build.js +1 -1
- package/lib/project-tree.js +1 -1
- package/lib/project.js +1 -1
- package/lib/projects.js +1 -1
- package/lib/projenrc-json.js +2 -2
- package/lib/projenrc.js +1 -1
- package/lib/python/pip.js +1 -1
- package/lib/python/poetry.js +2 -2
- package/lib/python/projenrc.js +1 -1
- package/lib/python/pyproject-toml-file.js +1 -1
- package/lib/python/pytest-sample.js +1 -1
- package/lib/python/pytest.js +1 -1
- package/lib/python/python-project.js +1 -1
- package/lib/python/python-sample.js +1 -1
- package/lib/python/requirements-file.js +1 -1
- package/lib/python/setuppy.js +1 -1
- package/lib/python/setuptools.js +1 -1
- package/lib/python/uv.js +1 -1
- package/lib/python/venv.js +1 -1
- package/lib/readme.js +1 -1
- package/lib/release/publisher.js +1 -1
- package/lib/release/release-trigger.js +1 -1
- package/lib/release/release.js +1 -1
- package/lib/renovatebot.js +1 -1
- package/lib/sample-file.js +2 -2
- package/lib/semver.js +1 -1
- package/lib/source-code.js +1 -1
- package/lib/task-runtime.js +1 -1
- package/lib/task.js +1 -1
- package/lib/tasks.js +1 -1
- package/lib/testing.js +1 -1
- package/lib/textfile.js +1 -1
- package/lib/toml.js +1 -1
- package/lib/typescript/projenrc-ts.js +1 -1
- package/lib/typescript/projenrc.js +1 -1
- package/lib/typescript/typescript-typedoc.js +1 -1
- package/lib/typescript/typescript.js +6 -6
- package/lib/version.js +2 -2
- package/lib/vscode/devcontainer.js +1 -1
- package/lib/vscode/extensions.js +1 -1
- package/lib/vscode/launch-config.js +1 -1
- package/lib/vscode/settings.js +1 -1
- package/lib/vscode/vscode.js +1 -1
- package/lib/web/next.js +3 -3
- package/lib/web/postcss.js +1 -1
- package/lib/web/react.js +4 -4
- package/lib/web/tailwind.js +1 -1
- package/lib/xmlfile.js +1 -1
- package/lib/yaml.js +1 -1
- package/node_modules/{shelljs/node_modules/cross-spawn → cross-spawn}/README.md +10 -15
- package/node_modules/{shelljs/node_modules/cross-spawn → cross-spawn}/lib/enoent.js +1 -1
- package/node_modules/{shelljs/node_modules/cross-spawn → cross-spawn}/lib/parse.js +1 -35
- package/node_modules/{shelljs/node_modules/cross-spawn → cross-spawn}/lib/util/readShebang.js +1 -10
- package/node_modules/{shelljs/node_modules/cross-spawn → cross-spawn}/lib/util/resolveCommand.js +4 -3
- package/node_modules/{shelljs/node_modules/cross-spawn → cross-spawn}/package.json +23 -25
- package/node_modules/execa/index.d.ts +564 -0
- package/node_modules/execa/index.js +268 -0
- package/node_modules/execa/lib/command.js +52 -0
- package/node_modules/execa/lib/error.js +88 -0
- package/node_modules/execa/lib/kill.js +115 -0
- package/node_modules/execa/lib/promise.js +46 -0
- package/node_modules/execa/lib/stdio.js +52 -0
- package/node_modules/execa/lib/stream.js +97 -0
- package/node_modules/execa/license +9 -0
- package/node_modules/execa/package.json +74 -0
- package/node_modules/execa/readme.md +663 -0
- package/node_modules/fastq/README.md +0 -2
- package/node_modules/fastq/eslint.config.js +11 -0
- package/node_modules/fastq/example.mjs +0 -2
- package/node_modules/fastq/index.d.ts +2 -0
- package/node_modules/fastq/package.json +5 -9
- package/node_modules/fastq/queue.js +36 -1
- package/node_modules/fastq/test/promise.js +34 -0
- package/node_modules/fastq/test/test.js +80 -0
- package/node_modules/get-stream/buffer-stream.js +52 -0
- package/node_modules/get-stream/index.d.ts +105 -0
- package/node_modules/get-stream/index.js +61 -0
- package/node_modules/get-stream/license +9 -0
- package/node_modules/{shelljs/node_modules/get-stream → get-stream}/package.json +11 -10
- package/node_modules/{shelljs/node_modules/get-stream → get-stream}/readme.md +19 -18
- package/node_modules/human-signals/LICENSE +201 -0
- package/node_modules/human-signals/README.md +165 -0
- package/node_modules/human-signals/build/src/core.js +273 -0
- package/node_modules/human-signals/build/src/core.js.map +1 -0
- package/node_modules/human-signals/build/src/main.d.ts +52 -0
- package/node_modules/human-signals/build/src/main.js +71 -0
- package/node_modules/human-signals/build/src/main.js.map +1 -0
- package/node_modules/human-signals/build/src/realtime.js +19 -0
- package/node_modules/human-signals/build/src/realtime.js.map +1 -0
- package/node_modules/human-signals/build/src/signals.js +35 -0
- package/node_modules/human-signals/build/src/signals.js.map +1 -0
- package/node_modules/human-signals/package.json +64 -0
- package/node_modules/is-stream/index.d.ts +79 -0
- package/node_modules/is-stream/index.js +28 -0
- package/node_modules/is-stream/license +9 -0
- package/node_modules/is-stream/package.json +42 -0
- package/node_modules/is-stream/readme.md +60 -0
- package/node_modules/js-yaml/README.md +4 -20
- package/node_modules/js-yaml/bin/js-yaml.js +53 -62
- package/node_modules/js-yaml/dist/js-yaml.js +2404 -3880
- package/node_modules/js-yaml/dist/js-yaml.js.map +1 -0
- package/node_modules/js-yaml/dist/js-yaml.min.js +33 -2
- package/node_modules/js-yaml/dist/js-yaml.min.js.map +1 -0
- package/node_modules/js-yaml/dist/js-yaml.mjs +2381 -3855
- package/node_modules/js-yaml/dist/js-yaml.mjs.map +1 -0
- package/node_modules/js-yaml/index.js +32 -35
- package/node_modules/js-yaml/lib/common.js +28 -37
- package/node_modules/js-yaml/lib/dumper.js +450 -478
- package/node_modules/js-yaml/lib/exception.js +23 -27
- package/node_modules/js-yaml/lib/index_vite_proxy.tmp.mjs +37 -0
- package/node_modules/js-yaml/lib/loader.js +927 -866
- package/node_modules/js-yaml/lib/schema/core.js +2 -4
- package/node_modules/js-yaml/lib/schema/default.js +2 -4
- package/node_modules/js-yaml/lib/schema/failsafe.js +3 -6
- package/node_modules/js-yaml/lib/schema/json.js +2 -4
- package/node_modules/js-yaml/lib/schema.js +56 -68
- package/node_modules/js-yaml/lib/snippet.js +47 -52
- package/node_modules/js-yaml/lib/type/binary.js +61 -64
- package/node_modules/js-yaml/lib/type/bool.js +14 -14
- package/node_modules/js-yaml/lib/type/float.js +47 -45
- package/node_modules/js-yaml/lib/type/int.js +65 -79
- package/node_modules/js-yaml/lib/type/map.js +4 -4
- package/node_modules/js-yaml/lib/type/merge.js +5 -5
- package/node_modules/js-yaml/lib/type/null.js +16 -16
- package/node_modules/js-yaml/lib/type/omap.js +22 -21
- package/node_modules/js-yaml/lib/type/pairs.js +24 -27
- package/node_modules/js-yaml/lib/type/seq.js +4 -4
- package/node_modules/js-yaml/lib/type/set.js +12 -12
- package/node_modules/js-yaml/lib/type/str.js +4 -4
- package/node_modules/js-yaml/lib/type/timestamp.js +53 -53
- package/node_modules/js-yaml/lib/type.js +30 -30
- package/node_modules/js-yaml/package.json +32 -21
- package/node_modules/{nice-try → merge-stream}/LICENSE +1 -1
- package/node_modules/merge-stream/README.md +78 -0
- package/node_modules/merge-stream/index.js +41 -0
- package/node_modules/merge-stream/package.json +19 -0
- package/node_modules/mimic-fn/index.d.ts +54 -0
- package/node_modules/mimic-fn/index.js +13 -0
- package/node_modules/mimic-fn/package.json +42 -0
- package/node_modules/mimic-fn/readme.md +69 -0
- package/node_modules/npm-run-path/index.d.ts +89 -0
- package/node_modules/npm-run-path/index.js +47 -0
- package/node_modules/npm-run-path/package.json +44 -0
- package/node_modules/{shelljs/node_modules/npm-run-path → npm-run-path}/readme.md +39 -5
- package/node_modules/onetime/index.d.ts +64 -0
- package/node_modules/onetime/index.js +44 -0
- package/node_modules/onetime/license +9 -0
- package/node_modules/onetime/package.json +43 -0
- package/node_modules/onetime/readme.md +94 -0
- package/node_modules/path-key/index.d.ts +40 -0
- package/node_modules/path-key/index.js +16 -0
- package/node_modules/path-key/license +9 -0
- package/node_modules/path-key/package.json +39 -0
- package/node_modules/{shelljs/node_modules/path-key → path-key}/readme.md +15 -5
- package/node_modules/semver/classes/range.js +11 -2
- package/node_modules/semver/package.json +2 -2
- package/node_modules/shebang-command/index.js +19 -0
- package/node_modules/shebang-command/license +9 -0
- package/node_modules/shebang-command/package.json +34 -0
- package/node_modules/{shelljs/node_modules/shebang-command → shebang-command}/readme.md +1 -6
- package/node_modules/shebang-regex/index.d.ts +22 -0
- package/node_modules/shebang-regex/index.js +2 -0
- package/node_modules/shebang-regex/license +9 -0
- package/node_modules/shebang-regex/package.json +35 -0
- package/node_modules/shebang-regex/readme.md +33 -0
- package/node_modules/shelljs/README.md +7 -1
- package/node_modules/shelljs/global.js +4 -1
- package/node_modules/shelljs/package.json +8 -13
- package/node_modules/shelljs/shell.js +9 -7
- package/node_modules/shelljs/src/cat.js +1 -1
- package/node_modules/shelljs/src/chmod.js +1 -1
- package/node_modules/shelljs/src/cmd.js +25 -9
- package/node_modules/shelljs/src/common.js +11 -8
- package/node_modules/shelljs/src/dirs.js +1 -1
- package/node_modules/shelljs/src/exec.js +6 -6
- package/node_modules/shelljs/src/grep.js +121 -7
- package/node_modules/shelljs/src/head.js +1 -1
- package/node_modules/shelljs/src/ls.js +1 -1
- package/node_modules/shelljs/src/mkdir.js +1 -1
- package/node_modules/shelljs/src/rm.js +1 -1
- package/node_modules/shelljs/src/sed.js +1 -1
- package/node_modules/shelljs/src/sort.js +1 -1
- package/node_modules/shelljs/src/tail.js +1 -1
- package/node_modules/shelljs/src/tempdir.js +1 -1
- package/node_modules/shelljs/src/test.js +1 -1
- package/node_modules/shelljs/src/to.js +1 -1
- package/node_modules/shelljs/src/toEnd.js +1 -1
- package/node_modules/shelljs/src/touch.js +1 -1
- package/node_modules/shelljs/src/uniq.js +1 -1
- package/node_modules/shelljs/src/which.js +1 -1
- package/node_modules/strip-final-newline/index.js +16 -0
- package/node_modules/strip-final-newline/license +9 -0
- package/node_modules/strip-final-newline/package.json +40 -0
- package/node_modules/strip-final-newline/readme.md +30 -0
- package/node_modules/{shelljs/node_modules/which → which}/README.md +3 -0
- package/node_modules/which/package.json +43 -0
- package/node_modules/which/which.js +125 -0
- package/package.json +5 -2
- package/node_modules/end-of-stream/LICENSE +0 -21
- package/node_modules/end-of-stream/README.md +0 -54
- package/node_modules/end-of-stream/index.js +0 -96
- package/node_modules/end-of-stream/package.json +0 -37
- package/node_modules/fastq/.github/dependabot.yml +0 -11
- package/node_modules/fastq/.github/workflows/ci.yml +0 -75
- package/node_modules/function-bind/.eslintrc +0 -21
- package/node_modules/function-bind/.github/FUNDING.yml +0 -12
- package/node_modules/function-bind/.github/SECURITY.md +0 -3
- package/node_modules/function-bind/.nycrc +0 -13
- package/node_modules/function-bind/CHANGELOG.md +0 -136
- package/node_modules/function-bind/LICENSE +0 -20
- package/node_modules/function-bind/README.md +0 -46
- package/node_modules/function-bind/implementation.js +0 -84
- package/node_modules/function-bind/index.js +0 -5
- package/node_modules/function-bind/package.json +0 -87
- package/node_modules/function-bind/test/.eslintrc +0 -9
- package/node_modules/function-bind/test/index.js +0 -252
- package/node_modules/hasown/.eslintrc +0 -5
- package/node_modules/hasown/.github/FUNDING.yml +0 -12
- package/node_modules/hasown/.nycrc +0 -13
- package/node_modules/hasown/CHANGELOG.md +0 -40
- package/node_modules/hasown/LICENSE +0 -21
- package/node_modules/hasown/README.md +0 -40
- package/node_modules/hasown/index.d.ts +0 -3
- package/node_modules/hasown/index.js +0 -8
- package/node_modules/hasown/package.json +0 -92
- package/node_modules/hasown/tsconfig.json +0 -6
- package/node_modules/interpret/LICENSE +0 -22
- package/node_modules/interpret/README.md +0 -187
- package/node_modules/interpret/index.js +0 -168
- package/node_modules/interpret/mjs-stub.js +0 -1
- package/node_modules/interpret/package.json +0 -75
- package/node_modules/is-core-module/.eslintrc +0 -18
- package/node_modules/is-core-module/.nycrc +0 -9
- package/node_modules/is-core-module/CHANGELOG.md +0 -218
- package/node_modules/is-core-module/LICENSE +0 -20
- package/node_modules/is-core-module/README.md +0 -40
- package/node_modules/is-core-module/core.json +0 -162
- package/node_modules/is-core-module/index.js +0 -69
- package/node_modules/is-core-module/package.json +0 -76
- package/node_modules/is-core-module/test/index.js +0 -157
- package/node_modules/nice-try/README.md +0 -32
- package/node_modules/nice-try/package.json +0 -33
- package/node_modules/nice-try/src/index.js +0 -12
- package/node_modules/once/README.md +0 -79
- package/node_modules/once/once.js +0 -42
- package/node_modules/once/package.json +0 -33
- package/node_modules/p-finally/index.js +0 -15
- package/node_modules/p-finally/license +0 -21
- package/node_modules/p-finally/package.json +0 -42
- package/node_modules/p-finally/readme.md +0 -47
- package/node_modules/path-parse/LICENSE +0 -21
- package/node_modules/path-parse/README.md +0 -42
- package/node_modules/path-parse/index.js +0 -75
- package/node_modules/path-parse/package.json +0 -33
- package/node_modules/pump/.github/FUNDING.yml +0 -2
- package/node_modules/pump/.travis.yml +0 -5
- package/node_modules/pump/LICENSE +0 -21
- package/node_modules/pump/README.md +0 -74
- package/node_modules/pump/SECURITY.md +0 -5
- package/node_modules/pump/index.js +0 -86
- package/node_modules/pump/package.json +0 -24
- package/node_modules/pump/test-browser.js +0 -66
- package/node_modules/pump/test-node.js +0 -53
- package/node_modules/rechoir/.npmignore +0 -1
- package/node_modules/rechoir/.travis.yml +0 -24
- package/node_modules/rechoir/CHANGELOG +0 -38
- package/node_modules/rechoir/LICENSE +0 -22
- package/node_modules/rechoir/README.md +0 -42
- package/node_modules/rechoir/index.js +0 -59
- package/node_modules/rechoir/lib/extension.js +0 -11
- package/node_modules/rechoir/lib/normalize.js +0 -15
- package/node_modules/rechoir/lib/register.js +0 -15
- package/node_modules/rechoir/package.json +0 -88
- package/node_modules/resolve/.editorconfig +0 -37
- package/node_modules/resolve/.eslintrc +0 -65
- package/node_modules/resolve/.github/FUNDING.yml +0 -12
- package/node_modules/resolve/.github/INCIDENT_RESPONSE_PROCESS.md +0 -119
- package/node_modules/resolve/.github/THREAT_MODEL.md +0 -74
- package/node_modules/resolve/LICENSE +0 -21
- package/node_modules/resolve/SECURITY.md +0 -11
- package/node_modules/resolve/async.js +0 -3
- package/node_modules/resolve/bin/resolve +0 -50
- package/node_modules/resolve/example/async.js +0 -5
- package/node_modules/resolve/example/sync.js +0 -3
- package/node_modules/resolve/index.js +0 -6
- package/node_modules/resolve/lib/async.js +0 -333
- package/node_modules/resolve/lib/caller.js +0 -8
- package/node_modules/resolve/lib/core.js +0 -12
- package/node_modules/resolve/lib/core.json +0 -162
- package/node_modules/resolve/lib/homedir.js +0 -24
- package/node_modules/resolve/lib/is-core.js +0 -5
- package/node_modules/resolve/lib/node-modules-paths.js +0 -45
- package/node_modules/resolve/lib/normalize-options.js +0 -10
- package/node_modules/resolve/lib/sync.js +0 -212
- package/node_modules/resolve/package.json +0 -75
- package/node_modules/resolve/readme.markdown +0 -301
- package/node_modules/resolve/sync.js +0 -3
- package/node_modules/resolve/test/core.js +0 -88
- package/node_modules/resolve/test/dotdot/abc/index.js +0 -2
- package/node_modules/resolve/test/dotdot/index.js +0 -1
- package/node_modules/resolve/test/dotdot.js +0 -29
- package/node_modules/resolve/test/faulty_basedir.js +0 -29
- package/node_modules/resolve/test/filter.js +0 -34
- package/node_modules/resolve/test/filter_sync.js +0 -33
- package/node_modules/resolve/test/home_paths.js +0 -127
- package/node_modules/resolve/test/home_paths_sync.js +0 -114
- package/node_modules/resolve/test/mock.js +0 -315
- package/node_modules/resolve/test/mock_sync.js +0 -214
- package/node_modules/resolve/test/module_dir/xmodules/aaa/index.js +0 -1
- package/node_modules/resolve/test/module_dir/ymodules/aaa/index.js +0 -1
- package/node_modules/resolve/test/module_dir/zmodules/bbb/main.js +0 -1
- package/node_modules/resolve/test/module_dir/zmodules/bbb/package.json +0 -3
- package/node_modules/resolve/test/module_dir.js +0 -56
- package/node_modules/resolve/test/node-modules-paths.js +0 -143
- package/node_modules/resolve/test/node_path/x/aaa/index.js +0 -1
- package/node_modules/resolve/test/node_path/x/ccc/index.js +0 -1
- package/node_modules/resolve/test/node_path/y/bbb/index.js +0 -1
- package/node_modules/resolve/test/node_path/y/ccc/index.js +0 -1
- package/node_modules/resolve/test/node_path.js +0 -70
- package/node_modules/resolve/test/nonstring.js +0 -9
- package/node_modules/resolve/test/pathfilter/deep_ref/main.js +0 -0
- package/node_modules/resolve/test/pathfilter.js +0 -75
- package/node_modules/resolve/test/precedence/aaa/index.js +0 -1
- package/node_modules/resolve/test/precedence/aaa/main.js +0 -1
- package/node_modules/resolve/test/precedence/aaa.js +0 -1
- package/node_modules/resolve/test/precedence/bbb/main.js +0 -1
- package/node_modules/resolve/test/precedence/bbb.js +0 -1
- package/node_modules/resolve/test/precedence.js +0 -23
- package/node_modules/resolve/test/resolver/baz/doom.js +0 -0
- package/node_modules/resolve/test/resolver/baz/package.json +0 -4
- package/node_modules/resolve/test/resolver/baz/quux.js +0 -1
- package/node_modules/resolve/test/resolver/browser_field/a.js +0 -0
- package/node_modules/resolve/test/resolver/browser_field/b.js +0 -0
- package/node_modules/resolve/test/resolver/browser_field/package.json +0 -5
- package/node_modules/resolve/test/resolver/cup.coffee +0 -1
- package/node_modules/resolve/test/resolver/dot_main/index.js +0 -1
- package/node_modules/resolve/test/resolver/dot_main/package.json +0 -3
- package/node_modules/resolve/test/resolver/dot_slash_main/index.js +0 -1
- package/node_modules/resolve/test/resolver/dot_slash_main/package.json +0 -3
- package/node_modules/resolve/test/resolver/false_main/index.js +0 -0
- package/node_modules/resolve/test/resolver/false_main/package.json +0 -4
- package/node_modules/resolve/test/resolver/foo.js +0 -1
- package/node_modules/resolve/test/resolver/incorrect_main/index.js +0 -2
- package/node_modules/resolve/test/resolver/incorrect_main/package.json +0 -3
- package/node_modules/resolve/test/resolver/invalid_main/package.json +0 -7
- package/node_modules/resolve/test/resolver/mug.coffee +0 -0
- package/node_modules/resolve/test/resolver/mug.js +0 -0
- package/node_modules/resolve/test/resolver/multirepo/lerna.json +0 -6
- package/node_modules/resolve/test/resolver/multirepo/package.json +0 -20
- package/node_modules/resolve/test/resolver/multirepo/packages/package-a/index.js +0 -35
- package/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json +0 -14
- package/node_modules/resolve/test/resolver/multirepo/packages/package-b/index.js +0 -0
- package/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json +0 -14
- package/node_modules/resolve/test/resolver/nested_symlinks/mylib/async.js +0 -26
- package/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json +0 -15
- package/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js +0 -12
- package/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
- package/node_modules/resolve/test/resolver/other_path/root.js +0 -0
- package/node_modules/resolve/test/resolver/quux/foo/index.js +0 -1
- package/node_modules/resolve/test/resolver/same_names/foo/index.js +0 -1
- package/node_modules/resolve/test/resolver/same_names/foo.js +0 -1
- package/node_modules/resolve/test/resolver/symlinked/_/node_modules/foo.js +0 -0
- package/node_modules/resolve/test/resolver/symlinked/_/symlink_target/.gitkeep +0 -0
- package/node_modules/resolve/test/resolver/symlinked/package/bar.js +0 -1
- package/node_modules/resolve/test/resolver/symlinked/package/package.json +0 -3
- package/node_modules/resolve/test/resolver/without_basedir/main.js +0 -5
- package/node_modules/resolve/test/resolver.js +0 -597
- package/node_modules/resolve/test/resolver_sync.js +0 -730
- package/node_modules/resolve/test/shadowed_core/node_modules/util/index.js +0 -0
- package/node_modules/resolve/test/shadowed_core.js +0 -54
- package/node_modules/resolve/test/subdirs.js +0 -13
- package/node_modules/resolve/test/symlinks.js +0 -176
- package/node_modules/shelljs/bin/shjs +0 -48
- package/node_modules/shelljs/node_modules/execa/index.js +0 -361
- package/node_modules/shelljs/node_modules/execa/lib/errname.js +0 -39
- package/node_modules/shelljs/node_modules/execa/lib/stdio.js +0 -41
- package/node_modules/shelljs/node_modules/execa/package.json +0 -69
- package/node_modules/shelljs/node_modules/execa/readme.md +0 -327
- package/node_modules/shelljs/node_modules/get-stream/buffer-stream.js +0 -51
- package/node_modules/shelljs/node_modules/get-stream/index.js +0 -50
- package/node_modules/shelljs/node_modules/is-stream/index.js +0 -21
- package/node_modules/shelljs/node_modules/is-stream/license +0 -21
- package/node_modules/shelljs/node_modules/is-stream/package.json +0 -38
- package/node_modules/shelljs/node_modules/is-stream/readme.md +0 -42
- package/node_modules/shelljs/node_modules/npm-run-path/index.js +0 -39
- package/node_modules/shelljs/node_modules/npm-run-path/license +0 -21
- package/node_modules/shelljs/node_modules/npm-run-path/package.json +0 -45
- package/node_modules/shelljs/node_modules/path-key/index.js +0 -13
- package/node_modules/shelljs/node_modules/path-key/license +0 -21
- package/node_modules/shelljs/node_modules/path-key/package.json +0 -39
- package/node_modules/shelljs/node_modules/semver/LICENSE +0 -15
- package/node_modules/shelljs/node_modules/semver/README.md +0 -412
- package/node_modules/shelljs/node_modules/semver/bin/semver +0 -160
- package/node_modules/shelljs/node_modules/semver/package.json +0 -38
- package/node_modules/shelljs/node_modules/semver/range.bnf +0 -16
- package/node_modules/shelljs/node_modules/semver/semver.js +0 -1525
- package/node_modules/shelljs/node_modules/shebang-command/index.js +0 -19
- package/node_modules/shelljs/node_modules/shebang-command/license +0 -21
- package/node_modules/shelljs/node_modules/shebang-command/package.json +0 -39
- package/node_modules/shelljs/node_modules/shebang-regex/index.js +0 -2
- package/node_modules/shelljs/node_modules/shebang-regex/license +0 -21
- package/node_modules/shelljs/node_modules/shebang-regex/package.json +0 -32
- package/node_modules/shelljs/node_modules/shebang-regex/readme.md +0 -29
- package/node_modules/shelljs/node_modules/which/LICENSE +0 -15
- package/node_modules/shelljs/node_modules/which/package.json +0 -30
- package/node_modules/shelljs/node_modules/which/which.js +0 -135
- package/node_modules/strip-eof/index.js +0 -15
- package/node_modules/strip-eof/license +0 -21
- package/node_modules/strip-eof/package.json +0 -39
- package/node_modules/strip-eof/readme.md +0 -28
- package/node_modules/supports-preserve-symlinks-flag/.eslintrc +0 -14
- package/node_modules/supports-preserve-symlinks-flag/.github/FUNDING.yml +0 -12
- package/node_modules/supports-preserve-symlinks-flag/.nycrc +0 -9
- package/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md +0 -22
- package/node_modules/supports-preserve-symlinks-flag/LICENSE +0 -21
- package/node_modules/supports-preserve-symlinks-flag/README.md +0 -42
- package/node_modules/supports-preserve-symlinks-flag/browser.js +0 -3
- package/node_modules/supports-preserve-symlinks-flag/index.js +0 -9
- package/node_modules/supports-preserve-symlinks-flag/package.json +0 -70
- package/node_modules/supports-preserve-symlinks-flag/test/index.js +0 -29
- package/node_modules/wrappy/LICENSE +0 -15
- package/node_modules/wrappy/README.md +0 -36
- package/node_modules/wrappy/package.json +0 -29
- package/node_modules/wrappy/wrappy.js +0 -33
- /package/node_modules/{shelljs/node_modules/cross-spawn → cross-spawn}/LICENSE +0 -0
- /package/node_modules/{shelljs/node_modules/cross-spawn → cross-spawn}/index.js +0 -0
- /package/node_modules/{shelljs/node_modules/cross-spawn → cross-spawn}/lib/util/escape.js +0 -0
- /package/node_modules/{picomatch → micromatch/node_modules/picomatch}/LICENSE +0 -0
- /package/node_modules/{picomatch → micromatch/node_modules/picomatch}/README.md +0 -0
- /package/node_modules/{picomatch → micromatch/node_modules/picomatch}/index.js +0 -0
- /package/node_modules/{picomatch → micromatch/node_modules/picomatch}/lib/constants.js +0 -0
- /package/node_modules/{picomatch → micromatch/node_modules/picomatch}/lib/parse.js +0 -0
- /package/node_modules/{picomatch → micromatch/node_modules/picomatch}/lib/picomatch.js +0 -0
- /package/node_modules/{picomatch → micromatch/node_modules/picomatch}/lib/scan.js +0 -0
- /package/node_modules/{picomatch → micromatch/node_modules/picomatch}/lib/utils.js +0 -0
- /package/node_modules/{picomatch → micromatch/node_modules/picomatch}/package.json +0 -0
- /package/node_modules/{shelljs/node_modules/execa → mimic-fn}/license +0 -0
- /package/node_modules/{shelljs/node_modules/get-stream → npm-run-path}/license +0 -0
- /package/node_modules/{once → which}/LICENSE +0 -0
- /package/node_modules/{shelljs/node_modules/which/bin/which → which/bin/node-which} +0 -0
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "rechoir",
|
|
3
|
-
"description": "Require any supported file as a node module.",
|
|
4
|
-
"version": "0.6.2",
|
|
5
|
-
"homepage": "https://github.com/tkellen/node-rechoir",
|
|
6
|
-
"author": {
|
|
7
|
-
"name": "Tyler Kellen",
|
|
8
|
-
"url": "http://goingslowly.com/"
|
|
9
|
-
},
|
|
10
|
-
"repository": {
|
|
11
|
-
"type": "git",
|
|
12
|
-
"url": "git://github.com/tkellen/node-rechoir.git"
|
|
13
|
-
},
|
|
14
|
-
"bugs": {
|
|
15
|
-
"url": "https://github.com/tkellen/node-rechoir/issues"
|
|
16
|
-
},
|
|
17
|
-
"licenses": [
|
|
18
|
-
{
|
|
19
|
-
"type": "MIT",
|
|
20
|
-
"url": "https://github.com/tkellen/node-rechoir/blob/master/LICENSE"
|
|
21
|
-
}
|
|
22
|
-
],
|
|
23
|
-
"main": "index.js",
|
|
24
|
-
"engines": {
|
|
25
|
-
"node": ">= 0.10"
|
|
26
|
-
},
|
|
27
|
-
"scripts": {
|
|
28
|
-
"test": "mocha -R spec test/index.js"
|
|
29
|
-
},
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"resolve": "^1.1.6"
|
|
32
|
-
},
|
|
33
|
-
"devDependencies": {
|
|
34
|
-
"babel": "^5.4.3",
|
|
35
|
-
"chai": "^2.3.0",
|
|
36
|
-
"coco": "^0.9.1",
|
|
37
|
-
"coffee-script": "^1.9.2",
|
|
38
|
-
"earlgrey": "0.0.9",
|
|
39
|
-
"iced-coffee-script": "^1.8.0-d",
|
|
40
|
-
"interpret": "^0.6.1",
|
|
41
|
-
"json5": "^0.4.0",
|
|
42
|
-
"livescript": "^1.4.0",
|
|
43
|
-
"mocha": "^2.2.5",
|
|
44
|
-
"node-jsx": "^0.13.3",
|
|
45
|
-
"require-csv": "0.0.1",
|
|
46
|
-
"require-ini": "0.0.1",
|
|
47
|
-
"require-uncached": "^1.0.2",
|
|
48
|
-
"require-xml": "0.0.1",
|
|
49
|
-
"require-yaml": "0.0.1",
|
|
50
|
-
"rimraf": "^2.3.4",
|
|
51
|
-
"semver": "^4.3.4",
|
|
52
|
-
"sinon": "^1.14.1",
|
|
53
|
-
"toml-require": "^1.0.1",
|
|
54
|
-
"typescript-register": "^1.1.0"
|
|
55
|
-
},
|
|
56
|
-
"keywords": [
|
|
57
|
-
"require",
|
|
58
|
-
"cjsx",
|
|
59
|
-
"co",
|
|
60
|
-
"coco",
|
|
61
|
-
"coffee-script",
|
|
62
|
-
"coffee",
|
|
63
|
-
"coffee.md",
|
|
64
|
-
"csv",
|
|
65
|
-
"earlgrey",
|
|
66
|
-
"es",
|
|
67
|
-
"es6",
|
|
68
|
-
"iced",
|
|
69
|
-
"iced.md",
|
|
70
|
-
"iced-coffee-script",
|
|
71
|
-
"ini",
|
|
72
|
-
"js",
|
|
73
|
-
"json",
|
|
74
|
-
"json5",
|
|
75
|
-
"jsx",
|
|
76
|
-
"react",
|
|
77
|
-
"litcoffee",
|
|
78
|
-
"liticed",
|
|
79
|
-
"ls",
|
|
80
|
-
"livescript",
|
|
81
|
-
"toml",
|
|
82
|
-
"ts",
|
|
83
|
-
"typescript",
|
|
84
|
-
"xml",
|
|
85
|
-
"yaml",
|
|
86
|
-
"yml"
|
|
87
|
-
]
|
|
88
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
root = true
|
|
2
|
-
|
|
3
|
-
[*]
|
|
4
|
-
indent_style = space
|
|
5
|
-
indent_size = 2
|
|
6
|
-
end_of_line = lf
|
|
7
|
-
charset = utf-8
|
|
8
|
-
trim_trailing_whitespace = true
|
|
9
|
-
insert_final_newline = true
|
|
10
|
-
max_line_length = 200
|
|
11
|
-
|
|
12
|
-
[*.js]
|
|
13
|
-
block_comment_start = /*
|
|
14
|
-
block_comment = *
|
|
15
|
-
block_comment_end = */
|
|
16
|
-
|
|
17
|
-
[*.yml]
|
|
18
|
-
indent_size = 1
|
|
19
|
-
|
|
20
|
-
[package.json]
|
|
21
|
-
indent_style = tab
|
|
22
|
-
|
|
23
|
-
[lib/core.json]
|
|
24
|
-
indent_style = tab
|
|
25
|
-
|
|
26
|
-
[CHANGELOG.md]
|
|
27
|
-
indent_style = space
|
|
28
|
-
indent_size = 2
|
|
29
|
-
|
|
30
|
-
[{*.json,Makefile}]
|
|
31
|
-
max_line_length = off
|
|
32
|
-
|
|
33
|
-
[test/{dotdot,resolver,module_dir,multirepo,node_path,pathfilter,precedence}/**/*]
|
|
34
|
-
indent_style = off
|
|
35
|
-
indent_size = off
|
|
36
|
-
max_line_length = off
|
|
37
|
-
insert_final_newline = off
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"root": true,
|
|
3
|
-
|
|
4
|
-
"extends": "@ljharb",
|
|
5
|
-
|
|
6
|
-
"rules": {
|
|
7
|
-
"indent": [2, 4],
|
|
8
|
-
"strict": 0,
|
|
9
|
-
"complexity": 0,
|
|
10
|
-
"consistent-return": 0,
|
|
11
|
-
"curly": 0,
|
|
12
|
-
"dot-notation": [2, { "allowKeywords": true }],
|
|
13
|
-
"func-name-matching": 0,
|
|
14
|
-
"func-style": 0,
|
|
15
|
-
"global-require": 1,
|
|
16
|
-
"id-length": [2, { "min": 1, "max": 40 }],
|
|
17
|
-
"max-lines": [2, 360],
|
|
18
|
-
"max-lines-per-function": 0,
|
|
19
|
-
"max-nested-callbacks": 0,
|
|
20
|
-
"max-params": 0,
|
|
21
|
-
"max-statements-per-line": [2, { "max": 2 }],
|
|
22
|
-
"max-statements": 0,
|
|
23
|
-
"no-magic-numbers": 0,
|
|
24
|
-
"no-shadow": 0,
|
|
25
|
-
"no-use-before-define": 0,
|
|
26
|
-
"sort-keys": 0,
|
|
27
|
-
},
|
|
28
|
-
"overrides": [
|
|
29
|
-
{
|
|
30
|
-
"files": "bin/**",
|
|
31
|
-
"rules": {
|
|
32
|
-
"no-process-exit": "off",
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"files": "example/**",
|
|
37
|
-
"rules": {
|
|
38
|
-
"no-console": 0,
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"files": "test/resolver/nested_symlinks/mylib/*.js",
|
|
43
|
-
"rules": {
|
|
44
|
-
"no-throw-literal": 0,
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"files": "test/**",
|
|
49
|
-
"parserOptions": {
|
|
50
|
-
"ecmaVersion": 5,
|
|
51
|
-
"allowReserved": false,
|
|
52
|
-
},
|
|
53
|
-
"rules": {
|
|
54
|
-
"dot-notation": [2, { "allowPattern": "throws" }],
|
|
55
|
-
"max-lines": 0,
|
|
56
|
-
"max-lines-per-function": 0,
|
|
57
|
-
"no-unused-vars": [2, { "vars": "all", "args": "none" }],
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
],
|
|
61
|
-
|
|
62
|
-
"ignorePatterns": [
|
|
63
|
-
"./test/resolver/malformed_package_json/package.json",
|
|
64
|
-
],
|
|
65
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# These are supported funding model platforms
|
|
2
|
-
|
|
3
|
-
github: [ljharb]
|
|
4
|
-
patreon: # Replace with a single Patreon username
|
|
5
|
-
open_collective: # Replace with a single Open Collective username
|
|
6
|
-
ko_fi: # Replace with a single Ko-fi username
|
|
7
|
-
tidelift: npm/resolve
|
|
8
|
-
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
|
9
|
-
liberapay: # Replace with a single Liberapay username
|
|
10
|
-
issuehunt: # Replace with a single IssueHunt username
|
|
11
|
-
otechie: # Replace with a single Otechie username
|
|
12
|
-
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
# Incident Response Process for **resolve**
|
|
2
|
-
|
|
3
|
-
## Reporting a Vulnerability
|
|
4
|
-
|
|
5
|
-
We take the security of **resolve** very seriously. If you believe you’ve found a security vulnerability, please inform us responsibly through coordinated disclosure.
|
|
6
|
-
|
|
7
|
-
### How to Report
|
|
8
|
-
|
|
9
|
-
> **Do not** report security vulnerabilities through public GitHub issues, discussions, or social media.
|
|
10
|
-
|
|
11
|
-
Instead, please use one of these secure channels:
|
|
12
|
-
|
|
13
|
-
1. **GitHub Security Advisories**
|
|
14
|
-
Use the **Report a vulnerability** button in the Security tab of the [browserify/resolve repository](https://github.com/browserify/resolve).
|
|
15
|
-
|
|
16
|
-
2. **Email**
|
|
17
|
-
Follow the posted [Security Policy](https://github.com/browserify/resolve/security/policy).
|
|
18
|
-
|
|
19
|
-
### What to Include
|
|
20
|
-
|
|
21
|
-
**Required Information:**
|
|
22
|
-
- Brief description of the vulnerability type
|
|
23
|
-
- Affected version(s) and components
|
|
24
|
-
- Steps to reproduce the issue
|
|
25
|
-
- Impact assessment (what an attacker could achieve)
|
|
26
|
-
- Confirm the issue is not present in test files (in other words, only via the official entry points in `exports`)
|
|
27
|
-
|
|
28
|
-
**Helpful Additional Details:**
|
|
29
|
-
- Full paths of affected source files
|
|
30
|
-
- Specific commit or branch where the issue exists
|
|
31
|
-
- Required configuration to reproduce
|
|
32
|
-
- Proof-of-concept code (if available)
|
|
33
|
-
- Suggested mitigation or fix
|
|
34
|
-
|
|
35
|
-
## Our Response Process
|
|
36
|
-
|
|
37
|
-
**Timeline Commitments:**
|
|
38
|
-
- **Initial acknowledgment**: Within 24 hours
|
|
39
|
-
- **Detailed response**: Within 3 business days
|
|
40
|
-
- **Status updates**: Every 7 days until resolved
|
|
41
|
-
- **Resolution target**: 90 days for most issues
|
|
42
|
-
|
|
43
|
-
**What We’ll Do:**
|
|
44
|
-
1. Acknowledge your report and assign a tracking ID
|
|
45
|
-
2. Assess the vulnerability and determine severity
|
|
46
|
-
3. Develop and test a fix
|
|
47
|
-
4. Coordinate disclosure timeline with you
|
|
48
|
-
5. Release a security update and publish an advisory and CVE
|
|
49
|
-
6. Credit you in our security advisory (if desired)
|
|
50
|
-
|
|
51
|
-
## Disclosure Policy
|
|
52
|
-
|
|
53
|
-
- **Coordinated disclosure**: We’ll work with you on timing
|
|
54
|
-
- **Typical timeline**: 90 days from report to public disclosure
|
|
55
|
-
- **Early disclosure**: If actively exploited
|
|
56
|
-
- **Delayed disclosure**: For complex issues
|
|
57
|
-
|
|
58
|
-
## Scope
|
|
59
|
-
|
|
60
|
-
**In Scope:**
|
|
61
|
-
- **resolve** package (all supported versions)
|
|
62
|
-
- Official examples and documentation
|
|
63
|
-
- Core resolution APIs
|
|
64
|
-
- Dependencies with direct security implications
|
|
65
|
-
|
|
66
|
-
**Out of Scope:**
|
|
67
|
-
- Third-party wrappers or extensions
|
|
68
|
-
- Bundler-specific integrations
|
|
69
|
-
- Social engineering or physical attacks
|
|
70
|
-
- Theoretical vulnerabilities without practical exploitation
|
|
71
|
-
- Issues in non-production files
|
|
72
|
-
|
|
73
|
-
## Security Measures
|
|
74
|
-
|
|
75
|
-
**Our Commitments:**
|
|
76
|
-
- Regular vulnerability scanning via `npm audit`
|
|
77
|
-
- Automated security checks in CI/CD (GitHub Actions)
|
|
78
|
-
- Secure coding practices and mandatory code review
|
|
79
|
-
- Prompt patch releases for critical issues
|
|
80
|
-
|
|
81
|
-
**User Responsibilities:**
|
|
82
|
-
- Keep **resolve** updated
|
|
83
|
-
- Monitor dependency vulnerabilities
|
|
84
|
-
- Follow secure configuration guidelines for module resolution
|
|
85
|
-
|
|
86
|
-
## Legal Safe Harbor
|
|
87
|
-
|
|
88
|
-
**We will NOT:**
|
|
89
|
-
- Initiate legal action
|
|
90
|
-
- Contact law enforcement
|
|
91
|
-
- Suspend or terminate your access
|
|
92
|
-
|
|
93
|
-
**You must:**
|
|
94
|
-
- Only test against your own installations
|
|
95
|
-
- Not access, modify, or delete user data
|
|
96
|
-
- Not degrade service availability
|
|
97
|
-
- Not publicly disclose before coordinated disclosure
|
|
98
|
-
- Act in good faith
|
|
99
|
-
|
|
100
|
-
## Recognition
|
|
101
|
-
|
|
102
|
-
- **Advisory Credits**: Credit in GitHub Security Advisories (unless anonymous)
|
|
103
|
-
|
|
104
|
-
## Security Updates
|
|
105
|
-
|
|
106
|
-
**Stay Informed:**
|
|
107
|
-
- Subscribe to npm updates for **resolve**
|
|
108
|
-
- Enable GitHub Security Advisory notifications
|
|
109
|
-
|
|
110
|
-
**Update Process:**
|
|
111
|
-
- Patch releases (e.g., 1.22.10 → 1.22.11)
|
|
112
|
-
- Out-of-band releases for critical issues
|
|
113
|
-
- Advisories via GitHub Security Advisories
|
|
114
|
-
|
|
115
|
-
## Contact Information
|
|
116
|
-
|
|
117
|
-
- **Security reports**: Security tab of [browserify/resolve](https://github.com/browserify/resolve/security)
|
|
118
|
-
- **General inquiries**: GitHub Discussions or Issues
|
|
119
|
-
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
## Threat Model for resolve (module path resolution library)
|
|
2
|
-
|
|
3
|
-
### 1. Library Overview
|
|
4
|
-
|
|
5
|
-
- **Library Name:** resolve
|
|
6
|
-
- **Brief Description:** Implements Node.js `require.resolve()` algorithm for synchronous and asynchronous file path resolution. Used to locate modules and files in Node.js projects.
|
|
7
|
-
- **Key Public APIs/Functions:** `resolve.sync()` / `resolve/sync`, `resolve()` / `resolve/async`
|
|
8
|
-
|
|
9
|
-
### 2. Define Scope
|
|
10
|
-
|
|
11
|
-
This threat model focuses on the core path resolution algorithm, including filesystem interaction, option handling, and cache management.
|
|
12
|
-
|
|
13
|
-
### 3. Conceptual System Diagram
|
|
14
|
-
|
|
15
|
-
```
|
|
16
|
-
Caller Application → resolve(id, options) → Resolution Algorithm → File System
|
|
17
|
-
│
|
|
18
|
-
└→ Options Handling
|
|
19
|
-
└→ Cache System
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
**Trust Boundaries:**
|
|
23
|
-
- **Input module IDs:** May come from untrusted sources (user input, configuration)
|
|
24
|
-
- **Filesystem access:** The library interacts with the filesystem to resolve paths
|
|
25
|
-
- **Options:** Provided by the caller
|
|
26
|
-
- **Cache:** Used to improve performance, but could be a vector for tampering or information disclosure if not handled securely
|
|
27
|
-
|
|
28
|
-
### 4. Identify Assets
|
|
29
|
-
|
|
30
|
-
- **Integrity of resolution output:** Ensure correct and safe file path matching.
|
|
31
|
-
- **Confidentiality of configuration:** Prevent sensitive path information from being leaked.
|
|
32
|
-
- **Availability/performance for host application:** Prevent crashes or resource exhaustion.
|
|
33
|
-
- **Security of host application:** Prevent path traversal or unintended filesystem access.
|
|
34
|
-
- **Reputation of library:** Maintain trust by avoiding supply chain attacks and vulnerabilities[1][3][4].
|
|
35
|
-
|
|
36
|
-
### 5. Identify Threats
|
|
37
|
-
|
|
38
|
-
| Component / API / Interaction | S | T | R | I | D | E |
|
|
39
|
-
|-----------------------------------------------------|----|----|----|----|----|----|
|
|
40
|
-
| Public API Call (`resolve/async`, `resolve/sync`) | ✓ | ✓ | – | ✓ | – | – |
|
|
41
|
-
| Filesystem Access | – | ✓ | – | ✓ | ✓ | – |
|
|
42
|
-
| Options Handling | ✓ | ✓ | – | ✓ | – | – |
|
|
43
|
-
| Cache System | – | ✓ | – | ✓ | – | – |
|
|
44
|
-
|
|
45
|
-
**Key Threats:**
|
|
46
|
-
- **Spoofing:** Malicious module IDs mimicking legitimate packages, or spoofing configuration options[1].
|
|
47
|
-
- **Tampering:** Caller-provided paths altering resolution order, or cache tampering leading to incorrect results[1][4].
|
|
48
|
-
- **Information Disclosure:** Error messages revealing filesystem structure or sensitive paths[1].
|
|
49
|
-
- **Denial of Service:** Recursive or excessive resolution exhausting filesystem handles or causing application crashes[1].
|
|
50
|
-
- **Path Traversal:** Malicious input allowing access to files outside the intended directory[4].
|
|
51
|
-
|
|
52
|
-
### 6. Mitigation/Countermeasures
|
|
53
|
-
|
|
54
|
-
| Threat Identified | Proposed Mitigation |
|
|
55
|
-
|--------------------------------------------|---------------------|
|
|
56
|
-
| Spoofing (malicious module IDs/config) | Sanitize input IDs; validate against known patterns; restrict `basedir` to app-controlled paths[1][4]. |
|
|
57
|
-
| Tampering (path traversal, cache) | Validate input IDs for directory escapes; secure cache reads/writes; restrict cache to trusted sources[1][4]. |
|
|
58
|
-
| Information Disclosure (error messages) | Generic "not found" errors without internal paths; avoid exposing sensitive configuration in errors[1]. |
|
|
59
|
-
| Denial of Service (resource exhaustion) | Limit recursive resolution depth; implement timeout; monitor for excessive filesystem operations[1]. |
|
|
60
|
-
|
|
61
|
-
### 7. Risk Ranking
|
|
62
|
-
|
|
63
|
-
- **High:** Path traversal via malicious IDs (if not properly mitigated)
|
|
64
|
-
- **Medium:** Cache tampering or spoofing (if cache is not secured)
|
|
65
|
-
- **Low:** Information disclosure in errors (if error handling is generic)
|
|
66
|
-
|
|
67
|
-
### 8. Next Steps & Review
|
|
68
|
-
|
|
69
|
-
1. **Implement input sanitization for module IDs and configuration.**
|
|
70
|
-
2. **Add resolution depth limiting and timeout.**
|
|
71
|
-
3. **Audit cache handling for race conditions and tampering.**
|
|
72
|
-
4. **Regularly review dependencies for vulnerabilities.**
|
|
73
|
-
5. **Keep documentation and threat model up to date.**
|
|
74
|
-
6. **Monitor for new threats as the ecosystem and library evolve[1][3].**
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2012 James Halliday
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# Security
|
|
2
|
-
|
|
3
|
-
Please file a private vulnerability via GitHub, email [@ljharb](https://github.com/ljharb), or see https://tidelift.com/security if you have a potential security vulnerability to report.
|
|
4
|
-
|
|
5
|
-
## Incident Response
|
|
6
|
-
|
|
7
|
-
See our [Incident Response Process](.github/INCIDENT_RESPONSE_PROCESS.md).
|
|
8
|
-
|
|
9
|
-
## Threat Model
|
|
10
|
-
|
|
11
|
-
See [THREAT_MODEL.md](./THREAT_MODEL.md).
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
'use strict';
|
|
4
|
-
|
|
5
|
-
var path = require('path');
|
|
6
|
-
var fs = require('fs');
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
String(process.env.npm_lifecycle_script).slice(0, 8) !== 'resolve '
|
|
10
|
-
&& (
|
|
11
|
-
!process.argv
|
|
12
|
-
|| process.argv.length < 2
|
|
13
|
-
|| (process.argv[1] !== __filename && fs.statSync(process.argv[1]).ino !== fs.statSync(__filename).ino)
|
|
14
|
-
|| (process.env.npm_lifecycle_event !== 'npx' && process.env._ && fs.realpathSync(path.resolve(process.env._)) !== __filename)
|
|
15
|
-
)
|
|
16
|
-
) {
|
|
17
|
-
console.error('Error: `resolve` must be run directly as an executable');
|
|
18
|
-
process.exit(1);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
var supportsPreserveSymlinkFlag = require('supports-preserve-symlinks-flag');
|
|
22
|
-
|
|
23
|
-
var preserveSymlinks = false;
|
|
24
|
-
for (var i = 2; i < process.argv.length; i += 1) {
|
|
25
|
-
if (process.argv[i].slice(0, 2) === '--') {
|
|
26
|
-
if (supportsPreserveSymlinkFlag && process.argv[i] === '--preserve-symlinks') {
|
|
27
|
-
preserveSymlinks = true;
|
|
28
|
-
} else if (process.argv[i].length > 2) {
|
|
29
|
-
console.error('Unknown argument ' + process.argv[i].replace(/[=].*$/, ''));
|
|
30
|
-
process.exit(2);
|
|
31
|
-
}
|
|
32
|
-
process.argv.splice(i, 1);
|
|
33
|
-
i -= 1;
|
|
34
|
-
if (process.argv[i] === '--') { break; } // eslint-disable-line no-restricted-syntax
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
if (process.argv.length < 3) {
|
|
39
|
-
console.error('Error: `resolve` expects a specifier');
|
|
40
|
-
process.exit(2);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
var resolve = require('../');
|
|
44
|
-
|
|
45
|
-
var result = resolve.sync(process.argv[2], {
|
|
46
|
-
basedir: process.cwd(),
|
|
47
|
-
preserveSymlinks: preserveSymlinks
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
console.log(result);
|