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,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "path-parse",
|
|
3
|
-
"version": "1.0.7",
|
|
4
|
-
"description": "Node.js path.parse() ponyfill",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "node test.js"
|
|
8
|
-
},
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "https://github.com/jbgutierrez/path-parse.git"
|
|
12
|
-
},
|
|
13
|
-
"keywords": [
|
|
14
|
-
"path",
|
|
15
|
-
"paths",
|
|
16
|
-
"file",
|
|
17
|
-
"dir",
|
|
18
|
-
"parse",
|
|
19
|
-
"built-in",
|
|
20
|
-
"util",
|
|
21
|
-
"utils",
|
|
22
|
-
"core",
|
|
23
|
-
"ponyfill",
|
|
24
|
-
"polyfill",
|
|
25
|
-
"shim"
|
|
26
|
-
],
|
|
27
|
-
"author": "Javier Blanco <http://jbgutierrez.info>",
|
|
28
|
-
"license": "MIT",
|
|
29
|
-
"bugs": {
|
|
30
|
-
"url": "https://github.com/jbgutierrez/path-parse/issues"
|
|
31
|
-
},
|
|
32
|
-
"homepage": "https://github.com/jbgutierrez/path-parse#readme"
|
|
33
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2014 Mathias Buus
|
|
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
|
|
13
|
-
all 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
|
|
21
|
-
THE SOFTWARE.
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
# pump
|
|
2
|
-
|
|
3
|
-
pump is a small node module that pipes streams together and destroys all of them if one of them closes.
|
|
4
|
-
|
|
5
|
-
```
|
|
6
|
-
npm install pump
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
[](http://travis-ci.org/mafintosh/pump)
|
|
10
|
-
|
|
11
|
-
## What problem does it solve?
|
|
12
|
-
|
|
13
|
-
When using standard `source.pipe(dest)` source will _not_ be destroyed if dest emits close or an error.
|
|
14
|
-
You are also not able to provide a callback to tell when then pipe has finished.
|
|
15
|
-
|
|
16
|
-
pump does these two things for you
|
|
17
|
-
|
|
18
|
-
## Usage
|
|
19
|
-
|
|
20
|
-
Simply pass the streams you want to pipe together to pump and add an optional callback
|
|
21
|
-
|
|
22
|
-
``` js
|
|
23
|
-
var pump = require('pump')
|
|
24
|
-
var fs = require('fs')
|
|
25
|
-
|
|
26
|
-
var source = fs.createReadStream('/dev/random')
|
|
27
|
-
var dest = fs.createWriteStream('/dev/null')
|
|
28
|
-
|
|
29
|
-
pump(source, dest, function(err) {
|
|
30
|
-
console.log('pipe finished', err)
|
|
31
|
-
})
|
|
32
|
-
|
|
33
|
-
setTimeout(function() {
|
|
34
|
-
dest.destroy() // when dest is closed pump will destroy source
|
|
35
|
-
}, 1000)
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
You can use pump to pipe more than two streams together as well
|
|
39
|
-
|
|
40
|
-
``` js
|
|
41
|
-
var transform = someTransformStream()
|
|
42
|
-
|
|
43
|
-
pump(source, transform, anotherTransform, dest, function(err) {
|
|
44
|
-
console.log('pipe finished', err)
|
|
45
|
-
})
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
If `source`, `transform`, `anotherTransform` or `dest` closes all of them will be destroyed.
|
|
49
|
-
|
|
50
|
-
Similarly to `stream.pipe()`, `pump()` returns the last stream passed in, so you can do:
|
|
51
|
-
|
|
52
|
-
```
|
|
53
|
-
return pump(s1, s2) // returns s2
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
Note that `pump` attaches error handlers to the streams to do internal error handling, so if `s2` emits an
|
|
57
|
-
error in the above scenario, it will not trigger a `proccess.on('uncaughtException')` if you do not listen for it.
|
|
58
|
-
|
|
59
|
-
If you want to return a stream that combines *both* s1 and s2 to a single stream use
|
|
60
|
-
[pumpify](https://github.com/mafintosh/pumpify) instead.
|
|
61
|
-
|
|
62
|
-
## License
|
|
63
|
-
|
|
64
|
-
MIT
|
|
65
|
-
|
|
66
|
-
## Related
|
|
67
|
-
|
|
68
|
-
`pump` is part of the [mississippi stream utility collection](https://github.com/maxogden/mississippi) which includes more useful stream modules similar to this one.
|
|
69
|
-
|
|
70
|
-
## For enterprise
|
|
71
|
-
|
|
72
|
-
Available as part of the Tidelift Subscription.
|
|
73
|
-
|
|
74
|
-
The maintainers of pump and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-pump?utm_source=npm-pump&utm_medium=referral&utm_campaign=enterprise)
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
var once = require('once')
|
|
2
|
-
var eos = require('end-of-stream')
|
|
3
|
-
var fs
|
|
4
|
-
|
|
5
|
-
try {
|
|
6
|
-
fs = require('fs') // we only need fs to get the ReadStream and WriteStream prototypes
|
|
7
|
-
} catch (e) {}
|
|
8
|
-
|
|
9
|
-
var noop = function () {}
|
|
10
|
-
var ancient = typeof process === 'undefined' ? false : /^v?\.0/.test(process.version)
|
|
11
|
-
|
|
12
|
-
var isFn = function (fn) {
|
|
13
|
-
return typeof fn === 'function'
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
var isFS = function (stream) {
|
|
17
|
-
if (!ancient) return false // newer node version do not need to care about fs is a special way
|
|
18
|
-
if (!fs) return false // browser
|
|
19
|
-
return (stream instanceof (fs.ReadStream || noop) || stream instanceof (fs.WriteStream || noop)) && isFn(stream.close)
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
var isRequest = function (stream) {
|
|
23
|
-
return stream.setHeader && isFn(stream.abort)
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
var destroyer = function (stream, reading, writing, callback) {
|
|
27
|
-
callback = once(callback)
|
|
28
|
-
|
|
29
|
-
var closed = false
|
|
30
|
-
stream.on('close', function () {
|
|
31
|
-
closed = true
|
|
32
|
-
})
|
|
33
|
-
|
|
34
|
-
eos(stream, {readable: reading, writable: writing}, function (err) {
|
|
35
|
-
if (err) return callback(err)
|
|
36
|
-
closed = true
|
|
37
|
-
callback()
|
|
38
|
-
})
|
|
39
|
-
|
|
40
|
-
var destroyed = false
|
|
41
|
-
return function (err) {
|
|
42
|
-
if (closed) return
|
|
43
|
-
if (destroyed) return
|
|
44
|
-
destroyed = true
|
|
45
|
-
|
|
46
|
-
if (isFS(stream)) return stream.close(noop) // use close for fs streams to avoid fd leaks
|
|
47
|
-
if (isRequest(stream)) return stream.abort() // request.destroy just do .end - .abort is what we want
|
|
48
|
-
|
|
49
|
-
if (isFn(stream.destroy)) return stream.destroy()
|
|
50
|
-
|
|
51
|
-
callback(err || new Error('stream was destroyed'))
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
var call = function (fn) {
|
|
56
|
-
fn()
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
var pipe = function (from, to) {
|
|
60
|
-
return from.pipe(to)
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
var pump = function () {
|
|
64
|
-
var streams = Array.prototype.slice.call(arguments)
|
|
65
|
-
var callback = isFn(streams[streams.length - 1] || noop) && streams.pop() || noop
|
|
66
|
-
|
|
67
|
-
if (Array.isArray(streams[0])) streams = streams[0]
|
|
68
|
-
if (streams.length < 2) throw new Error('pump requires two streams per minimum')
|
|
69
|
-
|
|
70
|
-
var error
|
|
71
|
-
var destroys = streams.map(function (stream, i) {
|
|
72
|
-
var reading = i < streams.length - 1
|
|
73
|
-
var writing = i > 0
|
|
74
|
-
return destroyer(stream, reading, writing, function (err) {
|
|
75
|
-
if (!error) error = err
|
|
76
|
-
if (err) destroys.forEach(call)
|
|
77
|
-
if (reading) return
|
|
78
|
-
destroys.forEach(call)
|
|
79
|
-
callback(error)
|
|
80
|
-
})
|
|
81
|
-
})
|
|
82
|
-
|
|
83
|
-
return streams.reduce(pipe)
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
module.exports = pump
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "pump",
|
|
3
|
-
"version": "3.0.3",
|
|
4
|
-
"repository": "git://github.com/mafintosh/pump.git",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"description": "pipe streams together and close all of them if one of them closes",
|
|
7
|
-
"browser": {
|
|
8
|
-
"fs": false
|
|
9
|
-
},
|
|
10
|
-
"keywords": [
|
|
11
|
-
"streams",
|
|
12
|
-
"pipe",
|
|
13
|
-
"destroy",
|
|
14
|
-
"callback"
|
|
15
|
-
],
|
|
16
|
-
"author": "Mathias Buus Madsen <mathiasbuus@gmail.com>",
|
|
17
|
-
"dependencies": {
|
|
18
|
-
"end-of-stream": "^1.1.0",
|
|
19
|
-
"once": "^1.3.1"
|
|
20
|
-
},
|
|
21
|
-
"scripts": {
|
|
22
|
-
"test": "node test-browser.js && node test-node.js"
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
var stream = require('stream')
|
|
2
|
-
var pump = require('./index')
|
|
3
|
-
|
|
4
|
-
var rs = new stream.Readable()
|
|
5
|
-
var ws = new stream.Writable()
|
|
6
|
-
|
|
7
|
-
rs._read = function (size) {
|
|
8
|
-
this.push(Buffer(size).fill('abc'))
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
ws._write = function (chunk, encoding, cb) {
|
|
12
|
-
setTimeout(function () {
|
|
13
|
-
cb()
|
|
14
|
-
}, 100)
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
var toHex = function () {
|
|
18
|
-
var reverse = new (require('stream').Transform)()
|
|
19
|
-
|
|
20
|
-
reverse._transform = function (chunk, enc, callback) {
|
|
21
|
-
reverse.push(chunk.toString('hex'))
|
|
22
|
-
callback()
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
return reverse
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
var wsClosed = false
|
|
29
|
-
var rsClosed = false
|
|
30
|
-
var callbackCalled = false
|
|
31
|
-
|
|
32
|
-
var check = function () {
|
|
33
|
-
if (wsClosed && rsClosed && callbackCalled) {
|
|
34
|
-
console.log('test-browser.js passes')
|
|
35
|
-
clearTimeout(timeout)
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
ws.on('finish', function () {
|
|
40
|
-
wsClosed = true
|
|
41
|
-
check()
|
|
42
|
-
})
|
|
43
|
-
|
|
44
|
-
rs.on('end', function () {
|
|
45
|
-
rsClosed = true
|
|
46
|
-
check()
|
|
47
|
-
})
|
|
48
|
-
|
|
49
|
-
var res = pump(rs, toHex(), toHex(), toHex(), ws, function () {
|
|
50
|
-
callbackCalled = true
|
|
51
|
-
check()
|
|
52
|
-
})
|
|
53
|
-
|
|
54
|
-
if (res !== ws) {
|
|
55
|
-
throw new Error('should return last stream')
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
setTimeout(function () {
|
|
59
|
-
rs.push(null)
|
|
60
|
-
rs.emit('close')
|
|
61
|
-
}, 1000)
|
|
62
|
-
|
|
63
|
-
var timeout = setTimeout(function () {
|
|
64
|
-
check()
|
|
65
|
-
throw new Error('timeout')
|
|
66
|
-
}, 5000)
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
var pump = require('./index')
|
|
2
|
-
|
|
3
|
-
var rs = require('fs').createReadStream('/dev/random')
|
|
4
|
-
var ws = require('fs').createWriteStream('/dev/null')
|
|
5
|
-
|
|
6
|
-
var toHex = function () {
|
|
7
|
-
var reverse = new (require('stream').Transform)()
|
|
8
|
-
|
|
9
|
-
reverse._transform = function (chunk, enc, callback) {
|
|
10
|
-
reverse.push(chunk.toString('hex'))
|
|
11
|
-
callback()
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
return reverse
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
var wsClosed = false
|
|
18
|
-
var rsClosed = false
|
|
19
|
-
var callbackCalled = false
|
|
20
|
-
|
|
21
|
-
var check = function () {
|
|
22
|
-
if (wsClosed && rsClosed && callbackCalled) {
|
|
23
|
-
console.log('test-node.js passes')
|
|
24
|
-
clearTimeout(timeout)
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
ws.on('close', function () {
|
|
29
|
-
wsClosed = true
|
|
30
|
-
check()
|
|
31
|
-
})
|
|
32
|
-
|
|
33
|
-
rs.on('close', function () {
|
|
34
|
-
rsClosed = true
|
|
35
|
-
check()
|
|
36
|
-
})
|
|
37
|
-
|
|
38
|
-
var res = pump(rs, toHex(), toHex(), toHex(), ws, function () {
|
|
39
|
-
callbackCalled = true
|
|
40
|
-
check()
|
|
41
|
-
})
|
|
42
|
-
|
|
43
|
-
if (res !== ws) {
|
|
44
|
-
throw new Error('should return last stream')
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
setTimeout(function () {
|
|
48
|
-
rs.destroy()
|
|
49
|
-
}, 1000)
|
|
50
|
-
|
|
51
|
-
var timeout = setTimeout(function () {
|
|
52
|
-
throw new Error('timeout')
|
|
53
|
-
}, 5000)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
test
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
sudo: false
|
|
2
|
-
language: node_js
|
|
3
|
-
node_js:
|
|
4
|
-
- "0.10"
|
|
5
|
-
- "0.12"
|
|
6
|
-
env:
|
|
7
|
-
global:
|
|
8
|
-
- REMOVE_DEPS=""
|
|
9
|
-
matrix:
|
|
10
|
-
- "CUSTOM_DEPS=coffee-script@~1.3"
|
|
11
|
-
- "CUSTOM_DEPS=coffee-script@~1.5"
|
|
12
|
-
- "CUSTOM_DEPS=coffee-script@~1.7"
|
|
13
|
-
- "CUSTOM_DEPS=coffee-script@latest"
|
|
14
|
-
- "CUSTOM_DEPS=iced-coffee-script@1.6.3-j"
|
|
15
|
-
- "CUSTOM_DEPS=iced-coffee-script@latest"
|
|
16
|
-
- "CUSTOM_DEPS=LiveScript@1.3.1 REMOVE_DEPS=livescript"
|
|
17
|
-
- "CUSTOM_DEPS=typescript-require REMOVE_DEPS=typescript-register"
|
|
18
|
-
matrix:
|
|
19
|
-
fast_finish: true
|
|
20
|
-
before_install:
|
|
21
|
-
- "npm install -g npm" # needs the newest version of npm
|
|
22
|
-
before_script:
|
|
23
|
-
- "[ \"${REMOVE_DEPS}\" == \"\" ] || npm rm $REMOVE_DEPS"
|
|
24
|
-
- "npm install $CUSTOM_DEPS" # install a specific version of dependencies
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
v0.6.2:
|
|
2
|
-
date: 2015-07-22
|
|
3
|
-
changes:
|
|
4
|
-
- Return `undefined` when an unknown extension is provided to prepare and
|
|
5
|
-
the `nothrow` option is specified.
|
|
6
|
-
v0.6.1:
|
|
7
|
-
date: 2015-05-22
|
|
8
|
-
changes:
|
|
9
|
-
- Add option for not throwing.
|
|
10
|
-
v0.6.0:
|
|
11
|
-
date: 2015-05-20
|
|
12
|
-
changes:
|
|
13
|
-
- Include module name when prepare is successful.
|
|
14
|
-
v0.5.0:
|
|
15
|
-
date: 2015-05-20
|
|
16
|
-
changes:
|
|
17
|
-
- Overhaul to support interpret 0.6.0.
|
|
18
|
-
v0.3.0:
|
|
19
|
-
date: 2015-01-10
|
|
20
|
-
changes:
|
|
21
|
-
- Breaking: `load` method removed.
|
|
22
|
-
- Improved extension recognition.
|
|
23
|
-
- No longer fails upon dots in filenames.
|
|
24
|
-
- Support confuration objects.
|
|
25
|
-
- Support and test ES6.
|
|
26
|
-
- Support legacy module loading.
|
|
27
|
-
v0.2.2:
|
|
28
|
-
date: 2014-12-17
|
|
29
|
-
changes:
|
|
30
|
-
- Expose interpret.
|
|
31
|
-
v0.2.0:
|
|
32
|
-
date: 2014-04-20
|
|
33
|
-
changes:
|
|
34
|
-
- Simplify loading of coffee-script and iced-coffee-script.
|
|
35
|
-
v0.1.0:
|
|
36
|
-
date: 2014-04-20
|
|
37
|
-
changes:
|
|
38
|
-
- Initial public release.
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2015 Tyler Kellen
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person
|
|
4
|
-
obtaining a copy of this software and associated documentation
|
|
5
|
-
files (the "Software"), to deal in the Software without
|
|
6
|
-
restriction, including without limitation the rights to use,
|
|
7
|
-
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
-
copies of the Software, and to permit persons to whom the
|
|
9
|
-
Software is furnished to do so, subject to the following
|
|
10
|
-
conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be
|
|
13
|
-
included in all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
16
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
17
|
-
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
18
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
19
|
-
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
20
|
-
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
21
|
-
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
22
|
-
OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
# rechoir [](http://travis-ci.org/tkellen/js-rechoir)
|
|
2
|
-
> Require any supported file as a node module.
|
|
3
|
-
|
|
4
|
-
[](https://nodei.co/npm/rechoir/)
|
|
5
|
-
|
|
6
|
-
## What is it?
|
|
7
|
-
This module, in conjunction with [interpret]-like objects can register any file type the npm ecosystem has a module loader for. This library is a dependency of [Liftoff].
|
|
8
|
-
|
|
9
|
-
## API
|
|
10
|
-
|
|
11
|
-
### prepare(config, filepath, requireFrom)
|
|
12
|
-
Look for a module loader associated with the provided file and attempt require it. If necessary, run any setup required to inject it into [require.extensions](http://nodejs.org/api/globals.html#globals_require_extensions).
|
|
13
|
-
|
|
14
|
-
`config` An [interpret]-like configuration object.
|
|
15
|
-
|
|
16
|
-
`filepath` A file whose type you'd like to register a module loader for.
|
|
17
|
-
|
|
18
|
-
`requireFrom` An optional path to start searching for the module required to load the requested file. Defaults to the directory of `filepath`.
|
|
19
|
-
|
|
20
|
-
If calling this method is successful (aka: it doesn't throw), you can now require files of the type you requested natively.
|
|
21
|
-
|
|
22
|
-
An error with a `failures` property will be thrown if the module loader(s) configured for a given extension cannot be registered.
|
|
23
|
-
|
|
24
|
-
If a loader is already registered, this will simply return `true`.
|
|
25
|
-
|
|
26
|
-
**Note:** While rechoir will automatically load and register transpilers like `coffee-script`, you must provide a local installation. The transpilers are **not** bundled with this module.
|
|
27
|
-
|
|
28
|
-
#### Usage
|
|
29
|
-
```js
|
|
30
|
-
const config = require('interpret').extensions;
|
|
31
|
-
const rechoir = require('rechoir');
|
|
32
|
-
rechoir.prepare(config, './test/fixtures/test.coffee');
|
|
33
|
-
rechoir.prepare(config, './test/fixtures/test.csv');
|
|
34
|
-
rechoir.prepare(config, './test/fixtures/test.toml');
|
|
35
|
-
|
|
36
|
-
console.log(require('./test/fixtures/test.coffee'));
|
|
37
|
-
console.log(require('./test/fixtures/test.csv'));
|
|
38
|
-
console.log(require('./test/fixtures/test.toml'));
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
[interpret]: http://github.com/tkellen/js-interpret
|
|
42
|
-
[Liftoff]: http://github.com/tkellen/js-liftoff
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
|
|
3
|
-
const extension = require('./lib/extension');
|
|
4
|
-
const normalize = require('./lib/normalize');
|
|
5
|
-
const register = require('./lib/register');
|
|
6
|
-
|
|
7
|
-
exports.prepare = function (extensions, filepath, cwd, nothrow) {
|
|
8
|
-
var option, attempt;
|
|
9
|
-
var attempts = [];
|
|
10
|
-
var err;
|
|
11
|
-
var onlyErrors = false;
|
|
12
|
-
var ext = extension(filepath);
|
|
13
|
-
if (Object.keys(require.extensions).indexOf(ext) !== -1) {
|
|
14
|
-
return true;
|
|
15
|
-
}
|
|
16
|
-
var config = normalize(extensions[ext]);
|
|
17
|
-
if (!config) {
|
|
18
|
-
if (nothrow) {
|
|
19
|
-
return;
|
|
20
|
-
} else {
|
|
21
|
-
throw new Error('No module loader found for "'+ext+'".');
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
if (!cwd) {
|
|
25
|
-
cwd = path.dirname(path.resolve(filepath));
|
|
26
|
-
}
|
|
27
|
-
if (!Array.isArray(config)) {
|
|
28
|
-
config = [config];
|
|
29
|
-
}
|
|
30
|
-
for (var i in config) {
|
|
31
|
-
option = config[i];
|
|
32
|
-
attempt = register(cwd, option.module, option.register);
|
|
33
|
-
error = (attempt instanceof Error) ? attempt : null;
|
|
34
|
-
if (error) {
|
|
35
|
-
attempt = null;
|
|
36
|
-
}
|
|
37
|
-
attempts.push({
|
|
38
|
-
moduleName: option.module,
|
|
39
|
-
module: attempt,
|
|
40
|
-
error: error
|
|
41
|
-
});
|
|
42
|
-
if (!error) {
|
|
43
|
-
onlyErrors = false;
|
|
44
|
-
break;
|
|
45
|
-
} else {
|
|
46
|
-
onlyErrors = true;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
if (onlyErrors) {
|
|
50
|
-
err = new Error('Unable to use specified module loaders for "'+ext+'".');
|
|
51
|
-
err.failures = attempts;
|
|
52
|
-
if (nothrow) {
|
|
53
|
-
return err;
|
|
54
|
-
} else {
|
|
55
|
-
throw err;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
return attempts;
|
|
59
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
function normalizer (config) {
|
|
2
|
-
if (typeof config === 'string') {
|
|
3
|
-
return {
|
|
4
|
-
module: config
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
return config;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
module.exports = function (config) {
|
|
11
|
-
if (Array.isArray(config)) {
|
|
12
|
-
return config.map(normalizer);
|
|
13
|
-
}
|
|
14
|
-
return normalizer(config);
|
|
15
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
const resolve = require('resolve');
|
|
3
|
-
|
|
4
|
-
module.exports = function (cwd, moduleName, register) {
|
|
5
|
-
try {
|
|
6
|
-
var modulePath = resolve.sync(moduleName, {basedir: cwd});
|
|
7
|
-
var result = require(modulePath);
|
|
8
|
-
if (typeof register === 'function') {
|
|
9
|
-
register(result);
|
|
10
|
-
}
|
|
11
|
-
} catch (e) {
|
|
12
|
-
result = e;
|
|
13
|
-
}
|
|
14
|
-
return result;
|
|
15
|
-
};
|