node-red-contrib-tak-registration 0.11.5 → 0.11.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.
Files changed (202) hide show
  1. package/node_modules/@types/node/README.md +1 -1
  2. package/node_modules/@types/node/buffer.d.ts +8 -7
  3. package/node_modules/@types/node/crypto.d.ts +38 -7
  4. package/node_modules/@types/node/dgram.d.ts +10 -0
  5. package/node_modules/@types/node/diagnostics_channel.d.ts +355 -1
  6. package/node_modules/@types/node/fs.d.ts +28 -8
  7. package/node_modules/@types/node/globals.d.ts +26 -0
  8. package/node_modules/@types/node/http.d.ts +6 -7
  9. package/node_modules/@types/node/module.d.ts +14 -0
  10. package/node_modules/@types/node/net.d.ts +8 -3
  11. package/node_modules/@types/node/package.json +3 -4
  12. package/node_modules/@types/node/perf_hooks.d.ts +12 -6
  13. package/node_modules/@types/node/process.d.ts +25 -3
  14. package/node_modules/@types/node/querystring.d.ts +3 -3
  15. package/node_modules/@types/node/stream/web.d.ts +17 -1
  16. package/node_modules/@types/node/string_decoder.d.ts +2 -2
  17. package/node_modules/@types/node/test.d.ts +98 -15
  18. package/node_modules/@types/node/tls.d.ts +1 -1
  19. package/node_modules/@types/node/ts4.8/buffer.d.ts +8 -7
  20. package/node_modules/@types/node/ts4.8/crypto.d.ts +41 -9
  21. package/node_modules/@types/node/ts4.8/dgram.d.ts +10 -0
  22. package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +355 -1
  23. package/node_modules/@types/node/ts4.8/fs.d.ts +28 -8
  24. package/node_modules/@types/node/ts4.8/globals.d.ts +26 -0
  25. package/node_modules/@types/node/ts4.8/http.d.ts +6 -7
  26. package/node_modules/@types/node/ts4.8/module.d.ts +14 -0
  27. package/node_modules/@types/node/ts4.8/net.d.ts +8 -3
  28. package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +13 -7
  29. package/node_modules/@types/node/ts4.8/process.d.ts +25 -3
  30. package/node_modules/@types/node/ts4.8/querystring.d.ts +3 -3
  31. package/node_modules/@types/node/ts4.8/stream/web.d.ts +17 -1
  32. package/node_modules/@types/node/ts4.8/string_decoder.d.ts +2 -2
  33. package/node_modules/@types/node/ts4.8/test.d.ts +98 -15
  34. package/node_modules/@types/node/ts4.8/tls.d.ts +1 -1
  35. package/node_modules/@types/node/ts4.8/url.d.ts +59 -42
  36. package/node_modules/@types/node/ts4.8/util.d.ts +1 -1
  37. package/node_modules/@types/node/ts4.8/v8.d.ts +134 -5
  38. package/node_modules/@types/node/ts4.8/wasi.d.ts +26 -5
  39. package/node_modules/@types/node/url.d.ts +59 -42
  40. package/node_modules/@types/node/v8.d.ts +134 -5
  41. package/node_modules/@types/node/wasi.d.ts +26 -5
  42. package/node_modules/axios/CHANGELOG.md +53 -0
  43. package/node_modules/axios/README.md +47 -5
  44. package/node_modules/axios/dist/axios.js +368 -4
  45. package/node_modules/axios/dist/axios.js.map +1 -1
  46. package/node_modules/axios/dist/axios.min.js +1 -1
  47. package/node_modules/axios/dist/axios.min.js.map +1 -1
  48. package/node_modules/axios/dist/browser/axios.cjs +28 -4
  49. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  50. package/node_modules/axios/dist/esm/axios.js +28 -4
  51. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  52. package/node_modules/axios/dist/esm/axios.min.js +1 -1
  53. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  54. package/node_modules/axios/dist/node/axios.cjs +34 -6
  55. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  56. package/node_modules/axios/index.d.cts +1 -1
  57. package/node_modules/axios/index.d.ts +1 -1
  58. package/node_modules/axios/lib/adapters/http.js +6 -2
  59. package/node_modules/axios/lib/core/Axios.js +22 -1
  60. package/node_modules/axios/lib/env/data.js +1 -1
  61. package/node_modules/axios/lib/helpers/combineURLs.js +1 -1
  62. package/node_modules/axios/lib/helpers/formDataToJSON.js +3 -0
  63. package/node_modules/axios/package.json +2 -2
  64. package/node_modules/call-bind/CHANGELOG.md +16 -0
  65. package/node_modules/call-bind/index.js +2 -11
  66. package/node_modules/call-bind/package.json +11 -6
  67. package/node_modules/define-data-property/CHANGELOG.md +29 -0
  68. package/node_modules/define-data-property/index.d.ts +12 -3
  69. package/node_modules/define-data-property/index.js +4 -16
  70. package/node_modules/define-data-property/package.json +26 -33
  71. package/node_modules/define-data-property/test/index.js +10 -10
  72. package/node_modules/es-define-property/.eslintrc +13 -0
  73. package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
  74. package/node_modules/es-define-property/.nycrc +9 -0
  75. package/node_modules/es-define-property/CHANGELOG.md +15 -0
  76. package/node_modules/es-define-property/LICENSE +21 -0
  77. package/node_modules/es-define-property/README.md +49 -0
  78. package/node_modules/es-define-property/index.d.ts +3 -0
  79. package/node_modules/es-define-property/index.js +16 -0
  80. package/node_modules/es-define-property/package.json +81 -0
  81. package/node_modules/es-define-property/test/index.js +55 -0
  82. package/node_modules/es-define-property/tsconfig.json +50 -0
  83. package/node_modules/es-errors/.eslintrc +5 -0
  84. package/node_modules/es-errors/.github/FUNDING.yml +12 -0
  85. package/node_modules/es-errors/CHANGELOG.md +40 -0
  86. package/node_modules/es-errors/LICENSE +21 -0
  87. package/node_modules/es-errors/README.md +55 -0
  88. package/node_modules/es-errors/eval.d.ts +3 -0
  89. package/node_modules/es-errors/eval.js +4 -0
  90. package/node_modules/es-errors/index.d.ts +3 -0
  91. package/node_modules/es-errors/index.js +4 -0
  92. package/node_modules/es-errors/package.json +80 -0
  93. package/node_modules/es-errors/range.d.ts +3 -0
  94. package/node_modules/es-errors/range.js +4 -0
  95. package/node_modules/es-errors/ref.d.ts +3 -0
  96. package/node_modules/es-errors/ref.js +4 -0
  97. package/node_modules/es-errors/syntax.d.ts +3 -0
  98. package/node_modules/es-errors/syntax.js +4 -0
  99. package/node_modules/es-errors/test/index.js +19 -0
  100. package/node_modules/es-errors/tsconfig.json +49 -0
  101. package/node_modules/es-errors/type.d.ts +3 -0
  102. package/node_modules/es-errors/type.js +4 -0
  103. package/node_modules/es-errors/uri.d.ts +3 -0
  104. package/node_modules/es-errors/uri.js +4 -0
  105. package/node_modules/fast-xml-parser/CHANGELOG.md +3 -0
  106. package/node_modules/fast-xml-parser/README.md +2 -1
  107. package/node_modules/fast-xml-parser/package.json +4 -1
  108. package/node_modules/fast-xml-parser/src/fxp.d.ts +363 -69
  109. package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +5 -5
  110. package/node_modules/follow-redirects/index.js +114 -75
  111. package/node_modules/follow-redirects/package.json +1 -1
  112. package/node_modules/get-intrinsic/CHANGELOG.md +18 -0
  113. package/node_modules/get-intrinsic/index.js +15 -7
  114. package/node_modules/get-intrinsic/package.json +12 -12
  115. package/node_modules/has-property-descriptors/CHANGELOG.md +8 -0
  116. package/node_modules/has-property-descriptors/index.js +3 -14
  117. package/node_modules/has-property-descriptors/package.json +5 -5
  118. package/node_modules/has-proto/CHANGELOG.md +15 -0
  119. package/node_modules/has-proto/index.d.ts +3 -0
  120. package/node_modules/has-proto/index.js +5 -1
  121. package/node_modules/has-proto/package.json +9 -5
  122. package/node_modules/has-proto/tsconfig.json +49 -0
  123. package/node_modules/has-tostringtag/.eslintrc +0 -6
  124. package/node_modules/has-tostringtag/.nycrc +13 -0
  125. package/node_modules/has-tostringtag/CHANGELOG.md +22 -0
  126. package/node_modules/has-tostringtag/index.d.ts +3 -0
  127. package/node_modules/has-tostringtag/index.js +1 -0
  128. package/node_modules/has-tostringtag/package.json +37 -13
  129. package/node_modules/has-tostringtag/shams.d.ts +3 -0
  130. package/node_modules/has-tostringtag/shams.js +1 -0
  131. package/node_modules/has-tostringtag/test/shams/core-js.js +3 -0
  132. package/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +2 -0
  133. package/node_modules/has-tostringtag/test/tests.js +2 -1
  134. package/node_modules/has-tostringtag/tsconfig.json +49 -0
  135. package/node_modules/hasown/CHANGELOG.md +8 -0
  136. package/node_modules/hasown/index.d.ts +3 -3
  137. package/node_modules/hasown/index.js +1 -1
  138. package/node_modules/hasown/package.json +13 -15
  139. package/node_modules/polygon-clipping/README.md +29 -26
  140. package/node_modules/polygon-clipping/dist/polygon-clipping.cjs.js +1398 -1421
  141. package/node_modules/polygon-clipping/dist/polygon-clipping.d.ts +13 -10
  142. package/node_modules/polygon-clipping/dist/polygon-clipping.esm.js +1139 -1427
  143. package/node_modules/polygon-clipping/dist/polygon-clipping.umd.js +1770 -1831
  144. package/node_modules/polygon-clipping/dist/polygon-clipping.umd.min.js +22 -8
  145. package/node_modules/polygon-clipping/dist/polygon-clipping.umd.min.js.map +1 -1
  146. package/node_modules/polygon-clipping/node_modules/robust-predicates/LICENSE +24 -0
  147. package/node_modules/polygon-clipping/node_modules/robust-predicates/README.md +82 -0
  148. package/node_modules/polygon-clipping/node_modules/robust-predicates/esm/incircle.js +765 -0
  149. package/node_modules/polygon-clipping/node_modules/robust-predicates/esm/insphere.js +766 -0
  150. package/node_modules/polygon-clipping/node_modules/robust-predicates/esm/orient2d.js +184 -0
  151. package/node_modules/polygon-clipping/node_modules/robust-predicates/esm/orient3d.js +462 -0
  152. package/node_modules/polygon-clipping/node_modules/robust-predicates/esm/util.js +138 -0
  153. package/node_modules/polygon-clipping/node_modules/robust-predicates/index.d.ts +49 -0
  154. package/node_modules/polygon-clipping/node_modules/robust-predicates/index.js +5 -0
  155. package/node_modules/polygon-clipping/node_modules/robust-predicates/package.json +75 -0
  156. package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/incircle.js +908 -0
  157. package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/incircle.min.js +1 -0
  158. package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/insphere.js +914 -0
  159. package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/insphere.min.js +1 -0
  160. package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/orient2d.js +280 -0
  161. package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/orient2d.min.js +1 -0
  162. package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/orient3d.js +601 -0
  163. package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/orient3d.min.js +1 -0
  164. package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/predicates.js +2328 -0
  165. package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/predicates.min.js +1 -0
  166. package/node_modules/polygon-clipping/package.json +30 -25
  167. package/node_modules/protobufjs/dist/light/protobuf.js +4 -4
  168. package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
  169. package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
  170. package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
  171. package/node_modules/protobufjs/dist/minimal/protobuf.js +2 -2
  172. package/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
  173. package/node_modules/protobufjs/dist/protobuf.js +4 -4
  174. package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
  175. package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
  176. package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
  177. package/node_modules/protobufjs/package.json +1 -1
  178. package/node_modules/protobufjs/src/root.js +2 -2
  179. package/node_modules/regexp.prototype.flags/CHANGELOG.md +13 -0
  180. package/node_modules/regexp.prototype.flags/implementation.js +2 -2
  181. package/node_modules/regexp.prototype.flags/package.json +11 -10
  182. package/node_modules/regexp.prototype.flags/test/tests.js +13 -13
  183. package/node_modules/set-function-length/CHANGELOG.md +18 -0
  184. package/node_modules/set-function-length/env.d.ts +6 -0
  185. package/node_modules/set-function-length/env.d.ts.map +1 -0
  186. package/node_modules/set-function-length/env.js +9 -4
  187. package/node_modules/set-function-length/index.d.ts +7 -0
  188. package/node_modules/set-function-length/index.d.ts.map +1 -0
  189. package/node_modules/set-function-length/index.js +6 -3
  190. package/node_modules/set-function-length/package.json +33 -13
  191. package/node_modules/set-function-length/tsconfig.json +59 -0
  192. package/node_modules/set-function-name/.eslintrc +1 -0
  193. package/node_modules/set-function-name/CHANGELOG.md +9 -0
  194. package/node_modules/set-function-name/index.d.ts +5 -0
  195. package/node_modules/set-function-name/index.js +4 -3
  196. package/node_modules/set-function-name/package.json +28 -9
  197. package/node_modules/set-function-name/tsconfig.json +59 -0
  198. package/package.json +4 -4
  199. package/tak-ingest.js +4 -0
  200. package/node_modules/define-data-property/index.d.ts.map +0 -1
  201. package/node_modules/hasown/index.d.ts.map +0 -1
  202. package/node_modules/polygon-clipping/CHANGELOG.md +0 -129
@@ -0,0 +1,49 @@
1
+ {
2
+ "compilerOptions": {
3
+ /* Visit https://aka.ms/tsconfig to read more about this file */
4
+
5
+ /* Projects */
6
+
7
+ /* Language and Environment */
8
+ "target": "ESNext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
9
+ // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
10
+ // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
11
+ "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
12
+ // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
13
+
14
+ /* Modules */
15
+ "module": "commonjs", /* Specify what module code is generated. */
16
+ // "rootDir": "./", /* Specify the root folder within your source files. */
17
+ // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
18
+ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
19
+ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
20
+ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
21
+ "typeRoots": ["types"], /* Specify multiple folders that act like './node_modules/@types'. */
22
+ "resolveJsonModule": true, /* Enable importing .json files. */
23
+ // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
24
+
25
+ /* JavaScript Support */
26
+ "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
27
+ "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
28
+ "maxNodeModuleJsDepth": 0, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
29
+
30
+ /* Emit */
31
+ "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
32
+ "declarationMap": true, /* Create sourcemaps for d.ts files. */
33
+ "noEmit": true, /* Disable emitting files from a compilation. */
34
+
35
+ /* Interop Constraints */
36
+ "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
37
+ "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
38
+ "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
39
+
40
+ /* Type Checking */
41
+ "strict": true, /* Enable all strict type-checking options. */
42
+
43
+ /* Completeness */
44
+ //"skipLibCheck": true /* Skip type checking all .d.ts files. */
45
+ },
46
+ "exclude": [
47
+ "coverage"
48
+ ]
49
+ }
@@ -2,10 +2,4 @@
2
2
  "root": true,
3
3
 
4
4
  "extends": "@ljharb",
5
-
6
- "rules": {
7
- "max-statements-per-line": [2, { "max": 2 }],
8
- "no-magic-numbers": 0,
9
- "multiline-comment-style": 0,
10
- }
11
5
  }
@@ -0,0 +1,13 @@
1
+ {
2
+ "all": true,
3
+ "check-coverage": false,
4
+ "reporter": ["text-summary", "text", "html", "json"],
5
+ "lines": 86,
6
+ "statements": 85.93,
7
+ "functions": 82.43,
8
+ "branches": 76.06,
9
+ "exclude": [
10
+ "coverage",
11
+ "test"
12
+ ]
13
+ }
@@ -5,6 +5,28 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [v1.0.2](https://github.com/inspect-js/has-tostringtag/compare/v1.0.1...v1.0.2) - 2024-02-01
9
+
10
+ ### Fixed
11
+
12
+ - [Fix] move `has-symbols` back to prod deps [`#3`](https://github.com/inspect-js/has-tostringtag/issues/3)
13
+
14
+ ## [v1.0.1](https://github.com/inspect-js/has-tostringtag/compare/v1.0.0...v1.0.1) - 2024-02-01
15
+
16
+ ### Commits
17
+
18
+ - [patch] add types [`9276414`](https://github.com/inspect-js/has-tostringtag/commit/9276414b22fab3eeb234688841722c4be113201f)
19
+ - [meta] use `npmignore` to autogenerate an npmignore file [`5c0dcd1`](https://github.com/inspect-js/has-tostringtag/commit/5c0dcd1ff66419562a30d1fd88b966cc36bce5fc)
20
+ - [actions] reuse common workflows [`dee9509`](https://github.com/inspect-js/has-tostringtag/commit/dee950904ab5719b62cf8d73d2ac950b09093266)
21
+ - [actions] update codecov uploader [`b8cb3a0`](https://github.com/inspect-js/has-tostringtag/commit/b8cb3a0b8ffbb1593012c4c2daa45fb25642825d)
22
+ - [Tests] generate coverage [`be5b288`](https://github.com/inspect-js/has-tostringtag/commit/be5b28889e2735cdbcef387f84c2829995f2f05e)
23
+ - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `safe-publish-latest`, `tape` [`69a0827`](https://github.com/inspect-js/has-tostringtag/commit/69a0827974e9b877b2c75b70b057555da8f25a65)
24
+ - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `tape` [`4c9e210`](https://github.com/inspect-js/has-tostringtag/commit/4c9e210a5682f0557a3235d36b68ce809d7fb825)
25
+ - [actions] update rebase action to use reusable workflow [`ca8dcd3`](https://github.com/inspect-js/has-tostringtag/commit/ca8dcd3a6f3f5805d7e3fd461b654aedba0946e7)
26
+ - [Dev Deps] update `@ljharb/eslint-config`, `aud`, `npmignore`, `tape` [`07f3eaf`](https://github.com/inspect-js/has-tostringtag/commit/07f3eafa45dd98208c94479737da77f9a69b94c4)
27
+ - [Deps] update `has-symbols` [`999e009`](https://github.com/inspect-js/has-tostringtag/commit/999e0095a7d1749a58f55472ec8bf8108cdfdcf3)
28
+ - [Tests] remove staging tests since they fail on modern node [`9d9526b`](https://github.com/inspect-js/has-tostringtag/commit/9d9526b1dc1ca7f2292b52efda4c3d857b0e39bd)
29
+
8
30
  ## v1.0.0 - 2021-08-05
9
31
 
10
32
  ### Commits
@@ -0,0 +1,3 @@
1
+ declare function hasToStringTag(): boolean;
2
+
3
+ export = hasToStringTag;
@@ -2,6 +2,7 @@
2
2
 
3
3
  var hasSymbols = require('has-symbols');
4
4
 
5
+ /** @type {import('.')} */
5
6
  module.exports = function hasToStringTag() {
6
7
  return hasSymbols() && typeof Symbol.toStringTag === 'symbol';
7
8
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "has-tostringtag",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "author": {
5
5
  "name": "Jordan Harband",
6
6
  "email": "ljharb@gmail.com",
@@ -19,18 +19,32 @@
19
19
  "description": "Determine if the JS environment has `Symbol.toStringTag` support. Supports spec, or shams.",
20
20
  "license": "MIT",
21
21
  "main": "index.js",
22
+ "types": "./index.d.ts",
22
23
  "exports": {
23
- ".": "./index.js",
24
- "./shams": "./shams.js",
24
+ ".": [
25
+ {
26
+ "types": "./index.d.ts",
27
+ "default": "./index.js"
28
+ },
29
+ "./index.js"
30
+ ],
31
+ "./shams": [
32
+ {
33
+ "types": "./shams.d.ts",
34
+ "default": "./shams.js"
35
+ },
36
+ "./shams.js"
37
+ ],
25
38
  "./package.json": "./package.json"
26
39
  },
27
40
  "scripts": {
41
+ "prepack": "npmignore --auto --commentLines=autogenerated",
28
42
  "prepublishOnly": "safe-publish-latest",
29
43
  "prepublish": "not-in-publish || npm run prepublishOnly",
30
44
  "pretest": "npm run --silent lint",
31
45
  "test": "npm run tests-only",
32
46
  "posttest": "aud --production",
33
- "tests-only": "npm run test:stock && npm run test:staging && npm run test:shams",
47
+ "tests-only": "npm run test:stock && npm run test:shams",
34
48
  "test:stock": "nyc node test",
35
49
  "test:staging": "nyc node --harmony --es-staging test",
36
50
  "test:shams": "npm run --silent test:shams:getownpropertysymbols && npm run --silent test:shams:corejs",
@@ -56,19 +70,21 @@
56
70
  "tostringtag",
57
71
  "Symbol.toStringTag"
58
72
  ],
59
- "dependencies": {
60
- "has-symbols": "^1.0.2"
61
- },
62
73
  "devDependencies": {
63
- "@ljharb/eslint-config": "^17.6.0",
64
- "aud": "^1.1.5",
65
- "auto-changelog": "^2.3.0",
74
+ "@ljharb/eslint-config": "^21.1.0",
75
+ "@types/has-symbols": "^1.0.2",
76
+ "@types/tape": "^5.6.4",
77
+ "aud": "^2.0.4",
78
+ "auto-changelog": "^2.4.0",
66
79
  "core-js": "^2.6.12",
67
- "eslint": "^7.32.0",
80
+ "eslint": "=8.8.0",
68
81
  "get-own-property-symbols": "^0.9.5",
82
+ "in-publish": "^2.0.1",
83
+ "npmignore": "^0.3.1",
69
84
  "nyc": "^10.3.2",
70
- "safe-publish-latest": "^1.1.4",
71
- "tape": "^5.3.0"
85
+ "safe-publish-latest": "^2.0.0",
86
+ "tape": "^5.7.4",
87
+ "typescript": "next"
72
88
  },
73
89
  "engines": {
74
90
  "node": ">= 0.4"
@@ -80,5 +96,13 @@
80
96
  "commitLimit": false,
81
97
  "backfillLimit": false,
82
98
  "hideCredit": true
99
+ },
100
+ "publishConfig": {
101
+ "ignore": [
102
+ ".github/workflows"
103
+ ]
104
+ },
105
+ "dependencies": {
106
+ "has-symbols": "^1.0.3"
83
107
  }
84
108
  }
@@ -0,0 +1,3 @@
1
+ declare function hasToStringTagShams(): boolean;
2
+
3
+ export = hasToStringTagShams;
@@ -2,6 +2,7 @@
2
2
 
3
3
  var hasSymbols = require('has-symbols/shams');
4
4
 
5
+ /** @type {import('.')} */
5
6
  module.exports = function hasToStringTagShams() {
6
7
  return hasSymbols() && !!Symbol.toStringTag;
7
8
  };
@@ -8,6 +8,7 @@ if (typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol') {
8
8
  t.equal(typeof Symbol.toStringTag, 'symbol');
9
9
  t.end();
10
10
  });
11
+ // @ts-expect-error CJS has top-level return
11
12
  return;
12
13
  }
13
14
 
@@ -16,7 +17,9 @@ var hasSymbolToStringTag = require('../../shams');
16
17
  test('polyfilled Symbols', function (t) {
17
18
  /* eslint-disable global-require */
18
19
  t.equal(hasSymbolToStringTag(), false, 'hasSymbolToStringTag is false before polyfilling');
20
+ // @ts-expect-error no types defined
19
21
  require('core-js/fn/symbol');
22
+ // @ts-expect-error no types defined
20
23
  require('core-js/fn/symbol/to-string-tag');
21
24
 
22
25
  require('../tests')(t);
@@ -8,6 +8,7 @@ if (typeof Symbol === 'function' && typeof Symbol() === 'symbol') {
8
8
  t.equal(typeof Symbol(), 'symbol');
9
9
  t.end();
10
10
  });
11
+ // @ts-expect-error CJS has top-level return
11
12
  return;
12
13
  }
13
14
 
@@ -17,6 +18,7 @@ test('polyfilled Symbols', function (t) {
17
18
  /* eslint-disable global-require */
18
19
  t.equal(hasSymbolToStringTag(), false, 'hasSymbolToStringTag is false before polyfilling');
19
20
 
21
+ // @ts-expect-error no types defined
20
22
  require('get-own-property-symbols');
21
23
 
22
24
  require('../tests')(t);
@@ -1,12 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  // eslint-disable-next-line consistent-return
4
- module.exports = function runSymbolTests(t) {
4
+ module.exports = /** @type {(t: import('tape').Test) => void | false} */ function runSymbolTests(t) {
5
5
  t.equal(typeof Symbol, 'function', 'global Symbol is a function');
6
6
  t.ok(Symbol.toStringTag, 'Symbol.toStringTag exists');
7
7
 
8
8
  if (typeof Symbol !== 'function' || !Symbol.toStringTag) { return false; }
9
9
 
10
+ /** @type {{ [Symbol.toStringTag]?: 'test'}} */
10
11
  var obj = {};
11
12
  obj[Symbol.toStringTag] = 'test';
12
13
 
@@ -0,0 +1,49 @@
1
+ {
2
+ "compilerOptions": {
3
+ /* Visit https://aka.ms/tsconfig to read more about this file */
4
+
5
+ /* Projects */
6
+
7
+ /* Language and Environment */
8
+ "target": "ESNext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
9
+ // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
10
+ // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
11
+ "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
12
+ // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
13
+
14
+ /* Modules */
15
+ "module": "commonjs", /* Specify what module code is generated. */
16
+ // "rootDir": "./", /* Specify the root folder within your source files. */
17
+ // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
18
+ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
19
+ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
20
+ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
21
+ "typeRoots": ["types"], /* Specify multiple folders that act like './node_modules/@types'. */
22
+ "resolveJsonModule": true, /* Enable importing .json files. */
23
+ // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
24
+
25
+ /* JavaScript Support */
26
+ "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
27
+ "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
28
+ "maxNodeModuleJsDepth": 0, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
29
+
30
+ /* Emit */
31
+ "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
32
+ "declarationMap": true, /* Create sourcemaps for d.ts files. */
33
+ "noEmit": true, /* Disable emitting files from a compilation. */
34
+
35
+ /* Interop Constraints */
36
+ "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
37
+ "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
38
+ "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
39
+
40
+ /* Type Checking */
41
+ "strict": true, /* Enable all strict type-checking options. */
42
+
43
+ /* Completeness */
44
+ //"skipLibCheck": true /* Skip type checking all .d.ts files. */
45
+ },
46
+ "exclude": [
47
+ "coverage"
48
+ ]
49
+ }
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [v2.0.1](https://github.com/inspect-js/hasOwn/compare/v2.0.0...v2.0.1) - 2024-02-10
9
+
10
+ ### Commits
11
+
12
+ - [types] use a handwritten d.ts file; fix exported type [`012b989`](https://github.com/inspect-js/hasOwn/commit/012b9898ccf91dc441e2ebf594ff70270a5fda58)
13
+ - [Dev Deps] update `@types/function-bind`, `@types/mock-property`, `@types/tape`, `aud`, `mock-property`, `npmignore`, `tape`, `typescript` [`977a56f`](https://github.com/inspect-js/hasOwn/commit/977a56f51a1f8b20566f3c471612137894644025)
14
+ - [meta] add `sideEffects` flag [`3a60b7b`](https://github.com/inspect-js/hasOwn/commit/3a60b7bf42fccd8c605e5f145a6fcc83b13cb46f)
15
+
8
16
  ## [v2.0.0](https://github.com/inspect-js/hasOwn/compare/v1.0.1...v2.0.0) - 2023-10-19
9
17
 
10
18
  ### Commits
@@ -1,3 +1,3 @@
1
- declare const _exports: (o: {}, p: PropertyKey) => p is never;
2
- export = _exports;
3
- //# sourceMappingURL=index.d.ts.map
1
+ declare function hasOwn<T extends {} = {}>(o: T, p: PropertyKey): p is keyof T;
2
+
3
+ export = hasOwn;
@@ -4,5 +4,5 @@ var call = Function.prototype.call;
4
4
  var $hasOwn = Object.prototype.hasOwnProperty;
5
5
  var bind = require('function-bind');
6
6
 
7
- /** @type {(o: {}, p: PropertyKey) => p is keyof o} */
7
+ /** @type {import('.')} */
8
8
  module.exports = bind.call(call, $hasOwn);
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "hasown",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "A robust, ES3 compatible, \"has own property\" predicate.",
5
5
  "main": "index.js",
6
6
  "exports": {
7
7
  ".": "./index.js",
8
8
  "./package.json": "./package.json"
9
9
  },
10
+ "types": "index.d.ts",
11
+ "sideEffects": false,
10
12
  "scripts": {
11
- "prepack": "npmignore --auto --commentLines=autogenerated && npm run emit-types",
13
+ "prepack": "npmignore --auto --commentLines=autogenerated",
12
14
  "prepublish": "not-in-publish || npm run prepublishOnly",
13
15
  "prepublishOnly": "safe-publish-latest",
14
16
  "prelint": "evalmd README.md",
15
17
  "lint": "eslint --ext=js,mjs .",
16
18
  "postlint": "npm run tsc",
17
- "preemit-types": "rm -f *.ts *.ts.map test/*.ts test/*.ts.map",
18
- "emit-types": "npm run tsc -- --noEmit false --emitDeclarationOnly",
19
19
  "pretest": "npm run lint",
20
20
  "tsc": "tsc -p .",
21
21
  "tests-only": "nyc tape 'test/**/*.js'",
@@ -51,20 +51,20 @@
51
51
  },
52
52
  "devDependencies": {
53
53
  "@ljharb/eslint-config": "^21.1.0",
54
- "@types/function-bind": "^1.1.9",
55
- "@types/mock-property": "^1.0.1",
56
- "@types/tape": "^5.6.3",
57
- "aud": "^2.0.3",
54
+ "@types/function-bind": "^1.1.10",
55
+ "@types/mock-property": "^1.0.2",
56
+ "@types/tape": "^5.6.4",
57
+ "aud": "^2.0.4",
58
58
  "auto-changelog": "^2.4.0",
59
59
  "eslint": "=8.8.0",
60
60
  "evalmd": "^0.0.19",
61
61
  "in-publish": "^2.0.1",
62
- "mock-property": "^1.0.2",
63
- "npmignore": "^0.3.0",
62
+ "mock-property": "^1.0.3",
63
+ "npmignore": "^0.3.1",
64
64
  "nyc": "^10.3.2",
65
65
  "safe-publish-latest": "^2.0.0",
66
- "tape": "^5.7.1",
67
- "typescript": "^5.3.0-dev.20231019"
66
+ "tape": "^5.7.4",
67
+ "typescript": "next"
68
68
  },
69
69
  "engines": {
70
70
  "node": ">= 0.4"
@@ -83,9 +83,7 @@
83
83
  "publishConfig": {
84
84
  "ignore": [
85
85
  ".github/workflows",
86
- "test",
87
- "!*.d.ts",
88
- "!*.d.ts.map"
86
+ "test"
89
87
  ]
90
88
  }
91
89
  }
@@ -2,13 +2,11 @@
2
2
 
3
3
  Apply boolean Polygon clipping operations (`intersection`, `union`, `difference`, `xor`) to your Polygons & MultiPolygons.
4
4
 
5
- [![build](https://github.com/mfogel/polygon-clipping/workflows/build/badge.svg)](https://github.com/mfogel/polygon-clipping/actions?query=workflow%3Abuild)
6
- [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
7
- [![npm](https://img.shields.io/npm/v/polygon-clipping.svg)](https://www.npmjs.com/package/polygon-clipping)
8
-
5
+ [![CI](https://github.com/mfogel/polygon-clipping/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/mfogel/polygon-clipping/actions) [![codecov](https://codecov.io/gh/mfogel/polygon-clipping/branch/main/graph/badge.svg?token=is93inDQiJ)](https://codecov.io/gh/mfogel/polygon-clipping) [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT) [![npm](https://img.shields.io/npm/v/polygon-clipping.svg)](https://www.npmjs.com/package/polygon-clipping)
9
6
 
10
7
  ## Quickstart
11
8
 
9
+ <!-- prettier-ignore-start -->
12
10
  ```javascript
13
11
  const polygonClipping = require('polygon-clipping')
14
12
 
@@ -20,6 +18,7 @@ polygonClipping.intersection(poly1, poly2 /* , poly3, ... */)
20
18
  polygonClipping.xor (poly1, poly2 /* , poly3, ... */)
21
19
  polygonClipping.difference (poly1, poly2 /* , poly3, ... */)
22
20
  ```
21
+ <!-- prettier-ignore-end -->
23
22
 
24
23
  ## API
25
24
 
@@ -37,25 +36,27 @@ polygonClipping.difference(<subjectGeom>, ...<clipGeoms>)
37
36
  ### Input
38
37
 
39
38
  Each positional argument (`<geom>`) may be either a Polygon or a MultiPolygon. The [GeoJSON spec](https://tools.ietf.org/html/rfc7946#section-3.1) is followed, with the following notes/modifications:
40
- * MultiPolygons may contain touching or overlapping Polygons.
41
- * rings are not required to be self-closing.
42
- * rings may contain repeated points, which are ignored.
43
- * rings may be self-touching and/or self-crossing. Self-crossing rings will be interpreted using the [non-zero rule](https://en.wikipedia.org/wiki/Nonzero-rule).
44
- * winding order of rings does not matter.
45
- * inner rings may extend outside their outer ring. The portion of inner rings outside their outer ring is dropped.
46
- * inner rings may touch or overlap each other.
39
+
40
+ - MultiPolygons may contain touching or overlapping Polygons.
41
+ - rings are not required to be self-closing.
42
+ - rings may contain repeated points, which are ignored.
43
+ - rings may be self-touching and/or self-crossing. Self-crossing rings will be interpreted using the [non-zero rule](https://en.wikipedia.org/wiki/Nonzero-rule).
44
+ - winding order of rings does not matter.
45
+ - inner rings may extend outside their outer ring. The portion of inner rings outside their outer ring is dropped.
46
+ - inner rings may touch or overlap each other.
47
47
 
48
48
  ### Output
49
49
 
50
50
  For non-empty results, output will always be a MultiPolygon containing one or more non-overlapping, non-edge-sharing Polygons. The [GeoJSON spec](https://tools.ietf.org/html/rfc7946#section-3.1) is followed, with the following notes/modifications:
51
- * outer rings will be wound counter-clockwise, and inner rings clockwise.
52
- * inner rings will not extend outside their outer ring.
53
- * rings will not overlap, nor share an edge with each other.
54
- * rings will be self-closing.
55
- * rings will not contain repeated points.
56
- * rings will not contain superfluous points (intermediate points along a straight line).
57
- * rings will not be self-touching nor self-crossing.
58
- * rings *may* touch each other, but *may not* cross each other.
51
+
52
+ - outer rings will be wound counter-clockwise, and inner rings clockwise.
53
+ - inner rings will not extend outside their outer ring.
54
+ - rings will not overlap, nor share an edge with each other.
55
+ - rings will be self-closing.
56
+ - rings will not contain repeated points.
57
+ - rings will not contain superfluous points (intermediate points along a straight line).
58
+ - rings will not be self-touching nor self-crossing.
59
+ - rings _may_ touch each other, but _may not_ cross each other.
59
60
 
60
61
  In the event that the result of the operation is the empty set, output will be a MultiPolygon with no Polygons: `[]`.
61
62
 
@@ -73,27 +74,29 @@ The Martinez-Rueda-Feito polygon clipping algorithm is used to compute the resul
73
74
 
74
75
  Global settings are set via environment variables.
75
76
 
76
- * **POLYGON_CLIPPING_MAX_QUEUE_SIZE** and **POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS**: Aims to prevent infinite loops - usually caused by floating-point math round-off errors. Defaults are 1,000,000.
77
+ - **POLYGON_CLIPPING_MAX_QUEUE_SIZE** and **POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS**: Aims to prevent infinite loops - usually caused by floating-point math round-off errors. Defaults are 1,000,000.
77
78
 
78
79
  ## Changelog
79
80
 
80
81
  This project adheres to [Semantic Versioning](https://semver.org/).
81
82
 
83
+ <!-- prettier-ignore-end -->
84
+
82
85
  The full changelog is available at [CHANGELOG.md](https://github.com/mfogel/polygon-clipping/blob/master/CHANGELOG.md).
83
86
 
84
87
  ## Authors
85
88
 
86
- * [Mike Fogel](https://github.com/mfogel)
87
- * [Alexander Milevski](https://github.com/w8r)
88
- * [Vladimir Ovsyannikov](https://github.com/sh1ng)
89
+ - [Mike Fogel](https://github.com/mfogel)
90
+ - [Alexander Milevski](https://github.com/w8r)
91
+ - [Vladimir Ovsyannikov](https://github.com/sh1ng)
89
92
 
90
93
  ## Sponsors
91
94
 
92
- * [Alantgeo](https://www.alantgeo.com.au/)
93
- * [EasyTerritory](https://www.easyterritory.com/)
95
+ - [Alantgeo](https://www.alantgeo.com.au/)
96
+ - [EasyTerritory](https://www.easyterritory.com/)
94
97
 
95
98
  Please contact [Mike Fogel](https://github.com/mfogel) if you or your company is interested in sponsoring work on specific bug fixes or feature requests.
96
99
 
97
100
  ## Based on
98
101
 
99
- * [A new algorithm for computing Boolean operations on polygons](paper.pdf) by Francisco Martinez, Antonio Jesus Rueda, Francisco Ramon Feito (2009)
102
+ - [A new algorithm for computing Boolean operations on polygons](paper.pdf) by Francisco Martinez, Antonio Jesus Rueda, Francisco Ramon Feito (2009)