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,87 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "function-bind",
|
|
3
|
-
"version": "1.1.2",
|
|
4
|
-
"description": "Implementation of Function.prototype.bind",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"function",
|
|
7
|
-
"bind",
|
|
8
|
-
"shim",
|
|
9
|
-
"es5"
|
|
10
|
-
],
|
|
11
|
-
"author": "Raynos <raynos2@gmail.com>",
|
|
12
|
-
"repository": {
|
|
13
|
-
"type": "git",
|
|
14
|
-
"url": "https://github.com/Raynos/function-bind.git"
|
|
15
|
-
},
|
|
16
|
-
"funding": {
|
|
17
|
-
"url": "https://github.com/sponsors/ljharb"
|
|
18
|
-
},
|
|
19
|
-
"main": "index",
|
|
20
|
-
"homepage": "https://github.com/Raynos/function-bind",
|
|
21
|
-
"contributors": [
|
|
22
|
-
{
|
|
23
|
-
"name": "Raynos"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"name": "Jordan Harband",
|
|
27
|
-
"url": "https://github.com/ljharb"
|
|
28
|
-
}
|
|
29
|
-
],
|
|
30
|
-
"bugs": {
|
|
31
|
-
"url": "https://github.com/Raynos/function-bind/issues",
|
|
32
|
-
"email": "raynos2@gmail.com"
|
|
33
|
-
},
|
|
34
|
-
"devDependencies": {
|
|
35
|
-
"@ljharb/eslint-config": "^21.1.0",
|
|
36
|
-
"aud": "^2.0.3",
|
|
37
|
-
"auto-changelog": "^2.4.0",
|
|
38
|
-
"eslint": "=8.8.0",
|
|
39
|
-
"in-publish": "^2.0.1",
|
|
40
|
-
"npmignore": "^0.3.0",
|
|
41
|
-
"nyc": "^10.3.2",
|
|
42
|
-
"safe-publish-latest": "^2.0.0",
|
|
43
|
-
"tape": "^5.7.1"
|
|
44
|
-
},
|
|
45
|
-
"license": "MIT",
|
|
46
|
-
"scripts": {
|
|
47
|
-
"prepublishOnly": "safe-publish-latest",
|
|
48
|
-
"prepublish": "not-in-publish || npm run prepublishOnly",
|
|
49
|
-
"prepack": "npmignore --auto --commentLines=autogenerated",
|
|
50
|
-
"pretest": "npm run lint",
|
|
51
|
-
"test": "npm run tests-only",
|
|
52
|
-
"posttest": "aud --production",
|
|
53
|
-
"tests-only": "nyc tape 'test/**/*.js'",
|
|
54
|
-
"lint": "eslint --ext=js,mjs .",
|
|
55
|
-
"version": "auto-changelog && git add CHANGELOG.md",
|
|
56
|
-
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
|
57
|
-
},
|
|
58
|
-
"testling": {
|
|
59
|
-
"files": "test/index.js",
|
|
60
|
-
"browsers": [
|
|
61
|
-
"ie/8..latest",
|
|
62
|
-
"firefox/16..latest",
|
|
63
|
-
"firefox/nightly",
|
|
64
|
-
"chrome/22..latest",
|
|
65
|
-
"chrome/canary",
|
|
66
|
-
"opera/12..latest",
|
|
67
|
-
"opera/next",
|
|
68
|
-
"safari/5.1..latest",
|
|
69
|
-
"ipad/6.0..latest",
|
|
70
|
-
"iphone/6.0..latest",
|
|
71
|
-
"android-browser/4.2..latest"
|
|
72
|
-
]
|
|
73
|
-
},
|
|
74
|
-
"auto-changelog": {
|
|
75
|
-
"output": "CHANGELOG.md",
|
|
76
|
-
"template": "keepachangelog",
|
|
77
|
-
"unreleased": false,
|
|
78
|
-
"commitLimit": false,
|
|
79
|
-
"backfillLimit": false,
|
|
80
|
-
"hideCredit": true
|
|
81
|
-
},
|
|
82
|
-
"publishConfig": {
|
|
83
|
-
"ignore": [
|
|
84
|
-
".github/workflows"
|
|
85
|
-
]
|
|
86
|
-
}
|
|
87
|
-
}
|
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
// jscs:disable requireUseStrict
|
|
2
|
-
|
|
3
|
-
var test = require('tape');
|
|
4
|
-
|
|
5
|
-
var functionBind = require('../implementation');
|
|
6
|
-
var getCurrentContext = function () { return this; };
|
|
7
|
-
|
|
8
|
-
test('functionBind is a function', function (t) {
|
|
9
|
-
t.equal(typeof functionBind, 'function');
|
|
10
|
-
t.end();
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
test('non-functions', function (t) {
|
|
14
|
-
var nonFunctions = [true, false, [], {}, 42, 'foo', NaN, /a/g];
|
|
15
|
-
t.plan(nonFunctions.length);
|
|
16
|
-
for (var i = 0; i < nonFunctions.length; ++i) {
|
|
17
|
-
try { functionBind.call(nonFunctions[i]); } catch (ex) {
|
|
18
|
-
t.ok(ex instanceof TypeError, 'throws when given ' + String(nonFunctions[i]));
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
t.end();
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
test('without a context', function (t) {
|
|
25
|
-
t.test('binds properly', function (st) {
|
|
26
|
-
var args, context;
|
|
27
|
-
var namespace = {
|
|
28
|
-
func: functionBind.call(function () {
|
|
29
|
-
args = Array.prototype.slice.call(arguments);
|
|
30
|
-
context = this;
|
|
31
|
-
})
|
|
32
|
-
};
|
|
33
|
-
namespace.func(1, 2, 3);
|
|
34
|
-
st.deepEqual(args, [1, 2, 3]);
|
|
35
|
-
st.equal(context, getCurrentContext.call());
|
|
36
|
-
st.end();
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
t.test('binds properly, and still supplies bound arguments', function (st) {
|
|
40
|
-
var args, context;
|
|
41
|
-
var namespace = {
|
|
42
|
-
func: functionBind.call(function () {
|
|
43
|
-
args = Array.prototype.slice.call(arguments);
|
|
44
|
-
context = this;
|
|
45
|
-
}, undefined, 1, 2, 3)
|
|
46
|
-
};
|
|
47
|
-
namespace.func(4, 5, 6);
|
|
48
|
-
st.deepEqual(args, [1, 2, 3, 4, 5, 6]);
|
|
49
|
-
st.equal(context, getCurrentContext.call());
|
|
50
|
-
st.end();
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
t.test('returns properly', function (st) {
|
|
54
|
-
var args;
|
|
55
|
-
var namespace = {
|
|
56
|
-
func: functionBind.call(function () {
|
|
57
|
-
args = Array.prototype.slice.call(arguments);
|
|
58
|
-
return this;
|
|
59
|
-
}, null)
|
|
60
|
-
};
|
|
61
|
-
var context = namespace.func(1, 2, 3);
|
|
62
|
-
st.equal(context, getCurrentContext.call(), 'returned context is namespaced context');
|
|
63
|
-
st.deepEqual(args, [1, 2, 3], 'passed arguments are correct');
|
|
64
|
-
st.end();
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
t.test('returns properly with bound arguments', function (st) {
|
|
68
|
-
var args;
|
|
69
|
-
var namespace = {
|
|
70
|
-
func: functionBind.call(function () {
|
|
71
|
-
args = Array.prototype.slice.call(arguments);
|
|
72
|
-
return this;
|
|
73
|
-
}, null, 1, 2, 3)
|
|
74
|
-
};
|
|
75
|
-
var context = namespace.func(4, 5, 6);
|
|
76
|
-
st.equal(context, getCurrentContext.call(), 'returned context is namespaced context');
|
|
77
|
-
st.deepEqual(args, [1, 2, 3, 4, 5, 6], 'passed arguments are correct');
|
|
78
|
-
st.end();
|
|
79
|
-
});
|
|
80
|
-
|
|
81
|
-
t.test('called as a constructor', function (st) {
|
|
82
|
-
var thunkify = function (value) {
|
|
83
|
-
return function () { return value; };
|
|
84
|
-
};
|
|
85
|
-
st.test('returns object value', function (sst) {
|
|
86
|
-
var expectedReturnValue = [1, 2, 3];
|
|
87
|
-
var Constructor = functionBind.call(thunkify(expectedReturnValue), null);
|
|
88
|
-
var result = new Constructor();
|
|
89
|
-
sst.equal(result, expectedReturnValue);
|
|
90
|
-
sst.end();
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
st.test('does not return primitive value', function (sst) {
|
|
94
|
-
var Constructor = functionBind.call(thunkify(42), null);
|
|
95
|
-
var result = new Constructor();
|
|
96
|
-
sst.notEqual(result, 42);
|
|
97
|
-
sst.end();
|
|
98
|
-
});
|
|
99
|
-
|
|
100
|
-
st.test('object from bound constructor is instance of original and bound constructor', function (sst) {
|
|
101
|
-
var A = function (x) {
|
|
102
|
-
this.name = x || 'A';
|
|
103
|
-
};
|
|
104
|
-
var B = functionBind.call(A, null, 'B');
|
|
105
|
-
|
|
106
|
-
var result = new B();
|
|
107
|
-
sst.ok(result instanceof B, 'result is instance of bound constructor');
|
|
108
|
-
sst.ok(result instanceof A, 'result is instance of original constructor');
|
|
109
|
-
sst.end();
|
|
110
|
-
});
|
|
111
|
-
|
|
112
|
-
st.end();
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
t.end();
|
|
116
|
-
});
|
|
117
|
-
|
|
118
|
-
test('with a context', function (t) {
|
|
119
|
-
t.test('with no bound arguments', function (st) {
|
|
120
|
-
var args, context;
|
|
121
|
-
var boundContext = {};
|
|
122
|
-
var namespace = {
|
|
123
|
-
func: functionBind.call(function () {
|
|
124
|
-
args = Array.prototype.slice.call(arguments);
|
|
125
|
-
context = this;
|
|
126
|
-
}, boundContext)
|
|
127
|
-
};
|
|
128
|
-
namespace.func(1, 2, 3);
|
|
129
|
-
st.equal(context, boundContext, 'binds a context properly');
|
|
130
|
-
st.deepEqual(args, [1, 2, 3], 'supplies passed arguments');
|
|
131
|
-
st.end();
|
|
132
|
-
});
|
|
133
|
-
|
|
134
|
-
t.test('with bound arguments', function (st) {
|
|
135
|
-
var args, context;
|
|
136
|
-
var boundContext = {};
|
|
137
|
-
var namespace = {
|
|
138
|
-
func: functionBind.call(function () {
|
|
139
|
-
args = Array.prototype.slice.call(arguments);
|
|
140
|
-
context = this;
|
|
141
|
-
}, boundContext, 1, 2, 3)
|
|
142
|
-
};
|
|
143
|
-
namespace.func(4, 5, 6);
|
|
144
|
-
st.equal(context, boundContext, 'binds a context properly');
|
|
145
|
-
st.deepEqual(args, [1, 2, 3, 4, 5, 6], 'supplies bound and passed arguments');
|
|
146
|
-
st.end();
|
|
147
|
-
});
|
|
148
|
-
|
|
149
|
-
t.test('returns properly', function (st) {
|
|
150
|
-
var boundContext = {};
|
|
151
|
-
var args;
|
|
152
|
-
var namespace = {
|
|
153
|
-
func: functionBind.call(function () {
|
|
154
|
-
args = Array.prototype.slice.call(arguments);
|
|
155
|
-
return this;
|
|
156
|
-
}, boundContext)
|
|
157
|
-
};
|
|
158
|
-
var context = namespace.func(1, 2, 3);
|
|
159
|
-
st.equal(context, boundContext, 'returned context is bound context');
|
|
160
|
-
st.notEqual(context, getCurrentContext.call(), 'returned context is not lexical context');
|
|
161
|
-
st.deepEqual(args, [1, 2, 3], 'passed arguments are correct');
|
|
162
|
-
st.end();
|
|
163
|
-
});
|
|
164
|
-
|
|
165
|
-
t.test('returns properly with bound arguments', function (st) {
|
|
166
|
-
var boundContext = {};
|
|
167
|
-
var args;
|
|
168
|
-
var namespace = {
|
|
169
|
-
func: functionBind.call(function () {
|
|
170
|
-
args = Array.prototype.slice.call(arguments);
|
|
171
|
-
return this;
|
|
172
|
-
}, boundContext, 1, 2, 3)
|
|
173
|
-
};
|
|
174
|
-
var context = namespace.func(4, 5, 6);
|
|
175
|
-
st.equal(context, boundContext, 'returned context is bound context');
|
|
176
|
-
st.notEqual(context, getCurrentContext.call(), 'returned context is not lexical context');
|
|
177
|
-
st.deepEqual(args, [1, 2, 3, 4, 5, 6], 'passed arguments are correct');
|
|
178
|
-
st.end();
|
|
179
|
-
});
|
|
180
|
-
|
|
181
|
-
t.test('passes the correct arguments when called as a constructor', function (st) {
|
|
182
|
-
var expected = { name: 'Correct' };
|
|
183
|
-
var namespace = {
|
|
184
|
-
Func: functionBind.call(function (arg) {
|
|
185
|
-
return arg;
|
|
186
|
-
}, { name: 'Incorrect' })
|
|
187
|
-
};
|
|
188
|
-
var returned = new namespace.Func(expected);
|
|
189
|
-
st.equal(returned, expected, 'returns the right arg when called as a constructor');
|
|
190
|
-
st.end();
|
|
191
|
-
});
|
|
192
|
-
|
|
193
|
-
t.test('has the new instance\'s context when called as a constructor', function (st) {
|
|
194
|
-
var actualContext;
|
|
195
|
-
var expectedContext = { foo: 'bar' };
|
|
196
|
-
var namespace = {
|
|
197
|
-
Func: functionBind.call(function () {
|
|
198
|
-
actualContext = this;
|
|
199
|
-
}, expectedContext)
|
|
200
|
-
};
|
|
201
|
-
var result = new namespace.Func();
|
|
202
|
-
st.equal(result instanceof namespace.Func, true);
|
|
203
|
-
st.notEqual(actualContext, expectedContext);
|
|
204
|
-
st.end();
|
|
205
|
-
});
|
|
206
|
-
|
|
207
|
-
t.end();
|
|
208
|
-
});
|
|
209
|
-
|
|
210
|
-
test('bound function length', function (t) {
|
|
211
|
-
t.test('sets a correct length without thisArg', function (st) {
|
|
212
|
-
var subject = functionBind.call(function (a, b, c) { return a + b + c; });
|
|
213
|
-
st.equal(subject.length, 3);
|
|
214
|
-
st.equal(subject(1, 2, 3), 6);
|
|
215
|
-
st.end();
|
|
216
|
-
});
|
|
217
|
-
|
|
218
|
-
t.test('sets a correct length with thisArg', function (st) {
|
|
219
|
-
var subject = functionBind.call(function (a, b, c) { return a + b + c; }, {});
|
|
220
|
-
st.equal(subject.length, 3);
|
|
221
|
-
st.equal(subject(1, 2, 3), 6);
|
|
222
|
-
st.end();
|
|
223
|
-
});
|
|
224
|
-
|
|
225
|
-
t.test('sets a correct length without thisArg and first argument', function (st) {
|
|
226
|
-
var subject = functionBind.call(function (a, b, c) { return a + b + c; }, undefined, 1);
|
|
227
|
-
st.equal(subject.length, 2);
|
|
228
|
-
st.equal(subject(2, 3), 6);
|
|
229
|
-
st.end();
|
|
230
|
-
});
|
|
231
|
-
|
|
232
|
-
t.test('sets a correct length with thisArg and first argument', function (st) {
|
|
233
|
-
var subject = functionBind.call(function (a, b, c) { return a + b + c; }, {}, 1);
|
|
234
|
-
st.equal(subject.length, 2);
|
|
235
|
-
st.equal(subject(2, 3), 6);
|
|
236
|
-
st.end();
|
|
237
|
-
});
|
|
238
|
-
|
|
239
|
-
t.test('sets a correct length without thisArg and too many arguments', function (st) {
|
|
240
|
-
var subject = functionBind.call(function (a, b, c) { return a + b + c; }, undefined, 1, 2, 3, 4);
|
|
241
|
-
st.equal(subject.length, 0);
|
|
242
|
-
st.equal(subject(), 6);
|
|
243
|
-
st.end();
|
|
244
|
-
});
|
|
245
|
-
|
|
246
|
-
t.test('sets a correct length with thisArg and too many arguments', function (st) {
|
|
247
|
-
var subject = functionBind.call(function (a, b, c) { return a + b + c; }, {}, 1, 2, 3, 4);
|
|
248
|
-
st.equal(subject.length, 0);
|
|
249
|
-
st.equal(subject(), 6);
|
|
250
|
-
st.end();
|
|
251
|
-
});
|
|
252
|
-
});
|
|
@@ -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/hasown
|
|
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 a single custom sponsorship URL
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
-
|
|
8
|
-
## [v2.0.2](https://github.com/inspect-js/hasOwn/compare/v2.0.1...v2.0.2) - 2024-03-10
|
|
9
|
-
|
|
10
|
-
### Commits
|
|
11
|
-
|
|
12
|
-
- [types] use shared config [`68e9d4d`](https://github.com/inspect-js/hasOwn/commit/68e9d4dab6facb4f05f02c6baea94a3f2a4e44b2)
|
|
13
|
-
- [actions] remove redundant finisher; use reusable workflow [`241a68e`](https://github.com/inspect-js/hasOwn/commit/241a68e13ea1fe52bec5ba7f74144befc31fae7b)
|
|
14
|
-
- [Tests] increase coverage [`4125c0d`](https://github.com/inspect-js/hasOwn/commit/4125c0d6121db56ae30e38346dfb0c000b04f0a7)
|
|
15
|
-
- [Tests] skip `npm ls` in old node due to TS [`01b9282`](https://github.com/inspect-js/hasOwn/commit/01b92822f9971dea031eafdd14767df41d61c202)
|
|
16
|
-
- [types] improve predicate type [`d340f85`](https://github.com/inspect-js/hasOwn/commit/d340f85ce02e286ef61096cbbb6697081d40a12b)
|
|
17
|
-
- [Dev Deps] update `tape` [`70089fc`](https://github.com/inspect-js/hasOwn/commit/70089fcf544e64acc024cbe60f5a9b00acad86de)
|
|
18
|
-
- [Tests] use `@arethetypeswrong/cli` [`50b272c`](https://github.com/inspect-js/hasOwn/commit/50b272c829f40d053a3dd91c9796e0ac0b2af084)
|
|
19
|
-
|
|
20
|
-
## [v2.0.1](https://github.com/inspect-js/hasOwn/compare/v2.0.0...v2.0.1) - 2024-02-10
|
|
21
|
-
|
|
22
|
-
### Commits
|
|
23
|
-
|
|
24
|
-
- [types] use a handwritten d.ts file; fix exported type [`012b989`](https://github.com/inspect-js/hasOwn/commit/012b9898ccf91dc441e2ebf594ff70270a5fda58)
|
|
25
|
-
- [Dev Deps] update `@types/function-bind`, `@types/mock-property`, `@types/tape`, `aud`, `mock-property`, `npmignore`, `tape`, `typescript` [`977a56f`](https://github.com/inspect-js/hasOwn/commit/977a56f51a1f8b20566f3c471612137894644025)
|
|
26
|
-
- [meta] add `sideEffects` flag [`3a60b7b`](https://github.com/inspect-js/hasOwn/commit/3a60b7bf42fccd8c605e5f145a6fcc83b13cb46f)
|
|
27
|
-
|
|
28
|
-
## [v2.0.0](https://github.com/inspect-js/hasOwn/compare/v1.0.1...v2.0.0) - 2023-10-19
|
|
29
|
-
|
|
30
|
-
### Commits
|
|
31
|
-
|
|
32
|
-
- revamped implementation, tests, readme [`72bf8b3`](https://github.com/inspect-js/hasOwn/commit/72bf8b338e77a638f0a290c63ffaed18339c36b4)
|
|
33
|
-
- [meta] revamp package.json [`079775f`](https://github.com/inspect-js/hasOwn/commit/079775fb1ec72c1c6334069593617a0be3847458)
|
|
34
|
-
- Only apps should have lockfiles [`6640e23`](https://github.com/inspect-js/hasOwn/commit/6640e233d1bb8b65260880f90787637db157d215)
|
|
35
|
-
|
|
36
|
-
## v1.0.1 - 2023-10-10
|
|
37
|
-
|
|
38
|
-
### Commits
|
|
39
|
-
|
|
40
|
-
- Initial commit [`8dbfde6`](https://github.com/inspect-js/hasOwn/commit/8dbfde6e8fb0ebb076fab38d138f2984eb340a62)
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Jordan Harband and contributors
|
|
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,40 +0,0 @@
|
|
|
1
|
-
# hasown <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
|
|
2
|
-
|
|
3
|
-
[![github actions][actions-image]][actions-url]
|
|
4
|
-
[![coverage][codecov-image]][codecov-url]
|
|
5
|
-
[![License][license-image]][license-url]
|
|
6
|
-
[![Downloads][downloads-image]][downloads-url]
|
|
7
|
-
|
|
8
|
-
[![npm badge][npm-badge-png]][package-url]
|
|
9
|
-
|
|
10
|
-
A robust, ES3 compatible, "has own property" predicate.
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```js
|
|
15
|
-
const assert = require('assert');
|
|
16
|
-
const hasOwn = require('hasown');
|
|
17
|
-
|
|
18
|
-
assert.equal(hasOwn({}, 'toString'), false);
|
|
19
|
-
assert.equal(hasOwn([], 'length'), true);
|
|
20
|
-
assert.equal(hasOwn({ a: 42 }, 'a'), true);
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## Tests
|
|
24
|
-
Simply clone the repo, `npm install`, and run `npm test`
|
|
25
|
-
|
|
26
|
-
[package-url]: https://npmjs.org/package/hasown
|
|
27
|
-
[npm-version-svg]: https://versionbadg.es/inspect-js/hasown.svg
|
|
28
|
-
[deps-svg]: https://david-dm.org/inspect-js/hasOwn.svg
|
|
29
|
-
[deps-url]: https://david-dm.org/inspect-js/hasOwn
|
|
30
|
-
[dev-deps-svg]: https://david-dm.org/inspect-js/hasOwn/dev-status.svg
|
|
31
|
-
[dev-deps-url]: https://david-dm.org/inspect-js/hasOwn#info=devDependencies
|
|
32
|
-
[npm-badge-png]: https://nodei.co/npm/hasown.png?downloads=true&stars=true
|
|
33
|
-
[license-image]: https://img.shields.io/npm/l/hasown.svg
|
|
34
|
-
[license-url]: LICENSE
|
|
35
|
-
[downloads-image]: https://img.shields.io/npm/dm/hasown.svg
|
|
36
|
-
[downloads-url]: https://npm-stat.com/charts.html?package=hasown
|
|
37
|
-
[codecov-image]: https://codecov.io/gh/inspect-js/hasOwn/branch/main/graphs/badge.svg
|
|
38
|
-
[codecov-url]: https://app.codecov.io/gh/inspect-js/hasOwn/
|
|
39
|
-
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/hasOwn
|
|
40
|
-
[actions-url]: https://github.com/inspect-js/hasOwn/actions
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "hasown",
|
|
3
|
-
"version": "2.0.2",
|
|
4
|
-
"description": "A robust, ES3 compatible, \"has own property\" predicate.",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"exports": {
|
|
7
|
-
".": "./index.js",
|
|
8
|
-
"./package.json": "./package.json"
|
|
9
|
-
},
|
|
10
|
-
"types": "index.d.ts",
|
|
11
|
-
"sideEffects": false,
|
|
12
|
-
"scripts": {
|
|
13
|
-
"prepack": "npmignore --auto --commentLines=autogenerated",
|
|
14
|
-
"prepublish": "not-in-publish || npm run prepublishOnly",
|
|
15
|
-
"prepublishOnly": "safe-publish-latest",
|
|
16
|
-
"prelint": "evalmd README.md",
|
|
17
|
-
"lint": "eslint --ext=js,mjs .",
|
|
18
|
-
"postlint": "npm run tsc",
|
|
19
|
-
"pretest": "npm run lint",
|
|
20
|
-
"tsc": "tsc -p .",
|
|
21
|
-
"posttsc": "attw -P",
|
|
22
|
-
"tests-only": "nyc tape 'test/**/*.js'",
|
|
23
|
-
"test": "npm run tests-only",
|
|
24
|
-
"posttest": "aud --production",
|
|
25
|
-
"version": "auto-changelog && git add CHANGELOG.md",
|
|
26
|
-
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
|
27
|
-
},
|
|
28
|
-
"repository": {
|
|
29
|
-
"type": "git",
|
|
30
|
-
"url": "git+https://github.com/inspect-js/hasOwn.git"
|
|
31
|
-
},
|
|
32
|
-
"keywords": [
|
|
33
|
-
"has",
|
|
34
|
-
"hasOwnProperty",
|
|
35
|
-
"hasOwn",
|
|
36
|
-
"has-own",
|
|
37
|
-
"own",
|
|
38
|
-
"has",
|
|
39
|
-
"property",
|
|
40
|
-
"in",
|
|
41
|
-
"javascript",
|
|
42
|
-
"ecmascript"
|
|
43
|
-
],
|
|
44
|
-
"author": "Jordan Harband <ljharb@gmail.com>",
|
|
45
|
-
"license": "MIT",
|
|
46
|
-
"bugs": {
|
|
47
|
-
"url": "https://github.com/inspect-js/hasOwn/issues"
|
|
48
|
-
},
|
|
49
|
-
"homepage": "https://github.com/inspect-js/hasOwn#readme",
|
|
50
|
-
"dependencies": {
|
|
51
|
-
"function-bind": "^1.1.2"
|
|
52
|
-
},
|
|
53
|
-
"devDependencies": {
|
|
54
|
-
"@arethetypeswrong/cli": "^0.15.1",
|
|
55
|
-
"@ljharb/eslint-config": "^21.1.0",
|
|
56
|
-
"@ljharb/tsconfig": "^0.2.0",
|
|
57
|
-
"@types/function-bind": "^1.1.10",
|
|
58
|
-
"@types/mock-property": "^1.0.2",
|
|
59
|
-
"@types/tape": "^5.6.4",
|
|
60
|
-
"aud": "^2.0.4",
|
|
61
|
-
"auto-changelog": "^2.4.0",
|
|
62
|
-
"eslint": "=8.8.0",
|
|
63
|
-
"evalmd": "^0.0.19",
|
|
64
|
-
"in-publish": "^2.0.1",
|
|
65
|
-
"mock-property": "^1.0.3",
|
|
66
|
-
"npmignore": "^0.3.1",
|
|
67
|
-
"nyc": "^10.3.2",
|
|
68
|
-
"safe-publish-latest": "^2.0.0",
|
|
69
|
-
"tape": "^5.7.5",
|
|
70
|
-
"typescript": "next"
|
|
71
|
-
},
|
|
72
|
-
"engines": {
|
|
73
|
-
"node": ">= 0.4"
|
|
74
|
-
},
|
|
75
|
-
"testling": {
|
|
76
|
-
"files": "test/index.js"
|
|
77
|
-
},
|
|
78
|
-
"auto-changelog": {
|
|
79
|
-
"output": "CHANGELOG.md",
|
|
80
|
-
"template": "keepachangelog",
|
|
81
|
-
"unreleased": false,
|
|
82
|
-
"commitLimit": false,
|
|
83
|
-
"backfillLimit": false,
|
|
84
|
-
"hideCredit": true
|
|
85
|
-
},
|
|
86
|
-
"publishConfig": {
|
|
87
|
-
"ignore": [
|
|
88
|
-
".github/workflows",
|
|
89
|
-
"test"
|
|
90
|
-
]
|
|
91
|
-
}
|
|
92
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2014-2018 Tyler Kellen <tyler@sleekcode.net>, Blaine Bublitz <blaine.bublitz@gmail.com>, and Eric Schoffstall <yo@contra.io>
|
|
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.
|