parse-tmx 2.23.0 → 2.25.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.
- package/LICENSE +201 -201
- package/README.md +1 -1
- package/dist/index.js +41 -40
- package/package.json +11 -5
package/LICENSE
CHANGED
|
@@ -1,201 +1,201 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
1. Definitions.
|
|
8
|
-
|
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
-
the copyright owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
-
other entities that control, are controlled by, or are under common
|
|
17
|
-
control with that entity. For the purposes of this definition,
|
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
-
direction or management of such entity, whether by contract or
|
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for reasonable and customary use in describing the
|
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
or other liability obligations and/or rights consistent with this
|
|
169
|
-
License. However, in accepting such obligations, You may act only
|
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
-
of your accepting any such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|
|
177
|
-
|
|
178
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
-
|
|
180
|
-
To apply the Apache License to your work, attach the following
|
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
-
replaced with your own identifying information. (Don't include
|
|
183
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
-
comment syntax for the file format. We also recommend that a
|
|
185
|
-
file or class name and description of purpose be included on the
|
|
186
|
-
same "printed page" as the copyright notice for easier
|
|
187
|
-
identification within third-party archives.
|
|
188
|
-
|
|
189
|
-
Copyright 2020-present Jimmy Chen
|
|
190
|
-
|
|
191
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
-
you may not use this file except in compliance with the License.
|
|
193
|
-
You may obtain a copy of the License at
|
|
194
|
-
|
|
195
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
-
|
|
197
|
-
Unless required by applicable law or agreed to in writing, software
|
|
198
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
-
See the License for the specific language governing permissions and
|
|
201
|
-
limitations under the License.
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2020-present Jimmy Chen
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
Inspired by [tmx-map-parser](https://github.com/praghus/tmx-map-parser).
|
|
9
9
|
A parser for [Tiled Map Editor](http://www.mapeditor.org/) \*.tmx files.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
## Table of Contents
|
|
12
12
|
|
|
13
13
|
- 🚀 [Getting Started](#getting-started)
|
|
14
14
|
- 📖 [Documentation](#documentation)
|
package/dist/index.js
CHANGED
|
@@ -301,7 +301,7 @@ const parseTileset = (node) => {
|
|
|
301
301
|
};
|
|
302
302
|
//#endregion
|
|
303
303
|
//#region src/util/parseXmlValue.ts
|
|
304
|
-
const NUMBER_REGEX =
|
|
304
|
+
const NUMBER_REGEX = /^[+-]?\d+(\.\d+)?$/u;
|
|
305
305
|
const parseXmlValue = (value) => {
|
|
306
306
|
if (value === "true") return true;
|
|
307
307
|
else if (value === "false") return false;
|
|
@@ -1547,6 +1547,12 @@ function write(buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
1547
1547
|
for (; eLen > 0; buffer[offset + i] = e & 255, i += d, e /= 256, eLen -= 8);
|
|
1548
1548
|
buffer[offset + i - d] |= s * 128;
|
|
1549
1549
|
}
|
|
1550
|
+
/*!
|
|
1551
|
+
* The buffer module from node.js, for the browser.
|
|
1552
|
+
*
|
|
1553
|
+
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
1554
|
+
* @license MIT
|
|
1555
|
+
*/
|
|
1550
1556
|
function kMaxLength() {
|
|
1551
1557
|
return Buffer$1$1.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
|
|
1552
1558
|
}
|
|
@@ -4984,6 +4990,7 @@ var require_interfaces$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4984
4990
|
null
|
|
4985
4991
|
];
|
|
4986
4992
|
}));
|
|
4993
|
+
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
4987
4994
|
/**
|
|
4988
4995
|
* A generic error utility function.
|
|
4989
4996
|
* @private
|
|
@@ -28492,7 +28499,6 @@ const DefaultParserOptions = {
|
|
|
28492
28499
|
trim: false,
|
|
28493
28500
|
xmlns: false
|
|
28494
28501
|
};
|
|
28495
|
-
new RegExp(String.raw`(?!xmlns)^.*:`, "u");
|
|
28496
28502
|
const normalize = (string) => string.toLowerCase();
|
|
28497
28503
|
const stripBOM = (str) => str.startsWith("") ? str.slice(1) : str;
|
|
28498
28504
|
function BufferList() {
|
|
@@ -29763,6 +29769,7 @@ var init__polyfill_node_stream = __esmMin((() => {
|
|
|
29763
29769
|
return dest;
|
|
29764
29770
|
};
|
|
29765
29771
|
}));
|
|
29772
|
+
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */
|
|
29766
29773
|
var import_sax = (/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
29767
29774
|
init__polyfill_node_buffer();
|
|
29768
29775
|
(function(sax) {
|
|
@@ -31028,7 +31035,6 @@ var import_sax = (/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
31028
31035
|
if (parser.position >= parser.bufferCheckPosition) checkBufferLength(parser);
|
|
31029
31036
|
return parser;
|
|
31030
31037
|
}
|
|
31031
|
-
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */
|
|
31032
31038
|
/* istanbul ignore next */
|
|
31033
31039
|
if (!String.fromCodePoint) (function() {
|
|
31034
31040
|
var stringFromCharCode = String.fromCharCode;
|
|
@@ -33003,7 +33009,7 @@ var require_utils$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
33003
33009
|
};
|
|
33004
33010
|
}));
|
|
33005
33011
|
//#endregion
|
|
33006
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.
|
|
33012
|
+
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/fallback/platform.native.js
|
|
33007
33013
|
function decodePartAddition(a, start, end, m) {
|
|
33008
33014
|
let o = "";
|
|
33009
33015
|
let i = start;
|
|
@@ -33029,16 +33035,12 @@ var Buffer$3, haveNativeBuffer$1, isLE, isNative;
|
|
|
33029
33035
|
var init_platform_native = __esmMin$1((() => {
|
|
33030
33036
|
({Buffer: Buffer$3} = globalThis);
|
|
33031
33037
|
haveNativeBuffer$1 = Buffer$3 && !Buffer$3.TYPED_ARRAY_SUPPORT;
|
|
33032
|
-
|
|
33033
|
-
globalThis.Deno;
|
|
33034
|
-
isLE = new Uint8Array(Uint16Array.of(258).buffer)[0] === 2;
|
|
33038
|
+
isLE = /* @__PURE__ */ (() => new Uint8Array(Uint16Array.of(258).buffer)[0] === 2)();
|
|
33035
33039
|
isNative = (x) => x && (haveNativeBuffer$1 || `${x}`.includes("[native code]"));
|
|
33036
33040
|
if (!haveNativeBuffer$1 && isNative(() => {})) isNative = () => false;
|
|
33037
|
-
isNative(globalThis.TextEncoder) && new TextEncoder();
|
|
33038
|
-
isNative(globalThis.TextDecoder) && new TextDecoder("utf-8", { ignoreBOM: true });
|
|
33039
33041
|
}));
|
|
33040
33042
|
//#endregion
|
|
33041
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.
|
|
33043
|
+
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/fallback/platform.browser.js
|
|
33042
33044
|
function decode2string(arr, start, end, m) {
|
|
33043
33045
|
if (end - start > 3e4) {
|
|
33044
33046
|
const concat = [];
|
|
@@ -33057,14 +33059,15 @@ function decode2string(arr, start, end, m) {
|
|
|
33057
33059
|
var nativeEncoder, nativeDecoder, nativeDecoderLatin1;
|
|
33058
33060
|
var init_platform_browser = __esmMin$1((() => {
|
|
33059
33061
|
init_platform_native();
|
|
33060
|
-
nativeEncoder = new TextEncoder();
|
|
33061
|
-
nativeDecoder = new TextDecoder("utf-8", { ignoreBOM: true });
|
|
33062
|
-
nativeDecoderLatin1 = new TextDecoder("latin1", { ignoreBOM: true });
|
|
33062
|
+
nativeEncoder = /* @__PURE__ */ (() => new TextEncoder())();
|
|
33063
|
+
nativeDecoder = /* @__PURE__ */ (() => new TextDecoder("utf-8", { ignoreBOM: true }))();
|
|
33064
|
+
nativeDecoderLatin1 = /* @__PURE__ */ (() => new TextDecoder("latin1", { ignoreBOM: true }))();
|
|
33063
33065
|
}));
|
|
33064
33066
|
//#endregion
|
|
33065
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.
|
|
33067
|
+
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/fallback/_utils.js
|
|
33066
33068
|
function assertU8(arg) {
|
|
33067
|
-
if (
|
|
33069
|
+
if (arg && arg instanceof Uint8Array) return;
|
|
33070
|
+
throw new TypeError("Expected an Uint8Array");
|
|
33068
33071
|
}
|
|
33069
33072
|
function fromUint8(arr, format) {
|
|
33070
33073
|
switch (format) {
|
|
@@ -33085,7 +33088,7 @@ function fromBuffer(arr, format) {
|
|
|
33085
33088
|
case "uint8":
|
|
33086
33089
|
if (arr.length <= 64 || arr.byteOffset !== 0 || arr.byteLength !== arr.buffer.byteLength) return new Uint8Array(arr);
|
|
33087
33090
|
return new Uint8Array(arr.buffer, arr.byteOffset, arr.byteLength);
|
|
33088
|
-
case "arraybuffer": return
|
|
33091
|
+
case "arraybuffer": return arr.buffer.byteLength === arr.byteLength ? arr.buffer : arr.buffer.slice(arr.byteOffset, arr.byteOffset + arr.byteLength);
|
|
33089
33092
|
case "buffer":
|
|
33090
33093
|
if (arr.constructor !== Buffer$2) throw new Error("Unexpected");
|
|
33091
33094
|
return arr;
|
|
@@ -33095,12 +33098,12 @@ function fromBuffer(arr, format) {
|
|
|
33095
33098
|
var Buffer$2, E_STRING, E_STRICT_UNICODE;
|
|
33096
33099
|
var init__utils = __esmMin$1((() => {
|
|
33097
33100
|
init_platform_browser();
|
|
33098
|
-
Buffer$2 = globalThis.Buffer;
|
|
33101
|
+
Buffer$2 = /* @__PURE__ */ (() => globalThis.Buffer)();
|
|
33099
33102
|
E_STRING = "Input is not a string";
|
|
33100
33103
|
E_STRICT_UNICODE = "Input is not well-formed Unicode";
|
|
33101
33104
|
}));
|
|
33102
33105
|
//#endregion
|
|
33103
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.
|
|
33106
|
+
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/fallback/latin1.js
|
|
33104
33107
|
function asciiPrefix(arr) {
|
|
33105
33108
|
let p = 0;
|
|
33106
33109
|
const length = arr.length;
|
|
@@ -33156,8 +33159,8 @@ function encodeAsciiPrefix(x, s) {
|
|
|
33156
33159
|
var atob$2, web64$1, maxFunctionArgs, useLatin1atob, decodeUCS2, decodeAscii, encodeLatin1, useEncodeInto, encodeAscii;
|
|
33157
33160
|
var init_latin1 = __esmMin$1((() => {
|
|
33158
33161
|
init_platform_browser();
|
|
33159
|
-
atob$2 = globalThis.atob;
|
|
33160
|
-
web64$1 = Uint8Array.prototype.toBase64;
|
|
33162
|
+
atob$2 = /* @__PURE__ */ (() => globalThis.atob)();
|
|
33163
|
+
web64$1 = /* @__PURE__ */ (() => Uint8Array.prototype.toBase64)();
|
|
33161
33164
|
maxFunctionArgs = 8192;
|
|
33162
33165
|
useLatin1atob = web64$1 && atob$2;
|
|
33163
33166
|
decodeUCS2 = (u16, stop = u16.length) => decodeLatin1(u16, 0, stop);
|
|
@@ -33176,13 +33179,13 @@ var init_latin1 = __esmMin$1((() => {
|
|
|
33176
33179
|
};
|
|
33177
33180
|
}));
|
|
33178
33181
|
//#endregion
|
|
33179
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.
|
|
33182
|
+
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/assert.js
|
|
33180
33183
|
function assertEmptyRest(rest) {
|
|
33181
33184
|
if (Object.keys(rest).length > 0) throw new TypeError("Unexpected extra options");
|
|
33182
33185
|
}
|
|
33183
33186
|
var init_assert = __esmMin$1((() => {}));
|
|
33184
33187
|
//#endregion
|
|
33185
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.
|
|
33188
|
+
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/fallback/base64.js
|
|
33186
33189
|
var base64_exports = /* @__PURE__ */ __exportAll$1({
|
|
33187
33190
|
E_CHAR: () => E_CHAR$1,
|
|
33188
33191
|
E_LAST: () => E_LAST$1,
|
|
@@ -33348,7 +33351,7 @@ var init_base64$1 = __esmMin$1((() => {
|
|
|
33348
33351
|
mapSize = nativeEncoder ? 128 : 65536;
|
|
33349
33352
|
}));
|
|
33350
33353
|
//#endregion
|
|
33351
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.
|
|
33354
|
+
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/base64.js
|
|
33352
33355
|
function maybeUnpad(res, padding) {
|
|
33353
33356
|
if (padding) return res;
|
|
33354
33357
|
const at = res.indexOf("=", res.length - 3);
|
|
@@ -33453,7 +33456,7 @@ var init_base64 = __esmMin$1((() => {
|
|
|
33453
33456
|
else fromBase64impl = (str, isBase64url, padding, format) => fromUint8(fromBase64(str, isBase64url), format);
|
|
33454
33457
|
}));
|
|
33455
33458
|
//#endregion
|
|
33456
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.
|
|
33459
|
+
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/fallback/utf16.js
|
|
33457
33460
|
function decodeApiDecoders(input, loose, format) {
|
|
33458
33461
|
if (format === "uint16") {
|
|
33459
33462
|
if (!(input instanceof Uint16Array)) throw new TypeError("Expected an Uint16Array");
|
|
@@ -33467,8 +33470,6 @@ var fatalLE, looseLE, fatalBE, looseBE;
|
|
|
33467
33470
|
var init_utf16 = __esmMin$1((() => {
|
|
33468
33471
|
init__utils();
|
|
33469
33472
|
init_platform_browser();
|
|
33470
|
-
String.prototype.isWellFormed;
|
|
33471
|
-
String.prototype.toWellFormed;
|
|
33472
33473
|
fatalLE = nativeDecoder ? new TextDecoder("utf-16le", {
|
|
33473
33474
|
ignoreBOM: true,
|
|
33474
33475
|
fatal: true
|
|
@@ -33485,7 +33486,7 @@ var init_utf16_browser = __esmMin$1((() => {
|
|
|
33485
33486
|
utf16toString = (arr, format = "uint16") => decodeApiDecoders(arr, false, format);
|
|
33486
33487
|
}));
|
|
33487
33488
|
//#endregion
|
|
33488
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.
|
|
33489
|
+
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/fallback/multi-byte.encodings.json
|
|
33489
33490
|
var require_multi_byte_encodings$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
33490
33491
|
module.exports = {
|
|
33491
33492
|
"$C": [
|
|
@@ -54126,12 +54127,12 @@ var require_multi_byte_encodings$1 = /* @__PURE__ */ __commonJSMin$1(((exports,
|
|
|
54126
54127
|
};
|
|
54127
54128
|
}));
|
|
54128
54129
|
//#endregion
|
|
54129
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.
|
|
54130
|
+
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/fallback/multi-byte.encodings.cjs
|
|
54130
54131
|
var require_multi_byte_encodings = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
54131
54132
|
module.exports = () => require_multi_byte_encodings$1();
|
|
54132
54133
|
}));
|
|
54133
54134
|
//#endregion
|
|
54134
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.
|
|
54135
|
+
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/fallback/multi-byte.table.js
|
|
54135
54136
|
function loadBase64(str) {
|
|
54136
54137
|
const x = fromBase64url(str);
|
|
54137
54138
|
const len = x.length;
|
|
@@ -54220,7 +54221,7 @@ var init_multi_byte_table = __esmMin$1((() => {
|
|
|
54220
54221
|
tables = /* @__PURE__ */ new Map();
|
|
54221
54222
|
}));
|
|
54222
54223
|
//#endregion
|
|
54223
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.
|
|
54224
|
+
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/fallback/multi-byte.js
|
|
54224
54225
|
function multibyteDecoder(enc, loose = false) {
|
|
54225
54226
|
if (typeof loose !== "boolean") throw new TypeError("loose option should be boolean");
|
|
54226
54227
|
if (!Object.hasOwn(mappers, enc)) throw new RangeError("Unsupported encoding");
|
|
@@ -54982,7 +54983,7 @@ var init_multi_byte$1 = __esmMin$1((() => {
|
|
|
54982
54983
|
NON_LATIN$1 = /[^\x00-\xFF]/;
|
|
54983
54984
|
}));
|
|
54984
54985
|
//#endregion
|
|
54985
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.
|
|
54986
|
+
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/multi-byte.js
|
|
54986
54987
|
function createMultibyteDecoder$1(encoding, loose = false) {
|
|
54987
54988
|
const jsDecoder = multibyteDecoder(encoding, loose);
|
|
54988
54989
|
let streaming = false;
|
|
@@ -54999,7 +55000,7 @@ var init_multi_byte = __esmMin$1((() => {
|
|
|
54999
55000
|
}));
|
|
55000
55001
|
var init_utf8_auto_browser = __esmMin$1((() => {}));
|
|
55001
55002
|
//#endregion
|
|
55002
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.
|
|
55003
|
+
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/utf8.js
|
|
55003
55004
|
function deLoose(str, loose, res) {
|
|
55004
55005
|
if (loose || str.length === res.length) return res;
|
|
55005
55006
|
if (isWellFormed) {
|
|
@@ -55043,7 +55044,7 @@ var init_utf8 = __esmMin$1((() => {
|
|
|
55043
55044
|
utf8fromStringLoose = (str, format = "uint8") => fromUint8(encode$2(str, true), format);
|
|
55044
55045
|
}));
|
|
55045
55046
|
//#endregion
|
|
55046
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.
|
|
55047
|
+
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/fallback/single-byte.encodings.js
|
|
55047
55048
|
var r$1, i2, iB, i9, w1, w2, w7, w8, k8b, k8a, maps;
|
|
55048
55049
|
var init_single_byte_encodings = __esmMin$1((() => {
|
|
55049
55050
|
r$1 = 65533;
|
|
@@ -56406,7 +56407,7 @@ var init_single_byte_encodings = __esmMin$1((() => {
|
|
|
56406
56407
|
});
|
|
56407
56408
|
}));
|
|
56408
56409
|
//#endregion
|
|
56409
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.
|
|
56410
|
+
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/fallback/single-byte.js
|
|
56410
56411
|
function getEncoding(encoding) {
|
|
56411
56412
|
assertEncoding(encoding);
|
|
56412
56413
|
if (encoding === xUserDefined) return Array.from({ length: 128 }, (_, i) => 63360 + i);
|
|
@@ -56509,7 +56510,7 @@ var init_single_byte = __esmMin$1((() => {
|
|
|
56509
56510
|
useLatin1btoa = Uint8Array.fromBase64 && btoa;
|
|
56510
56511
|
}));
|
|
56511
56512
|
//#endregion
|
|
56512
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.
|
|
56513
|
+
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/fallback/encoding.labels.js
|
|
56513
56514
|
var labels;
|
|
56514
56515
|
var init_encoding_labels = __esmMin$1((() => {
|
|
56515
56516
|
labels = {
|
|
@@ -56668,7 +56669,7 @@ var init_encoding_labels = __esmMin$1((() => {
|
|
|
56668
56669
|
var init_encoding_api = __esmMin$1((() => {}));
|
|
56669
56670
|
var init_encoding_util = __esmMin$1((() => {}));
|
|
56670
56671
|
//#endregion
|
|
56671
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.
|
|
56672
|
+
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/fallback/encoding.js
|
|
56672
56673
|
function normalizeEncoding(label) {
|
|
56673
56674
|
if (label === "utf-8" || label === "utf8" || label === "UTF-8" || label === "UTF8") return "utf-8";
|
|
56674
56675
|
if (label === "windows-1252" || label === "ascii" || label === "latin1") return "windows-1252";
|
|
@@ -56727,7 +56728,7 @@ var init_encoding = __esmMin$1((() => {
|
|
|
56727
56728
|
setMultibyte(createMultibyteDecoder$1, multibyteEncoder$1);
|
|
56728
56729
|
}));
|
|
56729
56730
|
//#endregion
|
|
56730
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.
|
|
56731
|
+
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/fallback/percent.js
|
|
56731
56732
|
function percentEncoder(set, spaceAsPlus = false) {
|
|
56732
56733
|
if (typeof set !== "string" || /[^\x20-\x7E]/.test(set)) throw new TypeError(ERR);
|
|
56733
56734
|
if (typeof spaceAsPlus !== "boolean") throw new TypeError("spaceAsPlus must be boolean");
|
|
@@ -56755,7 +56756,7 @@ var init_percent = __esmMin$1((() => {
|
|
|
56755
56756
|
percentMap = /* @__PURE__ */ new Map();
|
|
56756
56757
|
}));
|
|
56757
56758
|
//#endregion
|
|
56758
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.
|
|
56759
|
+
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/whatwg.js
|
|
56759
56760
|
var whatwg_exports = /* @__PURE__ */ __exportAll$1({ percentEncodeAfterEncoding: () => percentEncodeAfterEncoding });
|
|
56760
56761
|
function percentEncodeAfterEncoding(encoding, input, percentEncodeSet, spaceAsPlus = false) {
|
|
56761
56762
|
const enc = normalizeEncoding(encoding);
|
|
@@ -56937,8 +56938,8 @@ var init_punycode_es6 = __esmMin$1((() => {
|
|
|
56937
56938
|
let k = 0;
|
|
56938
56939
|
delta = firstTime ? floor(delta / damp) : delta >> 1;
|
|
56939
56940
|
delta += floor(delta / numPoints);
|
|
56940
|
-
for (; delta >
|
|
56941
|
-
return floor(k +
|
|
56941
|
+
for (; delta > 455; k += base) delta = floor(delta / baseMinusTMin);
|
|
56942
|
+
return floor(k + 36 * delta / (delta + skew));
|
|
56942
56943
|
};
|
|
56943
56944
|
decode = function(input) {
|
|
56944
56945
|
const output = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "parse-tmx",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.25.0",
|
|
4
4
|
"description": "A parser for tmx.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"parser",
|
|
@@ -37,14 +37,20 @@
|
|
|
37
37
|
"typecheck": "tsgo"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@esposter/shared": "2.
|
|
41
|
-
"@esposter/xml2js": "2.
|
|
40
|
+
"@esposter/shared": "2.25.0",
|
|
41
|
+
"@esposter/xml2js": "2.25.0",
|
|
42
42
|
"data-urls": "^7.0.0",
|
|
43
43
|
"dayjs": "^1.11.20"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
+
"@esposter/configuration": "2.25.0",
|
|
46
47
|
"@types/data-urls": "^3.0.5",
|
|
47
|
-
"@types/xml2js": "^0.4.14"
|
|
48
|
+
"@types/xml2js": "^0.4.14",
|
|
49
|
+
"@vitest/coverage-v8": "^4.1.7",
|
|
50
|
+
"ctix": "^2.8.0",
|
|
51
|
+
"rolldown": "^1.0.2",
|
|
52
|
+
"type-fest": "^5.6.0",
|
|
53
|
+
"vitest": "^4.1.7"
|
|
48
54
|
},
|
|
49
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "9e1918dda13a287698bee79a4507635cce57fcbf"
|
|
50
56
|
}
|