@pgarbe/cdk-ecr-sync 0.5.39 → 0.5.40
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 +4 -4
- package/API.md +15 -1
- package/lib/ecr-sync.js +1 -1
- package/node_modules/aws-sdk/README.md +16 -201
- package/node_modules/aws-sdk/apis/s3-2006-03-01.examples.json +100 -100
- package/node_modules/aws-sdk/apis/s3-2006-03-01.min.json +167 -102
- package/node_modules/aws-sdk/clients/s3.d.ts +192 -128
- package/node_modules/aws-sdk/dist/aws-sdk-core-react-native.js +756 -346
- package/node_modules/aws-sdk/dist/aws-sdk-react-native.js +3759 -2939
- package/node_modules/aws-sdk/dist/aws-sdk.js +172 -107
- package/node_modules/aws-sdk/dist/aws-sdk.min.js +24 -24
- package/node_modules/aws-sdk/lib/core.js +1 -1
- package/node_modules/aws-sdk/lib/maintenance_mode_message.js +2 -2
- package/node_modules/aws-sdk/package.json +1 -1
- package/node_modules/call-bind/CHANGELOG.md +13 -0
- package/node_modules/call-bind/index.js +6 -17
- package/node_modules/call-bind/package.json +14 -16
- package/node_modules/call-bind/test/index.js +4 -10
- package/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
- package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
- package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
- package/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
- package/node_modules/{has-proto → call-bind-apply-helpers}/LICENSE +1 -1
- package/node_modules/call-bind-apply-helpers/README.md +62 -0
- package/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
- package/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
- package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
- package/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
- package/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
- package/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
- package/node_modules/call-bind-apply-helpers/index.js +15 -0
- package/node_modules/call-bind-apply-helpers/package.json +85 -0
- package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
- package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
- package/node_modules/call-bind-apply-helpers/test/index.js +63 -0
- package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
- package/node_modules/call-bound/.eslintrc +13 -0
- package/node_modules/call-bound/.github/FUNDING.yml +12 -0
- package/node_modules/call-bound/.nycrc +9 -0
- package/node_modules/call-bound/CHANGELOG.md +42 -0
- package/node_modules/call-bound/LICENSE +21 -0
- package/node_modules/call-bound/README.md +53 -0
- package/node_modules/call-bound/index.d.ts +94 -0
- package/node_modules/call-bound/index.js +19 -0
- package/node_modules/call-bound/package.json +99 -0
- package/node_modules/call-bound/test/index.js +61 -0
- package/node_modules/call-bound/tsconfig.json +10 -0
- package/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
- package/node_modules/dunder-proto/.nycrc +13 -0
- package/node_modules/dunder-proto/CHANGELOG.md +24 -0
- package/node_modules/dunder-proto/LICENSE +21 -0
- package/node_modules/dunder-proto/README.md +54 -0
- package/node_modules/dunder-proto/get.d.ts +5 -0
- package/node_modules/dunder-proto/get.js +30 -0
- package/node_modules/dunder-proto/package.json +76 -0
- package/node_modules/dunder-proto/set.d.ts +5 -0
- package/node_modules/dunder-proto/set.js +35 -0
- package/node_modules/dunder-proto/test/get.js +34 -0
- package/node_modules/dunder-proto/test/index.js +4 -0
- package/node_modules/dunder-proto/test/set.js +50 -0
- package/node_modules/dunder-proto/tsconfig.json +9 -0
- package/node_modules/es-define-property/CHANGELOG.md +14 -0
- package/node_modules/es-define-property/index.js +1 -3
- package/node_modules/es-define-property/package.json +12 -12
- package/node_modules/es-define-property/test/index.js +1 -0
- package/node_modules/es-define-property/tsconfig.json +2 -42
- package/node_modules/es-object-atoms/.eslintrc +16 -0
- package/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
- package/node_modules/es-object-atoms/CHANGELOG.md +37 -0
- package/node_modules/es-object-atoms/LICENSE +21 -0
- package/node_modules/es-object-atoms/README.md +63 -0
- package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
- package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
- package/node_modules/es-object-atoms/ToObject.d.ts +7 -0
- package/node_modules/es-object-atoms/ToObject.js +10 -0
- package/node_modules/es-object-atoms/index.d.ts +3 -0
- package/node_modules/es-object-atoms/index.js +4 -0
- package/node_modules/es-object-atoms/isObject.d.ts +3 -0
- package/node_modules/es-object-atoms/isObject.js +6 -0
- package/node_modules/es-object-atoms/package.json +80 -0
- package/node_modules/es-object-atoms/test/index.js +38 -0
- package/node_modules/es-object-atoms/tsconfig.json +6 -0
- package/node_modules/for-each/.eslintrc +16 -2
- package/node_modules/{has-proto → for-each}/.github/FUNDING.yml +1 -1
- package/node_modules/for-each/.github/SECURITY.md +3 -0
- package/node_modules/for-each/.nycrc +8 -0
- package/node_modules/for-each/CHANGELOG.md +107 -0
- package/node_modules/for-each/README.md +0 -4
- package/node_modules/for-each/index.d.ts +35 -0
- package/node_modules/for-each/index.js +11 -4
- package/node_modules/for-each/package.json +47 -36
- package/node_modules/for-each/test/test.js +54 -12
- package/node_modules/for-each/tsconfig.json +8 -0
- package/node_modules/generator-function/.eslintrc +16 -0
- package/node_modules/generator-function/.github/FUNDING.yml +12 -0
- package/node_modules/generator-function/.nycrc +9 -0
- package/node_modules/generator-function/CHANGELOG.md +27 -0
- package/node_modules/generator-function/LICENSE.md +7 -0
- package/node_modules/generator-function/README.md +51 -0
- package/node_modules/generator-function/index.d.mts +3 -0
- package/node_modules/generator-function/index.d.ts +3 -0
- package/node_modules/generator-function/index.js +8 -0
- package/node_modules/generator-function/index.mjs +4 -0
- package/node_modules/generator-function/legacy.js +18 -0
- package/node_modules/generator-function/package.json +88 -0
- package/node_modules/generator-function/require.mjs +5 -0
- package/node_modules/generator-function/test/index.js +42 -0
- package/node_modules/generator-function/tsconfig.json +9 -0
- package/node_modules/get-intrinsic/.eslintrc +4 -0
- package/node_modules/get-intrinsic/CHANGELOG.md +43 -0
- package/node_modules/get-intrinsic/index.js +40 -21
- package/node_modules/get-intrinsic/package.json +24 -20
- package/node_modules/get-intrinsic/test/GetIntrinsic.js +2 -2
- package/node_modules/get-proto/.eslintrc +10 -0
- package/node_modules/get-proto/.github/FUNDING.yml +12 -0
- package/node_modules/get-proto/.nycrc +9 -0
- package/node_modules/get-proto/CHANGELOG.md +21 -0
- package/node_modules/get-proto/LICENSE +21 -0
- package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
- package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
- package/node_modules/get-proto/README.md +50 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
- package/node_modules/get-proto/index.d.ts +5 -0
- package/node_modules/get-proto/index.js +27 -0
- package/node_modules/{has-proto → get-proto}/package.json +32 -29
- package/node_modules/get-proto/test/index.js +68 -0
- package/node_modules/get-proto/tsconfig.json +9 -0
- package/node_modules/gopd/CHANGELOG.md +20 -0
- package/node_modules/gopd/gOPD.d.ts +1 -0
- package/node_modules/gopd/gOPD.js +4 -0
- package/node_modules/gopd/index.d.ts +5 -0
- package/node_modules/gopd/index.js +2 -3
- package/node_modules/gopd/package.json +16 -10
- package/node_modules/gopd/test/index.js +2 -1
- package/node_modules/gopd/tsconfig.json +9 -0
- package/node_modules/has-symbols/CHANGELOG.md +16 -0
- package/node_modules/has-symbols/index.d.ts +3 -0
- package/node_modules/has-symbols/index.js +1 -0
- package/node_modules/has-symbols/package.json +19 -9
- package/node_modules/has-symbols/shams.d.ts +3 -0
- package/node_modules/has-symbols/shams.js +5 -2
- package/node_modules/has-symbols/test/shams/core-js.js +1 -0
- package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +1 -0
- package/node_modules/has-symbols/test/tests.js +4 -2
- package/node_modules/has-symbols/tsconfig.json +10 -0
- package/node_modules/is-arguments/.eslintrc +0 -1
- package/node_modules/is-arguments/CHANGELOG.md +22 -0
- package/node_modules/is-arguments/README.md +11 -11
- package/node_modules/is-arguments/index.d.ts +6 -0
- package/node_modules/is-arguments/index.js +19 -8
- package/node_modules/is-arguments/package.json +25 -11
- package/node_modules/is-arguments/test/index.js +4 -1
- package/node_modules/is-arguments/tsconfig.json +9 -0
- package/node_modules/is-generator-function/.eslintrc +1 -1
- package/node_modules/is-generator-function/CHANGELOG.md +38 -0
- package/node_modules/is-generator-function/index.d.ts +3 -0
- package/node_modules/is-generator-function/index.js +14 -21
- package/node_modules/is-generator-function/package.json +32 -12
- package/node_modules/is-generator-function/test/corejs.js +1 -0
- package/node_modules/is-generator-function/test/index.js +4 -7
- package/node_modules/is-generator-function/test/uglified.js +1 -0
- package/node_modules/is-generator-function/tsconfig.json +9 -0
- package/node_modules/is-regex/.editorconfig +23 -0
- package/node_modules/is-regex/.eslintrc +10 -0
- package/node_modules/is-regex/.nycrc +10 -0
- package/node_modules/is-regex/CHANGELOG.md +233 -0
- package/node_modules/is-regex/LICENSE +20 -0
- package/node_modules/is-regex/README.md +52 -0
- package/node_modules/is-regex/index.d.ts +3 -0
- package/node_modules/is-regex/index.js +69 -0
- package/node_modules/is-regex/package.json +104 -0
- package/node_modules/is-regex/test/index.js +121 -0
- package/node_modules/is-regex/tsconfig.json +9 -0
- package/node_modules/is-typed-array/CHANGELOG.md +22 -0
- package/node_modules/is-typed-array/index.d.ts +7 -14
- package/node_modules/is-typed-array/package.json +15 -13
- package/node_modules/is-typed-array/tsconfig.json +4 -47
- package/node_modules/math-intrinsics/.eslintrc +16 -0
- package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
- package/node_modules/math-intrinsics/CHANGELOG.md +24 -0
- package/node_modules/math-intrinsics/LICENSE +21 -0
- package/node_modules/math-intrinsics/README.md +50 -0
- package/node_modules/math-intrinsics/abs.d.ts +1 -0
- package/node_modules/math-intrinsics/abs.js +4 -0
- package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
- package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
- package/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
- package/node_modules/math-intrinsics/floor.d.ts +1 -0
- package/node_modules/math-intrinsics/floor.js +4 -0
- package/node_modules/math-intrinsics/isFinite.d.ts +3 -0
- package/node_modules/math-intrinsics/isFinite.js +12 -0
- package/node_modules/math-intrinsics/isInteger.d.ts +3 -0
- package/node_modules/math-intrinsics/isInteger.js +16 -0
- package/node_modules/math-intrinsics/isNaN.d.ts +1 -0
- package/node_modules/math-intrinsics/isNaN.js +6 -0
- package/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
- package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
- package/node_modules/math-intrinsics/max.d.ts +1 -0
- package/node_modules/math-intrinsics/max.js +4 -0
- package/node_modules/math-intrinsics/min.d.ts +1 -0
- package/node_modules/math-intrinsics/min.js +4 -0
- package/node_modules/math-intrinsics/mod.d.ts +3 -0
- package/node_modules/math-intrinsics/mod.js +9 -0
- package/node_modules/math-intrinsics/package.json +86 -0
- package/node_modules/math-intrinsics/pow.d.ts +1 -0
- package/node_modules/math-intrinsics/pow.js +4 -0
- package/node_modules/math-intrinsics/round.d.ts +1 -0
- package/node_modules/math-intrinsics/round.js +4 -0
- package/node_modules/math-intrinsics/sign.d.ts +3 -0
- package/node_modules/math-intrinsics/sign.js +11 -0
- package/node_modules/math-intrinsics/test/index.js +192 -0
- package/node_modules/math-intrinsics/tsconfig.json +3 -0
- package/node_modules/possible-typed-array-names/CHANGELOG.md +14 -0
- package/node_modules/possible-typed-array-names/README.md +4 -2
- package/node_modules/possible-typed-array-names/index.d.ts +1 -0
- package/node_modules/possible-typed-array-names/index.js +1 -0
- package/node_modules/possible-typed-array-names/package.json +10 -9
- package/node_modules/possible-typed-array-names/test/index.js +6 -3
- package/node_modules/possible-typed-array-names/tsconfig.json +2 -42
- package/node_modules/readable-stream/node_modules/isarray/.npmignore +1 -0
- package/node_modules/readable-stream/node_modules/isarray/.travis.yml +4 -0
- package/node_modules/readable-stream/node_modules/isarray/Makefile +6 -0
- package/node_modules/readable-stream/node_modules/isarray/README.md +60 -0
- package/node_modules/readable-stream/node_modules/isarray/component.json +19 -0
- package/node_modules/readable-stream/node_modules/isarray/index.js +5 -0
- package/node_modules/readable-stream/node_modules/isarray/package.json +45 -0
- package/node_modules/readable-stream/node_modules/isarray/test.js +20 -0
- package/node_modules/safe-regex-test/.eslintrc +9 -0
- package/node_modules/safe-regex-test/.github/FUNDING.yml +12 -0
- package/node_modules/safe-regex-test/.nycrc +13 -0
- package/node_modules/safe-regex-test/CHANGELOG.md +55 -0
- package/node_modules/safe-regex-test/LICENSE +21 -0
- package/node_modules/safe-regex-test/README.md +46 -0
- package/node_modules/safe-regex-test/index.d.ts +3 -0
- package/node_modules/safe-regex-test/index.js +17 -0
- package/node_modules/safe-regex-test/package.json +87 -0
- package/node_modules/safe-regex-test/test/index.js +41 -0
- package/node_modules/safe-regex-test/tsconfig.json +9 -0
- package/node_modules/which-typed-array/.eslintrc +1 -0
- package/node_modules/which-typed-array/CHANGELOG.md +45 -0
- package/node_modules/which-typed-array/README.md +1 -1
- package/node_modules/which-typed-array/index.d.ts +9 -4
- package/node_modules/which-typed-array/index.js +29 -23
- package/node_modules/which-typed-array/package.json +19 -17
- package/node_modules/which-typed-array/tsconfig.json +1 -1
- package/node_modules/xml2js/node_modules/sax/LICENSE.md +55 -0
- package/node_modules/xml2js/node_modules/sax/README.md +42 -43
- package/node_modules/xml2js/node_modules/sax/lib/sax.js +473 -366
- package/node_modules/xml2js/node_modules/sax/package.json +11 -9
- package/package.json +19 -21
- package/node_modules/for-each/.travis.yml +0 -45
- package/node_modules/for-each/test/.eslintrc +0 -8
- package/node_modules/has-proto/CHANGELOG.md +0 -38
- package/node_modules/has-proto/README.md +0 -38
- package/node_modules/has-proto/index.d.ts +0 -3
- package/node_modules/has-proto/index.js +0 -15
- package/node_modules/has-proto/test/index.js +0 -19
- package/node_modules/has-proto/tsconfig.json +0 -49
- package/node_modules/is-arguments/.eslintignore +0 -1
- package/node_modules/is-generator-function/.eslintignore +0 -1
- package/node_modules/xml2js/node_modules/sax/LICENSE +0 -41
- /package/node_modules/{isarray → buffer/node_modules/isarray}/.npmignore +0 -0
- /package/node_modules/{isarray → buffer/node_modules/isarray}/.travis.yml +0 -0
- /package/node_modules/{isarray → buffer/node_modules/isarray}/Makefile +0 -0
- /package/node_modules/{isarray → buffer/node_modules/isarray}/README.md +0 -0
- /package/node_modules/{isarray → buffer/node_modules/isarray}/component.json +0 -0
- /package/node_modules/{isarray → buffer/node_modules/isarray}/index.js +0 -0
- /package/node_modules/{isarray → buffer/node_modules/isarray}/package.json +0 -0
- /package/node_modules/{isarray → buffer/node_modules/isarray}/test.js +0 -0
- /package/node_modules/{has-proto → dunder-proto}/.eslintrc +0 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "es-object-atoms",
|
|
3
|
+
"version": "1.1.1",
|
|
4
|
+
"description": "ES Object-related atoms: Object, ToObject, RequireObjectCoercible",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": "./index.js",
|
|
8
|
+
"./RequireObjectCoercible": "./RequireObjectCoercible.js",
|
|
9
|
+
"./isObject": "./isObject.js",
|
|
10
|
+
"./ToObject": "./ToObject.js",
|
|
11
|
+
"./package.json": "./package.json"
|
|
12
|
+
},
|
|
13
|
+
"sideEffects": false,
|
|
14
|
+
"scripts": {
|
|
15
|
+
"prepack": "npmignore --auto --commentLines=autogenerated",
|
|
16
|
+
"prepublishOnly": "safe-publish-latest",
|
|
17
|
+
"prepublish": "not-in-publish || npm run prepublishOnly",
|
|
18
|
+
"pretest": "npm run lint",
|
|
19
|
+
"test": "npm run tests-only",
|
|
20
|
+
"tests-only": "nyc tape 'test/**/*.js'",
|
|
21
|
+
"posttest": "npx npm@\">= 10.2\" audit --production",
|
|
22
|
+
"prelint": "evalmd README.md",
|
|
23
|
+
"lint": "eslint --ext=js,mjs .",
|
|
24
|
+
"postlint": "tsc -p . && eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' | grep -v dist/)",
|
|
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/ljharb/es-object-atoms.git"
|
|
31
|
+
},
|
|
32
|
+
"keywords": [
|
|
33
|
+
"javascript",
|
|
34
|
+
"ecmascript",
|
|
35
|
+
"object",
|
|
36
|
+
"toobject",
|
|
37
|
+
"coercible"
|
|
38
|
+
],
|
|
39
|
+
"author": "Jordan Harband <ljharb@gmail.com>",
|
|
40
|
+
"license": "MIT",
|
|
41
|
+
"bugs": {
|
|
42
|
+
"url": "https://github.com/ljharb/es-object-atoms/issues"
|
|
43
|
+
},
|
|
44
|
+
"homepage": "https://github.com/ljharb/es-object-atoms#readme",
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"es-errors": "^1.3.0"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@ljharb/eslint-config": "^21.1.1",
|
|
50
|
+
"@ljharb/tsconfig": "^0.2.3",
|
|
51
|
+
"@types/tape": "^5.8.1",
|
|
52
|
+
"auto-changelog": "^2.5.0",
|
|
53
|
+
"eclint": "^2.8.1",
|
|
54
|
+
"encoding": "^0.1.13",
|
|
55
|
+
"eslint": "^8.8.0",
|
|
56
|
+
"evalmd": "^0.0.19",
|
|
57
|
+
"in-publish": "^2.0.1",
|
|
58
|
+
"npmignore": "^0.3.1",
|
|
59
|
+
"nyc": "^10.3.2",
|
|
60
|
+
"safe-publish-latest": "^2.0.0",
|
|
61
|
+
"tape": "^5.9.0",
|
|
62
|
+
"typescript": "next"
|
|
63
|
+
},
|
|
64
|
+
"auto-changelog": {
|
|
65
|
+
"output": "CHANGELOG.md",
|
|
66
|
+
"template": "keepachangelog",
|
|
67
|
+
"unreleased": false,
|
|
68
|
+
"commitLimit": false,
|
|
69
|
+
"backfillLimit": false,
|
|
70
|
+
"hideCredit": true
|
|
71
|
+
},
|
|
72
|
+
"publishConfig": {
|
|
73
|
+
"ignore": [
|
|
74
|
+
".github/workflows"
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
"engines": {
|
|
78
|
+
"node": ">= 0.4"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var test = require('tape');
|
|
4
|
+
|
|
5
|
+
var $Object = require('../');
|
|
6
|
+
var isObject = require('../isObject');
|
|
7
|
+
var ToObject = require('../ToObject');
|
|
8
|
+
var RequireObjectCoercible = require('..//RequireObjectCoercible');
|
|
9
|
+
|
|
10
|
+
test('errors', function (t) {
|
|
11
|
+
t.equal($Object, Object);
|
|
12
|
+
// @ts-expect-error
|
|
13
|
+
t['throws'](function () { ToObject(null); }, TypeError);
|
|
14
|
+
// @ts-expect-error
|
|
15
|
+
t['throws'](function () { ToObject(undefined); }, TypeError);
|
|
16
|
+
// @ts-expect-error
|
|
17
|
+
t['throws'](function () { RequireObjectCoercible(null); }, TypeError);
|
|
18
|
+
// @ts-expect-error
|
|
19
|
+
t['throws'](function () { RequireObjectCoercible(undefined); }, TypeError);
|
|
20
|
+
|
|
21
|
+
t.deepEqual(RequireObjectCoercible(true), true);
|
|
22
|
+
t.deepEqual(ToObject(true), Object(true));
|
|
23
|
+
t.deepEqual(ToObject(42), Object(42));
|
|
24
|
+
var f = function () {};
|
|
25
|
+
t.equal(ToObject(f), f);
|
|
26
|
+
|
|
27
|
+
t.equal(isObject(undefined), false);
|
|
28
|
+
t.equal(isObject(null), false);
|
|
29
|
+
t.equal(isObject({}), true);
|
|
30
|
+
t.equal(isObject([]), true);
|
|
31
|
+
t.equal(isObject(function () {}), true);
|
|
32
|
+
|
|
33
|
+
var obj = {};
|
|
34
|
+
t.equal(RequireObjectCoercible(obj), obj);
|
|
35
|
+
t.equal(ToObject(obj), obj);
|
|
36
|
+
|
|
37
|
+
t.end();
|
|
38
|
+
});
|
|
@@ -6,11 +6,25 @@
|
|
|
6
6
|
"rules": {
|
|
7
7
|
"eqeqeq": [2, "allow-null"],
|
|
8
8
|
"func-name-matching": 0,
|
|
9
|
+
"func-style": 0,
|
|
9
10
|
"indent": [2, 4],
|
|
10
11
|
"max-nested-callbacks": [2, 3],
|
|
11
12
|
"max-params": [2, 3],
|
|
12
13
|
"max-statements": [2, 14],
|
|
13
|
-
"no-
|
|
14
|
+
"no-extra-parens": 0,
|
|
15
|
+
"no-invalid-this": 1,
|
|
14
16
|
"no-restricted-syntax": [2, "BreakStatement", "ContinueStatement", "DebuggerStatement", "LabeledStatement", "WithStatement"],
|
|
15
|
-
}
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
"overrides": [
|
|
20
|
+
{
|
|
21
|
+
"files": "test/**",
|
|
22
|
+
"rules": {
|
|
23
|
+
"array-bracket-newline": 0,
|
|
24
|
+
"array-element-newline": 0,
|
|
25
|
+
"max-statements-per-line": 0,
|
|
26
|
+
"no-magic-numbers": 0,
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
],
|
|
16
30
|
}
|
|
@@ -4,7 +4,7 @@ github: [ljharb]
|
|
|
4
4
|
patreon: # Replace with a single Patreon username
|
|
5
5
|
open_collective: # Replace with a single Open Collective username
|
|
6
6
|
ko_fi: # Replace with a single Ko-fi username
|
|
7
|
-
tidelift: npm/
|
|
7
|
+
tidelift: npm/for-each
|
|
8
8
|
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
|
9
9
|
liberapay: # Replace with a single Liberapay username
|
|
10
10
|
issuehunt: # Replace with a single IssueHunt username
|
|
@@ -0,0 +1,107 @@
|
|
|
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
|
+
## [v0.3.5](https://github.com/ljharb/for-each/compare/v0.3.4...v0.3.5) - 2025-02-10
|
|
9
|
+
|
|
10
|
+
### Commits
|
|
11
|
+
|
|
12
|
+
- [New] add types [`6483c1e`](https://github.com/ljharb/for-each/commit/6483c1e9b6177e5ca9ba506188300c5a25de26c2)
|
|
13
|
+
|
|
14
|
+
## [v0.3.4](https://github.com/ljharb/for-each/compare/v0.3.3...v0.3.4) - 2025-01-24
|
|
15
|
+
|
|
16
|
+
### Commits
|
|
17
|
+
|
|
18
|
+
- [meta] use `auto-changelog` [`c16ee6a`](https://github.com/ljharb/for-each/commit/c16ee6a125eb3c6d30f626b4b02ec849a63fca28)
|
|
19
|
+
- [Tests] add github actions [`379b59c`](https://github.com/ljharb/for-each/commit/379b59c8f282c2281ba668e3e028ad6410afb99b)
|
|
20
|
+
- [meta] delete `.travis.yml` [`09e5c77`](https://github.com/ljharb/for-each/commit/09e5c779651215c41bd4727e266a5e7ebb3b0a4d)
|
|
21
|
+
- [Dev Deps] update eslint things [`9163b86`](https://github.com/ljharb/for-each/commit/9163b86435be325965f096ac17793a0e783b1c1e)
|
|
22
|
+
- [meta] consolidate eslintrc files [`f2ab52b`](https://github.com/ljharb/for-each/commit/f2ab52b6944fe8c1a189957889276950393eddb3)
|
|
23
|
+
- [meta] add `funding` field and `FUNDING.yml` [`05d21b3`](https://github.com/ljharb/for-each/commit/05d21b382ccd4627b283d1a31c49935c7d79fd57)
|
|
24
|
+
- [Tests] up to `node` `v10`; use `nvm install-latest-npm` [`7c06cbd`](https://github.com/ljharb/for-each/commit/7c06cbdabea81ba029cd466545dea5cb9f24f528)
|
|
25
|
+
- [Tests] add `nyc` [`0f4643e`](https://github.com/ljharb/for-each/commit/0f4643e6a572bdc6967a17be8e7b959600edbbd2)
|
|
26
|
+
- [meta] use `npmignore` [`39a975c`](https://github.com/ljharb/for-each/commit/39a975c8c6050586b93b5e0a98b20be44d1b38d4)
|
|
27
|
+
- [meta] remove unnecessary `licenses` key [`3d064f1`](https://github.com/ljharb/for-each/commit/3d064f12167c12d8e1d1ee1447ee58d8211c63e1)
|
|
28
|
+
- [Tests] use `npm audit` instead of long-dead `nsp` [`d4c722a`](https://github.com/ljharb/for-each/commit/d4c722a0f61f61d93965328f436f87421bce9973)
|
|
29
|
+
- [Dev Deps] update `tape` [`552c1ae`](https://github.com/ljharb/for-each/commit/552c1ae6a01728ff312d47605dbdb961ef0ccbcc)
|
|
30
|
+
- Update README.md [`d19acc2`](https://github.com/ljharb/for-each/commit/d19acc23624eed9d8f59b9fa64e6e3cba638aa52)
|
|
31
|
+
- [meta] add missing `engines.node` [`8889b49`](https://github.com/ljharb/for-each/commit/8889b49bd737d7a72c2a515eb2ee39a01c813bac)
|
|
32
|
+
- [meta] create SECURITY.md [`9069d42`](https://github.com/ljharb/for-each/commit/9069d42d245b02ae7c5f0c193fceb55427436e4e)
|
|
33
|
+
- [Deps] update `is-callable` [`bfa51d1`](https://github.com/ljharb/for-each/commit/bfa51d18018477843147bcdcc6cc63eb045151f5)
|
|
34
|
+
|
|
35
|
+
## [v0.3.3](https://github.com/ljharb/for-each/compare/v0.3.2...v0.3.3) - 2018-06-01
|
|
36
|
+
|
|
37
|
+
### Commits
|
|
38
|
+
|
|
39
|
+
- Add `npm run lint`, `npm run jscs`, and `npm run eslint` [`4a17d99`](https://github.com/ljharb/for-each/commit/4a17d99d7397dd2356530d238e0e6c37ef34a1d5)
|
|
40
|
+
- Style cleanup: [`1df6824`](https://github.com/ljharb/for-each/commit/1df6824d96bfc293c0c9e6b78143b602c8d94986)
|
|
41
|
+
- Update `eslint`, `tape`; use my personal shared `eslint` config. [`b8e7d85`](https://github.com/ljharb/for-each/commit/b8e7d850ec9010a7171d34297f7af74b90f28aac)
|
|
42
|
+
- [Tests] remove jscs [`37e3557`](https://github.com/ljharb/for-each/commit/37e355784b4261dcf5004158a72c4b8a6c6c524f)
|
|
43
|
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `nsp`, `tape`; fix scripts [`566045d`](https://github.com/ljharb/for-each/commit/566045d84f2ee5dff7cc14805c4fdb1d13d2624d)
|
|
44
|
+
- [Tests] up to `node` `v8`; newer npm breaks on older node [`07177dc`](https://github.com/ljharb/for-each/commit/07177dc9c8419b2a887c727ec576189a7c8e7837)
|
|
45
|
+
- Run `npm run lint` as part of tests. [`a34ea05`](https://github.com/ljharb/for-each/commit/a34ea05f729e0987007670d5693e093c56865ef6)
|
|
46
|
+
- Update `travis.yml` to test on the latest `node` and `io.js` [`354c843`](https://github.com/ljharb/for-each/commit/354c8434a166c7095c613e818c8d542fd1e2d630)
|
|
47
|
+
- Update `eslint` [`3601c93`](https://github.com/ljharb/for-each/commit/3601c9348e2cfb29ed3cfee352c2c95d4a8de87f)
|
|
48
|
+
- Update `tape`, `jscs`, `eslint`, `@ljharb/eslint-config` [`1aaff65`](https://github.com/ljharb/for-each/commit/1aaff65a55d8a054561251c6a2501c4dc42e1f99)
|
|
49
|
+
- Only use `Function#call` to call the callback if the receiver is supplied, for performance. [`54b4775`](https://github.com/ljharb/for-each/commit/54b477571b4d7c11edccafd94f2e16380892ee5d)
|
|
50
|
+
- [Dev Deps] update `jscs`, `eslint`, `@ljharb/eslint-config`, `nsp` [`6ba1cb8`](https://github.com/ljharb/for-each/commit/6ba1cb8a708e84ba4bb4067d31549829ec579d92)
|
|
51
|
+
- [Dev Deps] update `tape`, `eslint`, `jscs` [`8f5e1d5`](https://github.com/ljharb/for-each/commit/8f5e1d5fcabaf3abaa6ce2d3e6dd095f0dedfc4e)
|
|
52
|
+
- Add "license" to `package.json`, matching the LICENSE file. [`defc2c3`](https://github.com/ljharb/for-each/commit/defc2c35ffa7c9d4fbcf846f28b436f0083a381c)
|
|
53
|
+
- Update `eslint` [`05d1850`](https://github.com/ljharb/for-each/commit/05d18503dd0ec709f93df5c905bd2d0ce51323c3)
|
|
54
|
+
- [Tests] on `io.js` `v3.3`, `node` `v4.0` [`e8395a4`](https://github.com/ljharb/for-each/commit/e8395a43feef399299839c8d466ddd9dca0c3268)
|
|
55
|
+
- Add `npm run security` [`0a45177`](https://github.com/ljharb/for-each/commit/0a45177290b1de71094ddd322ef4a504458e901d)
|
|
56
|
+
- Only apps should have lockfiles. [`6268d7b`](https://github.com/ljharb/for-each/commit/6268d7b39edd06ef5a283c7afdb6c823077db777)
|
|
57
|
+
- [Dev Deps] update `nsp`, `tape`, `eslint` [`b95939f`](https://github.com/ljharb/for-each/commit/b95939f66a3dad590b3bc42c53535e77c1bfc114)
|
|
58
|
+
- Use `is-callable` instead of `is-function`, to cover ES6 environments with `Symbol.toStringTag` [`4095d33`](https://github.com/ljharb/for-each/commit/4095d334581c1caee92f595c299ffc479806dc3f)
|
|
59
|
+
- Test on `io.js` `v2.2` [`7b44f98`](https://github.com/ljharb/for-each/commit/7b44f98c217291a92385ddd3903d4974e049d762)
|
|
60
|
+
- Some old browsers choke on variables named "toString". [`4f1b626`](https://github.com/ljharb/for-each/commit/4f1b626eb91fcdc0e9018472a702aea713799190)
|
|
61
|
+
- Update `is-function`, `tape` [`3ceaf32`](https://github.com/ljharb/for-each/commit/3ceaf3240ef7d1b261cf510eb932cf540291187b)
|
|
62
|
+
- Test up to `io.js` `v3.0` [`3c1377a`](https://github.com/ljharb/for-each/commit/3c1377a31adf003323f4846a97e8f7c8fd51b5d2)
|
|
63
|
+
- [Deps] update `is-callable` [`f5c62d0`](https://github.com/ljharb/for-each/commit/f5c62d034b582a15bcb1f1cadace4e9c84f1780a)
|
|
64
|
+
- Test on `io.js` `v2.4` [`db86c85`](https://github.com/ljharb/for-each/commit/db86c85641d053a1dc4e570e8c8afbea915f78c0)
|
|
65
|
+
- Test on `io.js` `v2.3` [`2f04ca8`](https://github.com/ljharb/for-each/commit/2f04ca885adb4a8ccca658739f771a7f78522d03)
|
|
66
|
+
|
|
67
|
+
## [v0.3.2](https://github.com/ljharb/for-each/compare/v0.3.1...v0.3.2) - 2014-01-07
|
|
68
|
+
|
|
69
|
+
### Merged
|
|
70
|
+
|
|
71
|
+
- works down to IE6 [`#5`](https://github.com/ljharb/for-each/pull/5)
|
|
72
|
+
|
|
73
|
+
## [v0.3.1](https://github.com/ljharb/for-each/compare/v0.3.0...v0.3.1) - 2014-01-06
|
|
74
|
+
|
|
75
|
+
## [v0.3.0](https://github.com/ljharb/for-each/compare/v0.2.0...v0.3.0) - 2014-01-06
|
|
76
|
+
|
|
77
|
+
### Merged
|
|
78
|
+
|
|
79
|
+
- remove use of Object.keys [`#4`](https://github.com/ljharb/for-each/pull/4)
|
|
80
|
+
- Update tape. [`#3`](https://github.com/ljharb/for-each/pull/3)
|
|
81
|
+
- regex is not a function [`#2`](https://github.com/ljharb/for-each/pull/2)
|
|
82
|
+
- Add testling [`#1`](https://github.com/ljharb/for-each/pull/1)
|
|
83
|
+
|
|
84
|
+
### Commits
|
|
85
|
+
|
|
86
|
+
- Add testling. [`a24b521`](https://github.com/ljharb/for-each/commit/a24b52111937d509a3b5f58106c8835283de7146)
|
|
87
|
+
- Add array example to README [`9bd70c2`](https://github.com/ljharb/for-each/commit/9bd70c2ceafddfc734a80e0fea2bbac00afa963a)
|
|
88
|
+
- Regexes are considered functions in older browsers. [`403f649`](https://github.com/ljharb/for-each/commit/403f6490f903984adea1771af29c41fd2b1e4b64)
|
|
89
|
+
- Adding android browser to testling. [`a4c5825`](https://github.com/ljharb/for-each/commit/a4c5825bf8abd13589b9a9662c9d3deaf89cbf66)
|
|
90
|
+
|
|
91
|
+
## [v0.2.0](https://github.com/ljharb/for-each/compare/v0.1.0...v0.2.0) - 2013-05-10
|
|
92
|
+
|
|
93
|
+
### Commits
|
|
94
|
+
|
|
95
|
+
- Adding tests. [`7e74213`](https://github.com/ljharb/for-each/commit/7e74213d1b5d01b19249c3e3037302bd7fc74f1c)
|
|
96
|
+
- Adding proper array indexing, as well as string support. [`d36f794`](https://github.com/ljharb/for-each/commit/d36f794d6c0c5696bf1e4f8e79ae667858dfc11b)
|
|
97
|
+
- Use tape instead of tap. [`016a3cf`](https://github.com/ljharb/for-each/commit/016a3cf706c78037384d4c378b2ebe6e702cbb02)
|
|
98
|
+
- Requiring that the iterator is a function. [`cfedced`](https://github.com/ljharb/for-each/commit/cfedceda15ea2f7eb4acf079fb90ce17ec7da664)
|
|
99
|
+
- Adding myself as a contributor :-) [`ff28fca`](https://github.com/ljharb/for-each/commit/ff28fca8ec30f6fdbb7af87c74ed35688e60d07a)
|
|
100
|
+
- Adding node 0.10 to travis [`75f2460`](https://github.com/ljharb/for-each/commit/75f2460343d3ea58f91dad45f2eda478e3a4e412)
|
|
101
|
+
|
|
102
|
+
## v0.1.0 - 2012-09-28
|
|
103
|
+
|
|
104
|
+
### Commits
|
|
105
|
+
|
|
106
|
+
- first [`2d3a6ed`](https://github.com/ljharb/for-each/commit/2d3a6ed63036455847937cf00bec56b59ab36a9d)
|
|
107
|
+
- docs & travis [`ea4caad`](https://github.com/ljharb/for-each/commit/ea4caad8a8768992dcce29998e226484beed841c)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare function forEach<O extends readonly unknown[], This = undefined>(
|
|
2
|
+
arr: O,
|
|
3
|
+
callback: (this: This | void, value: O[number], index: number, array: O) => void,
|
|
4
|
+
thisArg?: This,
|
|
5
|
+
): void;
|
|
6
|
+
|
|
7
|
+
declare function forEach<O extends ArrayLike<unknown>, This = undefined>(
|
|
8
|
+
arr: O,
|
|
9
|
+
callback: (this: This | void, value: O[number], index: number, array: O) => void,
|
|
10
|
+
thisArg?: This,
|
|
11
|
+
): void;
|
|
12
|
+
|
|
13
|
+
declare function forEach<O extends object, This = undefined>(
|
|
14
|
+
obj: O,
|
|
15
|
+
callback: (this: This | void, value: O[keyof O], key: keyof O, obj: O) => void,
|
|
16
|
+
thisArg?: This,
|
|
17
|
+
): void;
|
|
18
|
+
|
|
19
|
+
declare function forEach<O extends string, This = undefined>(
|
|
20
|
+
str: O,
|
|
21
|
+
callback: (this: This | void, value: O[number], index: number, str: O) => void,
|
|
22
|
+
thisArg: This,
|
|
23
|
+
): void;
|
|
24
|
+
|
|
25
|
+
export = forEach;
|
|
26
|
+
|
|
27
|
+
declare function forEachInternal<O, C extends (this: This | void, value: unknown, index: PropertyKey, obj: O) => void, This = undefined>(
|
|
28
|
+
value: O,
|
|
29
|
+
callback: C,
|
|
30
|
+
thisArg?: This,
|
|
31
|
+
): void;
|
|
32
|
+
|
|
33
|
+
declare namespace forEach {
|
|
34
|
+
export type _internal = typeof forEachInternal;
|
|
35
|
+
}
|
|
@@ -5,6 +5,7 @@ var isCallable = require('is-callable');
|
|
|
5
5
|
var toStr = Object.prototype.toString;
|
|
6
6
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
7
7
|
|
|
8
|
+
/** @type {<This, A extends readonly unknown[]>(arr: A, iterator: (this: This | void, value: A[number], index: number, arr: A) => void, receiver: This | undefined) => void} */
|
|
8
9
|
var forEachArray = function forEachArray(array, iterator, receiver) {
|
|
9
10
|
for (var i = 0, len = array.length; i < len; i++) {
|
|
10
11
|
if (hasOwnProperty.call(array, i)) {
|
|
@@ -17,6 +18,7 @@ var forEachArray = function forEachArray(array, iterator, receiver) {
|
|
|
17
18
|
}
|
|
18
19
|
};
|
|
19
20
|
|
|
21
|
+
/** @type {<This, S extends string>(string: S, iterator: (this: This | void, value: S[number], index: number, string: S) => void, receiver: This | undefined) => void} */
|
|
20
22
|
var forEachString = function forEachString(string, iterator, receiver) {
|
|
21
23
|
for (var i = 0, len = string.length; i < len; i++) {
|
|
22
24
|
// no such thing as a sparse string.
|
|
@@ -28,6 +30,7 @@ var forEachString = function forEachString(string, iterator, receiver) {
|
|
|
28
30
|
}
|
|
29
31
|
};
|
|
30
32
|
|
|
33
|
+
/** @type {<This, O>(obj: O, iterator: (this: This | void, value: O[keyof O], index: keyof O, obj: O) => void, receiver: This | undefined) => void} */
|
|
31
34
|
var forEachObject = function forEachObject(object, iterator, receiver) {
|
|
32
35
|
for (var k in object) {
|
|
33
36
|
if (hasOwnProperty.call(object, k)) {
|
|
@@ -40,7 +43,13 @@ var forEachObject = function forEachObject(object, iterator, receiver) {
|
|
|
40
43
|
}
|
|
41
44
|
};
|
|
42
45
|
|
|
43
|
-
|
|
46
|
+
/** @type {(x: unknown) => x is readonly unknown[]} */
|
|
47
|
+
function isArray(x) {
|
|
48
|
+
return toStr.call(x) === '[object Array]';
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** @type {import('.')._internal} */
|
|
52
|
+
module.exports = function forEach(list, iterator, thisArg) {
|
|
44
53
|
if (!isCallable(iterator)) {
|
|
45
54
|
throw new TypeError('iterator must be a function');
|
|
46
55
|
}
|
|
@@ -50,7 +59,7 @@ var forEach = function forEach(list, iterator, thisArg) {
|
|
|
50
59
|
receiver = thisArg;
|
|
51
60
|
}
|
|
52
61
|
|
|
53
|
-
if (
|
|
62
|
+
if (isArray(list)) {
|
|
54
63
|
forEachArray(list, iterator, receiver);
|
|
55
64
|
} else if (typeof list === 'string') {
|
|
56
65
|
forEachString(list, iterator, receiver);
|
|
@@ -58,5 +67,3 @@ var forEach = function forEach(list, iterator, thisArg) {
|
|
|
58
67
|
forEachObject(list, iterator, receiver);
|
|
59
68
|
}
|
|
60
69
|
};
|
|
61
|
-
|
|
62
|
-
module.exports = forEach;
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "for-each",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "A better forEach",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Raynos <raynos2@gmail.com>",
|
|
7
|
-
"repository":
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/Raynos/for-each.git"
|
|
10
|
+
},
|
|
11
|
+
"funding": {
|
|
12
|
+
"url": "https://github.com/sponsors/ljharb"
|
|
13
|
+
},
|
|
8
14
|
"main": "index",
|
|
9
15
|
"homepage": "https://github.com/Raynos/for-each",
|
|
10
16
|
"contributors": [
|
|
@@ -20,46 +26,51 @@
|
|
|
20
26
|
"url": "https://github.com/Raynos/for-each/issues",
|
|
21
27
|
"email": "raynos2@gmail.com"
|
|
22
28
|
},
|
|
23
|
-
"dependencies": {
|
|
24
|
-
"is-callable": "^1.1.3"
|
|
25
|
-
},
|
|
26
|
-
"devDependencies": {
|
|
27
|
-
"@ljharb/eslint-config": "^12.2.1",
|
|
28
|
-
"eslint": "^4.19.1",
|
|
29
|
-
"nsp": "^3.2.1",
|
|
30
|
-
"tape": "^4.9.0"
|
|
31
|
-
},
|
|
32
29
|
"license": "MIT",
|
|
33
|
-
"licenses": [
|
|
34
|
-
{
|
|
35
|
-
"type": "MIT",
|
|
36
|
-
"url": "http://github.com/Raynos/for-each/raw/master/LICENSE"
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
30
|
"scripts": {
|
|
31
|
+
"prepack": "npmignore --auto --commentLines=autogenerated",
|
|
40
32
|
"pretest": "npm run lint",
|
|
41
33
|
"test": "npm run tests-only",
|
|
42
|
-
"tests-only": "
|
|
43
|
-
"posttest": "npm
|
|
44
|
-
"lint": "eslint
|
|
45
|
-
"
|
|
34
|
+
"tests-only": "nyc tape 'test/*.js'",
|
|
35
|
+
"posttest": "npx npm@\">= 10.2\" audit --production",
|
|
36
|
+
"lint": "eslint --ext=js,mjs .",
|
|
37
|
+
"postlint": "tsc && attw -P",
|
|
38
|
+
"version": "auto-changelog && git add CHANGELOG.md",
|
|
39
|
+
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"is-callable": "^1.2.7"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@arethetypeswrong/cli": "^0.17.3",
|
|
46
|
+
"@ljharb/eslint-config": "^21.1.1",
|
|
47
|
+
"@ljharb/tsconfig": "^0.2.3",
|
|
48
|
+
"@types/is-callable": "^1.1.2",
|
|
49
|
+
"@types/tape": "^5.8.1",
|
|
50
|
+
"auto-changelog": "^2.5.0",
|
|
51
|
+
"eslint": "=8.8.0",
|
|
52
|
+
"npmignore": "^0.3.1",
|
|
53
|
+
"nyc": "^10.3.2",
|
|
54
|
+
"tape": "^5.9.0",
|
|
55
|
+
"typescript": "next"
|
|
46
56
|
},
|
|
47
57
|
"testling": {
|
|
48
|
-
"files": "test/test.js"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
"files": "test/test.js"
|
|
59
|
+
},
|
|
60
|
+
"engines": {
|
|
61
|
+
"node": ">= 0.4"
|
|
62
|
+
},
|
|
63
|
+
"auto-changelog": {
|
|
64
|
+
"output": "CHANGELOG.md",
|
|
65
|
+
"template": "keepachangelog",
|
|
66
|
+
"unreleased": false,
|
|
67
|
+
"commitLimit": false,
|
|
68
|
+
"backfillLimit": false,
|
|
69
|
+
"hideCredit": true
|
|
70
|
+
},
|
|
71
|
+
"publishConfig": {
|
|
72
|
+
"ignore": [
|
|
73
|
+
".github/workflows"
|
|
63
74
|
]
|
|
64
75
|
}
|
|
65
76
|
}
|