node-red-contrib-web-worldmap 5.1.4 → 5.1.6
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/CHANGELOG.md +2 -0
- package/README.md +5 -3
- package/examples/Moving Icons Demo & Builder.json +2 -2
- package/node-red-contrib-web-worldmap-5.1.6.tgz +0 -0
- package/node_modules/@types/geojson/README.md +1 -1
- package/node_modules/@types/geojson/index.d.ts +36 -2
- package/node_modules/@types/geojson/package.json +2 -2
- package/node_modules/{call-bind → call-bind-apply-helpers}/.eslintrc +1 -0
- package/node_modules/{has-property-descriptors → call-bind-apply-helpers}/.github/FUNDING.yml +1 -1
- package/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
- package/node_modules/{call-bind → 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-bind → call-bound}/.github/FUNDING.yml +1 -1
- package/node_modules/call-bound/CHANGELOG.md +42 -0
- package/node_modules/{has-property-descriptors → call-bound}/LICENSE +1 -1
- 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-bind → call-bound}/package.json +29 -25
- package/node_modules/{call-bind/test/callBound.js → call-bound/test/index.js} +12 -5
- package/node_modules/call-bound/tsconfig.json +10 -0
- package/node_modules/compression/HISTORY.md +9 -1
- package/node_modules/compression/README.md +103 -30
- package/node_modules/compression/index.js +55 -13
- package/node_modules/compression/package.json +3 -2
- package/node_modules/{define-data-property → dunder-proto}/.github/FUNDING.yml +1 -1
- 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/{has-proto → dunder-proto}/package.json +34 -36
- 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/{set-function-length → es-object-atoms}/.github/FUNDING.yml +1 -1
- package/node_modules/es-object-atoms/CHANGELOG.md +37 -0
- package/node_modules/{define-data-property → es-object-atoms}/LICENSE +1 -1
- 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/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/{has-proto → get-proto}/.github/FUNDING.yml +1 -1
- package/node_modules/get-proto/.nycrc +9 -0
- package/node_modules/get-proto/CHANGELOG.md +21 -0
- package/node_modules/{has-proto → get-proto}/LICENSE +1 -1
- 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-property-descriptors → get-proto}/package.json +35 -31
- 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/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/http-parser-js/http-parser.d.ts +6 -0
- package/node_modules/http-parser-js/http-parser.js +16 -9
- package/node_modules/http-parser-js/package.json +1 -1
- 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/mime-db/HISTORY.md +21 -1
- package/node_modules/mime-db/README.md +7 -1
- package/node_modules/mime-db/db.json +252 -13
- package/node_modules/mime-db/package.json +4 -4
- package/node_modules/object-inspect/CHANGELOG.md +8 -0
- package/node_modules/object-inspect/index.js +10 -7
- package/node_modules/object-inspect/package.json +5 -4
- package/node_modules/object-inspect/test/values.js +50 -0
- package/node_modules/side-channel/.eslintrc +1 -0
- package/node_modules/side-channel/CHANGELOG.md +15 -0
- package/node_modules/side-channel/README.md +60 -1
- package/node_modules/side-channel/index.d.ts +9 -22
- package/node_modules/side-channel/index.js +20 -106
- package/node_modules/side-channel/package.json +20 -19
- package/node_modules/side-channel/test/index.js +76 -55
- package/node_modules/side-channel/tsconfig.json +2 -43
- package/node_modules/side-channel-list/.editorconfig +9 -0
- package/node_modules/side-channel-list/.eslintrc +11 -0
- package/node_modules/side-channel-list/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-list/CHANGELOG.md +15 -0
- package/node_modules/side-channel-list/LICENSE +21 -0
- package/node_modules/side-channel-list/README.md +62 -0
- package/node_modules/side-channel-list/index.d.ts +13 -0
- package/node_modules/side-channel-list/index.js +113 -0
- package/node_modules/side-channel-list/list.d.ts +14 -0
- package/node_modules/side-channel-list/package.json +77 -0
- package/node_modules/side-channel-list/test/index.js +104 -0
- package/node_modules/side-channel-list/tsconfig.json +9 -0
- package/node_modules/side-channel-map/.editorconfig +9 -0
- package/node_modules/side-channel-map/.eslintrc +11 -0
- package/node_modules/side-channel-map/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-map/.nycrc +13 -0
- package/node_modules/side-channel-map/CHANGELOG.md +22 -0
- package/node_modules/side-channel-map/LICENSE +21 -0
- package/node_modules/side-channel-map/README.md +62 -0
- package/node_modules/side-channel-map/index.d.ts +15 -0
- package/node_modules/side-channel-map/index.js +68 -0
- package/node_modules/side-channel-map/package.json +80 -0
- package/node_modules/side-channel-map/test/index.js +114 -0
- package/node_modules/side-channel-map/tsconfig.json +9 -0
- package/node_modules/side-channel-weakmap/.editorconfig +9 -0
- package/node_modules/side-channel-weakmap/.eslintrc +12 -0
- package/node_modules/side-channel-weakmap/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-weakmap/.nycrc +13 -0
- package/node_modules/side-channel-weakmap/CHANGELOG.md +28 -0
- package/node_modules/side-channel-weakmap/LICENSE +21 -0
- package/node_modules/side-channel-weakmap/README.md +62 -0
- package/node_modules/side-channel-weakmap/index.d.ts +15 -0
- package/node_modules/side-channel-weakmap/index.js +84 -0
- package/node_modules/side-channel-weakmap/package.json +87 -0
- package/node_modules/side-channel-weakmap/test/index.js +114 -0
- package/node_modules/side-channel-weakmap/tsconfig.json +9 -0
- package/package.json +2 -2
- package/worldmap/worldmap.js +18 -13
- package/worldmap.html +2 -2
- package/node_modules/call-bind/.eslintignore +0 -1
- package/node_modules/call-bind/CHANGELOG.md +0 -93
- 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 -35
- package/node_modules/call-bind/test/index.js +0 -80
- package/node_modules/define-data-property/.eslintrc +0 -24
- package/node_modules/define-data-property/CHANGELOG.md +0 -70
- 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/has-property-descriptors/.eslintrc +0 -13
- 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/test/index.js +0 -57
- 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/set-function-length/.eslintrc +0 -27
- 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/{call-bind → call-bind-apply-helpers}/.nycrc +0 -0
- /package/node_modules/{has-property-descriptors → call-bound}/.nycrc +0 -0
- /package/node_modules/{has-proto → dunder-proto}/.eslintrc +0 -0
- /package/node_modules/{define-data-property → dunder-proto}/.nycrc +0 -0
- /package/node_modules/{set-function-length → gopd}/tsconfig.json +0 -0
- /package/node_modules/{set-function-length → side-channel-list}/.nycrc +0 -0
|
@@ -1,70 +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.1.4](https://github.com/ljharb/define-data-property/compare/v1.1.3...v1.1.4) - 2024-02-13
|
|
9
|
-
|
|
10
|
-
### Commits
|
|
11
|
-
|
|
12
|
-
- [Refactor] use `es-define-property` [`90f2f4c`](https://github.com/ljharb/define-data-property/commit/90f2f4cc20298401e71c28e1e08888db12021453)
|
|
13
|
-
- [Dev Deps] update `@types/object.getownpropertydescriptors` [`cd929d9`](https://github.com/ljharb/define-data-property/commit/cd929d9a04f5f2fdcfa9d5be140940b91a083153)
|
|
14
|
-
|
|
15
|
-
## [v1.1.3](https://github.com/ljharb/define-data-property/compare/v1.1.2...v1.1.3) - 2024-02-12
|
|
16
|
-
|
|
17
|
-
### Commits
|
|
18
|
-
|
|
19
|
-
- [types] hand-write d.ts instead of emitting it [`0cbc988`](https://github.com/ljharb/define-data-property/commit/0cbc988203c105f2d97948327c7167ebd33bd318)
|
|
20
|
-
- [meta] simplify `exports` [`690781e`](https://github.com/ljharb/define-data-property/commit/690781eed28bbf2d6766237efda0ba6dd591609e)
|
|
21
|
-
- [Dev Deps] update `hasown`; clean up DT packages [`6cdfd1c`](https://github.com/ljharb/define-data-property/commit/6cdfd1cb2d91d791bfd18cda5d5cab232fd5d8fc)
|
|
22
|
-
- [actions] cleanup [`3142bc6`](https://github.com/ljharb/define-data-property/commit/3142bc6a4bc406a51f5b04f31e98562a27f35ffd)
|
|
23
|
-
- [meta] add `funding` [`8474423`](https://github.com/ljharb/define-data-property/commit/847442391a79779af3e0f1bf0b5bb923552b7804)
|
|
24
|
-
- [Deps] update `get-intrinsic` [`3e9be00`](https://github.com/ljharb/define-data-property/commit/3e9be00e07784ba34e7c77d8bc0fdbc832ad61de)
|
|
25
|
-
|
|
26
|
-
## [v1.1.2](https://github.com/ljharb/define-data-property/compare/v1.1.1...v1.1.2) - 2024-02-05
|
|
27
|
-
|
|
28
|
-
### Commits
|
|
29
|
-
|
|
30
|
-
- [Dev Deps] update @types packages, `object-inspect`, `tape`, `typescript` [`df41bf8`](https://github.com/ljharb/define-data-property/commit/df41bf84ca3456be6226055caab44e38e3a7fd2f)
|
|
31
|
-
- [Dev Deps] update DT packages, `aud`, `npmignore`, `tape`, typescript` [`fab0e4e`](https://github.com/ljharb/define-data-property/commit/fab0e4ec709ee02b79f42d6db3ee5f26e0a34b8a)
|
|
32
|
-
- [Dev Deps] use `hasown` instead of `has` [`aa51ef9`](https://github.com/ljharb/define-data-property/commit/aa51ef93f6403d49d9bb72a807bcdb6e418978c0)
|
|
33
|
-
- [Refactor] use `es-errors`, so things that only need those do not need `get-intrinsic` [`d89be50`](https://github.com/ljharb/define-data-property/commit/d89be50571175888d391238605122679f7e65ffc)
|
|
34
|
-
- [Deps] update `has-property-descriptors` [`7af887c`](https://github.com/ljharb/define-data-property/commit/7af887c9083b59b195b0079e04815cfed9fcee2b)
|
|
35
|
-
- [Deps] update `get-intrinsic` [`bb8728e`](https://github.com/ljharb/define-data-property/commit/bb8728ec42cd998505a7157ae24853a560c20646)
|
|
36
|
-
|
|
37
|
-
## [v1.1.1](https://github.com/ljharb/define-data-property/compare/v1.1.0...v1.1.1) - 2023-10-12
|
|
38
|
-
|
|
39
|
-
### Commits
|
|
40
|
-
|
|
41
|
-
- [Tests] fix tests in ES3 engines [`5c6920e`](https://github.com/ljharb/define-data-property/commit/5c6920edd1f52f675b02f417e539c28135b43f94)
|
|
42
|
-
- [Dev Deps] update `@types/es-value-fixtures`, `@types/for-each`, `@types/gopd`, `@types/has-property-descriptors`, `tape`, `typescript` [`7d82dfc`](https://github.com/ljharb/define-data-property/commit/7d82dfc20f778b4465bba06335dd53f6f431aea3)
|
|
43
|
-
- [Fix] IE 8 has a broken `Object.defineProperty` [`0672e1a`](https://github.com/ljharb/define-data-property/commit/0672e1af2a9fcc787e7c23b96dea60d290df5548)
|
|
44
|
-
- [meta] emit types on prepack [`73acb1f`](https://github.com/ljharb/define-data-property/commit/73acb1f903c21b314ec7156bf10f73c7910530c0)
|
|
45
|
-
- [Dev Deps] update `tape`, `typescript` [`9489a77`](https://github.com/ljharb/define-data-property/commit/9489a7738bf2ecf0ac71d5b78ec4ca6ad7ba0142)
|
|
46
|
-
|
|
47
|
-
## [v1.1.0](https://github.com/ljharb/define-data-property/compare/v1.0.1...v1.1.0) - 2023-09-13
|
|
48
|
-
|
|
49
|
-
### Commits
|
|
50
|
-
|
|
51
|
-
- [New] add `loose` arg [`155235a`](https://github.com/ljharb/define-data-property/commit/155235a4c4d7741f6de01cd87c99599a56654b72)
|
|
52
|
-
- [New] allow `null` to be passed for the non* args [`7d2fa5f`](https://github.com/ljharb/define-data-property/commit/7d2fa5f06be0392736c13b126f7cd38979f34792)
|
|
53
|
-
|
|
54
|
-
## [v1.0.1](https://github.com/ljharb/define-data-property/compare/v1.0.0...v1.0.1) - 2023-09-12
|
|
55
|
-
|
|
56
|
-
### Commits
|
|
57
|
-
|
|
58
|
-
- [meta] add TS types [`43d763c`](https://github.com/ljharb/define-data-property/commit/43d763c6c883f652de1c9c02ef6216ee507ffa69)
|
|
59
|
-
- [Dev Deps] update `@types/tape`, `typescript` [`f444985`](https://github.com/ljharb/define-data-property/commit/f444985811c36f3e6448a03ad2f9b7898917f4c7)
|
|
60
|
-
- [meta] add `safe-publish-latest`, [`172bb10`](https://github.com/ljharb/define-data-property/commit/172bb10890896ebb160e64398f6ee55760107bee)
|
|
61
|
-
|
|
62
|
-
## v1.0.0 - 2023-09-12
|
|
63
|
-
|
|
64
|
-
### Commits
|
|
65
|
-
|
|
66
|
-
- Initial implementation, tests, readme [`5b43d6b`](https://github.com/ljharb/define-data-property/commit/5b43d6b44e675a904810467a7d4e0adb7efc3196)
|
|
67
|
-
- Initial commit [`35e577a`](https://github.com/ljharb/define-data-property/commit/35e577a6ba59a98befa97776d70d90f3bea9009d)
|
|
68
|
-
- npm init [`82a0a04`](https://github.com/ljharb/define-data-property/commit/82a0a04a321ca7de220af02d41e2745e8a9962ed)
|
|
69
|
-
- Only apps should have lockfiles [`96df244`](https://github.com/ljharb/define-data-property/commit/96df244a3c6f426f9a2437be825d1c6f5dd7158e)
|
|
70
|
-
- [meta] use `npmignore` to autogenerate an npmignore file [`a87ff18`](https://github.com/ljharb/define-data-property/commit/a87ff18cb79e14c2eb5720486c4759fd9a189375)
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
# define-data-property <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
|
-
Define a data property on an object. Will fall back to assignment in an engine without descriptors.
|
|
11
|
-
|
|
12
|
-
The three `non*` argument can also be passed `null`, which will use the existing state if available.
|
|
13
|
-
|
|
14
|
-
The `loose` argument will mean that if you attempt to set a non-normal data property, in an environment without descriptor support, it will fall back to normal assignment.
|
|
15
|
-
|
|
16
|
-
## Usage
|
|
17
|
-
|
|
18
|
-
```javascript
|
|
19
|
-
var defineDataProperty = require('define-data-property');
|
|
20
|
-
var assert = require('assert');
|
|
21
|
-
|
|
22
|
-
var obj = {};
|
|
23
|
-
defineDataProperty(obj, 'key', 'value');
|
|
24
|
-
defineDataProperty(
|
|
25
|
-
obj,
|
|
26
|
-
'key2',
|
|
27
|
-
'value',
|
|
28
|
-
true, // nonEnumerable, optional
|
|
29
|
-
false, // nonWritable, optional
|
|
30
|
-
true, // nonConfigurable, optional
|
|
31
|
-
false // loose, optional
|
|
32
|
-
);
|
|
33
|
-
|
|
34
|
-
assert.deepEqual(
|
|
35
|
-
Object.getOwnPropertyDescriptors(obj),
|
|
36
|
-
{
|
|
37
|
-
key: {
|
|
38
|
-
configurable: true,
|
|
39
|
-
enumerable: true,
|
|
40
|
-
value: 'value',
|
|
41
|
-
writable: true,
|
|
42
|
-
},
|
|
43
|
-
key2: {
|
|
44
|
-
configurable: false,
|
|
45
|
-
enumerable: false,
|
|
46
|
-
value: 'value',
|
|
47
|
-
writable: true,
|
|
48
|
-
},
|
|
49
|
-
}
|
|
50
|
-
);
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
[package-url]: https://npmjs.org/package/define-data-property
|
|
54
|
-
[npm-version-svg]: https://versionbadg.es/ljharb/define-data-property.svg
|
|
55
|
-
[deps-svg]: https://david-dm.org/ljharb/define-data-property.svg
|
|
56
|
-
[deps-url]: https://david-dm.org/ljharb/define-data-property
|
|
57
|
-
[dev-deps-svg]: https://david-dm.org/ljharb/define-data-property/dev-status.svg
|
|
58
|
-
[dev-deps-url]: https://david-dm.org/ljharb/define-data-property#info=devDependencies
|
|
59
|
-
[npm-badge-png]: https://nodei.co/npm/define-data-property.png?downloads=true&stars=true
|
|
60
|
-
[license-image]: https://img.shields.io/npm/l/define-data-property.svg
|
|
61
|
-
[license-url]: LICENSE
|
|
62
|
-
[downloads-image]: https://img.shields.io/npm/dm/define-data-property.svg
|
|
63
|
-
[downloads-url]: https://npm-stat.com/charts.html?package=define-data-property
|
|
64
|
-
[codecov-image]: https://codecov.io/gh/ljharb/define-data-property/branch/main/graphs/badge.svg
|
|
65
|
-
[codecov-url]: https://app.codecov.io/gh/ljharb/define-data-property/
|
|
66
|
-
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/define-data-property
|
|
67
|
-
[actions-url]: https://github.com/ljharb/define-data-property/actions
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
declare function defineDataProperty(
|
|
3
|
-
obj: Record<PropertyKey, unknown>,
|
|
4
|
-
property: keyof typeof obj,
|
|
5
|
-
value: typeof obj[typeof property],
|
|
6
|
-
nonEnumerable?: boolean | null,
|
|
7
|
-
nonWritable?: boolean | null,
|
|
8
|
-
nonConfigurable?: boolean | null,
|
|
9
|
-
loose?: boolean
|
|
10
|
-
): void;
|
|
11
|
-
|
|
12
|
-
export = defineDataProperty;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var $defineProperty = require('es-define-property');
|
|
4
|
-
|
|
5
|
-
var $SyntaxError = require('es-errors/syntax');
|
|
6
|
-
var $TypeError = require('es-errors/type');
|
|
7
|
-
|
|
8
|
-
var gopd = require('gopd');
|
|
9
|
-
|
|
10
|
-
/** @type {import('.')} */
|
|
11
|
-
module.exports = function defineDataProperty(
|
|
12
|
-
obj,
|
|
13
|
-
property,
|
|
14
|
-
value
|
|
15
|
-
) {
|
|
16
|
-
if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
|
|
17
|
-
throw new $TypeError('`obj` must be an object or a function`');
|
|
18
|
-
}
|
|
19
|
-
if (typeof property !== 'string' && typeof property !== 'symbol') {
|
|
20
|
-
throw new $TypeError('`property` must be a string or a symbol`');
|
|
21
|
-
}
|
|
22
|
-
if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
|
|
23
|
-
throw new $TypeError('`nonEnumerable`, if provided, must be a boolean or null');
|
|
24
|
-
}
|
|
25
|
-
if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
|
|
26
|
-
throw new $TypeError('`nonWritable`, if provided, must be a boolean or null');
|
|
27
|
-
}
|
|
28
|
-
if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
|
|
29
|
-
throw new $TypeError('`nonConfigurable`, if provided, must be a boolean or null');
|
|
30
|
-
}
|
|
31
|
-
if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
|
|
32
|
-
throw new $TypeError('`loose`, if provided, must be a boolean');
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
|
|
36
|
-
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
37
|
-
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
38
|
-
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
39
|
-
|
|
40
|
-
/* @type {false | TypedPropertyDescriptor<unknown>} */
|
|
41
|
-
var desc = !!gopd && gopd(obj, property);
|
|
42
|
-
|
|
43
|
-
if ($defineProperty) {
|
|
44
|
-
$defineProperty(obj, property, {
|
|
45
|
-
configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
|
|
46
|
-
enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
|
|
47
|
-
value: value,
|
|
48
|
-
writable: nonWritable === null && desc ? desc.writable : !nonWritable
|
|
49
|
-
});
|
|
50
|
-
} else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
|
|
51
|
-
// must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
|
|
52
|
-
obj[property] = value; // eslint-disable-line no-param-reassign
|
|
53
|
-
} else {
|
|
54
|
-
throw new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
|
|
55
|
-
}
|
|
56
|
-
};
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "define-data-property",
|
|
3
|
-
"version": "1.1.4",
|
|
4
|
-
"description": "Define a data property on an object. Will fall back to assignment in an engine without descriptors.",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"types": "./index.d.ts",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": "./index.js",
|
|
9
|
-
"./package.json": "./package.json"
|
|
10
|
-
},
|
|
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
|
-
"tsc": "tsc -p .",
|
|
17
|
-
"prelint": "evalmd README.md",
|
|
18
|
-
"lint": "eslint --ext=js,mjs .",
|
|
19
|
-
"postlint": "npm run tsc",
|
|
20
|
-
"pretest": "npm run lint",
|
|
21
|
-
"tests-only": "nyc tape 'test/**/*.js'",
|
|
22
|
-
"test": "npm run tests-only",
|
|
23
|
-
"posttest": "aud --production",
|
|
24
|
-
"version": "auto-changelog && git add CHANGELOG.md",
|
|
25
|
-
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
|
26
|
-
},
|
|
27
|
-
"repository": {
|
|
28
|
-
"type": "git",
|
|
29
|
-
"url": "git+https://github.com/ljharb/define-data-property.git"
|
|
30
|
-
},
|
|
31
|
-
"keywords": [
|
|
32
|
-
"define",
|
|
33
|
-
"data",
|
|
34
|
-
"property",
|
|
35
|
-
"object",
|
|
36
|
-
"accessor",
|
|
37
|
-
"javascript",
|
|
38
|
-
"ecmascript",
|
|
39
|
-
"enumerable",
|
|
40
|
-
"configurable",
|
|
41
|
-
"writable"
|
|
42
|
-
],
|
|
43
|
-
"author": "Jordan Harband <ljharb@gmail.com>",
|
|
44
|
-
"funding": {
|
|
45
|
-
"url": "https://github.com/sponsors/ljharb"
|
|
46
|
-
},
|
|
47
|
-
"license": "MIT",
|
|
48
|
-
"bugs": {
|
|
49
|
-
"url": "https://github.com/ljharb/define-data-property/issues"
|
|
50
|
-
},
|
|
51
|
-
"homepage": "https://github.com/ljharb/define-data-property#readme",
|
|
52
|
-
"dependencies": {
|
|
53
|
-
"es-define-property": "^1.0.0",
|
|
54
|
-
"es-errors": "^1.3.0",
|
|
55
|
-
"gopd": "^1.0.1"
|
|
56
|
-
},
|
|
57
|
-
"devDependencies": {
|
|
58
|
-
"@ljharb/eslint-config": "^21.1.0",
|
|
59
|
-
"@types/call-bind": "^1.0.5",
|
|
60
|
-
"@types/define-properties": "^1.1.5",
|
|
61
|
-
"@types/es-value-fixtures": "^1.4.4",
|
|
62
|
-
"@types/for-each": "^0.3.3",
|
|
63
|
-
"@types/get-intrinsic": "^1.2.2",
|
|
64
|
-
"@types/gopd": "^1.0.3",
|
|
65
|
-
"@types/has-property-descriptors": "^1.0.3",
|
|
66
|
-
"@types/object-inspect": "^1.8.4",
|
|
67
|
-
"@types/object.getownpropertydescriptors": "^2.1.4",
|
|
68
|
-
"@types/tape": "^5.6.4",
|
|
69
|
-
"aud": "^2.0.4",
|
|
70
|
-
"auto-changelog": "^2.4.0",
|
|
71
|
-
"es-value-fixtures": "^1.4.2",
|
|
72
|
-
"eslint": "=8.8.0",
|
|
73
|
-
"evalmd": "^0.0.19",
|
|
74
|
-
"for-each": "^0.3.3",
|
|
75
|
-
"hasown": "^2.0.1",
|
|
76
|
-
"in-publish": "^2.0.1",
|
|
77
|
-
"npmignore": "^0.3.1",
|
|
78
|
-
"nyc": "^10.3.2",
|
|
79
|
-
"object-inspect": "^1.13.1",
|
|
80
|
-
"object.getownpropertydescriptors": "^2.1.7",
|
|
81
|
-
"reflect.ownkeys": "^1.1.4",
|
|
82
|
-
"safe-publish-latest": "^2.0.0",
|
|
83
|
-
"tape": "^5.7.4",
|
|
84
|
-
"typescript": "next"
|
|
85
|
-
},
|
|
86
|
-
"engines": {
|
|
87
|
-
"node": ">= 0.4"
|
|
88
|
-
},
|
|
89
|
-
"testling": {
|
|
90
|
-
"files": "test/index.js"
|
|
91
|
-
},
|
|
92
|
-
"auto-changelog": {
|
|
93
|
-
"output": "CHANGELOG.md",
|
|
94
|
-
"template": "keepachangelog",
|
|
95
|
-
"unreleased": false,
|
|
96
|
-
"commitLimit": false,
|
|
97
|
-
"backfillLimit": false,
|
|
98
|
-
"hideCredit": true
|
|
99
|
-
},
|
|
100
|
-
"publishConfig": {
|
|
101
|
-
"ignore": [
|
|
102
|
-
".github/workflows",
|
|
103
|
-
"types/reflect.ownkeys"
|
|
104
|
-
]
|
|
105
|
-
}
|
|
106
|
-
}
|