node-red-contrib-tak-registration 0.14.0 → 0.15.0

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 (447) hide show
  1. package/README.md +1 -1
  2. package/node_modules/@types/geojson/README.md +1 -1
  3. package/node_modules/@types/geojson/index.d.ts +36 -2
  4. package/node_modules/@types/geojson/package.json +2 -2
  5. package/node_modules/@types/node/README.md +2 -2
  6. package/node_modules/@types/node/assert.d.ts +14 -0
  7. package/node_modules/@types/node/async_hooks.d.ts +64 -2
  8. package/node_modules/@types/node/buffer.buffer.d.ts +117 -39
  9. package/node_modules/@types/node/buffer.d.ts +6 -13
  10. package/node_modules/@types/node/cluster.d.ts +1 -1
  11. package/node_modules/@types/node/constants.d.ts +14 -12
  12. package/node_modules/@types/node/crypto.d.ts +44 -10
  13. package/node_modules/@types/node/dgram.d.ts +10 -7
  14. package/node_modules/@types/node/diagnostics_channel.d.ts +20 -1
  15. package/node_modules/@types/node/fs/promises.d.ts +23 -26
  16. package/node_modules/@types/node/fs.d.ts +166 -125
  17. package/node_modules/@types/node/globals.d.ts +141 -338
  18. package/node_modules/@types/node/http.d.ts +25 -3
  19. package/node_modules/@types/node/http2.d.ts +3 -4
  20. package/node_modules/@types/node/https.d.ts +3 -1
  21. package/node_modules/@types/node/inspector.d.ts +36 -0
  22. package/node_modules/@types/node/module.d.ts +599 -236
  23. package/node_modules/@types/node/net.d.ts +44 -13
  24. package/node_modules/@types/node/package.json +9 -4
  25. package/node_modules/@types/node/perf_hooks.d.ts +5 -0
  26. package/node_modules/@types/node/process.d.ts +69 -2
  27. package/node_modules/@types/node/querystring.d.ts +2 -3
  28. package/node_modules/@types/node/readline.d.ts +6 -1
  29. package/node_modules/@types/node/sea.d.ts +1 -1
  30. package/node_modules/@types/node/sqlite.d.ts +291 -17
  31. package/node_modules/@types/node/stream/consumers.d.ts +32 -6
  32. package/node_modules/@types/node/stream/web.d.ts +9 -4
  33. package/node_modules/@types/node/stream.d.ts +936 -1000
  34. package/node_modules/@types/node/test.d.ts +169 -137
  35. package/node_modules/@types/node/timers/promises.d.ts +24 -13
  36. package/node_modules/@types/node/timers.d.ts +159 -112
  37. package/node_modules/@types/node/tls.d.ts +34 -1
  38. package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +110 -35
  39. package/node_modules/@types/node/util.d.ts +323 -110
  40. package/node_modules/@types/node/v8.d.ts +81 -0
  41. package/node_modules/@types/node/vm.d.ts +21 -6
  42. package/node_modules/@types/node/worker_threads.d.ts +1 -0
  43. package/node_modules/@types/node/zlib.d.ts +167 -36
  44. package/node_modules/axios/CHANGELOG.md +124 -0
  45. package/node_modules/axios/README.md +38 -16
  46. package/node_modules/axios/dist/axios.js +44 -39
  47. package/node_modules/axios/dist/axios.js.map +1 -1
  48. package/node_modules/axios/dist/axios.min.js +2 -1
  49. package/node_modules/axios/dist/axios.min.js.map +1 -1
  50. package/node_modules/axios/dist/browser/axios.cjs +43 -39
  51. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  52. package/node_modules/axios/dist/esm/axios.js +43 -39
  53. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  54. package/node_modules/axios/dist/esm/axios.min.js +2 -1
  55. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  56. package/node_modules/axios/dist/node/axios.cjs +74 -43
  57. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  58. package/node_modules/axios/index.d.cts +3 -2
  59. package/node_modules/axios/index.d.ts +5 -2
  60. package/node_modules/axios/lib/adapters/fetch.js +1 -1
  61. package/node_modules/axios/lib/adapters/http.js +1 -1
  62. package/node_modules/axios/lib/core/Axios.js +11 -2
  63. package/node_modules/axios/lib/core/AxiosHeaders.js +15 -3
  64. package/node_modules/axios/lib/core/buildFullPath.js +3 -2
  65. package/node_modules/axios/lib/env/data.js +1 -1
  66. package/node_modules/axios/lib/helpers/formDataToStream.js +4 -3
  67. package/node_modules/axios/lib/helpers/resolveConfig.js +1 -1
  68. package/node_modules/axios/lib/platform/node/index.js +26 -0
  69. package/node_modules/axios/lib/utils.js +12 -28
  70. package/node_modules/axios/package.json +3 -3
  71. package/node_modules/bignumber.js/CHANGELOG.md +82 -1
  72. package/node_modules/bignumber.js/LICENCE.md +1 -1
  73. package/node_modules/bignumber.js/README.md +6 -4
  74. package/node_modules/bignumber.js/bignumber.d.mts +6 -0
  75. package/node_modules/bignumber.js/bignumber.d.ts +3 -1829
  76. package/node_modules/bignumber.js/bignumber.js +3 -3
  77. package/node_modules/bignumber.js/bignumber.mjs +3 -3
  78. package/node_modules/bignumber.js/package.json +17 -7
  79. package/node_modules/bignumber.js/types.d.ts +1821 -0
  80. package/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
  81. package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
  82. package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
  83. package/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
  84. package/node_modules/call-bind-apply-helpers/LICENSE +21 -0
  85. package/node_modules/call-bind-apply-helpers/README.md +62 -0
  86. package/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
  87. package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
  88. package/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
  89. package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
  90. package/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
  91. package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
  92. package/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
  93. package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
  94. package/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
  95. package/node_modules/call-bind-apply-helpers/index.js +15 -0
  96. package/node_modules/call-bind-apply-helpers/package.json +85 -0
  97. package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
  98. package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
  99. package/node_modules/call-bind-apply-helpers/test/index.js +63 -0
  100. package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
  101. package/node_modules/dunder-proto/.eslintrc +5 -0
  102. package/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
  103. package/node_modules/dunder-proto/.nycrc +13 -0
  104. package/node_modules/dunder-proto/CHANGELOG.md +24 -0
  105. package/node_modules/dunder-proto/LICENSE +21 -0
  106. package/node_modules/dunder-proto/README.md +54 -0
  107. package/node_modules/dunder-proto/get.d.ts +5 -0
  108. package/node_modules/dunder-proto/get.js +30 -0
  109. package/node_modules/dunder-proto/package.json +76 -0
  110. package/node_modules/dunder-proto/set.d.ts +5 -0
  111. package/node_modules/dunder-proto/set.js +35 -0
  112. package/node_modules/dunder-proto/test/get.js +34 -0
  113. package/node_modules/dunder-proto/test/index.js +4 -0
  114. package/node_modules/dunder-proto/test/set.js +50 -0
  115. package/node_modules/dunder-proto/tsconfig.json +9 -0
  116. package/node_modules/es-define-property/.eslintrc +13 -0
  117. package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
  118. package/node_modules/es-define-property/.nycrc +9 -0
  119. package/node_modules/es-define-property/CHANGELOG.md +29 -0
  120. package/node_modules/es-define-property/LICENSE +21 -0
  121. package/node_modules/es-define-property/README.md +49 -0
  122. package/node_modules/es-define-property/index.d.ts +3 -0
  123. package/node_modules/es-define-property/index.js +14 -0
  124. package/node_modules/es-define-property/package.json +81 -0
  125. package/node_modules/es-define-property/test/index.js +56 -0
  126. package/node_modules/es-define-property/tsconfig.json +10 -0
  127. package/node_modules/es-errors/.eslintrc +5 -0
  128. package/node_modules/es-errors/.github/FUNDING.yml +12 -0
  129. package/node_modules/es-errors/CHANGELOG.md +40 -0
  130. package/node_modules/es-errors/LICENSE +21 -0
  131. package/node_modules/es-errors/README.md +55 -0
  132. package/node_modules/es-errors/eval.d.ts +3 -0
  133. package/node_modules/es-errors/eval.js +4 -0
  134. package/node_modules/es-errors/index.d.ts +3 -0
  135. package/node_modules/es-errors/index.js +4 -0
  136. package/node_modules/es-errors/package.json +80 -0
  137. package/node_modules/es-errors/range.d.ts +3 -0
  138. package/node_modules/es-errors/range.js +4 -0
  139. package/node_modules/es-errors/ref.d.ts +3 -0
  140. package/node_modules/es-errors/ref.js +4 -0
  141. package/node_modules/es-errors/syntax.d.ts +3 -0
  142. package/node_modules/es-errors/syntax.js +4 -0
  143. package/node_modules/es-errors/test/index.js +19 -0
  144. package/node_modules/es-errors/tsconfig.json +49 -0
  145. package/node_modules/es-errors/type.d.ts +3 -0
  146. package/node_modules/es-errors/type.js +4 -0
  147. package/node_modules/es-errors/uri.d.ts +3 -0
  148. package/node_modules/es-errors/uri.js +4 -0
  149. package/node_modules/es-object-atoms/.eslintrc +16 -0
  150. package/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
  151. package/node_modules/es-object-atoms/CHANGELOG.md +37 -0
  152. package/node_modules/es-object-atoms/LICENSE +21 -0
  153. package/node_modules/es-object-atoms/README.md +63 -0
  154. package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
  155. package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
  156. package/node_modules/es-object-atoms/ToObject.d.ts +7 -0
  157. package/node_modules/es-object-atoms/ToObject.js +10 -0
  158. package/node_modules/es-object-atoms/index.d.ts +3 -0
  159. package/node_modules/es-object-atoms/index.js +4 -0
  160. package/node_modules/es-object-atoms/isObject.d.ts +3 -0
  161. package/node_modules/es-object-atoms/isObject.js +6 -0
  162. package/node_modules/es-object-atoms/package.json +80 -0
  163. package/node_modules/es-object-atoms/test/index.js +38 -0
  164. package/node_modules/es-object-atoms/tsconfig.json +6 -0
  165. package/node_modules/es-set-tostringtag/.eslintrc +13 -0
  166. package/node_modules/es-set-tostringtag/.nycrc +9 -0
  167. package/node_modules/es-set-tostringtag/CHANGELOG.md +67 -0
  168. package/node_modules/es-set-tostringtag/LICENSE +21 -0
  169. package/node_modules/es-set-tostringtag/README.md +53 -0
  170. package/node_modules/es-set-tostringtag/index.d.ts +10 -0
  171. package/node_modules/es-set-tostringtag/index.js +35 -0
  172. package/node_modules/es-set-tostringtag/package.json +78 -0
  173. package/node_modules/es-set-tostringtag/test/index.js +85 -0
  174. package/node_modules/es-set-tostringtag/tsconfig.json +9 -0
  175. package/node_modules/fast-xml-parser/CHANGELOG.md +63 -0
  176. package/node_modules/fast-xml-parser/README.md +37 -51
  177. package/node_modules/fast-xml-parser/lib/fxbuilder.min.js +2 -0
  178. package/node_modules/fast-xml-parser/lib/fxbuilder.min.js.map +1 -0
  179. package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -0
  180. package/node_modules/fast-xml-parser/lib/fxp.d.cts +458 -0
  181. package/node_modules/fast-xml-parser/lib/fxp.min.js +2 -0
  182. package/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -0
  183. package/node_modules/fast-xml-parser/lib/fxparser.min.js +2 -0
  184. package/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -0
  185. package/node_modules/fast-xml-parser/lib/fxvalidator.min.js +2 -0
  186. package/node_modules/fast-xml-parser/lib/fxvalidator.min.js.map +1 -0
  187. package/node_modules/fast-xml-parser/package.json +36 -18
  188. package/node_modules/fast-xml-parser/src/cli/cli.js +12 -12
  189. package/node_modules/fast-xml-parser/src/cli/man.js +6 -1
  190. package/node_modules/fast-xml-parser/src/cli/read.js +30 -79
  191. package/node_modules/fast-xml-parser/src/fxp.d.ts +28 -1
  192. package/node_modules/fast-xml-parser/src/fxp.js +11 -8
  193. package/node_modules/fast-xml-parser/src/ignoreAttributes.js +2 -4
  194. package/node_modules/fast-xml-parser/src/util.js +14 -18
  195. package/node_modules/fast-xml-parser/src/{v5 → v6}/CharsSymbol.js +1 -1
  196. package/node_modules/fast-xml-parser/src/{v5 → v6}/EntitiesParser.js +3 -6
  197. package/node_modules/fast-xml-parser/src/{v5 → v6}/OptionsBuilder.js +3 -6
  198. package/node_modules/fast-xml-parser/src/{v5 → v6}/OutputBuilders/BaseOutputBuilder.js +1 -3
  199. package/node_modules/fast-xml-parser/src/{v5 → v6}/OutputBuilders/JsArrBuilder.js +3 -3
  200. package/node_modules/fast-xml-parser/src/{v5 → v6}/OutputBuilders/JsMinArrBuilder.js +3 -5
  201. package/node_modules/fast-xml-parser/src/{v5 → v6}/OutputBuilders/JsObjBuilder.js +3 -5
  202. package/node_modules/fast-xml-parser/src/{v5 → v6}/OutputBuilders/ParserOptionsBuilder.js +6 -11
  203. package/node_modules/fast-xml-parser/src/{v5 → v6}/TagPath.js +1 -1
  204. package/node_modules/fast-xml-parser/src/{v5 → v6}/TagPathMatcher.js +3 -5
  205. package/node_modules/fast-xml-parser/src/{v5 → v6}/XMLParser.js +3 -5
  206. package/node_modules/fast-xml-parser/src/{v5 → v6}/Xml2JsParser.js +8 -10
  207. package/node_modules/fast-xml-parser/src/{v5 → v6}/XmlPartReader.js +4 -10
  208. package/node_modules/fast-xml-parser/src/{v5 → v6}/XmlSpecialTagsReader.js +5 -12
  209. package/node_modules/fast-xml-parser/src/{v5 → v6}/inputSource/BufferSource.js +1 -3
  210. package/node_modules/fast-xml-parser/src/{v5 → v6}/inputSource/StringSource.js +1 -3
  211. package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/EntitiesParser.js +3 -5
  212. package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/booleanParser.js +1 -2
  213. package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/booleanParserExt.js +1 -2
  214. package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/currency.js +1 -3
  215. package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/join.js +1 -2
  216. package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/number.js +2 -4
  217. package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/trim.js +1 -3
  218. package/node_modules/fast-xml-parser/src/validator.js +5 -5
  219. package/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +5 -4
  220. package/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js +1 -2
  221. package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +287 -71
  222. package/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +3 -5
  223. package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +23 -23
  224. package/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +21 -8
  225. package/node_modules/fast-xml-parser/src/xmlparser/node2json.js +8 -2
  226. package/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +22 -7
  227. package/node_modules/form-data/lib/form_data.js +24 -22
  228. package/node_modules/form-data/package.json +17 -14
  229. package/node_modules/function-bind/.eslintrc +21 -0
  230. package/node_modules/function-bind/.github/FUNDING.yml +12 -0
  231. package/node_modules/function-bind/.github/SECURITY.md +3 -0
  232. package/node_modules/function-bind/.nycrc +13 -0
  233. package/node_modules/function-bind/CHANGELOG.md +136 -0
  234. package/node_modules/function-bind/LICENSE +20 -0
  235. package/node_modules/function-bind/README.md +46 -0
  236. package/node_modules/function-bind/implementation.js +84 -0
  237. package/node_modules/function-bind/index.js +5 -0
  238. package/node_modules/function-bind/package.json +87 -0
  239. package/node_modules/function-bind/test/.eslintrc +9 -0
  240. package/node_modules/function-bind/test/index.js +252 -0
  241. package/node_modules/get-intrinsic/.eslintrc +42 -0
  242. package/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
  243. package/node_modules/get-intrinsic/.nycrc +9 -0
  244. package/node_modules/get-intrinsic/CHANGELOG.md +186 -0
  245. package/node_modules/get-intrinsic/LICENSE +21 -0
  246. package/node_modules/get-intrinsic/README.md +71 -0
  247. package/node_modules/get-intrinsic/index.js +378 -0
  248. package/node_modules/get-intrinsic/package.json +97 -0
  249. package/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
  250. package/node_modules/get-proto/.eslintrc +10 -0
  251. package/node_modules/get-proto/.github/FUNDING.yml +12 -0
  252. package/node_modules/get-proto/.nycrc +9 -0
  253. package/node_modules/get-proto/CHANGELOG.md +21 -0
  254. package/node_modules/get-proto/LICENSE +21 -0
  255. package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
  256. package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
  257. package/node_modules/get-proto/README.md +50 -0
  258. package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
  259. package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
  260. package/node_modules/get-proto/index.d.ts +5 -0
  261. package/node_modules/get-proto/index.js +27 -0
  262. package/node_modules/get-proto/package.json +81 -0
  263. package/node_modules/get-proto/test/index.js +68 -0
  264. package/node_modules/get-proto/tsconfig.json +9 -0
  265. package/node_modules/gopd/.eslintrc +16 -0
  266. package/node_modules/gopd/.github/FUNDING.yml +12 -0
  267. package/node_modules/gopd/CHANGELOG.md +45 -0
  268. package/node_modules/gopd/LICENSE +21 -0
  269. package/node_modules/gopd/README.md +40 -0
  270. package/node_modules/gopd/gOPD.d.ts +1 -0
  271. package/node_modules/gopd/gOPD.js +4 -0
  272. package/node_modules/gopd/index.d.ts +5 -0
  273. package/node_modules/gopd/index.js +15 -0
  274. package/node_modules/gopd/package.json +77 -0
  275. package/node_modules/gopd/test/index.js +36 -0
  276. package/node_modules/gopd/tsconfig.json +9 -0
  277. package/node_modules/has-symbols/.eslintrc +11 -0
  278. package/node_modules/has-symbols/.github/FUNDING.yml +12 -0
  279. package/node_modules/has-symbols/.nycrc +9 -0
  280. package/node_modules/has-symbols/CHANGELOG.md +91 -0
  281. package/node_modules/has-symbols/LICENSE +21 -0
  282. package/node_modules/has-symbols/README.md +46 -0
  283. package/node_modules/has-symbols/index.d.ts +3 -0
  284. package/node_modules/has-symbols/index.js +14 -0
  285. package/node_modules/has-symbols/package.json +111 -0
  286. package/node_modules/has-symbols/shams.d.ts +3 -0
  287. package/node_modules/has-symbols/shams.js +45 -0
  288. package/node_modules/has-symbols/test/index.js +22 -0
  289. package/node_modules/has-symbols/test/shams/core-js.js +29 -0
  290. package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
  291. package/node_modules/has-symbols/test/tests.js +58 -0
  292. package/node_modules/has-symbols/tsconfig.json +10 -0
  293. package/node_modules/has-tostringtag/.eslintrc +5 -0
  294. package/node_modules/has-tostringtag/.github/FUNDING.yml +12 -0
  295. package/node_modules/has-tostringtag/.nycrc +13 -0
  296. package/node_modules/has-tostringtag/CHANGELOG.md +42 -0
  297. package/node_modules/has-tostringtag/LICENSE +21 -0
  298. package/node_modules/has-tostringtag/README.md +46 -0
  299. package/node_modules/has-tostringtag/index.d.ts +3 -0
  300. package/node_modules/has-tostringtag/index.js +8 -0
  301. package/node_modules/has-tostringtag/package.json +108 -0
  302. package/node_modules/has-tostringtag/shams.d.ts +3 -0
  303. package/node_modules/has-tostringtag/shams.js +8 -0
  304. package/node_modules/has-tostringtag/test/index.js +21 -0
  305. package/node_modules/has-tostringtag/test/shams/core-js.js +31 -0
  306. package/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +30 -0
  307. package/node_modules/has-tostringtag/test/tests.js +15 -0
  308. package/node_modules/has-tostringtag/tsconfig.json +49 -0
  309. package/node_modules/hasown/.eslintrc +5 -0
  310. package/node_modules/hasown/.github/FUNDING.yml +12 -0
  311. package/node_modules/hasown/.nycrc +13 -0
  312. package/node_modules/hasown/CHANGELOG.md +40 -0
  313. package/node_modules/hasown/LICENSE +21 -0
  314. package/node_modules/hasown/README.md +40 -0
  315. package/node_modules/hasown/index.d.ts +3 -0
  316. package/node_modules/hasown/index.js +8 -0
  317. package/node_modules/hasown/package.json +92 -0
  318. package/node_modules/hasown/tsconfig.json +6 -0
  319. package/node_modules/long/README.md +93 -87
  320. package/node_modules/long/index.d.ts +2 -2
  321. package/node_modules/long/index.js +360 -246
  322. package/node_modules/long/package.json +12 -4
  323. package/node_modules/long/types.d.ts +474 -0
  324. package/node_modules/long/umd/index.d.ts +2 -456
  325. package/node_modules/long/umd/index.js +1585 -1395
  326. package/node_modules/long/umd/types.d.ts +474 -0
  327. package/node_modules/math-intrinsics/.eslintrc +16 -0
  328. package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
  329. package/node_modules/math-intrinsics/CHANGELOG.md +24 -0
  330. package/node_modules/math-intrinsics/LICENSE +21 -0
  331. package/node_modules/math-intrinsics/README.md +50 -0
  332. package/node_modules/math-intrinsics/abs.d.ts +1 -0
  333. package/node_modules/math-intrinsics/abs.js +4 -0
  334. package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
  335. package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
  336. package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
  337. package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
  338. package/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
  339. package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
  340. package/node_modules/math-intrinsics/floor.d.ts +1 -0
  341. package/node_modules/math-intrinsics/floor.js +4 -0
  342. package/node_modules/math-intrinsics/isFinite.d.ts +3 -0
  343. package/node_modules/math-intrinsics/isFinite.js +12 -0
  344. package/node_modules/math-intrinsics/isInteger.d.ts +3 -0
  345. package/node_modules/math-intrinsics/isInteger.js +16 -0
  346. package/node_modules/math-intrinsics/isNaN.d.ts +1 -0
  347. package/node_modules/math-intrinsics/isNaN.js +6 -0
  348. package/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
  349. package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
  350. package/node_modules/math-intrinsics/max.d.ts +1 -0
  351. package/node_modules/math-intrinsics/max.js +4 -0
  352. package/node_modules/math-intrinsics/min.d.ts +1 -0
  353. package/node_modules/math-intrinsics/min.js +4 -0
  354. package/node_modules/math-intrinsics/mod.d.ts +3 -0
  355. package/node_modules/math-intrinsics/mod.js +9 -0
  356. package/node_modules/math-intrinsics/package.json +86 -0
  357. package/node_modules/math-intrinsics/pow.d.ts +1 -0
  358. package/node_modules/math-intrinsics/pow.js +4 -0
  359. package/node_modules/math-intrinsics/round.d.ts +1 -0
  360. package/node_modules/math-intrinsics/round.js +4 -0
  361. package/node_modules/math-intrinsics/sign.d.ts +3 -0
  362. package/node_modules/math-intrinsics/sign.js +11 -0
  363. package/node_modules/math-intrinsics/test/index.js +192 -0
  364. package/node_modules/math-intrinsics/tsconfig.json +3 -0
  365. package/node_modules/protobufjs/dist/light/protobuf.js +531 -80
  366. package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
  367. package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
  368. package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
  369. package/node_modules/protobufjs/dist/minimal/protobuf.js +2 -2
  370. package/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
  371. package/node_modules/protobufjs/dist/protobuf.js +671 -144
  372. package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
  373. package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
  374. package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
  375. package/node_modules/protobufjs/index.d.ts +71 -13
  376. package/node_modules/protobufjs/package.json +4 -2
  377. package/node_modules/protobufjs/src/decoder.js +8 -10
  378. package/node_modules/protobufjs/src/encoder.js +1 -1
  379. package/node_modules/protobufjs/src/enum.js +25 -0
  380. package/node_modules/protobufjs/src/field.js +104 -28
  381. package/node_modules/protobufjs/src/namespace.js +124 -13
  382. package/node_modules/protobufjs/src/object.js +139 -4
  383. package/node_modules/protobufjs/src/oneof.js +19 -0
  384. package/node_modules/protobufjs/src/parse.js +139 -63
  385. package/node_modules/protobufjs/src/root.js +52 -15
  386. package/node_modules/protobufjs/src/service.js +23 -1
  387. package/node_modules/protobufjs/src/type.js +29 -4
  388. package/node_modules/protobufjs/src/util.js +4 -1
  389. package/node_modules/strnum/.github/SECURITY.md +5 -0
  390. package/node_modules/strnum/CHANGELOG.md +33 -0
  391. package/node_modules/strnum/README.md +14 -3
  392. package/node_modules/strnum/algo.stflow +84 -0
  393. package/node_modules/strnum/package.json +9 -2
  394. package/node_modules/strnum/strnum.js +72 -67
  395. package/node_modules/strnum/strnum.test.js +29 -6
  396. package/node_modules/strnum/test.js +9 -0
  397. package/node_modules/undici-types/dispatcher.d.ts +1 -0
  398. package/node_modules/undici-types/package.json +1 -1
  399. package/node_modules/undici-types/readable.d.ts +5 -0
  400. package/node_modules/undici-types/webidl.d.ts +6 -0
  401. package/node_modules/uuid/README.md +12 -12
  402. package/node_modules/uuid/dist/cjs/types.d.ts +1 -1
  403. package/node_modules/uuid/dist/cjs/v1.d.ts +1 -1
  404. package/node_modules/uuid/dist/cjs/v1.js +1 -1
  405. package/node_modules/uuid/dist/cjs/v3.d.ts +1 -1
  406. package/node_modules/uuid/dist/cjs/v35.d.ts +1 -1
  407. package/node_modules/uuid/dist/cjs/v4.d.ts +1 -1
  408. package/node_modules/uuid/dist/cjs/v5.d.ts +1 -1
  409. package/node_modules/uuid/dist/cjs/v6.d.ts +1 -1
  410. package/node_modules/uuid/dist/cjs/v7.d.ts +1 -1
  411. package/node_modules/uuid/dist/cjs/v7.js +1 -1
  412. package/node_modules/uuid/dist/cjs-browser/types.d.ts +1 -1
  413. package/node_modules/uuid/dist/cjs-browser/v1.d.ts +1 -1
  414. package/node_modules/uuid/dist/cjs-browser/v1.js +1 -1
  415. package/node_modules/uuid/dist/cjs-browser/v3.d.ts +1 -1
  416. package/node_modules/uuid/dist/cjs-browser/v35.d.ts +1 -1
  417. package/node_modules/uuid/dist/cjs-browser/v4.d.ts +1 -1
  418. package/node_modules/uuid/dist/cjs-browser/v5.d.ts +1 -1
  419. package/node_modules/uuid/dist/cjs-browser/v6.d.ts +1 -1
  420. package/node_modules/uuid/dist/cjs-browser/v7.d.ts +1 -1
  421. package/node_modules/uuid/dist/cjs-browser/v7.js +1 -1
  422. package/node_modules/uuid/dist/esm/types.d.ts +1 -1
  423. package/node_modules/uuid/dist/esm/v1.d.ts +1 -1
  424. package/node_modules/uuid/dist/esm/v1.js +1 -1
  425. package/node_modules/uuid/dist/esm/v3.d.ts +1 -1
  426. package/node_modules/uuid/dist/esm/v35.d.ts +1 -1
  427. package/node_modules/uuid/dist/esm/v4.d.ts +1 -1
  428. package/node_modules/uuid/dist/esm/v5.d.ts +1 -1
  429. package/node_modules/uuid/dist/esm/v6.d.ts +1 -1
  430. package/node_modules/uuid/dist/esm/v7.d.ts +1 -1
  431. package/node_modules/uuid/dist/esm/v7.js +1 -1
  432. package/node_modules/uuid/dist/esm-browser/types.d.ts +1 -1
  433. package/node_modules/uuid/dist/esm-browser/v1.d.ts +1 -1
  434. package/node_modules/uuid/dist/esm-browser/v1.js +1 -1
  435. package/node_modules/uuid/dist/esm-browser/v3.d.ts +1 -1
  436. package/node_modules/uuid/dist/esm-browser/v35.d.ts +1 -1
  437. package/node_modules/uuid/dist/esm-browser/v4.d.ts +1 -1
  438. package/node_modules/uuid/dist/esm-browser/v5.d.ts +1 -1
  439. package/node_modules/uuid/dist/esm-browser/v6.d.ts +1 -1
  440. package/node_modules/uuid/dist/esm-browser/v7.d.ts +1 -1
  441. package/node_modules/uuid/dist/esm-browser/v7.js +1 -1
  442. package/node_modules/uuid/package.json +1 -1
  443. package/package.json +7 -7
  444. package/tak-registration.html +4 -4
  445. package/tak-registration.js +16 -7
  446. package/node_modules/axios/SECURITY.md +0 -6
  447. /package/node_modules/fast-xml-parser/src/{v5 → v6}/Report.js +0 -0
@@ -1,92 +1,43 @@
1
1
  'use strict';
2
2
 
3
- // Copyright 2013 Timothy J Fontaine <tjfontaine@gmail.com>
4
- //
5
- // Permission is hereby granted, free of charge, to any person obtaining a copy
6
- // of this software and associated documentation files (the 'Software'), to deal
7
- // in the Software without restriction, including without limitation the rights
8
- // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- // copies of the Software, and to permit persons to whom the Software is
10
- // furnished to do so, subject to the following conditions:
11
- //
12
- // The above copyright notice and this permission notice shall be included in
13
- // all copies or substantial portions of the Software.
14
- //
15
- // THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- // THE SOFTWARE
3
+ import { Transform } from 'stream';
22
4
 
23
- /*
24
-
25
- Read any stream all the way to the end and trigger a single cb
26
-
27
- const http = require('http');
28
-
29
- const rte = require('readtoend');
30
-
31
- http.get('http://nodejs.org', function(response) {
32
- rte.readToEnd(response, function(err, body) {
33
- console.log(body);
34
- });
35
- });
36
-
37
- */
38
-
39
- let stream = require('stream');
40
- const util = require('util');
41
-
42
- if (!stream.Transform) {
43
- stream = require('readable-stream');
44
- }
45
-
46
- function ReadToEnd(opts) {
47
- if (!(this instanceof ReadToEnd)) {
48
- return new ReadToEnd(opts);
5
+ export default class ReadToEnd extends Transform {
6
+ constructor(options = {}) {
7
+ super(options);
8
+ this._encoding = options.encoding || 'utf8';
9
+ this._buffer = '';
49
10
  }
50
11
 
51
- stream.Transform.call(this, opts);
52
-
53
- this._rte_encoding = opts.encoding || 'utf8';
54
-
55
- this._buff = '';
56
- }
57
-
58
- module.exports = ReadToEnd;
59
- util.inherits(ReadToEnd, stream.Transform);
60
-
61
- ReadToEnd.prototype._transform = function(chunk, encoding, done) {
62
- this._buff += chunk.toString(this._rte_encoding);
63
- this.push(chunk);
64
- done();
65
- };
66
-
67
- ReadToEnd.prototype._flush = function(done) {
68
- this.emit('complete', undefined, this._buff);
69
- done();
70
- };
12
+ _transform(chunk, encoding, done) {
13
+ this._buffer += chunk.toString(this._encoding);
14
+ this.push(chunk);
15
+ done();
16
+ }
71
17
 
72
- ReadToEnd.readToEnd = function(stream, options, cb) {
73
- if (!cb) {
74
- cb = options;
75
- options = {};
18
+ _flush(done) {
19
+ this.emit('complete', null, this._buffer);
20
+ done();
76
21
  }
77
22
 
78
- const dest = new ReadToEnd(options);
23
+ static readToEnd(stream, options, callback) {
24
+ if (typeof options === 'function') {
25
+ callback = options;
26
+ options = {};
27
+ }
79
28
 
80
- stream.pipe(dest);
29
+ const dest = new ReadToEnd(options);
81
30
 
82
- stream.on('error', function(err) {
83
- stream.unpipe(dest);
84
- cb(err);
85
- });
31
+ stream.pipe(dest);
86
32
 
87
- dest.on('complete', cb);
33
+ stream.on('error', (err) => {
34
+ stream.unpipe(dest);
35
+ callback(err);
36
+ });
88
37
 
89
- dest.resume();
38
+ dest.on('complete', callback);
39
+ dest.resume();
90
40
 
91
- return dest;
92
- };
41
+ return dest;
42
+ }
43
+ }
@@ -210,6 +210,12 @@ type X2jOptions = {
210
210
  * Defaults to `(tagName, jPath, attrs) => tagName`
211
211
  */
212
212
  updateTag?: (tagName: string, jPath: string, attrs: {[k: string]: string}) => string | boolean;
213
+
214
+ /**
215
+ * If true, adds a Symbol to all object nodes, accessible by {@link XMLParser.getMetaDataSymbol} with
216
+ * metadata about each the node in the XML file.
217
+ */
218
+ captureMetaData?: boolean;
213
219
  };
214
220
 
215
221
  type strnumOptions = {
@@ -407,6 +413,18 @@ export class XMLParser {
407
413
  * @param entityValue {string} Eg: '\r'
408
414
  */
409
415
  addEntity(entityIdentifier: string, entityValue: string): void;
416
+
417
+ /**
418
+ * Returns a Symbol that can be used to access the {@link XMLMetaData}
419
+ * property on a node.
420
+ *
421
+ * If Symbol is not available in the environment, an ordinary property is used
422
+ * and the name of the property is here returned.
423
+ *
424
+ * The XMLMetaData property is only present when {@link X2jOptions.captureMetaData}
425
+ * is true in the options.
426
+ */
427
+ static getMetaDataSymbol() : Symbol;
410
428
  }
411
429
 
412
430
  export class XMLValidator{
@@ -414,5 +432,14 @@ export class XMLValidator{
414
432
  }
415
433
  export class XMLBuilder {
416
434
  constructor(options?: XmlBuilderOptions);
417
- build(jObj: any): any;
435
+ build(jObj: any): string;
436
+ }
437
+
438
+ /**
439
+ * This object is available on nodes via the symbol {@link XMLParser.getMetaDataSymbol}
440
+ * when {@link X2jOptions.captureMetaData} is true.
441
+ */
442
+ export interface XMLMetaData {
443
+ /** The index, if available, of the character where the XML node began in the input stream. */
444
+ startIndex?: number;
418
445
  }
@@ -1,11 +1,14 @@
1
1
  'use strict';
2
2
 
3
- const validator = require('./validator');
4
- const XMLParser = require('./xmlparser/XMLParser');
5
- const XMLBuilder = require('./xmlbuilder/json2xml');
3
+ import {validate} from './validator.js';
4
+ import XMLParser from './xmlparser/XMLParser.js';
5
+ import XMLBuilder from './xmlbuilder/json2xml.js';
6
6
 
7
- module.exports = {
8
- XMLParser: XMLParser,
9
- XMLValidator: validator,
10
- XMLBuilder: XMLBuilder
11
- }
7
+ const XMLValidator = {
8
+ validate: validate
9
+ }
10
+ export {
11
+ XMLParser,
12
+ XMLValidator,
13
+ XMLBuilder
14
+ };
@@ -1,4 +1,4 @@
1
- function getIgnoreAttributesFn(ignoreAttributes) {
1
+ export default function getIgnoreAttributesFn(ignoreAttributes) {
2
2
  if (typeof ignoreAttributes === 'function') {
3
3
  return ignoreAttributes
4
4
  }
@@ -15,6 +15,4 @@ function getIgnoreAttributesFn(ignoreAttributes) {
15
15
  }
16
16
  }
17
17
  return () => false
18
- }
19
-
20
- module.exports = getIgnoreAttributesFn
18
+ }
@@ -2,10 +2,10 @@
2
2
 
3
3
  const nameStartChar = ':A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD';
4
4
  const nameChar = nameStartChar + '\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040';
5
- const nameRegexp = '[' + nameStartChar + '][' + nameChar + ']*'
5
+ export const nameRegexp = '[' + nameStartChar + '][' + nameChar + ']*';
6
6
  const regexName = new RegExp('^' + nameRegexp + '$');
7
7
 
8
- const getAllMatches = function(string, regex) {
8
+ export function getAllMatches(string, regex) {
9
9
  const matches = [];
10
10
  let match = regex.exec(string);
11
11
  while (match) {
@@ -19,27 +19,27 @@ const getAllMatches = function(string, regex) {
19
19
  match = regex.exec(string);
20
20
  }
21
21
  return matches;
22
- };
22
+ }
23
23
 
24
- const isName = function(string) {
24
+ export const isName = function(string) {
25
25
  const match = regexName.exec(string);
26
26
  return !(match === null || typeof match === 'undefined');
27
- };
27
+ }
28
28
 
29
- exports.isExist = function(v) {
29
+ export function isExist(v) {
30
30
  return typeof v !== 'undefined';
31
- };
31
+ }
32
32
 
33
- exports.isEmptyObject = function(obj) {
33
+ export function isEmptyObject(obj) {
34
34
  return Object.keys(obj).length === 0;
35
- };
35
+ }
36
36
 
37
37
  /**
38
38
  * Copy all the properties of a into b.
39
39
  * @param {*} target
40
40
  * @param {*} a
41
41
  */
42
- exports.merge = function(target, a, arrayMode) {
42
+ export function merge(target, a, arrayMode) {
43
43
  if (a) {
44
44
  const keys = Object.keys(a); // will return an array of own properties
45
45
  const len = keys.length; //don't make it inline
@@ -51,22 +51,18 @@ exports.merge = function(target, a, arrayMode) {
51
51
  }
52
52
  }
53
53
  }
54
- };
54
+ }
55
55
  /* exports.merge =function (b,a){
56
56
  return Object.assign(b,a);
57
57
  } */
58
58
 
59
- exports.getValue = function(v) {
59
+ export function getValue(v) {
60
60
  if (exports.isExist(v)) {
61
61
  return v;
62
62
  } else {
63
63
  return '';
64
64
  }
65
- };
65
+ }
66
66
 
67
67
  // const fakeCall = function(a) {return a;};
68
- // const fakeCallNoReturn = function() {};
69
-
70
- exports.isName = isName;
71
- exports.getAllMatches = getAllMatches;
72
- exports.nameRegexp = nameRegexp;
68
+ // const fakeCallNoReturn = function() {};
@@ -1,4 +1,4 @@
1
- modules.export = {
1
+ export default {
2
2
  "<" : "<", //tag start
3
3
  ">" : ">", //tag end
4
4
  "/" : "/", //close tag
@@ -13,11 +13,10 @@ const htmlEntities = {
13
13
  "copyright" : { regex: /&(copy|#169);/g, val: "©" },
14
14
  "reg" : { regex: /&(reg|#174);/g, val: "®" },
15
15
  "inr" : { regex: /&(inr|#8377);/g, val: "₹" },
16
- "num_dec": { regex: /&#([0-9]{1,7});/g, val : (_, str) => String.fromCharCode(Number.parseInt(str, 10)) },
17
- "num_hex": { regex: /&#x([0-9a-fA-F]{1,6});/g, val : (_, str) => String.fromCharCode(Number.parseInt(str, 16)) },
16
+ "num_dec": { regex: /&#([0-9]{1,7});/g, val : (_, str) => String.fromCodePoint(Number.parseInt(str, 10)) },
17
+ "num_hex": { regex: /&#x([0-9a-fA-F]{1,6});/g, val : (_, str) => String.fromCodePoint(Number.parseInt(str, 16)) },
18
18
  };
19
-
20
- class EntitiesParser{
19
+ export default class EntitiesParser{
21
20
  constructor(replaceHtmlEntities) {
22
21
  this.replaceHtmlEntities = replaceHtmlEntities;
23
22
  this.docTypeEntities = {};
@@ -103,5 +102,3 @@ function validateEntityName(name){
103
102
  }
104
103
  return name;
105
104
  }
106
-
107
- module.exports = EntitiesParser;
@@ -1,7 +1,7 @@
1
1
 
2
- const JsObjOutputBuilder = require("./OutputBuilders/JsObjBuilder");
2
+ import {JsObjOutputBuilder} from './OutputBuilders/JsObjBuilder.js';
3
3
 
4
- const defaultOptions = {
4
+ export const defaultOptions = {
5
5
  preserveOrder: false,
6
6
  removeNSPrefix: false, // remove NS from tag name or attribute name if true
7
7
  //ignoreRootElement : false,
@@ -35,7 +35,7 @@ const defaultOptions = {
35
35
  OutputBuilder: new JsObjOutputBuilder(),
36
36
  };
37
37
 
38
- const buildOptions = function(options) {
38
+ export const buildOptions = function(options) {
39
39
  const finalOptions = { ... defaultOptions};
40
40
  copyProperties(finalOptions,options)
41
41
  return finalOptions;
@@ -59,6 +59,3 @@ function copyProperties(target, source) {
59
59
  }
60
60
  }
61
61
  }
62
-
63
- exports.buildOptions = buildOptions;
64
- exports.defaultOptions = defaultOptions;
@@ -1,4 +1,4 @@
1
- class BaseOutputBuilder{
1
+ export default class BaseOutputBuilder{
2
2
  constructor(){
3
3
  // this.attributes = {};
4
4
  }
@@ -67,5 +67,3 @@ class BaseOutputBuilder{
67
67
  this.attributes = {}
68
68
  }
69
69
  }
70
-
71
- module.exports = BaseOutputBuilder;
@@ -1,6 +1,6 @@
1
- const {buildOptions,registerCommonValueParsers} = require("./ParserOptionsBuilder");
1
+ import {buildOptions,registerCommonValueParsers} from './ParserOptionsBuilder.js';
2
2
 
3
- class OutputBuilder{
3
+ export default class OutputBuilder{
4
4
  constructor(options){
5
5
  this.options = buildOptions(options);
6
6
  this.registeredParsers = registerCommonValueParsers(this.options);
@@ -16,7 +16,7 @@ class OutputBuilder{
16
16
  }
17
17
 
18
18
  const rootName = '!js_arr';
19
- const BaseOutputBuilder = require("./BaseOutputBuilder");
19
+ import BaseOutputBuilder from './BaseOutputBuilder.js';
20
20
 
21
21
  class JsArrBuilder extends BaseOutputBuilder{
22
22
 
@@ -1,6 +1,6 @@
1
- const {buildOptions,registerCommonValueParsers} = require("./ParserOptionsBuilder");
1
+ import {buildOptions,registerCommonValueParsers} from"./ParserOptionsBuilder";
2
2
 
3
- class OutputBuilder{
3
+ export default class OutputBuilder{
4
4
  constructor(options){
5
5
  this.options = buildOptions(options);
6
6
  this.registeredParsers = registerCommonValueParsers(this.options);
@@ -15,7 +15,7 @@ class OutputBuilder{
15
15
  }
16
16
  }
17
17
 
18
- const BaseOutputBuilder = require("./BaseOutputBuilder");
18
+ import BaseOutputBuilder from "./BaseOutputBuilder.js";
19
19
  const rootName = '^';
20
20
 
21
21
  class JsMinArrBuilder extends BaseOutputBuilder{
@@ -98,5 +98,3 @@ class JsMinArrBuilder extends BaseOutputBuilder{
98
98
  return this.root[rootName];
99
99
  }
100
100
  }
101
-
102
- module.exports = OutputBuilder;
@@ -1,8 +1,8 @@
1
1
 
2
2
 
3
- const {buildOptions,registerCommonValueParsers} = require("./ParserOptionsBuilder");
3
+ import {buildOptions,registerCommonValueParsers} from './ParserOptionsBuilder.js';
4
4
 
5
- class OutputBuilder{
5
+ export default class OutputBuilder{
6
6
  constructor(builderOptions){
7
7
  this.options = buildOptions(builderOptions);
8
8
  this.registeredParsers = registerCommonValueParsers(this.options);
@@ -17,7 +17,7 @@ class OutputBuilder{
17
17
  }
18
18
  }
19
19
 
20
- const BaseOutputBuilder = require("./BaseOutputBuilder");
20
+ import BaseOutputBuilder from './BaseOutputBuilder.js';
21
21
  const rootName = '^';
22
22
 
23
23
  class JsObjBuilder extends BaseOutputBuilder{
@@ -152,5 +152,3 @@ class JsObjBuilder extends BaseOutputBuilder{
152
152
  function isEmpty(obj) {
153
153
  return Object.keys(obj).length === 0;
154
154
  }
155
-
156
- module.exports = OutputBuilder;
@@ -1,7 +1,7 @@
1
- const trimParser = require("../valueParsers/trim")
2
- const booleanParser = require("../valueParsers/booleanParser")
3
- const currencyParser = require("../valueParsers/currency")
4
- const numberParser = require("../valueParsers/number")
1
+ import trimParser from "../valueParsers/trim";
2
+ import booleanParser from "../valueParsers/booleanParser";
3
+ import currencyParser from "../valueParsers/currency";
4
+ import numberParser from "../valueParsers/number";
5
5
 
6
6
  const defaultOptions={
7
7
  nameFor:{
@@ -44,7 +44,7 @@ const defaultOptions={
44
44
  const withJoin = ["trim","join", /*"entities",*/"number","boolean","currency"/*, "date"*/]
45
45
  const withoutJoin = ["trim", /*"entities",*/"number","boolean","currency"/*, "date"*/]
46
46
 
47
- function buildOptions(options){
47
+ export function buildOptions(options){
48
48
  //clone
49
49
  const finalOptions = { ... defaultOptions};
50
50
 
@@ -78,7 +78,7 @@ function copyProperties(target, source) {
78
78
  }
79
79
  }
80
80
 
81
- function registerCommonValueParsers(options){
81
+ export function registerCommonValueParsers(options){
82
82
  return {
83
83
  "trim": new trimParser(),
84
84
  // "join": this.entityParser.parse,
@@ -92,8 +92,3 @@ function registerCommonValueParsers(options){
92
92
  // "date": this.entityParser.parse,
93
93
  }
94
94
  }
95
-
96
- module.exports = {
97
- buildOptions : buildOptions,
98
- registerCommonValueParsers: registerCommonValueParsers
99
- }
@@ -1,4 +1,4 @@
1
- class TagPath{
1
+ export default class TagPath{
2
2
  constructor(pathStr){
3
3
  let text = "";
4
4
  let tName = "";
@@ -1,6 +1,6 @@
1
- const TagPath = require("./TagPath");
1
+ import {TagPath} from './TagPath.js';
2
2
 
3
- class TagPathMatcher{
3
+ export default class TagPathMatcher{
4
4
  constructor(stack,node){
5
5
  this.stack = stack;
6
6
  this.node= node;
@@ -10,6 +10,4 @@ class TagPathMatcher{
10
10
  const tagPath = new TagPath(path);
11
11
  return tagPath.match(this.stack, this.node);
12
12
  }
13
- }
14
-
15
- module.exports = TagPathMatcher;
13
+ }
@@ -1,7 +1,7 @@
1
- const { buildOptions} = require("./OptionsBuilder");
2
- const Xml2JsParser = require("./Xml2JsParser");
1
+ import { buildOptions} from './OptionsBuilder.js';
2
+ import Xml2JsParser from './Xml2JsParser.js';
3
3
 
4
- class XMLParser{
4
+ export default class XMLParser{
5
5
 
6
6
  constructor(options){
7
7
  this.externalEntities = {};
@@ -81,5 +81,3 @@ function isStream(stream){
81
81
  if(stream && typeof stream.read === "function" && typeof stream.on === "function" && typeof stream.readableEnded === "boolean") return true;
82
82
  return false;
83
83
  }
84
-
85
- module.exports = XMLParser;
@@ -1,10 +1,10 @@
1
- const StringSource = require("./inputSource/StringSource");
2
- const BufferSource = require("./inputSource/BufferSource");
3
- const {readTagExp,readClosingTagName} = require("./XmlPartReader");
4
- const {readComment, readCdata,readDocType,readPiTag} = require("./XmlSpecialTagsReader");
5
- const TagPath = require("./TagPath");
6
- const TagPathMatcher = require("./TagPathMatcher");
7
- const EntitiesParser = require('./EntitiesParser');
1
+ import StringSource from './inputSource/StringSource.js';
2
+ import BufferSource from './inputSource/BufferSource.js';
3
+ import {readTagExp,readClosingTagName} from './XmlPartReader.js';
4
+ import {readComment, readCdata,readDocType,readPiTag} from './XmlSpecialTagsReader.js';
5
+ import TagPath from './TagPath.js';
6
+ import TagPathMatcher from './TagPathMatcher.js';
7
+ import EntitiesParser from './EntitiesParser.js';
8
8
 
9
9
  //To hold the data of current tag
10
10
  //This is usually used to compare jpath expression against current tag
@@ -16,7 +16,7 @@ class TagDetail{
16
16
  }
17
17
  }
18
18
 
19
- class Xml2JsParser {
19
+ export default class Xml2JsParser {
20
20
  constructor(options) {
21
21
  this.options = options;
22
22
 
@@ -233,5 +233,3 @@ function resolveNameSpace(name, removeNSPrefix) {
233
233
  }
234
234
  return name;
235
235
  }
236
-
237
- module.exports = Xml2JsParser;
@@ -6,7 +6,7 @@
6
6
  * @param {string} tagName
7
7
  * @param {number} i : start index
8
8
  */
9
- function readStopNode(xmlDoc, tagName, i){
9
+ export function readStopNode(xmlDoc, tagName, i){
10
10
  const startIndex = i;
11
11
  // Starting at 1 since we already have an open tag
12
12
  let openTagCount = 1;
@@ -55,7 +55,7 @@ function readStopNode(xmlDoc, tagName, i){
55
55
  * @param {Source} source
56
56
  * @returns tag name
57
57
  */
58
- function readClosingTagName(source){
58
+ export function readClosingTagName(source){
59
59
  let text = ""; //temporary data
60
60
  while(source.canRead()){
61
61
  let ch = source.readCh();
@@ -77,7 +77,7 @@ function readClosingTagName(source){
77
77
  * @param {number} startIndex starting index
78
78
  * @returns tag expression includes tag name & attribute string
79
79
  */
80
- function readTagExp(parser) {
80
+ export function readTagExp(parser) {
81
81
  let inSingleQuotes = false;
82
82
  let inDoubleQuotes = false;
83
83
  let i;
@@ -107,7 +107,7 @@ function readTagExp(parser) {
107
107
  return buildTagExpObj(exp, parser)
108
108
  }
109
109
 
110
- function readPiExp(parser) {
110
+ export function readPiExp(parser) {
111
111
  let inSingleQuotes = false;
112
112
  let inDoubleQuotes = false;
113
113
  let i;
@@ -208,9 +208,3 @@ const getAllMatches = function(string, regex) {
208
208
  return matches;
209
209
  };
210
210
 
211
- module.exports = {
212
- readStopNode: readStopNode,
213
- readClosingTagName: readClosingTagName,
214
- readTagExp: readTagExp,
215
- readPiExp: readPiExp,
216
- }
@@ -1,6 +1,6 @@
1
- const {readPiExp} = require("./XmlPartReader");
1
+ import {readPiExp} from './XmlPartReader.js';
2
2
 
3
- function readCdata(parser){
3
+ export function readCdata(parser){
4
4
  //<![ are already read till this point
5
5
  let str = parser.source.readStr(6); //CDATA[
6
6
  parser.source.updateBufferBoundary(6);
@@ -10,7 +10,7 @@ function readCdata(parser){
10
10
  let text = parser.source.readUpto("]]>");
11
11
  parser.outputBuilder.addCdata(text);
12
12
  }
13
- function readPiTag(parser){
13
+ export function readPiTag(parser){
14
14
  //<? are already read till this point
15
15
  let tagExp = readPiExp(parser, "?>");
16
16
  if(!tagExp) throw new Error("Invalid Pi Tag expression.");
@@ -22,7 +22,7 @@ function readPiTag(parser){
22
22
  }
23
23
  }
24
24
 
25
- function readComment(parser){
25
+ export function readComment(parser){
26
26
  //<!- are already read till this point
27
27
  let ch = parser.source.readCh();
28
28
  if(ch !== "-") throw new Error(`Invalid comment expression at ${parser.source.line}:${parser.source.cols}`);
@@ -36,7 +36,7 @@ const DOCTYPE_tags = {
36
36
  "AT":/^TLIST\s+[^\s]+\s+[^\s]+\s+[^\s]+\s+[^\s]+\s+$/m,
37
37
  "NO":/^TATION.+$/m
38
38
  }
39
- function readDocType(parser){
39
+ export function readDocType(parser){
40
40
  //<!D are already read till this point
41
41
  let str = parser.source.readStr(6); //OCTYPE
42
42
  parser.source.updateBufferBoundary(6);
@@ -109,10 +109,3 @@ function registerEntity(parser){
109
109
  }
110
110
  }
111
111
  }
112
-
113
- module.exports = {
114
- readCdata: readCdata,
115
- readComment:readComment,
116
- readDocType:readDocType,
117
- readPiTag:readPiTag
118
- }
@@ -2,7 +2,7 @@ const Constants = {
2
2
  space: 32,
3
3
  tab: 9
4
4
  }
5
- class BufferSource{
5
+ export default class BufferSource{
6
6
  constructor(bytesArr){
7
7
  this.line = 1;
8
8
  this.cols = 0;
@@ -114,5 +114,3 @@ readUptoCloseTag(stopStr) { //stopStr: "</tagname"
114
114
  }
115
115
 
116
116
  }
117
-
118
- module.exports = BufferSource;
@@ -1,7 +1,7 @@
1
1
  const whiteSpaces = [" ", "\n", "\t"];
2
2
 
3
3
 
4
- class StringSource{
4
+ export default class StringSource{
5
5
  constructor(str){
6
6
  this.line = 1;
7
7
  this.cols = 0;
@@ -119,5 +119,3 @@ class StringSource{
119
119
  }
120
120
 
121
121
  }
122
-
123
- module.exports = StringSource;