cdktn 0.23.1 → 0.23.3
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 +1592 -1591
- package/.spec.swcrc +22 -0
- package/README.md +1 -1
- package/jest.config.js +18 -15
- package/lib/_tokens.js +1 -1
- package/lib/annotations.js +2 -2
- package/lib/app.js +2 -2
- package/lib/aspect.js +2 -2
- package/lib/backends/azurerm-backend.js +3 -3
- package/lib/backends/cloud-backend.js +5 -5
- package/lib/backends/consul-backend.js +3 -3
- package/lib/backends/cos-backend.js +3 -3
- package/lib/backends/gcs-backend.js +3 -3
- package/lib/backends/http-backend.js +3 -3
- package/lib/backends/index.js +1 -1
- package/lib/backends/local-backend.js +3 -3
- package/lib/backends/oss-backend.js +3 -3
- package/lib/backends/pg-backend.js +3 -3
- package/lib/backends/remote-backend.js +5 -5
- package/lib/backends/s3-backend.js +3 -3
- package/lib/backends/swift-backend.js +3 -3
- package/lib/complex-computed-list.js +25 -25
- package/lib/errors.d.ts +1 -2
- package/lib/errors.js +11 -8
- package/lib/features.js +1 -1
- package/lib/functions/helpers.js +1 -1
- package/lib/functions/terraform-functions.generated.js +2 -2
- package/lib/hcl/render.js +1 -1
- package/lib/importable-resource.js +2 -2
- package/lib/index.js +1 -1
- package/lib/manifest.js +4 -5
- package/lib/private/fs.d.ts +20 -5
- package/lib/private/fs.js +43 -69
- package/lib/private/unique.js +1 -1
- package/lib/resource.js +2 -2
- package/lib/runtime.js +1 -1
- package/lib/synthesize/index.js +1 -1
- package/lib/synthesize/synthesizer.js +4 -5
- package/lib/synthesize/types.js +1 -1
- package/lib/terraform-addressable.js +1 -1
- package/lib/terraform-asset.js +2 -2
- package/lib/terraform-backend.js +2 -2
- package/lib/terraform-conditions.js +1 -1
- package/lib/terraform-count.js +2 -2
- package/lib/terraform-data-resource.js +2 -2
- package/lib/terraform-data-source.js +2 -2
- package/lib/terraform-dependable.js +1 -1
- package/lib/terraform-dynamic-block.js +2 -2
- package/lib/terraform-dynamic-expression.js +2 -2
- package/lib/terraform-element.js +2 -2
- package/lib/terraform-functions.js +2 -2
- package/lib/terraform-hcl-module.js +2 -2
- package/lib/terraform-iterator.js +6 -6
- package/lib/terraform-local.js +2 -2
- package/lib/terraform-module-asset.js +1 -1
- package/lib/terraform-module.js +2 -2
- package/lib/terraform-operators.js +2 -2
- package/lib/terraform-output.js +2 -2
- package/lib/terraform-provider.js +2 -2
- package/lib/terraform-provisioner.js +2 -2
- package/lib/terraform-remote-state.js +2 -2
- package/lib/terraform-resource-targets.js +2 -2
- package/lib/terraform-resource.js +2 -2
- package/lib/terraform-stack.js +2 -2
- package/lib/terraform-variable.js +3 -3
- package/lib/testing/adapters/jest.js +1 -1
- package/lib/testing/index.js +7 -8
- package/lib/testing/matchers.js +2 -2
- package/lib/tfExpression.js +1 -1
- package/lib/tokens/index.js +1 -1
- package/lib/tokens/lazy.js +4 -4
- package/lib/tokens/private/dependency.js +1 -1
- package/lib/tokens/private/encoding.js +1 -1
- package/lib/tokens/private/intrinsic.d.ts +0 -5
- package/lib/tokens/private/intrinsic.js +2 -9
- package/lib/tokens/private/resolve.js +1 -1
- package/lib/tokens/private/stack-trace.d.ts +6 -0
- package/lib/tokens/private/stack-trace.js +14 -1
- package/lib/tokens/private/token-map.js +1 -1
- package/lib/tokens/private/uniqueid.js +1 -1
- package/lib/tokens/resolvable.js +4 -4
- package/lib/tokens/string-fragments.js +2 -2
- package/lib/tokens/token.js +3 -3
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/lib/upgrade-id-aspect.js +2 -2
- package/lib/util.js +1 -1
- package/lib/validateEnvironment.js +1 -1
- package/lib/validations/index.js +1 -1
- package/lib/validations/validate-binary-version.js +1 -1
- package/lib/validations/validate-provider-presence.js +1 -1
- package/lib/validations/validate-terraform-version.js +1 -1
- package/node_modules/fflate/CHANGELOG.md +115 -0
- package/node_modules/{has-property-descriptors → fflate}/LICENSE +2 -2
- package/node_modules/fflate/README.md +558 -0
- package/node_modules/fflate/esm/browser.d.ts +1501 -0
- package/node_modules/fflate/esm/browser.js +2665 -0
- package/node_modules/fflate/esm/index.d.mts +1501 -0
- package/node_modules/fflate/esm/index.mjs +2679 -0
- package/node_modules/fflate/lib/browser.cjs +2688 -0
- package/node_modules/fflate/lib/browser.d.cts +1501 -0
- package/node_modules/fflate/lib/index.cjs +2668 -0
- package/node_modules/fflate/lib/index.d.ts +1501 -0
- package/node_modules/fflate/lib/node-worker.cjs +32 -0
- package/node_modules/fflate/lib/node.cjs +2700 -0
- package/node_modules/fflate/lib/node.d.cts +1501 -0
- package/node_modules/fflate/lib/worker.cjs +20 -0
- package/node_modules/fflate/package.json +127 -0
- package/node_modules/fflate/umd/index.js +1 -0
- package/node_modules/{yazl → safe-stable-stringify}/LICENSE +1 -1
- package/node_modules/safe-stable-stringify/esm/package.json +4 -0
- package/node_modules/safe-stable-stringify/esm/wrapper.d.ts +4 -0
- package/node_modules/safe-stable-stringify/esm/wrapper.js +6 -0
- package/node_modules/safe-stable-stringify/index.d.ts +22 -0
- package/node_modules/safe-stable-stringify/index.js +625 -0
- package/node_modules/safe-stable-stringify/package.json +65 -0
- package/node_modules/safe-stable-stringify/readme.md +179 -0
- package/package.json +21 -15
- package/tsconfig.json +6 -3
- package/tsconfig.test.json +12 -0
- package/lib/testing/__tests__/matchers.test.d.ts +0 -1
- package/lib/testing/__tests__/matchers.test.js +0 -205
- package/lib/testing/adapters/__tests__/index.test.d.ts +0 -1
- package/lib/testing/adapters/__tests__/index.test.js +0 -67
- package/lib/testing/adapters/__tests__/jest.test.d.ts +0 -1
- package/lib/testing/adapters/__tests__/jest.test.js +0 -41
- package/node_modules/buffer-crc32/LICENSE +0 -19
- package/node_modules/buffer-crc32/README.md +0 -55
- package/node_modules/buffer-crc32/dist/index.cjs +0 -306
- package/node_modules/buffer-crc32/dist/index.d.cts +0 -35
- package/node_modules/buffer-crc32/dist/index.d.mts +0 -35
- package/node_modules/buffer-crc32/dist/index.mjs +0 -304
- package/node_modules/buffer-crc32/index.d.ts +0 -35
- package/node_modules/buffer-crc32/package.json +0 -54
- package/node_modules/call-bind/.eslintignore +0 -1
- package/node_modules/call-bind/.eslintrc +0 -16
- package/node_modules/call-bind/.github/FUNDING.yml +0 -12
- package/node_modules/call-bind/.nycrc +0 -9
- package/node_modules/call-bind/CHANGELOG.md +0 -106
- package/node_modules/call-bind/LICENSE +0 -21
- package/node_modules/call-bind/README.md +0 -64
- package/node_modules/call-bind/callBound.js +0 -15
- package/node_modules/call-bind/index.js +0 -24
- package/node_modules/call-bind/package.json +0 -93
- package/node_modules/call-bind/test/callBound.js +0 -54
- package/node_modules/call-bind/test/index.js +0 -74
- package/node_modules/call-bind-apply-helpers/.eslintrc +0 -17
- package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +0 -12
- package/node_modules/call-bind-apply-helpers/.nycrc +0 -9
- package/node_modules/call-bind-apply-helpers/CHANGELOG.md +0 -30
- package/node_modules/call-bind-apply-helpers/LICENSE +0 -21
- package/node_modules/call-bind-apply-helpers/README.md +0 -62
- package/node_modules/call-bind-apply-helpers/actualApply.d.ts +0 -1
- package/node_modules/call-bind-apply-helpers/actualApply.js +0 -10
- package/node_modules/call-bind-apply-helpers/applyBind.d.ts +0 -19
- package/node_modules/call-bind-apply-helpers/applyBind.js +0 -10
- package/node_modules/call-bind-apply-helpers/functionApply.d.ts +0 -1
- package/node_modules/call-bind-apply-helpers/functionApply.js +0 -4
- package/node_modules/call-bind-apply-helpers/functionCall.d.ts +0 -1
- package/node_modules/call-bind-apply-helpers/functionCall.js +0 -4
- package/node_modules/call-bind-apply-helpers/index.d.ts +0 -64
- package/node_modules/call-bind-apply-helpers/index.js +0 -15
- package/node_modules/call-bind-apply-helpers/package.json +0 -85
- package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +0 -3
- package/node_modules/call-bind-apply-helpers/reflectApply.js +0 -4
- package/node_modules/call-bind-apply-helpers/test/index.js +0 -63
- package/node_modules/call-bind-apply-helpers/tsconfig.json +0 -9
- package/node_modules/call-bound/.eslintrc +0 -13
- package/node_modules/call-bound/.github/FUNDING.yml +0 -12
- package/node_modules/call-bound/.nycrc +0 -9
- package/node_modules/call-bound/CHANGELOG.md +0 -42
- package/node_modules/call-bound/LICENSE +0 -21
- package/node_modules/call-bound/README.md +0 -53
- package/node_modules/call-bound/index.d.ts +0 -94
- package/node_modules/call-bound/index.js +0 -19
- package/node_modules/call-bound/package.json +0 -99
- package/node_modules/call-bound/test/index.js +0 -61
- package/node_modules/call-bound/tsconfig.json +0 -10
- package/node_modules/define-data-property/.eslintrc +0 -24
- package/node_modules/define-data-property/.github/FUNDING.yml +0 -12
- package/node_modules/define-data-property/.nycrc +0 -13
- package/node_modules/define-data-property/CHANGELOG.md +0 -70
- package/node_modules/define-data-property/LICENSE +0 -21
- package/node_modules/define-data-property/README.md +0 -67
- package/node_modules/define-data-property/index.d.ts +0 -12
- package/node_modules/define-data-property/index.js +0 -56
- package/node_modules/define-data-property/package.json +0 -106
- package/node_modules/define-data-property/test/index.js +0 -392
- package/node_modules/define-data-property/tsconfig.json +0 -59
- package/node_modules/dunder-proto/.eslintrc +0 -5
- package/node_modules/dunder-proto/.github/FUNDING.yml +0 -12
- package/node_modules/dunder-proto/.nycrc +0 -13
- package/node_modules/dunder-proto/CHANGELOG.md +0 -24
- package/node_modules/dunder-proto/LICENSE +0 -21
- package/node_modules/dunder-proto/README.md +0 -54
- package/node_modules/dunder-proto/get.d.ts +0 -5
- package/node_modules/dunder-proto/get.js +0 -30
- package/node_modules/dunder-proto/package.json +0 -76
- package/node_modules/dunder-proto/set.d.ts +0 -5
- package/node_modules/dunder-proto/set.js +0 -35
- package/node_modules/dunder-proto/test/get.js +0 -34
- package/node_modules/dunder-proto/test/index.js +0 -4
- package/node_modules/dunder-proto/test/set.js +0 -50
- package/node_modules/dunder-proto/tsconfig.json +0 -9
- package/node_modules/es-define-property/.eslintrc +0 -13
- package/node_modules/es-define-property/.github/FUNDING.yml +0 -12
- package/node_modules/es-define-property/.nycrc +0 -9
- package/node_modules/es-define-property/CHANGELOG.md +0 -29
- package/node_modules/es-define-property/LICENSE +0 -21
- package/node_modules/es-define-property/README.md +0 -49
- package/node_modules/es-define-property/index.d.ts +0 -3
- package/node_modules/es-define-property/index.js +0 -14
- package/node_modules/es-define-property/package.json +0 -81
- package/node_modules/es-define-property/test/index.js +0 -56
- package/node_modules/es-define-property/tsconfig.json +0 -10
- package/node_modules/es-errors/.eslintrc +0 -5
- package/node_modules/es-errors/.github/FUNDING.yml +0 -12
- package/node_modules/es-errors/CHANGELOG.md +0 -40
- package/node_modules/es-errors/LICENSE +0 -21
- package/node_modules/es-errors/README.md +0 -55
- package/node_modules/es-errors/eval.d.ts +0 -3
- package/node_modules/es-errors/eval.js +0 -4
- package/node_modules/es-errors/index.d.ts +0 -3
- package/node_modules/es-errors/index.js +0 -4
- package/node_modules/es-errors/package.json +0 -80
- package/node_modules/es-errors/range.d.ts +0 -3
- package/node_modules/es-errors/range.js +0 -4
- package/node_modules/es-errors/ref.d.ts +0 -3
- package/node_modules/es-errors/ref.js +0 -4
- package/node_modules/es-errors/syntax.d.ts +0 -3
- package/node_modules/es-errors/syntax.js +0 -4
- package/node_modules/es-errors/test/index.js +0 -19
- package/node_modules/es-errors/tsconfig.json +0 -49
- package/node_modules/es-errors/type.d.ts +0 -3
- package/node_modules/es-errors/type.js +0 -4
- package/node_modules/es-errors/uri.d.ts +0 -3
- package/node_modules/es-errors/uri.js +0 -4
- package/node_modules/es-object-atoms/.eslintrc +0 -16
- package/node_modules/es-object-atoms/.github/FUNDING.yml +0 -12
- package/node_modules/es-object-atoms/CHANGELOG.md +0 -37
- package/node_modules/es-object-atoms/LICENSE +0 -21
- package/node_modules/es-object-atoms/README.md +0 -63
- package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +0 -3
- package/node_modules/es-object-atoms/RequireObjectCoercible.js +0 -11
- package/node_modules/es-object-atoms/ToObject.d.ts +0 -7
- package/node_modules/es-object-atoms/ToObject.js +0 -10
- package/node_modules/es-object-atoms/index.d.ts +0 -3
- package/node_modules/es-object-atoms/index.js +0 -4
- package/node_modules/es-object-atoms/isObject.d.ts +0 -3
- package/node_modules/es-object-atoms/isObject.js +0 -6
- package/node_modules/es-object-atoms/package.json +0 -80
- package/node_modules/es-object-atoms/test/index.js +0 -38
- package/node_modules/es-object-atoms/tsconfig.json +0 -6
- 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/get-intrinsic/.eslintrc +0 -42
- package/node_modules/get-intrinsic/.github/FUNDING.yml +0 -12
- package/node_modules/get-intrinsic/.nycrc +0 -9
- package/node_modules/get-intrinsic/CHANGELOG.md +0 -186
- package/node_modules/get-intrinsic/LICENSE +0 -21
- package/node_modules/get-intrinsic/README.md +0 -71
- package/node_modules/get-intrinsic/index.js +0 -378
- package/node_modules/get-intrinsic/package.json +0 -97
- package/node_modules/get-intrinsic/test/GetIntrinsic.js +0 -274
- package/node_modules/get-proto/.eslintrc +0 -10
- package/node_modules/get-proto/.github/FUNDING.yml +0 -12
- package/node_modules/get-proto/.nycrc +0 -9
- package/node_modules/get-proto/CHANGELOG.md +0 -21
- package/node_modules/get-proto/LICENSE +0 -21
- package/node_modules/get-proto/Object.getPrototypeOf.d.ts +0 -5
- package/node_modules/get-proto/Object.getPrototypeOf.js +0 -6
- package/node_modules/get-proto/README.md +0 -50
- package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +0 -3
- package/node_modules/get-proto/Reflect.getPrototypeOf.js +0 -4
- package/node_modules/get-proto/index.d.ts +0 -5
- package/node_modules/get-proto/index.js +0 -27
- package/node_modules/get-proto/package.json +0 -81
- package/node_modules/get-proto/test/index.js +0 -68
- package/node_modules/get-proto/tsconfig.json +0 -9
- package/node_modules/gopd/.eslintrc +0 -16
- package/node_modules/gopd/.github/FUNDING.yml +0 -12
- package/node_modules/gopd/CHANGELOG.md +0 -45
- package/node_modules/gopd/LICENSE +0 -21
- package/node_modules/gopd/README.md +0 -40
- package/node_modules/gopd/gOPD.d.ts +0 -1
- package/node_modules/gopd/gOPD.js +0 -4
- package/node_modules/gopd/index.d.ts +0 -5
- package/node_modules/gopd/index.js +0 -15
- package/node_modules/gopd/package.json +0 -77
- package/node_modules/gopd/test/index.js +0 -36
- package/node_modules/gopd/tsconfig.json +0 -9
- package/node_modules/has-property-descriptors/.eslintrc +0 -13
- package/node_modules/has-property-descriptors/.github/FUNDING.yml +0 -12
- package/node_modules/has-property-descriptors/.nycrc +0 -9
- package/node_modules/has-property-descriptors/CHANGELOG.md +0 -35
- package/node_modules/has-property-descriptors/README.md +0 -43
- package/node_modules/has-property-descriptors/index.js +0 -22
- package/node_modules/has-property-descriptors/package.json +0 -77
- package/node_modules/has-property-descriptors/test/index.js +0 -57
- package/node_modules/has-symbols/.eslintrc +0 -11
- package/node_modules/has-symbols/.github/FUNDING.yml +0 -12
- package/node_modules/has-symbols/.nycrc +0 -9
- package/node_modules/has-symbols/CHANGELOG.md +0 -91
- package/node_modules/has-symbols/LICENSE +0 -21
- package/node_modules/has-symbols/README.md +0 -46
- package/node_modules/has-symbols/index.d.ts +0 -3
- package/node_modules/has-symbols/index.js +0 -14
- package/node_modules/has-symbols/package.json +0 -111
- package/node_modules/has-symbols/shams.d.ts +0 -3
- package/node_modules/has-symbols/shams.js +0 -45
- package/node_modules/has-symbols/test/index.js +0 -22
- package/node_modules/has-symbols/test/shams/core-js.js +0 -29
- package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +0 -29
- package/node_modules/has-symbols/test/tests.js +0 -58
- package/node_modules/has-symbols/tsconfig.json +0 -10
- 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/isarray/LICENSE +0 -21
- package/node_modules/isarray/README.md +0 -38
- package/node_modules/isarray/index.js +0 -5
- package/node_modules/isarray/package.json +0 -48
- package/node_modules/json-stable-stringify/.eslintrc +0 -31
- package/node_modules/json-stable-stringify/.github/FUNDING.yml +0 -12
- package/node_modules/json-stable-stringify/CHANGELOG.md +0 -160
- package/node_modules/json-stable-stringify/LICENSE +0 -21
- package/node_modules/json-stable-stringify/README.md +0 -157
- package/node_modules/json-stable-stringify/example/key_cmp.js +0 -9
- package/node_modules/json-stable-stringify/example/nested.js +0 -7
- package/node_modules/json-stable-stringify/example/str.js +0 -7
- package/node_modules/json-stable-stringify/example/value_cmp.js +0 -12
- package/node_modules/json-stable-stringify/index.d.ts +0 -25
- package/node_modules/json-stable-stringify/index.js +0 -124
- package/node_modules/json-stable-stringify/package.json +0 -88
- package/node_modules/json-stable-stringify/test/cmp.js +0 -33
- package/node_modules/json-stable-stringify/test/nested.js +0 -48
- package/node_modules/json-stable-stringify/test/replacer.js +0 -81
- package/node_modules/json-stable-stringify/test/space.js +0 -127
- package/node_modules/json-stable-stringify/test/str.js +0 -46
- package/node_modules/json-stable-stringify/test/to-json.js +0 -22
- package/node_modules/json-stable-stringify/tsconfig.json +0 -10
- package/node_modules/jsonify/.eslintrc +0 -21
- package/node_modules/jsonify/.github/FUNDING.yml +0 -12
- package/node_modules/jsonify/CHANGELOG.md +0 -48
- package/node_modules/jsonify/README.md +0 -66
- package/node_modules/jsonify/index.js +0 -4
- package/node_modules/jsonify/lib/parse.js +0 -261
- package/node_modules/jsonify/lib/stringify.js +0 -151
- package/node_modules/jsonify/package.json +0 -62
- package/node_modules/jsonify/test/parse.js +0 -20
- package/node_modules/jsonify/test/stringify.js +0 -18
- package/node_modules/math-intrinsics/.eslintrc +0 -16
- package/node_modules/math-intrinsics/.github/FUNDING.yml +0 -12
- package/node_modules/math-intrinsics/CHANGELOG.md +0 -24
- package/node_modules/math-intrinsics/LICENSE +0 -21
- package/node_modules/math-intrinsics/README.md +0 -50
- package/node_modules/math-intrinsics/abs.d.ts +0 -1
- package/node_modules/math-intrinsics/abs.js +0 -4
- package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +0 -3
- package/node_modules/math-intrinsics/constants/maxArrayLength.js +0 -4
- package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +0 -3
- package/node_modules/math-intrinsics/constants/maxSafeInteger.js +0 -5
- package/node_modules/math-intrinsics/constants/maxValue.d.ts +0 -3
- package/node_modules/math-intrinsics/constants/maxValue.js +0 -5
- package/node_modules/math-intrinsics/floor.d.ts +0 -1
- package/node_modules/math-intrinsics/floor.js +0 -4
- package/node_modules/math-intrinsics/isFinite.d.ts +0 -3
- package/node_modules/math-intrinsics/isFinite.js +0 -12
- package/node_modules/math-intrinsics/isInteger.d.ts +0 -3
- package/node_modules/math-intrinsics/isInteger.js +0 -16
- package/node_modules/math-intrinsics/isNaN.d.ts +0 -1
- package/node_modules/math-intrinsics/isNaN.js +0 -6
- package/node_modules/math-intrinsics/isNegativeZero.d.ts +0 -3
- package/node_modules/math-intrinsics/isNegativeZero.js +0 -6
- package/node_modules/math-intrinsics/max.d.ts +0 -1
- package/node_modules/math-intrinsics/max.js +0 -4
- package/node_modules/math-intrinsics/min.d.ts +0 -1
- package/node_modules/math-intrinsics/min.js +0 -4
- package/node_modules/math-intrinsics/mod.d.ts +0 -3
- package/node_modules/math-intrinsics/mod.js +0 -9
- package/node_modules/math-intrinsics/package.json +0 -86
- package/node_modules/math-intrinsics/pow.d.ts +0 -1
- package/node_modules/math-intrinsics/pow.js +0 -4
- package/node_modules/math-intrinsics/round.d.ts +0 -1
- package/node_modules/math-intrinsics/round.js +0 -4
- package/node_modules/math-intrinsics/sign.d.ts +0 -3
- package/node_modules/math-intrinsics/sign.js +0 -11
- package/node_modules/math-intrinsics/test/index.js +0 -192
- package/node_modules/math-intrinsics/tsconfig.json +0 -3
- package/node_modules/object-keys/.editorconfig +0 -13
- package/node_modules/object-keys/.eslintrc +0 -17
- package/node_modules/object-keys/.travis.yml +0 -277
- package/node_modules/object-keys/CHANGELOG.md +0 -232
- package/node_modules/object-keys/LICENSE +0 -21
- package/node_modules/object-keys/README.md +0 -76
- package/node_modules/object-keys/implementation.js +0 -122
- package/node_modules/object-keys/index.js +0 -32
- package/node_modules/object-keys/isArguments.js +0 -17
- package/node_modules/object-keys/package.json +0 -88
- package/node_modules/object-keys/test/index.js +0 -5
- package/node_modules/set-function-length/.eslintrc +0 -27
- package/node_modules/set-function-length/.github/FUNDING.yml +0 -12
- package/node_modules/set-function-length/.nycrc +0 -13
- package/node_modules/set-function-length/CHANGELOG.md +0 -70
- package/node_modules/set-function-length/LICENSE +0 -21
- package/node_modules/set-function-length/README.md +0 -56
- package/node_modules/set-function-length/env.d.ts +0 -9
- package/node_modules/set-function-length/env.js +0 -25
- package/node_modules/set-function-length/index.d.ts +0 -7
- package/node_modules/set-function-length/index.js +0 -42
- package/node_modules/set-function-length/package.json +0 -102
- package/node_modules/set-function-length/tsconfig.json +0 -9
- package/node_modules/yazl/README.md +0 -457
- package/node_modules/yazl/index.js +0 -826
- package/node_modules/yazl/package.json +0 -34
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -1,304 +0,0 @@
|
|
|
1
|
-
function getDefaultExportFromCjs (x) {
|
|
2
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
const CRC_TABLE = new Int32Array([
|
|
6
|
-
0,
|
|
7
|
-
1996959894,
|
|
8
|
-
3993919788,
|
|
9
|
-
2567524794,
|
|
10
|
-
124634137,
|
|
11
|
-
1886057615,
|
|
12
|
-
3915621685,
|
|
13
|
-
2657392035,
|
|
14
|
-
249268274,
|
|
15
|
-
2044508324,
|
|
16
|
-
3772115230,
|
|
17
|
-
2547177864,
|
|
18
|
-
162941995,
|
|
19
|
-
2125561021,
|
|
20
|
-
3887607047,
|
|
21
|
-
2428444049,
|
|
22
|
-
498536548,
|
|
23
|
-
1789927666,
|
|
24
|
-
4089016648,
|
|
25
|
-
2227061214,
|
|
26
|
-
450548861,
|
|
27
|
-
1843258603,
|
|
28
|
-
4107580753,
|
|
29
|
-
2211677639,
|
|
30
|
-
325883990,
|
|
31
|
-
1684777152,
|
|
32
|
-
4251122042,
|
|
33
|
-
2321926636,
|
|
34
|
-
335633487,
|
|
35
|
-
1661365465,
|
|
36
|
-
4195302755,
|
|
37
|
-
2366115317,
|
|
38
|
-
997073096,
|
|
39
|
-
1281953886,
|
|
40
|
-
3579855332,
|
|
41
|
-
2724688242,
|
|
42
|
-
1006888145,
|
|
43
|
-
1258607687,
|
|
44
|
-
3524101629,
|
|
45
|
-
2768942443,
|
|
46
|
-
901097722,
|
|
47
|
-
1119000684,
|
|
48
|
-
3686517206,
|
|
49
|
-
2898065728,
|
|
50
|
-
853044451,
|
|
51
|
-
1172266101,
|
|
52
|
-
3705015759,
|
|
53
|
-
2882616665,
|
|
54
|
-
651767980,
|
|
55
|
-
1373503546,
|
|
56
|
-
3369554304,
|
|
57
|
-
3218104598,
|
|
58
|
-
565507253,
|
|
59
|
-
1454621731,
|
|
60
|
-
3485111705,
|
|
61
|
-
3099436303,
|
|
62
|
-
671266974,
|
|
63
|
-
1594198024,
|
|
64
|
-
3322730930,
|
|
65
|
-
2970347812,
|
|
66
|
-
795835527,
|
|
67
|
-
1483230225,
|
|
68
|
-
3244367275,
|
|
69
|
-
3060149565,
|
|
70
|
-
1994146192,
|
|
71
|
-
31158534,
|
|
72
|
-
2563907772,
|
|
73
|
-
4023717930,
|
|
74
|
-
1907459465,
|
|
75
|
-
112637215,
|
|
76
|
-
2680153253,
|
|
77
|
-
3904427059,
|
|
78
|
-
2013776290,
|
|
79
|
-
251722036,
|
|
80
|
-
2517215374,
|
|
81
|
-
3775830040,
|
|
82
|
-
2137656763,
|
|
83
|
-
141376813,
|
|
84
|
-
2439277719,
|
|
85
|
-
3865271297,
|
|
86
|
-
1802195444,
|
|
87
|
-
476864866,
|
|
88
|
-
2238001368,
|
|
89
|
-
4066508878,
|
|
90
|
-
1812370925,
|
|
91
|
-
453092731,
|
|
92
|
-
2181625025,
|
|
93
|
-
4111451223,
|
|
94
|
-
1706088902,
|
|
95
|
-
314042704,
|
|
96
|
-
2344532202,
|
|
97
|
-
4240017532,
|
|
98
|
-
1658658271,
|
|
99
|
-
366619977,
|
|
100
|
-
2362670323,
|
|
101
|
-
4224994405,
|
|
102
|
-
1303535960,
|
|
103
|
-
984961486,
|
|
104
|
-
2747007092,
|
|
105
|
-
3569037538,
|
|
106
|
-
1256170817,
|
|
107
|
-
1037604311,
|
|
108
|
-
2765210733,
|
|
109
|
-
3554079995,
|
|
110
|
-
1131014506,
|
|
111
|
-
879679996,
|
|
112
|
-
2909243462,
|
|
113
|
-
3663771856,
|
|
114
|
-
1141124467,
|
|
115
|
-
855842277,
|
|
116
|
-
2852801631,
|
|
117
|
-
3708648649,
|
|
118
|
-
1342533948,
|
|
119
|
-
654459306,
|
|
120
|
-
3188396048,
|
|
121
|
-
3373015174,
|
|
122
|
-
1466479909,
|
|
123
|
-
544179635,
|
|
124
|
-
3110523913,
|
|
125
|
-
3462522015,
|
|
126
|
-
1591671054,
|
|
127
|
-
702138776,
|
|
128
|
-
2966460450,
|
|
129
|
-
3352799412,
|
|
130
|
-
1504918807,
|
|
131
|
-
783551873,
|
|
132
|
-
3082640443,
|
|
133
|
-
3233442989,
|
|
134
|
-
3988292384,
|
|
135
|
-
2596254646,
|
|
136
|
-
62317068,
|
|
137
|
-
1957810842,
|
|
138
|
-
3939845945,
|
|
139
|
-
2647816111,
|
|
140
|
-
81470997,
|
|
141
|
-
1943803523,
|
|
142
|
-
3814918930,
|
|
143
|
-
2489596804,
|
|
144
|
-
225274430,
|
|
145
|
-
2053790376,
|
|
146
|
-
3826175755,
|
|
147
|
-
2466906013,
|
|
148
|
-
167816743,
|
|
149
|
-
2097651377,
|
|
150
|
-
4027552580,
|
|
151
|
-
2265490386,
|
|
152
|
-
503444072,
|
|
153
|
-
1762050814,
|
|
154
|
-
4150417245,
|
|
155
|
-
2154129355,
|
|
156
|
-
426522225,
|
|
157
|
-
1852507879,
|
|
158
|
-
4275313526,
|
|
159
|
-
2312317920,
|
|
160
|
-
282753626,
|
|
161
|
-
1742555852,
|
|
162
|
-
4189708143,
|
|
163
|
-
2394877945,
|
|
164
|
-
397917763,
|
|
165
|
-
1622183637,
|
|
166
|
-
3604390888,
|
|
167
|
-
2714866558,
|
|
168
|
-
953729732,
|
|
169
|
-
1340076626,
|
|
170
|
-
3518719985,
|
|
171
|
-
2797360999,
|
|
172
|
-
1068828381,
|
|
173
|
-
1219638859,
|
|
174
|
-
3624741850,
|
|
175
|
-
2936675148,
|
|
176
|
-
906185462,
|
|
177
|
-
1090812512,
|
|
178
|
-
3747672003,
|
|
179
|
-
2825379669,
|
|
180
|
-
829329135,
|
|
181
|
-
1181335161,
|
|
182
|
-
3412177804,
|
|
183
|
-
3160834842,
|
|
184
|
-
628085408,
|
|
185
|
-
1382605366,
|
|
186
|
-
3423369109,
|
|
187
|
-
3138078467,
|
|
188
|
-
570562233,
|
|
189
|
-
1426400815,
|
|
190
|
-
3317316542,
|
|
191
|
-
2998733608,
|
|
192
|
-
733239954,
|
|
193
|
-
1555261956,
|
|
194
|
-
3268935591,
|
|
195
|
-
3050360625,
|
|
196
|
-
752459403,
|
|
197
|
-
1541320221,
|
|
198
|
-
2607071920,
|
|
199
|
-
3965973030,
|
|
200
|
-
1969922972,
|
|
201
|
-
40735498,
|
|
202
|
-
2617837225,
|
|
203
|
-
3943577151,
|
|
204
|
-
1913087877,
|
|
205
|
-
83908371,
|
|
206
|
-
2512341634,
|
|
207
|
-
3803740692,
|
|
208
|
-
2075208622,
|
|
209
|
-
213261112,
|
|
210
|
-
2463272603,
|
|
211
|
-
3855990285,
|
|
212
|
-
2094854071,
|
|
213
|
-
198958881,
|
|
214
|
-
2262029012,
|
|
215
|
-
4057260610,
|
|
216
|
-
1759359992,
|
|
217
|
-
534414190,
|
|
218
|
-
2176718541,
|
|
219
|
-
4139329115,
|
|
220
|
-
1873836001,
|
|
221
|
-
414664567,
|
|
222
|
-
2282248934,
|
|
223
|
-
4279200368,
|
|
224
|
-
1711684554,
|
|
225
|
-
285281116,
|
|
226
|
-
2405801727,
|
|
227
|
-
4167216745,
|
|
228
|
-
1634467795,
|
|
229
|
-
376229701,
|
|
230
|
-
2685067896,
|
|
231
|
-
3608007406,
|
|
232
|
-
1308918612,
|
|
233
|
-
956543938,
|
|
234
|
-
2808555105,
|
|
235
|
-
3495958263,
|
|
236
|
-
1231636301,
|
|
237
|
-
1047427035,
|
|
238
|
-
2932959818,
|
|
239
|
-
3654703836,
|
|
240
|
-
1088359270,
|
|
241
|
-
936918e3,
|
|
242
|
-
2847714899,
|
|
243
|
-
3736837829,
|
|
244
|
-
1202900863,
|
|
245
|
-
817233897,
|
|
246
|
-
3183342108,
|
|
247
|
-
3401237130,
|
|
248
|
-
1404277552,
|
|
249
|
-
615818150,
|
|
250
|
-
3134207493,
|
|
251
|
-
3453421203,
|
|
252
|
-
1423857449,
|
|
253
|
-
601450431,
|
|
254
|
-
3009837614,
|
|
255
|
-
3294710456,
|
|
256
|
-
1567103746,
|
|
257
|
-
711928724,
|
|
258
|
-
3020668471,
|
|
259
|
-
3272380065,
|
|
260
|
-
1510334235,
|
|
261
|
-
755167117
|
|
262
|
-
]);
|
|
263
|
-
function ensureBuffer(input) {
|
|
264
|
-
if (Buffer.isBuffer(input)) {
|
|
265
|
-
return input;
|
|
266
|
-
}
|
|
267
|
-
if (typeof input === "number") {
|
|
268
|
-
return Buffer.alloc(input);
|
|
269
|
-
} else if (typeof input === "string") {
|
|
270
|
-
return Buffer.from(input);
|
|
271
|
-
} else {
|
|
272
|
-
throw new Error("input must be buffer, number, or string, received " + typeof input);
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
function bufferizeInt(num) {
|
|
276
|
-
const tmp = ensureBuffer(4);
|
|
277
|
-
tmp.writeInt32BE(num, 0);
|
|
278
|
-
return tmp;
|
|
279
|
-
}
|
|
280
|
-
function _crc32(buf, previous) {
|
|
281
|
-
buf = ensureBuffer(buf);
|
|
282
|
-
if (Buffer.isBuffer(previous)) {
|
|
283
|
-
previous = previous.readUInt32BE(0);
|
|
284
|
-
}
|
|
285
|
-
let crc = ~~previous ^ -1;
|
|
286
|
-
for (var n = 0; n < buf.length; n++) {
|
|
287
|
-
crc = CRC_TABLE[(crc ^ buf[n]) & 255] ^ crc >>> 8;
|
|
288
|
-
}
|
|
289
|
-
return crc ^ -1;
|
|
290
|
-
}
|
|
291
|
-
function crc32() {
|
|
292
|
-
return bufferizeInt(_crc32.apply(null, arguments));
|
|
293
|
-
}
|
|
294
|
-
crc32.signed = function() {
|
|
295
|
-
return _crc32.apply(null, arguments);
|
|
296
|
-
};
|
|
297
|
-
crc32.unsigned = function() {
|
|
298
|
-
return _crc32.apply(null, arguments) >>> 0;
|
|
299
|
-
};
|
|
300
|
-
var bufferCrc32 = crc32;
|
|
301
|
-
|
|
302
|
-
const index = /*@__PURE__*/getDefaultExportFromCjs(bufferCrc32);
|
|
303
|
-
|
|
304
|
-
export { index as default };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* These definitions were written by BendingBender (https://github.com/BendingBender)
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
export = crc32;
|
|
8
|
-
|
|
9
|
-
declare function crc32(input: string | Buffer, partialCrc?: Buffer | number): Buffer;
|
|
10
|
-
|
|
11
|
-
declare namespace crc32 {
|
|
12
|
-
/**
|
|
13
|
-
* Convenience method that returns a signed int instead of a `Buffer`.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* import crc32 = require('buffer-crc32');
|
|
17
|
-
*
|
|
18
|
-
* // works with buffers
|
|
19
|
-
* const buf = Buffer.from([0x00, 0x73, 0x75, 0x70, 0x20, 0x62, 0x72, 0x6f, 0x00]);
|
|
20
|
-
* crc32.signed(buf); // -> -1805997238
|
|
21
|
-
*/
|
|
22
|
-
function signed(buffer: string | Buffer, partialCrc?: Buffer | number): number;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Convenience method that returns an unsigned int instead of a `Buffer`.
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* import crc32 = require('buffer-crc32');
|
|
29
|
-
*
|
|
30
|
-
* // works with buffers
|
|
31
|
-
* const buf = Buffer.from([0x00, 0x73, 0x75, 0x70, 0x20, 0x62, 0x72, 0x6f, 0x00]);
|
|
32
|
-
* crc32.unsigned(buf); // -> 2488970058
|
|
33
|
-
*/
|
|
34
|
-
function unsigned(buffer: string | Buffer, partialCrc?: Buffer | number): number;
|
|
35
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"author": "Brian J. Brennan <brianloveswords@gmail.com>",
|
|
3
|
-
"name": "buffer-crc32",
|
|
4
|
-
"description": "A pure javascript CRC32 algorithm that plays nice with binary data",
|
|
5
|
-
"version": "1.0.0",
|
|
6
|
-
"licenses": [
|
|
7
|
-
{
|
|
8
|
-
"type": "MIT",
|
|
9
|
-
"url": "https://github.com/brianloveswords/buffer-crc32/raw/master/LICENSE"
|
|
10
|
-
}
|
|
11
|
-
],
|
|
12
|
-
"contributors": [
|
|
13
|
-
{
|
|
14
|
-
"name": "Vladimir Kuznetsov",
|
|
15
|
-
"github": "mistakster"
|
|
16
|
-
}
|
|
17
|
-
],
|
|
18
|
-
"homepage": "https://github.com/brianloveswords/buffer-crc32",
|
|
19
|
-
"repository": {
|
|
20
|
-
"type": "git",
|
|
21
|
-
"url": "git://github.com/brianloveswords/buffer-crc32.git"
|
|
22
|
-
},
|
|
23
|
-
"scripts": {
|
|
24
|
-
"test": "tap tests/*.test.js --reporter classic",
|
|
25
|
-
"build": "npx unbuild@2.0.0 && npx cpy-cli index.d.ts dist --rename=index.d.cts && npx cpy-cli index.d.ts dist --rename=index.d.mts",
|
|
26
|
-
"prepublishOnly": "npm run build",
|
|
27
|
-
"format": "prettier --write --log-level warn \"**/*.{json,md,js}\""
|
|
28
|
-
},
|
|
29
|
-
"dependencies": {},
|
|
30
|
-
"devDependencies": {
|
|
31
|
-
"prettier": "^3.2.4",
|
|
32
|
-
"tap": "~11.1.5"
|
|
33
|
-
},
|
|
34
|
-
"optionalDependencies": {},
|
|
35
|
-
"engines": {
|
|
36
|
-
"node": ">=8.0.0"
|
|
37
|
-
},
|
|
38
|
-
"license": "MIT",
|
|
39
|
-
"type": "commonjs",
|
|
40
|
-
"exports": {
|
|
41
|
-
".": {
|
|
42
|
-
"import": "./dist/index.mjs",
|
|
43
|
-
"require": "./dist/index.cjs"
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"main": "./dist/index.cjs",
|
|
47
|
-
"types": "./index.d.ts",
|
|
48
|
-
"files": [
|
|
49
|
-
"dist",
|
|
50
|
-
"index.d.ts",
|
|
51
|
-
"LICENSE",
|
|
52
|
-
"README.md"
|
|
53
|
-
]
|
|
54
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
coverage/
|
|
@@ -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/call-bind
|
|
8
|
-
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
|
9
|
-
liberapay: # Replace with a single Liberapay username
|
|
10
|
-
issuehunt: # Replace with a single IssueHunt username
|
|
11
|
-
otechie: # Replace with a single Otechie username
|
|
12
|
-
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
|
@@ -1,106 +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
|
-
## [v1.0.8](https://github.com/ljharb/call-bind/compare/v1.0.7...v1.0.8) - 2024-12-05
|
|
9
|
-
|
|
10
|
-
### Commits
|
|
11
|
-
|
|
12
|
-
- [Refactor] extract out some helpers and avoid get-intrinsic usage [`407fd5e`](https://github.com/ljharb/call-bind/commit/407fd5eec34ec58394522a6ce3badfa4788fd5ae)
|
|
13
|
-
- [Refactor] replace code with extracted `call-bind-apply-helpers` [`81018fb`](https://github.com/ljharb/call-bind/commit/81018fb78902ff5acbc6c09300780e97f0db6a34)
|
|
14
|
-
- [Tests] use `set-function-length/env` [`0fc311d`](https://github.com/ljharb/call-bind/commit/0fc311de0e115cfa6b02969b23a42ad45aadf224)
|
|
15
|
-
- [actions] split out node 10-20, and 20+ [`77a0cad`](https://github.com/ljharb/call-bind/commit/77a0cad75f83f5b8050dc13baef4fa2cff537fa3)
|
|
16
|
-
- [Dev Deps] update `@ljharb/eslint-config`, `auto-changelog`, `es-value-fixtures`, `gopd`, `object-inspect`, `tape` [`a145d10`](https://github.com/ljharb/call-bind/commit/a145d10fe847f350e11094f8541848b028ee8c91)
|
|
17
|
-
- [Tests] replace `aud` with `npm audit` [`30ca3dd`](https://github.com/ljharb/call-bind/commit/30ca3dd7234648eb029947477d06b17879e10727)
|
|
18
|
-
- [Deps] update `set-function-length` [`57c79a3`](https://github.com/ljharb/call-bind/commit/57c79a3666022ea797cc2a4a3b43fe089bc97d1b)
|
|
19
|
-
- [Dev Deps] add missing peer dep [`601cfa5`](https://github.com/ljharb/call-bind/commit/601cfa5540066b6206039ceb9496cecbd134ff7b)
|
|
20
|
-
|
|
21
|
-
## [v1.0.7](https://github.com/ljharb/call-bind/compare/v1.0.6...v1.0.7) - 2024-02-12
|
|
22
|
-
|
|
23
|
-
### Commits
|
|
24
|
-
|
|
25
|
-
- [Refactor] use `es-define-property` [`09b76a0`](https://github.com/ljharb/call-bind/commit/09b76a01634440461d44a80c9924ec4b500f3b03)
|
|
26
|
-
- [Deps] update `get-intrinsic`, `set-function-length` [`ad5136d`](https://github.com/ljharb/call-bind/commit/ad5136ddda2a45c590959829ad3dce0c9f4e3590)
|
|
27
|
-
|
|
28
|
-
## [v1.0.6](https://github.com/ljharb/call-bind/compare/v1.0.5...v1.0.6) - 2024-02-05
|
|
29
|
-
|
|
30
|
-
### Commits
|
|
31
|
-
|
|
32
|
-
- [Dev Deps] update `aud`, `npmignore`, `tape` [`d564d5c`](https://github.com/ljharb/call-bind/commit/d564d5ce3e06a19df4d499c77f8d1a9da44e77aa)
|
|
33
|
-
- [Deps] update `get-intrinsic`, `set-function-length` [`cfc2bdc`](https://github.com/ljharb/call-bind/commit/cfc2bdca7b633df0e0e689e6b637f668f1c6792e)
|
|
34
|
-
- [Refactor] use `es-errors`, so things that only need those do not need `get-intrinsic` [`64cd289`](https://github.com/ljharb/call-bind/commit/64cd289ae5862c250a4ca80aa8d461047c166af5)
|
|
35
|
-
- [meta] add missing `engines.node` [`32a4038`](https://github.com/ljharb/call-bind/commit/32a4038857b62179f7f9b7b3df2c5260036be582)
|
|
36
|
-
|
|
37
|
-
## [v1.0.5](https://github.com/ljharb/call-bind/compare/v1.0.4...v1.0.5) - 2023-10-19
|
|
38
|
-
|
|
39
|
-
### Commits
|
|
40
|
-
|
|
41
|
-
- [Fix] throw an error on non-functions as early as possible [`f262408`](https://github.com/ljharb/call-bind/commit/f262408f822c840fbc268080f3ad7c429611066d)
|
|
42
|
-
- [Deps] update `set-function-length` [`3fff271`](https://github.com/ljharb/call-bind/commit/3fff27145a1e3a76a5b74f1d7c3c43d0fa3b9871)
|
|
43
|
-
|
|
44
|
-
## [v1.0.4](https://github.com/ljharb/call-bind/compare/v1.0.3...v1.0.4) - 2023-10-19
|
|
45
|
-
|
|
46
|
-
## [v1.0.3](https://github.com/ljharb/call-bind/compare/v1.0.2...v1.0.3) - 2023-10-19
|
|
47
|
-
|
|
48
|
-
### Commits
|
|
49
|
-
|
|
50
|
-
- [actions] reuse common workflows [`a994df6`](https://github.com/ljharb/call-bind/commit/a994df69f401f4bf735a4ccd77029b85d1549453)
|
|
51
|
-
- [meta] use `npmignore` to autogenerate an npmignore file [`eef3ef2`](https://github.com/ljharb/call-bind/commit/eef3ef21e1f002790837fedb8af2679c761fbdf5)
|
|
52
|
-
- [readme] flesh out content [`1845ccf`](https://github.com/ljharb/call-bind/commit/1845ccfd9976a607884cfc7157c93192cc16cf22)
|
|
53
|
-
- [actions] use `node/install` instead of `node/run`; use `codecov` action [`5b47d53`](https://github.com/ljharb/call-bind/commit/5b47d53d2fd74af5ea0a44f1d51e503cd42f7a90)
|
|
54
|
-
- [Refactor] use `set-function-length` [`a0e165c`](https://github.com/ljharb/call-bind/commit/a0e165c5dc61db781cbc919b586b1c2b8da0b150)
|
|
55
|
-
- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`9c50103`](https://github.com/ljharb/call-bind/commit/9c50103f44137279a817317cf6cc421a658f85b4)
|
|
56
|
-
- [meta] simplify "exports" [`019c6d0`](https://github.com/ljharb/call-bind/commit/019c6d06b0e1246ceed8e579f57e44441cbbf6d9)
|
|
57
|
-
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `safe-publish-latest`, `tape` [`23bd718`](https://github.com/ljharb/call-bind/commit/23bd718a288d3b03042062b4ef5153b3cea83f11)
|
|
58
|
-
- [actions] update codecov uploader [`62552d7`](https://github.com/ljharb/call-bind/commit/62552d79cc79e05825e99aaba134ae5b37f33da5)
|
|
59
|
-
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `tape` [`ec81665`](https://github.com/ljharb/call-bind/commit/ec81665b300f87eabff597afdc8b8092adfa7afd)
|
|
60
|
-
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `safe-publish-latest`, `tape` [`35d67fc`](https://github.com/ljharb/call-bind/commit/35d67fcea883e686650f736f61da5ddca2592de8)
|
|
61
|
-
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `tape` [`0266d8d`](https://github.com/ljharb/call-bind/commit/0266d8d2a45086a922db366d0c2932fa463662ff)
|
|
62
|
-
- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`43a5b28`](https://github.com/ljharb/call-bind/commit/43a5b28a444e710e1bbf92adb8afb5cf7523a223)
|
|
63
|
-
- [Deps] update `define-data-property`, `function-bind`, `get-intrinsic` [`780eb36`](https://github.com/ljharb/call-bind/commit/780eb36552514f8cc99c70821ce698697c2726a5)
|
|
64
|
-
- [Dev Deps] update `aud`, `tape` [`90d50ad`](https://github.com/ljharb/call-bind/commit/90d50ad03b061e0268b3380b0065fcaec183dc05)
|
|
65
|
-
- [meta] use `prepublishOnly` script for npm 7+ [`44c5433`](https://github.com/ljharb/call-bind/commit/44c5433b7980e02b4870007046407cf6fc543329)
|
|
66
|
-
- [Deps] update `get-intrinsic` [`86bfbfc`](https://github.com/ljharb/call-bind/commit/86bfbfcf34afdc6eabc93ce3d408548d0e27d958)
|
|
67
|
-
- [Deps] update `get-intrinsic` [`5c53354`](https://github.com/ljharb/call-bind/commit/5c5335489be0294c18cd7a8bb6e08226ee019ff5)
|
|
68
|
-
- [actions] update checkout action [`4c393a8`](https://github.com/ljharb/call-bind/commit/4c393a8173b3c8e5b30d5b3297b3b94d48bf87f3)
|
|
69
|
-
- [Deps] update `get-intrinsic` [`4e70bde`](https://github.com/ljharb/call-bind/commit/4e70bdec0626acb11616d66250fc14565e716e91)
|
|
70
|
-
- [Deps] update `get-intrinsic` [`55ae803`](https://github.com/ljharb/call-bind/commit/55ae803a920bd93c369cd798c20de31f91e9fc60)
|
|
71
|
-
|
|
72
|
-
## [v1.0.2](https://github.com/ljharb/call-bind/compare/v1.0.1...v1.0.2) - 2021-01-11
|
|
73
|
-
|
|
74
|
-
### Commits
|
|
75
|
-
|
|
76
|
-
- [Fix] properly include the receiver in the bound length [`dbae7bc`](https://github.com/ljharb/call-bind/commit/dbae7bc676c079a0d33c0a43e9ef92cb7b01345d)
|
|
77
|
-
|
|
78
|
-
## [v1.0.1](https://github.com/ljharb/call-bind/compare/v1.0.0...v1.0.1) - 2021-01-08
|
|
79
|
-
|
|
80
|
-
### Commits
|
|
81
|
-
|
|
82
|
-
- [Tests] migrate tests to Github Actions [`b6db284`](https://github.com/ljharb/call-bind/commit/b6db284c36f8ccd195b88a6764fe84b7223a0da1)
|
|
83
|
-
- [meta] do not publish github action workflow files [`ec7fe46`](https://github.com/ljharb/call-bind/commit/ec7fe46e60cfa4764ee943d2755f5e5a366e578e)
|
|
84
|
-
- [Fix] preserve original function’s length when possible [`adbceaa`](https://github.com/ljharb/call-bind/commit/adbceaa3cac4b41ea78bb19d7ccdbaaf7e0bdadb)
|
|
85
|
-
- [Tests] gather coverage data on every job [`d69e23c`](https://github.com/ljharb/call-bind/commit/d69e23cc65f101ba1d4c19bb07fa8eb0ec624be8)
|
|
86
|
-
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `tape` [`2fd3586`](https://github.com/ljharb/call-bind/commit/2fd3586c5d47b335364c14293114c6b625ae1f71)
|
|
87
|
-
- [Deps] update `get-intrinsic` [`f23e931`](https://github.com/ljharb/call-bind/commit/f23e9318cc271c2add8bb38cfded85ee7baf8eee)
|
|
88
|
-
- [Deps] update `get-intrinsic` [`72d9f44`](https://github.com/ljharb/call-bind/commit/72d9f44e184465ba8dd3fb48260bbcff234985f2)
|
|
89
|
-
- [meta] fix FUNDING.yml [`e723573`](https://github.com/ljharb/call-bind/commit/e723573438c5a68dcec31fb5d96ea6b7e4a93be8)
|
|
90
|
-
- [eslint] ignore coverage output [`15e76d2`](https://github.com/ljharb/call-bind/commit/15e76d28a5f43e504696401e5b31ebb78ee1b532)
|
|
91
|
-
- [meta] add Automatic Rebase and Require Allow Edits workflows [`8fa4dab`](https://github.com/ljharb/call-bind/commit/8fa4dabb23ba3dd7bb92c9571c1241c08b56e4b6)
|
|
92
|
-
|
|
93
|
-
## v1.0.0 - 2020-10-30
|
|
94
|
-
|
|
95
|
-
### Commits
|
|
96
|
-
|
|
97
|
-
- Initial commit [`306cf98`](https://github.com/ljharb/call-bind/commit/306cf98c7ec9e7ef66b653ec152277ac1381eb50)
|
|
98
|
-
- Tests [`e10d0bb`](https://github.com/ljharb/call-bind/commit/e10d0bbdadc7a10ecedc9a1c035112d3e368b8df)
|
|
99
|
-
- Implementation [`43852ed`](https://github.com/ljharb/call-bind/commit/43852eda0f187327b7fad2423ca972149a52bd65)
|
|
100
|
-
- npm init [`408f860`](https://github.com/ljharb/call-bind/commit/408f860b773a2f610805fd3613d0d71bac1b6249)
|
|
101
|
-
- [meta] add Automatic Rebase and Require Allow Edits workflows [`fb349b2`](https://github.com/ljharb/call-bind/commit/fb349b2e48defbec8b5ec8a8395cc8f69f220b13)
|
|
102
|
-
- [meta] add `auto-changelog` [`c4001fc`](https://github.com/ljharb/call-bind/commit/c4001fc43031799ef908211c98d3b0fb2b60fde4)
|
|
103
|
-
- [meta] add "funding"; create `FUNDING.yml` [`d4d6d29`](https://github.com/ljharb/call-bind/commit/d4d6d2974a14bc2e98830468eda7fe6d6a776717)
|
|
104
|
-
- [Tests] add `npm run lint` [`dedfb98`](https://github.com/ljharb/call-bind/commit/dedfb98bd0ecefb08ddb9a94061bd10cde4332af)
|
|
105
|
-
- Only apps should have lockfiles [`54ac776`](https://github.com/ljharb/call-bind/commit/54ac77653db45a7361dc153d2f478e743f110650)
|
|
106
|
-
- [meta] add `safe-publish-latest` [`9ea8e43`](https://github.com/ljharb/call-bind/commit/9ea8e435b950ce9b705559cd651039f9bf40140f)
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2020 Jordan Harband
|
|
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,64 +0,0 @@
|
|
|
1
|
-
# call-bind <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
|
|
2
|
-
|
|
3
|
-
[![github actions][actions-image]][actions-url]
|
|
4
|
-
[![coverage][codecov-image]][codecov-url]
|
|
5
|
-
[![dependency status][deps-svg]][deps-url]
|
|
6
|
-
[![dev dependency status][dev-deps-svg]][dev-deps-url]
|
|
7
|
-
[![License][license-image]][license-url]
|
|
8
|
-
[![Downloads][downloads-image]][downloads-url]
|
|
9
|
-
|
|
10
|
-
[![npm badge][npm-badge-png]][package-url]
|
|
11
|
-
|
|
12
|
-
Robustly `.call.bind()` a function.
|
|
13
|
-
|
|
14
|
-
## Getting started
|
|
15
|
-
|
|
16
|
-
```sh
|
|
17
|
-
npm install --save call-bind
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
## Usage/Examples
|
|
21
|
-
|
|
22
|
-
```js
|
|
23
|
-
const assert = require('assert');
|
|
24
|
-
const callBind = require('call-bind');
|
|
25
|
-
const callBound = require('call-bind/callBound');
|
|
26
|
-
|
|
27
|
-
function f(a, b) {
|
|
28
|
-
assert.equal(this, 1);
|
|
29
|
-
assert.equal(a, 2);
|
|
30
|
-
assert.equal(b, 3);
|
|
31
|
-
assert.equal(arguments.length, 2);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
const fBound = callBind(f);
|
|
35
|
-
|
|
36
|
-
const slice = callBound('Array.prototype.slice');
|
|
37
|
-
|
|
38
|
-
delete Function.prototype.call;
|
|
39
|
-
delete Function.prototype.bind;
|
|
40
|
-
|
|
41
|
-
fBound(1, 2, 3);
|
|
42
|
-
|
|
43
|
-
assert.deepEqual(slice([1, 2, 3, 4], 1, -1), [2, 3]);
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
## Tests
|
|
47
|
-
|
|
48
|
-
Clone the repo, `npm install`, and run `npm test`
|
|
49
|
-
|
|
50
|
-
[package-url]: https://npmjs.org/package/call-bind
|
|
51
|
-
[npm-version-svg]: https://versionbadg.es/ljharb/call-bind.svg
|
|
52
|
-
[deps-svg]: https://david-dm.org/ljharb/call-bind.svg
|
|
53
|
-
[deps-url]: https://david-dm.org/ljharb/call-bind
|
|
54
|
-
[dev-deps-svg]: https://david-dm.org/ljharb/call-bind/dev-status.svg
|
|
55
|
-
[dev-deps-url]: https://david-dm.org/ljharb/call-bind#info=devDependencies
|
|
56
|
-
[npm-badge-png]: https://nodei.co/npm/call-bind.png?downloads=true&stars=true
|
|
57
|
-
[license-image]: https://img.shields.io/npm/l/call-bind.svg
|
|
58
|
-
[license-url]: LICENSE
|
|
59
|
-
[downloads-image]: https://img.shields.io/npm/dm/call-bind.svg
|
|
60
|
-
[downloads-url]: https://npm-stat.com/charts.html?package=call-bind
|
|
61
|
-
[codecov-image]: https://codecov.io/gh/ljharb/call-bind/branch/main/graphs/badge.svg
|
|
62
|
-
[codecov-url]: https://app.codecov.io/gh/ljharb/call-bind/
|
|
63
|
-
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/call-bind
|
|
64
|
-
[actions-url]: https://github.com/ljharb/call-bind/actions
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var GetIntrinsic = require('get-intrinsic');
|
|
4
|
-
|
|
5
|
-
var callBind = require('./');
|
|
6
|
-
|
|
7
|
-
var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
|
|
8
|
-
|
|
9
|
-
module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
10
|
-
var intrinsic = GetIntrinsic(name, !!allowMissing);
|
|
11
|
-
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
|
12
|
-
return callBind(intrinsic);
|
|
13
|
-
}
|
|
14
|
-
return intrinsic;
|
|
15
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var setFunctionLength = require('set-function-length');
|
|
4
|
-
|
|
5
|
-
var $defineProperty = require('es-define-property');
|
|
6
|
-
|
|
7
|
-
var callBindBasic = require('call-bind-apply-helpers');
|
|
8
|
-
var applyBind = require('call-bind-apply-helpers/applyBind');
|
|
9
|
-
|
|
10
|
-
module.exports = function callBind(originalFunction) {
|
|
11
|
-
var func = callBindBasic(arguments);
|
|
12
|
-
var adjustedLength = originalFunction.length - (arguments.length - 1);
|
|
13
|
-
return setFunctionLength(
|
|
14
|
-
func,
|
|
15
|
-
1 + (adjustedLength > 0 ? adjustedLength : 0),
|
|
16
|
-
true
|
|
17
|
-
);
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
if ($defineProperty) {
|
|
21
|
-
$defineProperty(module.exports, 'apply', { value: applyBind });
|
|
22
|
-
} else {
|
|
23
|
-
module.exports.apply = applyBind;
|
|
24
|
-
}
|