node-red-contrib-tak-registration 0.14.1 → 0.16.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 (458) 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 +165 -0
  45. package/node_modules/axios/README.md +55 -33
  46. package/node_modules/axios/dist/axios.js +85 -43
  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 +92 -47
  51. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  52. package/node_modules/axios/dist/esm/axios.js +92 -47
  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 +123 -51
  57. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  58. package/node_modules/axios/index.d.cts +17 -5
  59. package/node_modules/axios/index.d.ts +6 -3
  60. package/node_modules/axios/lib/adapters/fetch.js +2 -2
  61. package/node_modules/axios/lib/adapters/http.js +1 -1
  62. package/node_modules/axios/lib/core/Axios.js +13 -4
  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/core/mergeConfig.js +1 -1
  66. package/node_modules/axios/lib/env/data.js +1 -1
  67. package/node_modules/axios/lib/helpers/formDataToStream.js +4 -3
  68. package/node_modules/axios/lib/helpers/resolveConfig.js +1 -1
  69. package/node_modules/axios/lib/helpers/throttle.js +1 -1
  70. package/node_modules/axios/lib/helpers/toFormData.js +4 -0
  71. package/node_modules/axios/lib/helpers/toURLEncodedForm.js +4 -3
  72. package/node_modules/axios/lib/platform/node/index.js +26 -0
  73. package/node_modules/axios/lib/utils.js +48 -28
  74. package/node_modules/axios/package.json +14 -5
  75. package/node_modules/bignumber.js/CHANGELOG.md +82 -1
  76. package/node_modules/bignumber.js/LICENCE.md +1 -1
  77. package/node_modules/bignumber.js/README.md +6 -4
  78. package/node_modules/bignumber.js/bignumber.d.mts +6 -0
  79. package/node_modules/bignumber.js/bignumber.d.ts +3 -1829
  80. package/node_modules/bignumber.js/bignumber.js +3 -3
  81. package/node_modules/bignumber.js/bignumber.mjs +3 -3
  82. package/node_modules/bignumber.js/package.json +17 -7
  83. package/node_modules/bignumber.js/types.d.ts +1821 -0
  84. package/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
  85. package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
  86. package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
  87. package/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
  88. package/node_modules/call-bind-apply-helpers/LICENSE +21 -0
  89. package/node_modules/call-bind-apply-helpers/README.md +62 -0
  90. package/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
  91. package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
  92. package/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
  93. package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
  94. package/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
  95. package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
  96. package/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
  97. package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
  98. package/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
  99. package/node_modules/call-bind-apply-helpers/index.js +15 -0
  100. package/node_modules/call-bind-apply-helpers/package.json +85 -0
  101. package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
  102. package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
  103. package/node_modules/call-bind-apply-helpers/test/index.js +63 -0
  104. package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
  105. package/node_modules/dunder-proto/.eslintrc +5 -0
  106. package/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
  107. package/node_modules/dunder-proto/.nycrc +13 -0
  108. package/node_modules/dunder-proto/CHANGELOG.md +24 -0
  109. package/node_modules/dunder-proto/LICENSE +21 -0
  110. package/node_modules/dunder-proto/README.md +54 -0
  111. package/node_modules/dunder-proto/get.d.ts +5 -0
  112. package/node_modules/dunder-proto/get.js +30 -0
  113. package/node_modules/dunder-proto/package.json +76 -0
  114. package/node_modules/dunder-proto/set.d.ts +5 -0
  115. package/node_modules/dunder-proto/set.js +35 -0
  116. package/node_modules/dunder-proto/test/get.js +34 -0
  117. package/node_modules/dunder-proto/test/index.js +4 -0
  118. package/node_modules/dunder-proto/test/set.js +50 -0
  119. package/node_modules/dunder-proto/tsconfig.json +9 -0
  120. package/node_modules/es-define-property/.eslintrc +13 -0
  121. package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
  122. package/node_modules/es-define-property/.nycrc +9 -0
  123. package/node_modules/es-define-property/CHANGELOG.md +29 -0
  124. package/node_modules/es-define-property/LICENSE +21 -0
  125. package/node_modules/es-define-property/README.md +49 -0
  126. package/node_modules/es-define-property/index.d.ts +3 -0
  127. package/node_modules/es-define-property/index.js +14 -0
  128. package/node_modules/es-define-property/package.json +81 -0
  129. package/node_modules/es-define-property/test/index.js +56 -0
  130. package/node_modules/es-define-property/tsconfig.json +10 -0
  131. package/node_modules/es-errors/.eslintrc +5 -0
  132. package/node_modules/es-errors/.github/FUNDING.yml +12 -0
  133. package/node_modules/es-errors/CHANGELOG.md +40 -0
  134. package/node_modules/es-errors/LICENSE +21 -0
  135. package/node_modules/es-errors/README.md +55 -0
  136. package/node_modules/es-errors/eval.d.ts +3 -0
  137. package/node_modules/es-errors/eval.js +4 -0
  138. package/node_modules/es-errors/index.d.ts +3 -0
  139. package/node_modules/es-errors/index.js +4 -0
  140. package/node_modules/es-errors/package.json +80 -0
  141. package/node_modules/es-errors/range.d.ts +3 -0
  142. package/node_modules/es-errors/range.js +4 -0
  143. package/node_modules/es-errors/ref.d.ts +3 -0
  144. package/node_modules/es-errors/ref.js +4 -0
  145. package/node_modules/es-errors/syntax.d.ts +3 -0
  146. package/node_modules/es-errors/syntax.js +4 -0
  147. package/node_modules/es-errors/test/index.js +19 -0
  148. package/node_modules/es-errors/tsconfig.json +49 -0
  149. package/node_modules/es-errors/type.d.ts +3 -0
  150. package/node_modules/es-errors/type.js +4 -0
  151. package/node_modules/es-errors/uri.d.ts +3 -0
  152. package/node_modules/es-errors/uri.js +4 -0
  153. package/node_modules/es-object-atoms/.eslintrc +16 -0
  154. package/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
  155. package/node_modules/es-object-atoms/CHANGELOG.md +37 -0
  156. package/node_modules/es-object-atoms/LICENSE +21 -0
  157. package/node_modules/es-object-atoms/README.md +63 -0
  158. package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
  159. package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
  160. package/node_modules/es-object-atoms/ToObject.d.ts +7 -0
  161. package/node_modules/es-object-atoms/ToObject.js +10 -0
  162. package/node_modules/es-object-atoms/index.d.ts +3 -0
  163. package/node_modules/es-object-atoms/index.js +4 -0
  164. package/node_modules/es-object-atoms/isObject.d.ts +3 -0
  165. package/node_modules/es-object-atoms/isObject.js +6 -0
  166. package/node_modules/es-object-atoms/package.json +80 -0
  167. package/node_modules/es-object-atoms/test/index.js +38 -0
  168. package/node_modules/es-object-atoms/tsconfig.json +6 -0
  169. package/node_modules/es-set-tostringtag/.eslintrc +13 -0
  170. package/node_modules/es-set-tostringtag/.nycrc +9 -0
  171. package/node_modules/es-set-tostringtag/CHANGELOG.md +67 -0
  172. package/node_modules/es-set-tostringtag/LICENSE +21 -0
  173. package/node_modules/es-set-tostringtag/README.md +53 -0
  174. package/node_modules/es-set-tostringtag/index.d.ts +10 -0
  175. package/node_modules/es-set-tostringtag/index.js +35 -0
  176. package/node_modules/es-set-tostringtag/package.json +78 -0
  177. package/node_modules/es-set-tostringtag/test/index.js +85 -0
  178. package/node_modules/es-set-tostringtag/tsconfig.json +9 -0
  179. package/node_modules/fast-xml-parser/CHANGELOG.md +70 -0
  180. package/node_modules/fast-xml-parser/README.md +37 -51
  181. package/node_modules/fast-xml-parser/lib/fxbuilder.min.js +2 -0
  182. package/node_modules/fast-xml-parser/lib/fxbuilder.min.js.map +1 -0
  183. package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -0
  184. package/node_modules/fast-xml-parser/lib/fxp.d.cts +458 -0
  185. package/node_modules/fast-xml-parser/lib/fxp.min.js +2 -0
  186. package/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -0
  187. package/node_modules/fast-xml-parser/lib/fxparser.min.js +2 -0
  188. package/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -0
  189. package/node_modules/fast-xml-parser/lib/fxvalidator.min.js +2 -0
  190. package/node_modules/fast-xml-parser/lib/fxvalidator.min.js.map +1 -0
  191. package/node_modules/fast-xml-parser/package.json +36 -19
  192. package/node_modules/fast-xml-parser/src/cli/cli.js +16 -12
  193. package/node_modules/fast-xml-parser/src/cli/man.js +6 -1
  194. package/node_modules/fast-xml-parser/src/cli/read.js +30 -79
  195. package/node_modules/fast-xml-parser/src/fxp.d.ts +33 -6
  196. package/node_modules/fast-xml-parser/src/fxp.js +11 -8
  197. package/node_modules/fast-xml-parser/src/ignoreAttributes.js +2 -4
  198. package/node_modules/fast-xml-parser/src/util.js +14 -18
  199. package/node_modules/fast-xml-parser/src/{v5 → v6}/CharsSymbol.js +1 -1
  200. package/node_modules/fast-xml-parser/src/{v5 → v6}/EntitiesParser.js +3 -6
  201. package/node_modules/fast-xml-parser/src/{v5 → v6}/OptionsBuilder.js +3 -6
  202. package/node_modules/fast-xml-parser/src/{v5 → v6}/OutputBuilders/BaseOutputBuilder.js +1 -3
  203. package/node_modules/fast-xml-parser/src/{v5 → v6}/OutputBuilders/JsArrBuilder.js +3 -3
  204. package/node_modules/fast-xml-parser/src/{v5 → v6}/OutputBuilders/JsMinArrBuilder.js +3 -5
  205. package/node_modules/fast-xml-parser/src/{v5 → v6}/OutputBuilders/JsObjBuilder.js +3 -5
  206. package/node_modules/fast-xml-parser/src/{v5 → v6}/OutputBuilders/ParserOptionsBuilder.js +6 -11
  207. package/node_modules/fast-xml-parser/src/{v5 → v6}/TagPath.js +1 -1
  208. package/node_modules/fast-xml-parser/src/{v5 → v6}/TagPathMatcher.js +3 -5
  209. package/node_modules/fast-xml-parser/src/{v5 → v6}/XMLParser.js +3 -5
  210. package/node_modules/fast-xml-parser/src/{v5 → v6}/Xml2JsParser.js +8 -10
  211. package/node_modules/fast-xml-parser/src/{v5 → v6}/XmlPartReader.js +4 -10
  212. package/node_modules/fast-xml-parser/src/{v5 → v6}/XmlSpecialTagsReader.js +5 -12
  213. package/node_modules/fast-xml-parser/src/{v5 → v6}/inputSource/BufferSource.js +1 -3
  214. package/node_modules/fast-xml-parser/src/{v5 → v6}/inputSource/StringSource.js +1 -3
  215. package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/EntitiesParser.js +3 -5
  216. package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/booleanParser.js +1 -2
  217. package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/booleanParserExt.js +1 -2
  218. package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/currency.js +1 -3
  219. package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/join.js +1 -2
  220. package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/number.js +2 -4
  221. package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/trim.js +1 -3
  222. package/node_modules/fast-xml-parser/src/validator.js +5 -5
  223. package/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +5 -4
  224. package/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js +1 -2
  225. package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +287 -71
  226. package/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +3 -5
  227. package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +23 -23
  228. package/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +21 -8
  229. package/node_modules/fast-xml-parser/src/xmlparser/node2json.js +8 -2
  230. package/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +22 -7
  231. package/node_modules/form-data/CHANGELOG.md +601 -0
  232. package/node_modules/form-data/{Readme.md → README.md} +34 -37
  233. package/node_modules/form-data/lib/browser.js +3 -1
  234. package/node_modules/form-data/lib/form_data.js +140 -147
  235. package/node_modules/form-data/lib/populate.js +5 -5
  236. package/node_modules/form-data/package.json +34 -23
  237. package/node_modules/function-bind/.eslintrc +21 -0
  238. package/node_modules/function-bind/.github/FUNDING.yml +12 -0
  239. package/node_modules/function-bind/.github/SECURITY.md +3 -0
  240. package/node_modules/function-bind/.nycrc +13 -0
  241. package/node_modules/function-bind/CHANGELOG.md +136 -0
  242. package/node_modules/function-bind/LICENSE +20 -0
  243. package/node_modules/function-bind/README.md +46 -0
  244. package/node_modules/function-bind/implementation.js +84 -0
  245. package/node_modules/function-bind/index.js +5 -0
  246. package/node_modules/function-bind/package.json +87 -0
  247. package/node_modules/function-bind/test/.eslintrc +9 -0
  248. package/node_modules/function-bind/test/index.js +252 -0
  249. package/node_modules/get-intrinsic/.eslintrc +42 -0
  250. package/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
  251. package/node_modules/get-intrinsic/.nycrc +9 -0
  252. package/node_modules/get-intrinsic/CHANGELOG.md +186 -0
  253. package/node_modules/get-intrinsic/LICENSE +21 -0
  254. package/node_modules/get-intrinsic/README.md +71 -0
  255. package/node_modules/get-intrinsic/index.js +378 -0
  256. package/node_modules/get-intrinsic/package.json +97 -0
  257. package/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
  258. package/node_modules/get-proto/.eslintrc +10 -0
  259. package/node_modules/get-proto/.github/FUNDING.yml +12 -0
  260. package/node_modules/get-proto/.nycrc +9 -0
  261. package/node_modules/get-proto/CHANGELOG.md +21 -0
  262. package/node_modules/get-proto/LICENSE +21 -0
  263. package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
  264. package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
  265. package/node_modules/get-proto/README.md +50 -0
  266. package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
  267. package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
  268. package/node_modules/get-proto/index.d.ts +5 -0
  269. package/node_modules/get-proto/index.js +27 -0
  270. package/node_modules/get-proto/package.json +81 -0
  271. package/node_modules/get-proto/test/index.js +68 -0
  272. package/node_modules/get-proto/tsconfig.json +9 -0
  273. package/node_modules/gopd/.eslintrc +16 -0
  274. package/node_modules/gopd/.github/FUNDING.yml +12 -0
  275. package/node_modules/gopd/CHANGELOG.md +45 -0
  276. package/node_modules/gopd/LICENSE +21 -0
  277. package/node_modules/gopd/README.md +40 -0
  278. package/node_modules/gopd/gOPD.d.ts +1 -0
  279. package/node_modules/gopd/gOPD.js +4 -0
  280. package/node_modules/gopd/index.d.ts +5 -0
  281. package/node_modules/gopd/index.js +15 -0
  282. package/node_modules/gopd/package.json +77 -0
  283. package/node_modules/gopd/test/index.js +36 -0
  284. package/node_modules/gopd/tsconfig.json +9 -0
  285. package/node_modules/has-symbols/.eslintrc +11 -0
  286. package/node_modules/has-symbols/.github/FUNDING.yml +12 -0
  287. package/node_modules/has-symbols/.nycrc +9 -0
  288. package/node_modules/has-symbols/CHANGELOG.md +91 -0
  289. package/node_modules/has-symbols/LICENSE +21 -0
  290. package/node_modules/has-symbols/README.md +46 -0
  291. package/node_modules/has-symbols/index.d.ts +3 -0
  292. package/node_modules/has-symbols/index.js +14 -0
  293. package/node_modules/has-symbols/package.json +111 -0
  294. package/node_modules/has-symbols/shams.d.ts +3 -0
  295. package/node_modules/has-symbols/shams.js +45 -0
  296. package/node_modules/has-symbols/test/index.js +22 -0
  297. package/node_modules/has-symbols/test/shams/core-js.js +29 -0
  298. package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
  299. package/node_modules/has-symbols/test/tests.js +58 -0
  300. package/node_modules/has-symbols/tsconfig.json +10 -0
  301. package/node_modules/has-tostringtag/.eslintrc +5 -0
  302. package/node_modules/has-tostringtag/.github/FUNDING.yml +12 -0
  303. package/node_modules/has-tostringtag/.nycrc +13 -0
  304. package/node_modules/has-tostringtag/CHANGELOG.md +42 -0
  305. package/node_modules/has-tostringtag/LICENSE +21 -0
  306. package/node_modules/has-tostringtag/README.md +46 -0
  307. package/node_modules/has-tostringtag/index.d.ts +3 -0
  308. package/node_modules/has-tostringtag/index.js +8 -0
  309. package/node_modules/has-tostringtag/package.json +108 -0
  310. package/node_modules/has-tostringtag/shams.d.ts +3 -0
  311. package/node_modules/has-tostringtag/shams.js +8 -0
  312. package/node_modules/has-tostringtag/test/index.js +21 -0
  313. package/node_modules/has-tostringtag/test/shams/core-js.js +31 -0
  314. package/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +30 -0
  315. package/node_modules/has-tostringtag/test/tests.js +15 -0
  316. package/node_modules/has-tostringtag/tsconfig.json +49 -0
  317. package/node_modules/hasown/.eslintrc +5 -0
  318. package/node_modules/hasown/.github/FUNDING.yml +12 -0
  319. package/node_modules/hasown/.nycrc +13 -0
  320. package/node_modules/hasown/CHANGELOG.md +40 -0
  321. package/node_modules/hasown/LICENSE +21 -0
  322. package/node_modules/hasown/README.md +40 -0
  323. package/node_modules/hasown/index.d.ts +3 -0
  324. package/node_modules/hasown/index.js +8 -0
  325. package/node_modules/hasown/package.json +92 -0
  326. package/node_modules/hasown/tsconfig.json +6 -0
  327. package/node_modules/long/README.md +93 -87
  328. package/node_modules/long/index.d.ts +2 -2
  329. package/node_modules/long/index.js +360 -246
  330. package/node_modules/long/package.json +12 -4
  331. package/node_modules/long/types.d.ts +474 -0
  332. package/node_modules/long/umd/index.d.ts +2 -456
  333. package/node_modules/long/umd/index.js +1585 -1395
  334. package/node_modules/long/umd/types.d.ts +474 -0
  335. package/node_modules/math-intrinsics/.eslintrc +16 -0
  336. package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
  337. package/node_modules/math-intrinsics/CHANGELOG.md +24 -0
  338. package/node_modules/math-intrinsics/LICENSE +21 -0
  339. package/node_modules/math-intrinsics/README.md +50 -0
  340. package/node_modules/math-intrinsics/abs.d.ts +1 -0
  341. package/node_modules/math-intrinsics/abs.js +4 -0
  342. package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
  343. package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
  344. package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
  345. package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
  346. package/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
  347. package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
  348. package/node_modules/math-intrinsics/floor.d.ts +1 -0
  349. package/node_modules/math-intrinsics/floor.js +4 -0
  350. package/node_modules/math-intrinsics/isFinite.d.ts +3 -0
  351. package/node_modules/math-intrinsics/isFinite.js +12 -0
  352. package/node_modules/math-intrinsics/isInteger.d.ts +3 -0
  353. package/node_modules/math-intrinsics/isInteger.js +16 -0
  354. package/node_modules/math-intrinsics/isNaN.d.ts +1 -0
  355. package/node_modules/math-intrinsics/isNaN.js +6 -0
  356. package/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
  357. package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
  358. package/node_modules/math-intrinsics/max.d.ts +1 -0
  359. package/node_modules/math-intrinsics/max.js +4 -0
  360. package/node_modules/math-intrinsics/min.d.ts +1 -0
  361. package/node_modules/math-intrinsics/min.js +4 -0
  362. package/node_modules/math-intrinsics/mod.d.ts +3 -0
  363. package/node_modules/math-intrinsics/mod.js +9 -0
  364. package/node_modules/math-intrinsics/package.json +86 -0
  365. package/node_modules/math-intrinsics/pow.d.ts +1 -0
  366. package/node_modules/math-intrinsics/pow.js +4 -0
  367. package/node_modules/math-intrinsics/round.d.ts +1 -0
  368. package/node_modules/math-intrinsics/round.js +4 -0
  369. package/node_modules/math-intrinsics/sign.d.ts +3 -0
  370. package/node_modules/math-intrinsics/sign.js +11 -0
  371. package/node_modules/math-intrinsics/test/index.js +192 -0
  372. package/node_modules/math-intrinsics/tsconfig.json +3 -0
  373. package/node_modules/protobufjs/dist/light/protobuf.js +532 -80
  374. package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
  375. package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
  376. package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
  377. package/node_modules/protobufjs/dist/minimal/protobuf.js +2 -2
  378. package/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
  379. package/node_modules/protobufjs/dist/protobuf.js +672 -144
  380. package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
  381. package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
  382. package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
  383. package/node_modules/protobufjs/ext/descriptor/index.js +179 -69
  384. package/node_modules/protobufjs/google/protobuf/descriptor.json +659 -16
  385. package/node_modules/protobufjs/google/protobuf/descriptor.proto +254 -6
  386. package/node_modules/protobufjs/index.d.ts +71 -13
  387. package/node_modules/protobufjs/package.json +4 -2
  388. package/node_modules/protobufjs/src/decoder.js +8 -10
  389. package/node_modules/protobufjs/src/encoder.js +1 -1
  390. package/node_modules/protobufjs/src/enum.js +25 -0
  391. package/node_modules/protobufjs/src/field.js +104 -28
  392. package/node_modules/protobufjs/src/namespace.js +126 -13
  393. package/node_modules/protobufjs/src/object.js +139 -4
  394. package/node_modules/protobufjs/src/oneof.js +19 -0
  395. package/node_modules/protobufjs/src/parse.js +139 -63
  396. package/node_modules/protobufjs/src/root.js +51 -15
  397. package/node_modules/protobufjs/src/service.js +23 -1
  398. package/node_modules/protobufjs/src/type.js +29 -4
  399. package/node_modules/protobufjs/src/util.js +4 -1
  400. package/node_modules/strnum/.github/SECURITY.md +5 -0
  401. package/node_modules/strnum/CHANGELOG.md +33 -0
  402. package/node_modules/strnum/README.md +14 -3
  403. package/node_modules/strnum/algo.stflow +84 -0
  404. package/node_modules/strnum/package.json +9 -2
  405. package/node_modules/strnum/strnum.js +72 -67
  406. package/node_modules/strnum/strnum.test.js +29 -6
  407. package/node_modules/strnum/test.js +9 -0
  408. package/node_modules/undici-types/dispatcher.d.ts +1 -0
  409. package/node_modules/undici-types/package.json +1 -1
  410. package/node_modules/undici-types/readable.d.ts +5 -0
  411. package/node_modules/undici-types/webidl.d.ts +6 -0
  412. package/node_modules/uuid/README.md +12 -12
  413. package/node_modules/uuid/dist/cjs/types.d.ts +1 -1
  414. package/node_modules/uuid/dist/cjs/v1.d.ts +1 -1
  415. package/node_modules/uuid/dist/cjs/v1.js +1 -1
  416. package/node_modules/uuid/dist/cjs/v3.d.ts +1 -1
  417. package/node_modules/uuid/dist/cjs/v35.d.ts +1 -1
  418. package/node_modules/uuid/dist/cjs/v4.d.ts +1 -1
  419. package/node_modules/uuid/dist/cjs/v5.d.ts +1 -1
  420. package/node_modules/uuid/dist/cjs/v6.d.ts +1 -1
  421. package/node_modules/uuid/dist/cjs/v7.d.ts +1 -1
  422. package/node_modules/uuid/dist/cjs/v7.js +1 -1
  423. package/node_modules/uuid/dist/cjs-browser/types.d.ts +1 -1
  424. package/node_modules/uuid/dist/cjs-browser/v1.d.ts +1 -1
  425. package/node_modules/uuid/dist/cjs-browser/v1.js +1 -1
  426. package/node_modules/uuid/dist/cjs-browser/v3.d.ts +1 -1
  427. package/node_modules/uuid/dist/cjs-browser/v35.d.ts +1 -1
  428. package/node_modules/uuid/dist/cjs-browser/v4.d.ts +1 -1
  429. package/node_modules/uuid/dist/cjs-browser/v5.d.ts +1 -1
  430. package/node_modules/uuid/dist/cjs-browser/v6.d.ts +1 -1
  431. package/node_modules/uuid/dist/cjs-browser/v7.d.ts +1 -1
  432. package/node_modules/uuid/dist/cjs-browser/v7.js +1 -1
  433. package/node_modules/uuid/dist/esm/types.d.ts +1 -1
  434. package/node_modules/uuid/dist/esm/v1.d.ts +1 -1
  435. package/node_modules/uuid/dist/esm/v1.js +1 -1
  436. package/node_modules/uuid/dist/esm/v3.d.ts +1 -1
  437. package/node_modules/uuid/dist/esm/v35.d.ts +1 -1
  438. package/node_modules/uuid/dist/esm/v4.d.ts +1 -1
  439. package/node_modules/uuid/dist/esm/v5.d.ts +1 -1
  440. package/node_modules/uuid/dist/esm/v6.d.ts +1 -1
  441. package/node_modules/uuid/dist/esm/v7.d.ts +1 -1
  442. package/node_modules/uuid/dist/esm/v7.js +1 -1
  443. package/node_modules/uuid/dist/esm-browser/types.d.ts +1 -1
  444. package/node_modules/uuid/dist/esm-browser/v1.d.ts +1 -1
  445. package/node_modules/uuid/dist/esm-browser/v1.js +1 -1
  446. package/node_modules/uuid/dist/esm-browser/v3.d.ts +1 -1
  447. package/node_modules/uuid/dist/esm-browser/v35.d.ts +1 -1
  448. package/node_modules/uuid/dist/esm-browser/v4.d.ts +1 -1
  449. package/node_modules/uuid/dist/esm-browser/v5.d.ts +1 -1
  450. package/node_modules/uuid/dist/esm-browser/v6.d.ts +1 -1
  451. package/node_modules/uuid/dist/esm-browser/v7.d.ts +1 -1
  452. package/node_modules/uuid/dist/esm-browser/v7.js +1 -1
  453. package/node_modules/uuid/package.json +1 -1
  454. package/package.json +7 -7
  455. package/tak-registration.html +4 -4
  456. package/tak-registration.js +19 -10
  457. package/node_modules/axios/SECURITY.md +0 -6
  458. /package/node_modules/fast-xml-parser/src/{v5 → v6}/Report.js +0 -0
@@ -0,0 +1,9 @@
1
+ {
2
+ "all": true,
3
+ "check-coverage": false,
4
+ "reporter": ["text-summary", "text", "html", "json"],
5
+ "exclude": [
6
+ "coverage",
7
+ "test"
8
+ ]
9
+ }
@@ -0,0 +1,67 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [v2.1.0](https://github.com/es-shims/es-set-tostringtag/compare/v2.0.3...v2.1.0) - 2025-01-01
9
+
10
+ ### Commits
11
+
12
+ - [actions] split out node 10-20, and 20+ [`ede033c`](https://github.com/es-shims/es-set-tostringtag/commit/ede033cc4e506c3966d2d482d4ac5987e329162a)
13
+ - [types] use shared config [`28ef164`](https://github.com/es-shims/es-set-tostringtag/commit/28ef164ad7c5bc21837c79f7ef25542a1f258ade)
14
+ - [New] add `nonConfigurable` option [`3bee3f0`](https://github.com/es-shims/es-set-tostringtag/commit/3bee3f04caddd318f3932912212ed20b2d62aad7)
15
+ - [Fix] validate boolean option argument [`3c8a609`](https://github.com/es-shims/es-set-tostringtag/commit/3c8a609c795a305ccca163f0ff6956caa88cdc0e)
16
+ - [Dev Deps] update `@arethetypeswrong/cli`, `@ljharb/eslint-config`, `@ljharb/tsconfig`, `@types/get-intrinsic`, `@types/tape`, `auto-changelog`, `tape` [`501a969`](https://github.com/es-shims/es-set-tostringtag/commit/501a96998484226e07f5ffd447e8f305a998f1d8)
17
+ - [Tests] add coverage [`18af289`](https://github.com/es-shims/es-set-tostringtag/commit/18af2897b4e937373c9b8c8831bc338932246470)
18
+ - [readme] document `force` option [`bd446a1`](https://github.com/es-shims/es-set-tostringtag/commit/bd446a107b71a2270278442e5124f45590d3ee64)
19
+ - [Tests] use `@arethetypeswrong/cli` [`7c2c2fa`](https://github.com/es-shims/es-set-tostringtag/commit/7c2c2fa3cca0f4d263603adb75426b239514598f)
20
+ - [Tests] replace `aud` with `npm audit` [`9e372d7`](https://github.com/es-shims/es-set-tostringtag/commit/9e372d7e6db3dab405599a14d9074a99a03b8242)
21
+ - [Deps] update `get-intrinsic` [`7df1216`](https://github.com/es-shims/es-set-tostringtag/commit/7df12167295385c2a547410e687cb0c04f3a34b9)
22
+ - [Deps] update `hasown` [`993a7d2`](https://github.com/es-shims/es-set-tostringtag/commit/993a7d200e2059fd857ec1a25d0a49c2c34ae6e2)
23
+ - [Dev Deps] add missing peer dep [`148ed8d`](https://github.com/es-shims/es-set-tostringtag/commit/148ed8db99a7a94f9af3823fd083e6e437fa1587)
24
+
25
+ ## [v2.0.3](https://github.com/es-shims/es-set-tostringtag/compare/v2.0.2...v2.0.3) - 2024-02-20
26
+
27
+ ### Commits
28
+
29
+ - add types [`d538513`](https://github.com/es-shims/es-set-tostringtag/commit/d5385133592a32a0a416cb535327918af7fbc4ad)
30
+ - [Deps] update `get-intrinsic`, `has-tostringtag`, `hasown` [`d129b29`](https://github.com/es-shims/es-set-tostringtag/commit/d129b29536bccc8a9d03a47887ca4d1f7ad0c5b9)
31
+ - [Dev Deps] update `aud`, `npmignore`, `tape` [`132ed23`](https://github.com/es-shims/es-set-tostringtag/commit/132ed23c964a41ed55e4ab4a5a2c3fe185e821c1)
32
+ - [Tests] fix hasOwn require [`f89c831`](https://github.com/es-shims/es-set-tostringtag/commit/f89c831fe5f3edf1f979c597b56fee1be6111f56)
33
+
34
+ ## [v2.0.2](https://github.com/es-shims/es-set-tostringtag/compare/v2.0.1...v2.0.2) - 2023-10-20
35
+
36
+ ### Commits
37
+
38
+ - [Refactor] use `hasown` instead of `has` [`0cc6c4e`](https://github.com/es-shims/es-set-tostringtag/commit/0cc6c4e61fd13e8f00b85424ae6e541ebf289e74)
39
+ - [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`70e447c`](https://github.com/es-shims/es-set-tostringtag/commit/70e447cf9f82b896ddf359fda0a0498c16cf3ed2)
40
+ - [Deps] update `get-intrinsic` [`826aab7`](https://github.com/es-shims/es-set-tostringtag/commit/826aab76180392871c8efa99acc0f0bbf775c64e)
41
+
42
+ ## [v2.0.1](https://github.com/es-shims/es-set-tostringtag/compare/v2.0.0...v2.0.1) - 2023-01-05
43
+
44
+ ### Fixed
45
+
46
+ - [Fix] move `has` to prod deps [`#2`](https://github.com/es-shims/es-set-tostringtag/issues/2)
47
+
48
+ ### Commits
49
+
50
+ - [Dev Deps] update `@ljharb/eslint-config` [`b9eecd2`](https://github.com/es-shims/es-set-tostringtag/commit/b9eecd23c10b7b43ba75089ac8ff8cc6b295798b)
51
+
52
+ ## [v2.0.0](https://github.com/es-shims/es-set-tostringtag/compare/v1.0.0...v2.0.0) - 2022-12-21
53
+
54
+ ### Commits
55
+
56
+ - [Tests] refactor tests [`168dcfb`](https://github.com/es-shims/es-set-tostringtag/commit/168dcfbb535c279dc48ccdc89419155125aaec18)
57
+ - [Breaking] do not set toStringTag if it is already set [`226ab87`](https://github.com/es-shims/es-set-tostringtag/commit/226ab874192c625d9e5f0e599d3f60d2b2aa83b5)
58
+ - [New] add `force` option to set even if already set [`1abd4ec`](https://github.com/es-shims/es-set-tostringtag/commit/1abd4ecb282f19718c4518284b0293a343564505)
59
+
60
+ ## v1.0.0 - 2022-12-21
61
+
62
+ ### Commits
63
+
64
+ - Initial implementation, tests, readme [`a0e1147`](https://github.com/es-shims/es-set-tostringtag/commit/a0e11473f79a233b46374525c962ea1b4d42418a)
65
+ - Initial commit [`ffd4aff`](https://github.com/es-shims/es-set-tostringtag/commit/ffd4afffbeebf29aff0d87a7cfc3f7844e09fe68)
66
+ - npm init [`fffe5bd`](https://github.com/es-shims/es-set-tostringtag/commit/fffe5bd1d1146d084730a387a9c672371f4a8fff)
67
+ - Only apps should have lockfiles [`d363871`](https://github.com/es-shims/es-set-tostringtag/commit/d36387139465623e161a15dbd39120537f150c62)
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 ECMAScript Shims
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 all
13
+ 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 THE
21
+ SOFTWARE.
@@ -0,0 +1,53 @@
1
+ # es-set-tostringtag <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
2
+
3
+ [![github actions][actions-image]][actions-url]
4
+ [![coverage][codecov-image]][codecov-url]
5
+ [![License][license-image]][license-url]
6
+ [![Downloads][downloads-image]][downloads-url]
7
+
8
+ [![npm badge][npm-badge-png]][package-url]
9
+
10
+ A helper to optimistically set Symbol.toStringTag, when possible.
11
+
12
+ ## Example
13
+ Most common usage:
14
+ ```js
15
+ var assert = require('assert');
16
+ var setToStringTag = require('es-set-tostringtag');
17
+
18
+ var obj = {};
19
+
20
+ assert.equal(Object.prototype.toString.call(obj), '[object Object]');
21
+
22
+ setToStringTag(obj, 'tagged!');
23
+
24
+ assert.equal(Object.prototype.toString.call(obj), '[object tagged!]');
25
+ ```
26
+
27
+ ## Options
28
+ An optional options argument can be provided as the third argument. The available options are:
29
+
30
+ ### `force`
31
+ If the `force` option is set to `true`, the toStringTag will be set even if it is already set.
32
+
33
+ ### `nonConfigurable`
34
+ If the `nonConfigurable` option is set to `true`, the toStringTag will be defined as non-configurable when possible.
35
+
36
+ ## Tests
37
+ Simply clone the repo, `npm install`, and run `npm test`
38
+
39
+ [package-url]: https://npmjs.com/package/es-set-tostringtag
40
+ [npm-version-svg]: https://versionbadg.es/es-shims/es-set-tostringtag.svg
41
+ [deps-svg]: https://david-dm.org/es-shims/es-set-tostringtag.svg
42
+ [deps-url]: https://david-dm.org/es-shims/es-set-tostringtag
43
+ [dev-deps-svg]: https://david-dm.org/es-shims/es-set-tostringtag/dev-status.svg
44
+ [dev-deps-url]: https://david-dm.org/es-shims/es-set-tostringtag#info=devDependencies
45
+ [npm-badge-png]: https://nodei.co/npm/es-set-tostringtag.png?downloads=true&stars=true
46
+ [license-image]: https://img.shields.io/npm/l/es-set-tostringtag.svg
47
+ [license-url]: LICENSE
48
+ [downloads-image]: https://img.shields.io/npm/dm/es-set-tostringtag.svg
49
+ [downloads-url]: https://npm-stat.com/charts.html?package=es-set-tostringtag
50
+ [codecov-image]: https://codecov.io/gh/es-shims/es-set-tostringtag/branch/main/graphs/badge.svg
51
+ [codecov-url]: https://app.codecov.io/gh/es-shims/es-set-tostringtag/
52
+ [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/es-set-tostringtag
53
+ [actions-url]: https://github.com/es-shims/es-set-tostringtag/actions
@@ -0,0 +1,10 @@
1
+ declare function setToStringTag(
2
+ object: object & { [Symbol.toStringTag]?: unknown },
3
+ value: string | unknown,
4
+ options?: {
5
+ force?: boolean;
6
+ nonConfigurable?: boolean;
7
+ },
8
+ ): void;
9
+
10
+ export = setToStringTag;
@@ -0,0 +1,35 @@
1
+ 'use strict';
2
+
3
+ var GetIntrinsic = require('get-intrinsic');
4
+
5
+ var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
6
+
7
+ var hasToStringTag = require('has-tostringtag/shams')();
8
+ var hasOwn = require('hasown');
9
+ var $TypeError = require('es-errors/type');
10
+
11
+ var toStringTag = hasToStringTag ? Symbol.toStringTag : null;
12
+
13
+ /** @type {import('.')} */
14
+ module.exports = function setToStringTag(object, value) {
15
+ var overrideIfSet = arguments.length > 2 && !!arguments[2] && arguments[2].force;
16
+ var nonConfigurable = arguments.length > 2 && !!arguments[2] && arguments[2].nonConfigurable;
17
+ if (
18
+ (typeof overrideIfSet !== 'undefined' && typeof overrideIfSet !== 'boolean')
19
+ || (typeof nonConfigurable !== 'undefined' && typeof nonConfigurable !== 'boolean')
20
+ ) {
21
+ throw new $TypeError('if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans');
22
+ }
23
+ if (toStringTag && (overrideIfSet || !hasOwn(object, toStringTag))) {
24
+ if ($defineProperty) {
25
+ $defineProperty(object, toStringTag, {
26
+ configurable: !nonConfigurable,
27
+ enumerable: false,
28
+ value: value,
29
+ writable: false
30
+ });
31
+ } else {
32
+ object[toStringTag] = value; // eslint-disable-line no-param-reassign
33
+ }
34
+ }
35
+ };
@@ -0,0 +1,78 @@
1
+ {
2
+ "name": "es-set-tostringtag",
3
+ "version": "2.1.0",
4
+ "description": "A helper to optimistically set Symbol.toStringTag, when possible.",
5
+ "main": "index.js",
6
+ "exports": {
7
+ ".": "./index.js",
8
+ "./package.json": "./package.json"
9
+ },
10
+ "sideEffects": false,
11
+ "scripts": {
12
+ "prepack": "npmignore --auto --commentLines=autogenerated",
13
+ "prepublishOnly": "safe-publish-latest",
14
+ "prepublish": "not-in-publish || npm run prepublishOnly",
15
+ "prelint": "evalmd README.md",
16
+ "lint": "eslint --ext=js,mjs .",
17
+ "postlint": "tsc -p . && attw -P",
18
+ "pretest": "npm run lint",
19
+ "tests-only": "nyc tape 'test/**/*.js'",
20
+ "test": "npm run tests-only",
21
+ "posttest": "npx npm@\">= 10.2\" audit --production",
22
+ "version": "auto-changelog && git add CHANGELOG.md",
23
+ "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
24
+ },
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "git+https://github.com/es-shims/es-set-tostringtag.git"
28
+ },
29
+ "author": "Jordan Harband <ljharb@gmail.com>",
30
+ "license": "MIT",
31
+ "bugs": {
32
+ "url": "https://github.com/es-shims/es-set-tostringtag/issues"
33
+ },
34
+ "homepage": "https://github.com/es-shims/es-set-tostringtag#readme",
35
+ "devDependencies": {
36
+ "@arethetypeswrong/cli": "^0.17.2",
37
+ "@ljharb/eslint-config": "^21.1.1",
38
+ "@ljharb/tsconfig": "^0.2.3",
39
+ "@types/get-intrinsic": "^1.2.3",
40
+ "@types/has-symbols": "^1.0.2",
41
+ "@types/tape": "^5.8.0",
42
+ "auto-changelog": "^2.5.0",
43
+ "encoding": "^0.1.13",
44
+ "eslint": "=8.8.0",
45
+ "evalmd": "^0.0.19",
46
+ "in-publish": "^2.0.1",
47
+ "npmignore": "^0.3.1",
48
+ "nyc": "^10.3.2",
49
+ "safe-publish-latest": "^2.0.0",
50
+ "tape": "^5.9.0",
51
+ "typescript": "next"
52
+ },
53
+ "dependencies": {
54
+ "es-errors": "^1.3.0",
55
+ "get-intrinsic": "^1.2.6",
56
+ "has-tostringtag": "^1.0.2",
57
+ "hasown": "^2.0.2"
58
+ },
59
+ "engines": {
60
+ "node": ">= 0.4"
61
+ },
62
+ "auto-changelog": {
63
+ "output": "CHANGELOG.md",
64
+ "template": "keepachangelog",
65
+ "unreleased": false,
66
+ "commitLimit": false,
67
+ "backfillLimit": false,
68
+ "hideCredit": true
69
+ },
70
+ "testling": {
71
+ "files": "./test/index.js"
72
+ },
73
+ "publishConfig": {
74
+ "ignore": [
75
+ ".github/workflows"
76
+ ]
77
+ }
78
+ }
@@ -0,0 +1,85 @@
1
+ 'use strict';
2
+
3
+ var test = require('tape');
4
+ var hasToStringTag = require('has-tostringtag/shams')();
5
+ var hasOwn = require('hasown');
6
+
7
+ var setToStringTag = require('../');
8
+
9
+ test('setToStringTag', function (t) {
10
+ t.equal(typeof setToStringTag, 'function', 'is a function');
11
+
12
+ /** @type {{ [Symbol.toStringTag]?: typeof sentinel }} */
13
+ var obj = {};
14
+ var sentinel = {};
15
+
16
+ setToStringTag(obj, sentinel);
17
+
18
+ t['throws'](
19
+ // @ts-expect-error
20
+ function () { setToStringTag(obj, sentinel, { force: 'yes' }); },
21
+ TypeError,
22
+ 'throws if options is not an object'
23
+ );
24
+
25
+ t.test('has Symbol.toStringTag', { skip: !hasToStringTag }, function (st) {
26
+ st.ok(hasOwn(obj, Symbol.toStringTag), 'has toStringTag property');
27
+
28
+ st.equal(obj[Symbol.toStringTag], sentinel, 'toStringTag property is as expected');
29
+
30
+ st.equal(String(obj), '[object Object]', 'toStringTag works');
31
+
32
+ /** @type {{ [Symbol.toStringTag]?: string }} */
33
+ var tagged = {};
34
+ tagged[Symbol.toStringTag] = 'already tagged';
35
+ st.equal(String(tagged), '[object already tagged]', 'toStringTag works');
36
+
37
+ setToStringTag(tagged, 'new tag');
38
+ st.equal(String(tagged), '[object already tagged]', 'toStringTag is unchanged');
39
+
40
+ setToStringTag(tagged, 'new tag', { force: true });
41
+ st.equal(String(tagged), '[object new tag]', 'toStringTag is changed with force: true');
42
+
43
+ st.deepEqual(
44
+ Object.getOwnPropertyDescriptor(tagged, Symbol.toStringTag),
45
+ {
46
+ configurable: true,
47
+ enumerable: false,
48
+ value: 'new tag',
49
+ writable: false
50
+ },
51
+ 'has expected property descriptor'
52
+ );
53
+
54
+ setToStringTag(tagged, 'new tag', { force: true, nonConfigurable: true });
55
+ st.deepEqual(
56
+ Object.getOwnPropertyDescriptor(tagged, Symbol.toStringTag),
57
+ {
58
+ configurable: false,
59
+ enumerable: false,
60
+ value: 'new tag',
61
+ writable: false
62
+ },
63
+ 'is nonconfigurable'
64
+ );
65
+
66
+ st.end();
67
+ });
68
+
69
+ t.test('does not have Symbol.toStringTag', { skip: hasToStringTag }, function (st) {
70
+ var passed = true;
71
+ for (var key in obj) { // eslint-disable-line no-restricted-syntax
72
+ if (hasOwn(obj, key)) {
73
+ st.fail('object has own key ' + key);
74
+ passed = false;
75
+ }
76
+ }
77
+ if (passed) {
78
+ st.ok(true, 'object has no enumerable own keys');
79
+ }
80
+
81
+ st.end();
82
+ });
83
+
84
+ t.end();
85
+ });
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "@ljharb/tsconfig",
3
+ "compilerOptions": {
4
+ "target": "es2021",
5
+ },
6
+ "exclude": [
7
+ "coverage",
8
+ ],
9
+ }
@@ -1,5 +1,75 @@
1
1
  <small>Note: If you find missing information about particular minor version, that version must have been changed without any functional change in this library.</small>
2
2
 
3
+ **5.2.5 / 2025-06-08**
4
+ - Inform user to use [fxp-cli](https://github.com/NaturalIntelligence/fxp-cli) instead of in-built CLI feature
5
+ - Export typings for direct use
6
+
7
+ **5.2.4 / 2025-06-06**
8
+ - fix (#747): fix EMPTY and ANY with ELEMENT in DOCTYPE
9
+
10
+ **5.2.3 / 2025-05-11**
11
+ - fix (#747): support EMPTY and ANY with ELEMENT in DOCTYPE
12
+
13
+ **5.2.2 / 2025-05-05**
14
+ - fix (#746): update strnum to fix parsing issues related to enotations
15
+
16
+ **5.2.1 / 2025-04-22**
17
+ - fix: read DOCTYPE entity value correctly
18
+ - read DOCTYPE NOTATION, ELEMENT exp but not using read values
19
+
20
+
21
+ **5.2.0 / 2025-04-03**
22
+ - feat: support metadata on nodes (#593) (By [Steven R. Loomis](https://github.com/srl295))
23
+
24
+ **5.1.0 / 2025-04-02**
25
+ - feat: declare package as side-effect free (#738) (By [Thomas Bouffard](https://github.com/tbouffard))
26
+ - fix cjs build mode
27
+ - fix builder return type to string
28
+ -
29
+
30
+ **5.0.9 / 2025-03-14**
31
+ - fix: support numeric entities with values over 0xFFFF (#726) (By [Marc Durdin](https://github.com/mcdurdin))
32
+ - fix: update strnum to fix parsing 0 if skiplike option is used
33
+
34
+ **5.0.8 / 2025-02-27**
35
+ - fix parsing 0 if skiplike option is used.
36
+ - updating strnum dependency
37
+
38
+ **5.0.7 / 2025-02-25**
39
+ - fix (#724) typings for cjs.
40
+
41
+ **5.0.6 / 2025-02-20**
42
+ - fix cli output (By [Angel Delgado](https://github.com/angeld7))
43
+ - remove multiple JSON parsing
44
+
45
+ **5.0.5 / 2025-02-20**
46
+ - fix parsing of string starting with 'e' or 'E' by updating strnum
47
+
48
+ **5.0.4 / 2025-02-20**
49
+ - fix CLI to support all the versions of node js when displaying library version.
50
+ - fix CJS import in v5
51
+ - by fixing webpack config
52
+
53
+ **5.0.3 / 2025-02-20**
54
+ - Using strnum ESM module
55
+ - new fixes in strum may break your experience
56
+
57
+ **5.0.2 / 2025-02-20**
58
+ - fix: include CommonJS resources in the npm package #714 (By [Thomas Bouffard](https://github.com/tbouffard))
59
+ - fix: move babel deps to dev deps
60
+
61
+ **5.0.1 / 2025-02-19**
62
+ - fix syntax error for CLI command
63
+
64
+ **5.0.0 / 2025-02-19**
65
+ - ESM support
66
+ - no change in the functionality, syntax, APIs, options, or documentation.
67
+
68
+ **4.5.2 / 2025-02-18**
69
+ - Fix null CDATA to comply with undefined behavior (#701) (By [Matthieu BOHEAS](https://github.com/Kelgors))
70
+ - Fix(performance): Update check for leaf node in saveTextToParentTag function in OrderedObjParser.js (#707) (By [...](https://github.com/tomingtoming))
71
+ - Fix: emit full JSON string from CLI when no output filename specified (#710) (By [Matt Benson](https://github.com/mbenson))
72
+
3
73
  **4.5.1 / 2024-12-15**
4
74
  - Fix empty tag key name for v5 (#697). no impact on v4
5
75
  - Fixes entity parsing when used in strict mode (#699)
@@ -1,17 +1,29 @@
1
1
  # [fast-xml-parser](https://www.npmjs.com/package/fast-xml-parser)
2
- [![NPM quality][quality-image]][quality-url]
3
- [![Coverage Status](https://coveralls.io/repos/github/NaturalIntelligence/fast-xml-parser/badge.svg?branch=master)](https://coveralls.io/github/NaturalIntelligence/fast-xml-parser?branch=master)
4
- [<img src="https://img.shields.io/badge/Try-me-blue.svg?colorA=FFA500&colorB=0000FF" alt="Try me"/>](https://naturalintelligence.github.io/fast-xml-parser/)
5
- [![NPM total downloads](https://img.shields.io/npm/dt/fast-xml-parser.svg)](https://npm.im/fast-xml-parser)
6
2
 
3
+ [![NPM total downloads](https://img.shields.io/npm/dt/fast-xml-parser.svg)](https://npm.im/fast-xml-parser)
7
4
 
8
5
  Validate XML, Parse XML to JS Object, or Build XML from JS Object without C/C++ based libraries and no callback.
9
6
 
7
+ <img align="right" src="static/img/fxp_logo.png" width="180px" alt="FXP logo"/>
8
+
9
+ * Validate XML data syntactically. Use [detailed-xml-validator](https://github.com/NaturalIntelligence/detailed-xml-validator/) to verify business rules.
10
+ * Parse XML to JS Objectand vice versa
11
+ * Common JS, ESM, and browser compatible
12
+ * Faster than any other pure JS implementation.
13
+
14
+ It can handle big files (tested up to 100mb). XML Entities, HTML entities, and DOCTYPE entites are supported. Unpaired tags (Eg `<br>` in HTML), stop nodes (Eg `<script>` in HTML) are supported. It can also preserve Order of tags in JS object
15
+
10
16
  ---
17
+ # Your Support, Our Motivation
11
18
 
12
- <a href="https://www.amazon.in/Power-Glasses-world-imagination-Perspective-ebook/dp/B0CW1CJGNK/"><img align="left" src="https://github.com/NaturalIntelligence/fast-xml-parser/assets/7692328/e7a42bcc-5186-45e3-bfee-de8d8b9a69d4" alt="ads-thePowerGlassesBook"/></a>
13
- I had recently published a book, The Power Glasses. Please have a look. Your feedback would be helpful. You can [mail](githubissues@proton.me) me for a free copy.
14
- <br>
19
+ ## Try out our New Thoughts
20
+
21
+ We've recently launched **Flowgger**
22
+ <a href="https://github.com/solothought/flowgger"> <img src="static/img/flowgger_h.webp" alt="Flowgger Logging Framework" /></a>
23
+
24
+ Don't forget to check our new library [Text2Chart](https://solothought.com/text2chart/flow) that constructs flow chart out of simple text. Very helpful in creating or alayzing an algorithm, and documentation purpose.
25
+
26
+ ## Financial Support
15
27
 
16
28
  Sponsor this project
17
29
 
@@ -51,7 +63,8 @@ Through OpenCollective
51
63
  -->
52
64
 
53
65
  ![fxp_sponsors](https://raw.githubusercontent.com/NaturalIntelligence/ThankYouBackers/main/assets/NI_sponsors.jpg)
54
- <a href="https://github.com/cocopon" target="_blank">Hiroki Kokubun</a>
66
+
67
+ > This is a donation. No goods or services are expected in return. Any requests for refunds for those purposes will be rejected.
55
68
 
56
69
  ## Users
57
70
 
@@ -79,30 +92,7 @@ Through OpenCollective
79
92
 
80
93
  ---
81
94
 
82
- ## Main Features
83
-
84
- <img align="right" src="static/img/fxp_logo.png" width="180px" alt="FXP logo"/>
85
-
86
- * Validate XML data syntactically
87
- * Parse XML to JS Object
88
- * Build XML from JS Object
89
- * Compatible to node js packages, in browser, and in CLI (click try me button above for demo)
90
- * Faster than any other pure JS implementation.
91
- * It can handle big files (tested up to 100mb).
92
- * Controlled parsing using various options
93
- * XML Entities, HTML entities, and DOCTYPE entites are supported.
94
- * unpaired tags (Eg `<br>` in HTML), stop nodes (Eg `<script>` in HTML) are supported.
95
- * You can restore almost same XML from JSON
96
- * Supports comments
97
- * It can preserve Order of tags in JS object
98
- * You can control if a single tag should be parsed into array.
99
- * Supports parsing of PI (Processing Instruction) tags with XML declaration tags
100
- * And many more other features.
101
-
102
- ## v5
103
- I developed v5 in Apr 2023. And I didn't get the chance to complete all the features. I've ensured that new features don't impact performance. With v5, you have more control on parsing output. Check [docs](./docs/v5) for syntax help and basic understanding.
104
-
105
- Please leave a comment in discussion forum for your suggestions and if you really need v5.
95
+ # More about this library
106
96
 
107
97
  ## How to use
108
98
 
@@ -153,9 +143,9 @@ Bundle size
153
143
  | fxp.min.js | 26K |
154
144
  | fxvalidator.min.js | 5.7K |
155
145
 
156
- ### Documents
146
+ ## Documents
157
147
  <table>
158
- <tr><td>v3</td><td>v4</td><td>v5</td></tr>
148
+ <tr><td>v3</td><td>v4 and v5</td><td>v6</td></tr>
159
149
  <tr>
160
150
  <td>
161
151
  <a href="./docs/v3/docs.md">documents</a>
@@ -170,16 +160,18 @@ Bundle size
170
160
  <li><a href="./docs/v4/7.PITags.md">PI Tag processing</a></li>
171
161
  </ol></td>
172
162
  <td><ol>
173
- <li></li><a href="./docs/v5/1.GettingStarted.md">Getting Started</a></li>
174
- <li><a href="./docs/v5/2.Features.md">Features</a></li>
175
- <li><a href="./docs/v5/3.Options.md">Options</a></li>
176
- <li><a href="./docs/v5/4.OutputBuilders.md">Output Builders</a></li>
177
- <li><a href="./docs/v5/5.ValueParsers.md">Value Parsers</a></li>
163
+ <li></li><a href="./docs/v6/1.GettingStarted.md">Getting Started</a></li>
164
+ <li><a href="./docs/v6/2.Features.md">Features</a></li>
165
+ <li><a href="./docs/v6/3.Options.md">Options</a></li>
166
+ <li><a href="./docs/v6/4.OutputBuilders.md">Output Builders</a></li>
167
+ <li><a href="./docs/v6/5.ValueParsers.md">Value Parsers</a></li>
178
168
  </ol></td>
179
169
  </tr>
180
170
  </table>
181
171
 
182
- **note**: version 5 is released with version 4 tfor experimental use. Based on it's demand, it'll be developed and the features can be different in final release.
172
+ **note**:
173
+ - Version 6 is released with version 4 for experimental use. Based on it's demand, it'll be developed and the features can be different in final release.
174
+ - Version 5 has the same functionalities as version 4.
183
175
 
184
176
  ## Performance
185
177
  <small>negative means error</small>
@@ -197,10 +189,9 @@ Bundle size
197
189
  <img src="./docs/imgs/XMLBuilder_v4.png" width="50%" />
198
190
  * Y-axis: requests per second
199
191
 
200
-
201
-
202
192
  <!-- [![](static/img/ni_ads_ads.gif)](https://github.com/NaturalIntelligence/ads/) -->
203
193
 
194
+ ---
204
195
 
205
196
  ## Usage Trend
206
197
 
@@ -210,20 +201,15 @@ Bundle size
210
201
  <img src="https://npm-compare.com/img/npm-trend/THREE_YEARS/fast-xml-parser.png" width="50%" alt="NPM Usage Trend of fast-xml-parser" />
211
202
  </a>
212
203
 
213
- ## Supporters
214
- ### Contributors
204
+ # Supporters
205
+ #### Contributors
215
206
 
216
207
  This project exists thanks to [all](graphs/contributors) the people who contribute. [[Contribute](docs/CONTRIBUTING.md)].
217
- <!-- <a href="graphs/contributors"><img src="https://opencollective.com/fast-xml-parser/contributors.svg?width=890&button=false" /></a> -->
218
- <!--
219
- ### Lead Maintainers
220
- ![Amit Gupta](https://avatars1.githubusercontent.com/u/7692328?s=100&v=4)
221
- [![Vohmyanin Sergey Vasilevich](https://avatars3.githubusercontent.com/u/783335?s=100&v=4)](https://github.com/Delagen)
222
208
 
223
- ### All Contributors -->
224
209
  <a href="graphs/contributors"><img src="https://opencollective.com/fast-xml-parser/contributors.svg?width=890&button=false" /></a>
225
210
 
226
- ### Backers
211
+
212
+ #### Backers from Open collective
227
213
 
228
214
  Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/fast-xml-parser#backer)]
229
215
 
@@ -0,0 +1,2 @@
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.XMLBuilder=e():t.XMLBuilder=e()}(this,(()=>(()=>{"use strict";var t={d:(e,i)=>{for(var r in i)t.o(i,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:i[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function i(t,e){var i="";return e.format&&e.indentBy.length>0&&(i="\n"),r(t,e,"",i)}function r(t,e,i,u){for(var p="",h=!1,l=0;l<t.length;l++){var d=t[l],f=n(d);if(void 0!==f){var c;if(c=0===i.length?f:i+"."+f,f!==e.textNodeName)if(f!==e.cdataPropName)if(f!==e.commentPropName)if("?"!==f[0]){var g=u;""!==g&&(g+=e.indentBy);var b=u+"<"+f+o(d[":@"],e),m=r(d[f],e,c,g);-1!==e.unpairedTags.indexOf(f)?e.suppressUnpairedNode?p+=b+">":p+=b+"/>":m&&0!==m.length||!e.suppressEmptyNode?m&&m.endsWith(">")?p+=b+">"+m+u+"</"+f+">":(p+=b+">",m&&""!==u&&(m.includes("/>")||m.includes("</"))?p+=u+e.indentBy+m+u:p+=m,p+="</"+f+">"):p+=b+"/>",h=!0}else{var N=o(d[":@"],e),v="?xml"===f?"":u,y=d[f][0][e.textNodeName];p+=v+"<"+f+(y=0!==y.length?" "+y:"")+N+"?>",h=!0}else p+=u+"\x3c!--"+d[f][0][e.textNodeName]+"--\x3e",h=!0;else h&&(p+=u),p+="<![CDATA["+d[f][0][e.textNodeName]+"]]>",h=!1;else{var x=d[f];s(c,e)||(x=a(x=e.tagValueProcessor(f,x),e)),h&&(p+=u),p+=x,h=!1}}}return p}function n(t){for(var e=Object.keys(t),i=0;i<e.length;i++){var r=e[i];if(t.hasOwnProperty(r)&&":@"!==r)return r}}function o(t,e){var i="";if(t&&!e.ignoreAttributes)for(var r in t)if(t.hasOwnProperty(r)){var n=e.attributeValueProcessor(r,t[r]);!0===(n=a(n,e))&&e.suppressBooleanAttributes?i+=" "+r.substr(e.attributeNamePrefix.length):i+=" "+r.substr(e.attributeNamePrefix.length)+'="'+n+'"'}return i}function s(t,e){var i=(t=t.substr(0,t.length-e.textNodeName.length-1)).substr(t.lastIndexOf(".")+1);for(var r in e.stopNodes)if(e.stopNodes[r]===t||e.stopNodes[r]==="*."+i)return!0;return!1}function a(t,e){if(t&&t.length>0&&e.processEntities)for(var i=0;i<e.entities.length;i++){var r=e.entities[i];t=t.replace(r.regex,r.val)}return t}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,r=Array(e);i<e;i++)r[i]=t[i];return r}t.r(e),t.d(e,{default:()=>h});var p={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function h(t){var e;this.options=Object.assign({},p,t),!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn="function"==typeof(e=this.options.ignoreAttributes)?e:Array.isArray(e)?function(t){for(var i,r=function(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return u(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?u(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(i=r()).done;){var n=i.value;if("string"==typeof n&&t===n)return!0;if(n instanceof RegExp&&n.test(t))return!0}}:function(){return!1},this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=f),this.processTextOrObjNode=l,this.options.format?(this.indentate=d,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function l(t,e,i,r){var n=this.j2x(t,i+1,r.concat(e));return void 0!==t[this.options.textNodeName]&&1===Object.keys(t).length?this.buildTextValNode(t[this.options.textNodeName],e,n.attrStr,i):this.buildObjectNode(n.val,e,n.attrStr,i)}function d(t){return this.options.indentBy.repeat(t)}function f(t){return!(!t.startsWith(this.options.attributeNamePrefix)||t===this.options.textNodeName)&&t.substr(this.attrPrefixLen)}return h.prototype.build=function(t){return this.options.preserveOrder?i(t,this.options):(Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&((e={})[this.options.arrayNodeName]=t,t=e),this.j2x(t,0,[]).val);var e},h.prototype.j2x=function(t,e,i){var r="",n="",o=i.join(".");for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s))if(void 0===t[s])this.isAttribute(s)&&(n+="");else if(null===t[s])this.isAttribute(s)||s===this.options.cdataPropName?n+="":"?"===s[0]?n+=this.indentate(e)+"<"+s+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+s+"/"+this.tagEndChar;else if(t[s]instanceof Date)n+=this.buildTextValNode(t[s],s,"",e);else if("object"!=typeof t[s]){var a=this.isAttribute(s);if(a&&!this.ignoreAttributesFn(a,o))r+=this.buildAttrPairStr(a,""+t[s]);else if(!a)if(s===this.options.textNodeName){var u=this.options.tagValueProcessor(s,""+t[s]);n+=this.replaceEntitiesValue(u)}else n+=this.buildTextValNode(t[s],s,"",e)}else if(Array.isArray(t[s])){for(var p=t[s].length,h="",l="",d=0;d<p;d++){var f=t[s][d];if(void 0===f);else if(null===f)"?"===s[0]?n+=this.indentate(e)+"<"+s+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+s+"/"+this.tagEndChar;else if("object"==typeof f)if(this.options.oneListGroup){var c=this.j2x(f,e+1,i.concat(s));h+=c.val,this.options.attributesGroupName&&f.hasOwnProperty(this.options.attributesGroupName)&&(l+=c.attrStr)}else h+=this.processTextOrObjNode(f,s,e,i);else if(this.options.oneListGroup){var g=this.options.tagValueProcessor(s,f);h+=g=this.replaceEntitiesValue(g)}else h+=this.buildTextValNode(f,s,"",e)}this.options.oneListGroup&&(h=this.buildObjectNode(h,s,l,e)),n+=h}else if(this.options.attributesGroupName&&s===this.options.attributesGroupName)for(var b=Object.keys(t[s]),m=b.length,N=0;N<m;N++)r+=this.buildAttrPairStr(b[N],""+t[s][b[N]]);else n+=this.processTextOrObjNode(t[s],s,e,i);return{attrStr:r,val:n}},h.prototype.buildAttrPairStr=function(t,e){return e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&"true"===e?" "+t:" "+t+'="'+e+'"'},h.prototype.buildObjectNode=function(t,e,i,r){if(""===t)return"?"===e[0]?this.indentate(r)+"<"+e+i+"?"+this.tagEndChar:this.indentate(r)+"<"+e+i+this.closeTag(e)+this.tagEndChar;var n="</"+e+this.tagEndChar,o="";return"?"===e[0]&&(o="?",n=""),!i&&""!==i||-1!==t.indexOf("<")?!1!==this.options.commentPropName&&e===this.options.commentPropName&&0===o.length?this.indentate(r)+"\x3c!--"+t+"--\x3e"+this.newLine:this.indentate(r)+"<"+e+i+o+this.tagEndChar+t+this.indentate(r)+n:this.indentate(r)+"<"+e+i+o+">"+t+n},h.prototype.closeTag=function(t){var e="";return-1!==this.options.unpairedTags.indexOf(t)?this.options.suppressUnpairedNode||(e="/"):e=this.options.suppressEmptyNode?"/":"></"+t,e},h.prototype.buildTextValNode=function(t,e,i,r){if(!1!==this.options.cdataPropName&&e===this.options.cdataPropName)return this.indentate(r)+"<![CDATA["+t+"]]>"+this.newLine;if(!1!==this.options.commentPropName&&e===this.options.commentPropName)return this.indentate(r)+"\x3c!--"+t+"--\x3e"+this.newLine;if("?"===e[0])return this.indentate(r)+"<"+e+i+"?"+this.tagEndChar;var n=this.options.tagValueProcessor(e,t);return""===(n=this.replaceEntitiesValue(n))?this.indentate(r)+"<"+e+i+this.closeTag(e)+this.tagEndChar:this.indentate(r)+"<"+e+i+">"+n+"</"+e+this.tagEndChar},h.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(var e=0;e<this.options.entities.length;e++){var i=this.options.entities[e];t=t.replace(i.regex,i.val)}return t},e})()));
2
+ //# sourceMappingURL=fxbuilder.min.js.map