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
@@ -13,11 +13,11 @@ 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
19
 
20
- class EntitiesParser{
20
+ export default class EntitiesParser{
21
21
  constructor(replaceHtmlEntities) {
22
22
  this.replaceHtmlEntities = replaceHtmlEntities;
23
23
  this.docTypeEntities = {};
@@ -103,5 +103,3 @@ function validateEntityName(name){
103
103
  }
104
104
  return name;
105
105
  }
106
-
107
- module.exports = EntitiesParser;
@@ -1,4 +1,4 @@
1
- class boolParser{
1
+ export default class boolParser{
2
2
  constructor(trueList, falseList){
3
3
  if(trueList)
4
4
  this.trueList = trueList;
@@ -20,4 +20,3 @@ class boolParser{
20
20
  return val;
21
21
  }
22
22
  }
23
- module.exports = boolParser;
@@ -1,4 +1,4 @@
1
- function boolParserExt(val){
1
+ export default function boolParserExt(val){
2
2
  if(isArray(val)){
3
3
  for (let i = 0; i < val.length; i++) {
4
4
  val[i] = parse(val[i])
@@ -17,4 +17,3 @@ function parse(val){
17
17
  }
18
18
  return val;
19
19
  }
20
- module.exports = boolParserExt;
@@ -16,7 +16,7 @@ const symbol = "(?:\$|€|¥|₹)?";
16
16
 
17
17
  const currencyCheckRegex = /^\s*(?:-|\+)?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d{1,2})?\s*(?:\$|€|¥|₹)?\s*$/u;
18
18
 
19
- class CurrencyParser{
19
+ export default class CurrencyParser{
20
20
  constructor(options){
21
21
  this.options = options || defaultOptions;
22
22
  }
@@ -36,5 +36,3 @@ class CurrencyParser{
36
36
  }
37
37
  }
38
38
  CurrencyParser.defaultOptions = defaultOptions;
39
-
40
- module.exports = CurrencyParser;
@@ -4,11 +4,10 @@
4
4
  * @param {string} by
5
5
  * @returns
6
6
  */
7
- function join(val, by=" "){
7
+ export default function join(val, by=" "){
8
8
  if(isArray(val)){
9
9
  val.join(by)
10
10
  }
11
11
  return val;
12
12
  }
13
13
 
14
- module.exports = join;
@@ -1,7 +1,7 @@
1
- const toNumber = require("strnum");
1
+ import toNumber from "strnum";
2
2
 
3
3
 
4
- class numParser{
4
+ export default class numParser{
5
5
  constructor(options){
6
6
  this.options = options;
7
7
  }
@@ -12,5 +12,3 @@ class numParser{
12
12
  return val;
13
13
  }
14
14
  }
15
-
16
- module.exports = numParser;
@@ -1,8 +1,6 @@
1
- class trimmer{
1
+ export default class trimmer{
2
2
  parse(val){
3
3
  if(typeof val === "string") return val.trim();
4
4
  else return val;
5
5
  }
6
6
  }
7
-
8
- module.exports = trimmer;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const util = require('./util');
3
+ import {getAllMatches, isName} from './util.js';
4
4
 
5
5
  const defaultOptions = {
6
6
  allowBooleanAttributes: false, //A tag can have attributes without any value
@@ -8,7 +8,7 @@ const defaultOptions = {
8
8
  };
9
9
 
10
10
  //const tagsPattern = new RegExp("<\\/?([\\w:\\-_\.]+)\\s*\/?>","g");
11
- exports.validate = function (xmlData, options) {
11
+ export function validate(xmlData, options) {
12
12
  options = Object.assign({}, defaultOptions, options);
13
13
 
14
14
  //xmlData = xmlData.replace(/(\r\n|\n|\r)/gm,"");//make it single line
@@ -321,7 +321,7 @@ function validateAttributeString(attrStr, options) {
321
321
 
322
322
  //if(attrStr.trim().length === 0) return true; //empty string
323
323
 
324
- const matches = util.getAllMatches(attrStr, validAttrStrRegxp);
324
+ const matches = getAllMatches(attrStr, validAttrStrRegxp);
325
325
  const attrNames = {};
326
326
 
327
327
  for (let i = 0; i < matches.length; i++) {
@@ -399,13 +399,13 @@ function getErrorObject(code, message, lineNumber) {
399
399
  }
400
400
 
401
401
  function validateAttrName(attrName) {
402
- return util.isName(attrName);
402
+ return isName(attrName);
403
403
  }
404
404
 
405
405
  // const startsWithXML = /^xml/i;
406
406
 
407
407
  function validateTagName(tagname) {
408
- return util.isName(tagname) /* && !tagname.match(startsWithXML) */;
408
+ return isName(tagname) /* && !tagname.match(startsWithXML) */;
409
409
  }
410
410
 
411
411
  //this function returns the line number for the character at the given index
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
  //parse Empty Node as self closing node
3
- const buildFromOrderedJs = require('./orderedJs2Xml');
4
- const getIgnoreAttributesFn = require('../ignoreAttributes')
3
+ import buildFromOrderedJs from './orderedJs2Xml.js';
4
+ import getIgnoreAttributesFn from "../ignoreAttributes.js";
5
5
 
6
6
  const defaultOptions = {
7
7
  attributeNamePrefix: '@_',
@@ -37,7 +37,7 @@ const defaultOptions = {
37
37
  oneListGroup: false
38
38
  };
39
39
 
40
- function Builder(options) {
40
+ export default function Builder(options) {
41
41
  this.options = Object.assign({}, defaultOptions, options);
42
42
  if (this.options.ignoreAttributes === true || this.options.attributesGroupName) {
43
43
  this.isAttribute = function(/*a*/) {
@@ -92,6 +92,8 @@ Builder.prototype.j2x = function(jObj, level, ajPath) {
92
92
  // null attribute should be ignored by the attribute list, but should not cause the tag closing
93
93
  if (this.isAttribute(key)) {
94
94
  val += '';
95
+ } else if (key === this.options.cdataPropName) {
96
+ val += '';
95
97
  } else if (key[0] === '?') {
96
98
  val += this.indentate(level) + '<' + key + '?' + this.tagEndChar;
97
99
  } else {
@@ -281,4 +283,3 @@ function isAttribute(name /*, options*/) {
281
283
  }
282
284
  }
283
285
 
284
- module.exports = Builder;
@@ -6,7 +6,7 @@ const EOL = "\n";
6
6
  * @param {any} options
7
7
  * @returns
8
8
  */
9
- function toXml(jArray, options) {
9
+ export default function toXml(jArray, options) {
10
10
  let indentation = "";
11
11
  if (options.format && options.indentBy.length > 0) {
12
12
  indentation = EOL;
@@ -132,4 +132,3 @@ function replaceEntitiesValue(textValue, options) {
132
132
  }
133
133
  return textValue;
134
134
  }
135
- module.exports = toXml;
@@ -1,7 +1,7 @@
1
- const util = require('../util');
1
+ import {isName} from '../util.js';
2
2
 
3
3
  //TODO: handle comments
4
- function readDocType(xmlData, i){
4
+ export default function readDocType(xmlData, i){
5
5
 
6
6
  const entities = {};
7
7
  if( xmlData[i + 3] === 'O' &&
@@ -17,21 +17,30 @@ function readDocType(xmlData, i){
17
17
  let exp = "";
18
18
  for(;i<xmlData.length;i++){
19
19
  if (xmlData[i] === '<' && !comment) { //Determine the tag type
20
- if( hasBody && isEntity(xmlData, i)){
20
+ if( hasBody && hasSeq(xmlData, "!ENTITY",i)){
21
21
  i += 7;
22
22
  let entityName, val;
23
23
  [entityName, val,i] = readEntityExp(xmlData,i+1);
24
24
  if(val.indexOf("&") === -1) //Parameter entities are not supported
25
- entities[ validateEntityName(entityName) ] = {
25
+ entities[ entityName ] = {
26
26
  regx : RegExp( `&${entityName};`,"g"),
27
27
  val: val
28
28
  };
29
29
  }
30
- else if( hasBody && isElement(xmlData, i)) i += 8;//Not supported
31
- else if( hasBody && isAttlist(xmlData, i)) i += 8;//Not supported
32
- else if( hasBody && isNotation(xmlData, i)) i += 9;//Not supported
33
- else if( isComment) comment = true;
34
- else throw new Error("Invalid DOCTYPE");
30
+ else if( hasBody && hasSeq(xmlData, "!ELEMENT",i)) {
31
+ i += 8;//Not supported
32
+ const {index} = readElementExp(xmlData,i+1);
33
+ i = index;
34
+ }else if( hasBody && hasSeq(xmlData, "!ATTLIST",i)){
35
+ i += 8;//Not supported
36
+ // const {index} = readAttlistExp(xmlData,i+1);
37
+ // i = index;
38
+ }else if( hasBody && hasSeq(xmlData, "!NOTATION",i)) {
39
+ i += 9;//Not supported
40
+ const {index} = readNotationExp(xmlData,i+1);
41
+ i = index;
42
+ }else if( hasSeq(xmlData, "!--",i) ) comment = true;
43
+ else throw new Error("Invalid DOCTYPE");
35
44
 
36
45
  angleBracketsCount++;
37
46
  exp = "";
@@ -62,7 +71,14 @@ function readDocType(xmlData, i){
62
71
  return {entities, i};
63
72
  }
64
73
 
65
- function readEntityExp(xmlData,i){
74
+ const skipWhitespace = (data, index) => {
75
+ while (index < data.length && /\s/.test(data[index])) {
76
+ index++;
77
+ }
78
+ return index;
79
+ };
80
+
81
+ function readEntityExp(xmlData, i) {
66
82
  //External entities are not supported
67
83
  // <!ENTITY ext SYSTEM "http://normal-website.com" >
68
84
 
@@ -71,83 +87,283 @@ function readEntityExp(xmlData,i){
71
87
 
72
88
  //Internal entities are supported
73
89
  // <!ENTITY entityname "replacement text">
74
-
75
- //read EntityName
90
+
91
+ // Skip leading whitespace after <!ENTITY
92
+ i = skipWhitespace(xmlData, i);
93
+
94
+ // Read entity name
76
95
  let entityName = "";
77
- for (; i < xmlData.length && (xmlData[i] !== "'" && xmlData[i] !== '"' ); i++) {
78
- // if(xmlData[i] === " ") continue;
79
- // else
96
+ while (i < xmlData.length && !/\s/.test(xmlData[i]) && xmlData[i] !== '"' && xmlData[i] !== "'") {
80
97
  entityName += xmlData[i];
98
+ i++;
81
99
  }
82
- entityName = entityName.trim();
83
- if(entityName.indexOf(" ") !== -1) throw new Error("External entites are not supported");
100
+ validateEntityName(entityName);
84
101
 
85
- //read Entity Value
86
- const startChar = xmlData[i++];
87
- let val = ""
88
- for (; i < xmlData.length && xmlData[i] !== startChar ; i++) {
89
- val += xmlData[i];
102
+ // Skip whitespace after entity name
103
+ i = skipWhitespace(xmlData, i);
104
+
105
+ // Check for unsupported constructs (external entities or parameter entities)
106
+ if (xmlData.substring(i, i + 6).toUpperCase() === "SYSTEM") {
107
+ throw new Error("External entities are not supported");
108
+ }else if (xmlData[i] === "%") {
109
+ throw new Error("Parameter entities are not supported");
90
110
  }
91
- return [entityName, val, i];
111
+
112
+ // Read entity value (internal entity)
113
+ let entityValue = "";
114
+ [i, entityValue] = readIdentifierVal(xmlData, i, "entity");
115
+ i--;
116
+ return [entityName, entityValue, i ];
92
117
  }
93
118
 
94
- function isComment(xmlData, i){
95
- if(xmlData[i+1] === '!' &&
96
- xmlData[i+2] === '-' &&
97
- xmlData[i+3] === '-') return true
98
- return false
119
+ function readNotationExp(xmlData, i) {
120
+ // Skip leading whitespace after <!NOTATION
121
+ i = skipWhitespace(xmlData, i);
122
+
123
+ // Read notation name
124
+ let notationName = "";
125
+ while (i < xmlData.length && !/\s/.test(xmlData[i])) {
126
+ notationName += xmlData[i];
127
+ i++;
128
+ }
129
+ validateEntityName(notationName);
130
+
131
+ // Skip whitespace after notation name
132
+ i = skipWhitespace(xmlData, i);
133
+
134
+ // Check identifier type (SYSTEM or PUBLIC)
135
+ const identifierType = xmlData.substring(i, i + 6).toUpperCase();
136
+ if (identifierType !== "SYSTEM" && identifierType !== "PUBLIC") {
137
+ throw new Error(`Expected SYSTEM or PUBLIC, found "${identifierType}"`);
138
+ }
139
+ i += identifierType.length;
140
+
141
+ // Skip whitespace after identifier type
142
+ i = skipWhitespace(xmlData, i);
143
+
144
+ // Read public identifier (if PUBLIC)
145
+ let publicIdentifier = null;
146
+ let systemIdentifier = null;
147
+
148
+ if (identifierType === "PUBLIC") {
149
+ [i, publicIdentifier ] = readIdentifierVal(xmlData, i, "publicIdentifier");
150
+
151
+ // Skip whitespace after public identifier
152
+ i = skipWhitespace(xmlData, i);
153
+
154
+ // Optionally read system identifier
155
+ if (xmlData[i] === '"' || xmlData[i] === "'") {
156
+ [i, systemIdentifier ] = readIdentifierVal(xmlData, i,"systemIdentifier");
157
+ }
158
+ } else if (identifierType === "SYSTEM") {
159
+ // Read system identifier (mandatory for SYSTEM)
160
+ [i, systemIdentifier ] = readIdentifierVal(xmlData, i, "systemIdentifier");
161
+
162
+ if (!systemIdentifier) {
163
+ throw new Error("Missing mandatory system identifier for SYSTEM notation");
164
+ }
165
+ }
166
+
167
+ return {notationName, publicIdentifier, systemIdentifier, index: --i};
99
168
  }
100
- function isEntity(xmlData, i){
101
- if(xmlData[i+1] === '!' &&
102
- xmlData[i+2] === 'E' &&
103
- xmlData[i+3] === 'N' &&
104
- xmlData[i+4] === 'T' &&
105
- xmlData[i+5] === 'I' &&
106
- xmlData[i+6] === 'T' &&
107
- xmlData[i+7] === 'Y') return true
108
- return false
169
+
170
+ function readIdentifierVal(xmlData, i, type) {
171
+ let identifierVal = "";
172
+ const startChar = xmlData[i];
173
+ if (startChar !== '"' && startChar !== "'") {
174
+ throw new Error(`Expected quoted string, found "${startChar}"`);
175
+ }
176
+ i++;
177
+
178
+ while (i < xmlData.length && xmlData[i] !== startChar) {
179
+ identifierVal += xmlData[i];
180
+ i++;
181
+ }
182
+
183
+ if (xmlData[i] !== startChar) {
184
+ throw new Error(`Unterminated ${type} value`);
185
+ }
186
+ i++;
187
+ return [i, identifierVal];
109
188
  }
110
- function isElement(xmlData, i){
111
- if(xmlData[i+1] === '!' &&
112
- xmlData[i+2] === 'E' &&
113
- xmlData[i+3] === 'L' &&
114
- xmlData[i+4] === 'E' &&
115
- xmlData[i+5] === 'M' &&
116
- xmlData[i+6] === 'E' &&
117
- xmlData[i+7] === 'N' &&
118
- xmlData[i+8] === 'T') return true
119
- return false
189
+
190
+ function readElementExp(xmlData, i) {
191
+ // <!ELEMENT br EMPTY>
192
+ // <!ELEMENT div ANY>
193
+ // <!ELEMENT title (#PCDATA)>
194
+ // <!ELEMENT book (title, author+)>
195
+ // <!ELEMENT name (content-model)>
196
+
197
+ // Skip leading whitespace after <!ELEMENT
198
+ i = skipWhitespace(xmlData, i);
199
+
200
+ // Read element name
201
+ let elementName = "";
202
+ while (i < xmlData.length && !/\s/.test(xmlData[i])) {
203
+ elementName += xmlData[i];
204
+ i++;
205
+ }
206
+
207
+ // Validate element name
208
+ if (!validateEntityName(elementName)) {
209
+ throw new Error(`Invalid element name: "${elementName}"`);
210
+ }
211
+
212
+ // Skip whitespace after element name
213
+ i = skipWhitespace(xmlData, i);
214
+ let contentModel = "";
215
+ // Expect '(' to start content model
216
+ if(xmlData[i] === "E" && hasSeq(xmlData, "MPTY",i)) i+=6;
217
+ else if(xmlData[i] === "A" && hasSeq(xmlData, "NY",i)) i+=4;
218
+ else if (xmlData[i] === "(") {
219
+ i++; // Move past '('
220
+
221
+ // Read content model
222
+ while (i < xmlData.length && xmlData[i] !== ")") {
223
+ contentModel += xmlData[i];
224
+ i++;
225
+ }
226
+ if (xmlData[i] !== ")") {
227
+ throw new Error("Unterminated content model");
228
+ }
229
+
230
+ }else{
231
+ throw new Error(`Invalid Element Expression, found "${xmlData[i]}"`);
232
+ }
233
+
234
+ return {
235
+ elementName,
236
+ contentModel: contentModel.trim(),
237
+ index: i
238
+ };
120
239
  }
121
240
 
122
- function isAttlist(xmlData, i){
123
- if(xmlData[i+1] === '!' &&
124
- xmlData[i+2] === 'A' &&
125
- xmlData[i+3] === 'T' &&
126
- xmlData[i+4] === 'T' &&
127
- xmlData[i+5] === 'L' &&
128
- xmlData[i+6] === 'I' &&
129
- xmlData[i+7] === 'S' &&
130
- xmlData[i+8] === 'T') return true
131
- return false
241
+ function readAttlistExp(xmlData, i) {
242
+ // Skip leading whitespace after <!ATTLIST
243
+ i = skipWhitespace(xmlData, i);
244
+
245
+ // Read element name
246
+ let elementName = "";
247
+ while (i < xmlData.length && !/\s/.test(xmlData[i])) {
248
+ elementName += xmlData[i];
249
+ i++;
250
+ }
251
+
252
+ // Validate element name
253
+ validateEntityName(elementName)
254
+
255
+ // Skip whitespace after element name
256
+ i = skipWhitespace(xmlData, i);
257
+
258
+ // Read attribute name
259
+ let attributeName = "";
260
+ while (i < xmlData.length && !/\s/.test(xmlData[i])) {
261
+ attributeName += xmlData[i];
262
+ i++;
263
+ }
264
+
265
+ // Validate attribute name
266
+ if (!validateEntityName(attributeName)) {
267
+ throw new Error(`Invalid attribute name: "${attributeName}"`);
268
+ }
269
+
270
+ // Skip whitespace after attribute name
271
+ i = skipWhitespace(xmlData, i);
272
+
273
+ // Read attribute type
274
+ let attributeType = "";
275
+ if (xmlData.substring(i, i + 8).toUpperCase() === "NOTATION") {
276
+ attributeType = "NOTATION";
277
+ i += 8; // Move past "NOTATION"
278
+
279
+ // Skip whitespace after "NOTATION"
280
+ i = skipWhitespace(xmlData, i);
281
+
282
+ // Expect '(' to start the list of notations
283
+ if (xmlData[i] !== "(") {
284
+ throw new Error(`Expected '(', found "${xmlData[i]}"`);
285
+ }
286
+ i++; // Move past '('
287
+
288
+ // Read the list of allowed notations
289
+ let allowedNotations = [];
290
+ while (i < xmlData.length && xmlData[i] !== ")") {
291
+ let notation = "";
292
+ while (i < xmlData.length && xmlData[i] !== "|" && xmlData[i] !== ")") {
293
+ notation += xmlData[i];
294
+ i++;
295
+ }
296
+
297
+ // Validate notation name
298
+ notation = notation.trim();
299
+ if (!validateEntityName(notation)) {
300
+ throw new Error(`Invalid notation name: "${notation}"`);
301
+ }
302
+
303
+ allowedNotations.push(notation);
304
+
305
+ // Skip '|' separator or exit loop
306
+ if (xmlData[i] === "|") {
307
+ i++; // Move past '|'
308
+ i = skipWhitespace(xmlData, i); // Skip optional whitespace after '|'
309
+ }
310
+ }
311
+
312
+ if (xmlData[i] !== ")") {
313
+ throw new Error("Unterminated list of notations");
314
+ }
315
+ i++; // Move past ')'
316
+
317
+ // Store the allowed notations as part of the attribute type
318
+ attributeType += " (" + allowedNotations.join("|") + ")";
319
+ } else {
320
+ // Handle simple types (e.g., CDATA, ID, IDREF, etc.)
321
+ while (i < xmlData.length && !/\s/.test(xmlData[i])) {
322
+ attributeType += xmlData[i];
323
+ i++;
324
+ }
325
+
326
+ // Validate simple attribute type
327
+ const validTypes = ["CDATA", "ID", "IDREF", "IDREFS", "ENTITY", "ENTITIES", "NMTOKEN", "NMTOKENS"];
328
+ if (!validTypes.includes(attributeType.toUpperCase())) {
329
+ throw new Error(`Invalid attribute type: "${attributeType}"`);
330
+ }
331
+ }
332
+
333
+ // Skip whitespace after attribute type
334
+ i = skipWhitespace(xmlData, i);
335
+
336
+ // Read default value
337
+ let defaultValue = "";
338
+ if (xmlData.substring(i, i + 8).toUpperCase() === "#REQUIRED") {
339
+ defaultValue = "#REQUIRED";
340
+ i += 8;
341
+ } else if (xmlData.substring(i, i + 7).toUpperCase() === "#IMPLIED") {
342
+ defaultValue = "#IMPLIED";
343
+ i += 7;
344
+ } else {
345
+ [i, defaultValue] = readIdentifierVal(xmlData, i, "ATTLIST");
346
+ }
347
+
348
+ return {
349
+ elementName,
350
+ attributeName,
351
+ attributeType,
352
+ defaultValue,
353
+ index: i
354
+ }
132
355
  }
133
- function isNotation(xmlData, i){
134
- if(xmlData[i+1] === '!' &&
135
- xmlData[i+2] === 'N' &&
136
- xmlData[i+3] === 'O' &&
137
- xmlData[i+4] === 'T' &&
138
- xmlData[i+5] === 'A' &&
139
- xmlData[i+6] === 'T' &&
140
- xmlData[i+7] === 'I' &&
141
- xmlData[i+8] === 'O' &&
142
- xmlData[i+9] === 'N') return true
143
- return false
356
+
357
+ function hasSeq(data, seq,i){
358
+ for(let j=0;j<seq.length;j++){
359
+ if(seq[j]!==data[i+j+1]) return false;
360
+ }
361
+ return true;
144
362
  }
145
363
 
146
364
  function validateEntityName(name){
147
- if (util.isName(name))
365
+ if (isName(name))
148
366
  return name;
149
367
  else
150
368
  throw new Error(`Invalid entity name ${name}`);
151
369
  }
152
-
153
- module.exports = readDocType;
@@ -1,5 +1,5 @@
1
1
 
2
- const defaultOptions = {
2
+ export const defaultOptions = {
3
3
  preserveOrder: false,
4
4
  attributeNamePrefix: '@_',
5
5
  attributesGroupName: false,
@@ -38,11 +38,9 @@ const defaultOptions = {
38
38
  return tagName
39
39
  },
40
40
  // skipEmptyListItem: false
41
+ captureMetaData: false,
41
42
  };
42
43
 
43
- const buildOptions = function(options) {
44
+ export const buildOptions = function(options) {
44
45
  return Object.assign({}, defaultOptions, options);
45
46
  };
46
-
47
- exports.buildOptions = buildOptions;
48
- exports.defaultOptions = defaultOptions;