styled-map-package 4.1.0 → 5.0.0-pre.1

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 (238) hide show
  1. package/README.md +47 -7
  2. package/bin/smp-download.js +27 -151
  3. package/bin/smp-mbtiles.js +12 -7
  4. package/bin/smp-view.js +32 -54
  5. package/lib/commands/download.js +188 -0
  6. package/lib/commands/mbtiles.js +21 -0
  7. package/lib/commands/view.js +57 -0
  8. package/lib/reporters.js +92 -0
  9. package/package.json +9 -181
  10. package/LICENSE.md +0 -7
  11. package/dist/download.cjs +0 -101
  12. package/dist/download.d.cts +0 -65
  13. package/dist/download.d.ts +0 -65
  14. package/dist/download.js +0 -77
  15. package/dist/from-mbtiles.cjs +0 -91
  16. package/dist/from-mbtiles.d.cts +0 -17
  17. package/dist/from-mbtiles.d.ts +0 -17
  18. package/dist/from-mbtiles.js +0 -57
  19. package/dist/index.cjs +0 -49
  20. package/dist/index.d.cts +0 -27
  21. package/dist/index.d.ts +0 -27
  22. package/dist/index.js +0 -18
  23. package/dist/reader-watch.cjs +0 -135
  24. package/dist/reader-watch.d.cts +0 -24
  25. package/dist/reader-watch.d.ts +0 -24
  26. package/dist/reader-watch.js +0 -101
  27. package/dist/reader.cjs +0 -168
  28. package/dist/reader.d.cts +0 -62
  29. package/dist/reader.d.ts +0 -62
  30. package/dist/reader.js +0 -139
  31. package/dist/reporters.cjs +0 -122
  32. package/dist/reporters.d.cts +0 -10
  33. package/dist/reporters.d.ts +0 -10
  34. package/dist/reporters.js +0 -88
  35. package/dist/server.cjs +0 -78
  36. package/dist/server.d.cts +0 -48
  37. package/dist/server.d.ts +0 -48
  38. package/dist/server.js +0 -54
  39. package/dist/style-downloader.cjs +0 -312
  40. package/dist/style-downloader.d.cts +0 -120
  41. package/dist/style-downloader.d.ts +0 -120
  42. package/dist/style-downloader.js +0 -288
  43. package/dist/tile-downloader.cjs +0 -158
  44. package/dist/tile-downloader.d.cts +0 -84
  45. package/dist/tile-downloader.d.ts +0 -84
  46. package/dist/tile-downloader.js +0 -126
  47. package/dist/types-yLQy3AKR.d.cts +0 -192
  48. package/dist/types-yLQy3AKR.d.ts +0 -192
  49. package/dist/utils/errors.cjs +0 -41
  50. package/dist/utils/errors.d.cts +0 -18
  51. package/dist/utils/errors.d.ts +0 -18
  52. package/dist/utils/errors.js +0 -16
  53. package/dist/utils/fetch.cjs +0 -96
  54. package/dist/utils/fetch.d.cts +0 -51
  55. package/dist/utils/fetch.d.ts +0 -51
  56. package/dist/utils/fetch.js +0 -62
  57. package/dist/utils/file-formats.cjs +0 -98
  58. package/dist/utils/file-formats.d.cts +0 -35
  59. package/dist/utils/file-formats.d.ts +0 -35
  60. package/dist/utils/file-formats.js +0 -62
  61. package/dist/utils/geo.cjs +0 -84
  62. package/dist/utils/geo.d.cts +0 -46
  63. package/dist/utils/geo.d.ts +0 -46
  64. package/dist/utils/geo.js +0 -56
  65. package/dist/utils/mapbox.cjs +0 -121
  66. package/dist/utils/mapbox.d.cts +0 -43
  67. package/dist/utils/mapbox.d.ts +0 -43
  68. package/dist/utils/mapbox.js +0 -91
  69. package/dist/utils/misc.cjs +0 -39
  70. package/dist/utils/misc.d.cts +0 -22
  71. package/dist/utils/misc.d.ts +0 -22
  72. package/dist/utils/misc.js +0 -13
  73. package/dist/utils/streams.cjs +0 -130
  74. package/dist/utils/streams.d.cts +0 -73
  75. package/dist/utils/streams.d.ts +0 -73
  76. package/dist/utils/streams.js +0 -103
  77. package/dist/utils/style.cjs +0 -126
  78. package/dist/utils/style.d.cts +0 -69
  79. package/dist/utils/style.d.ts +0 -69
  80. package/dist/utils/style.js +0 -98
  81. package/dist/utils/templates.cjs +0 -118
  82. package/dist/utils/templates.d.cts +0 -80
  83. package/dist/utils/templates.d.ts +0 -80
  84. package/dist/utils/templates.js +0 -81
  85. package/dist/writer.cjs +0 -449
  86. package/dist/writer.d.cts +0 -7
  87. package/dist/writer.d.ts +0 -7
  88. package/dist/writer.js +0 -424
  89. package/node_modules/@node-rs/crc32/LICENSE +0 -21
  90. package/node_modules/@node-rs/crc32/README.md +0 -61
  91. package/node_modules/@node-rs/crc32/browser.js +0 -1
  92. package/node_modules/@node-rs/crc32/index.d.ts +0 -5
  93. package/node_modules/@node-rs/crc32/index.js +0 -368
  94. package/node_modules/@node-rs/crc32/package.json +0 -97
  95. package/node_modules/@node-rs/crc32-linux-x64-gnu/README.md +0 -3
  96. package/node_modules/@node-rs/crc32-linux-x64-gnu/crc32.linux-x64-gnu.node +0 -0
  97. package/node_modules/@node-rs/crc32-linux-x64-gnu/package.json +0 -43
  98. package/node_modules/@node-rs/crc32-linux-x64-musl/README.md +0 -3
  99. package/node_modules/@node-rs/crc32-linux-x64-musl/crc32.linux-x64-musl.node +0 -0
  100. package/node_modules/@node-rs/crc32-linux-x64-musl/package.json +0 -43
  101. package/node_modules/define-data-property/.eslintrc +0 -24
  102. package/node_modules/define-data-property/.github/FUNDING.yml +0 -12
  103. package/node_modules/define-data-property/.nycrc +0 -13
  104. package/node_modules/define-data-property/CHANGELOG.md +0 -70
  105. package/node_modules/define-data-property/LICENSE +0 -21
  106. package/node_modules/define-data-property/README.md +0 -67
  107. package/node_modules/define-data-property/index.d.ts +0 -12
  108. package/node_modules/define-data-property/index.js +0 -56
  109. package/node_modules/define-data-property/package.json +0 -106
  110. package/node_modules/define-data-property/test/index.js +0 -392
  111. package/node_modules/define-data-property/tsconfig.json +0 -59
  112. package/node_modules/define-properties/.editorconfig +0 -13
  113. package/node_modules/define-properties/.eslintrc +0 -19
  114. package/node_modules/define-properties/.github/FUNDING.yml +0 -12
  115. package/node_modules/define-properties/.nycrc +0 -9
  116. package/node_modules/define-properties/CHANGELOG.md +0 -91
  117. package/node_modules/define-properties/LICENSE +0 -21
  118. package/node_modules/define-properties/README.md +0 -84
  119. package/node_modules/define-properties/index.js +0 -47
  120. package/node_modules/define-properties/package.json +0 -88
  121. package/node_modules/es-define-property/.eslintrc +0 -13
  122. package/node_modules/es-define-property/.github/FUNDING.yml +0 -12
  123. package/node_modules/es-define-property/.nycrc +0 -9
  124. package/node_modules/es-define-property/CHANGELOG.md +0 -29
  125. package/node_modules/es-define-property/LICENSE +0 -21
  126. package/node_modules/es-define-property/README.md +0 -49
  127. package/node_modules/es-define-property/index.d.ts +0 -3
  128. package/node_modules/es-define-property/index.js +0 -14
  129. package/node_modules/es-define-property/package.json +0 -81
  130. package/node_modules/es-define-property/test/index.js +0 -56
  131. package/node_modules/es-define-property/tsconfig.json +0 -10
  132. package/node_modules/es-errors/.eslintrc +0 -5
  133. package/node_modules/es-errors/.github/FUNDING.yml +0 -12
  134. package/node_modules/es-errors/CHANGELOG.md +0 -40
  135. package/node_modules/es-errors/LICENSE +0 -21
  136. package/node_modules/es-errors/README.md +0 -55
  137. package/node_modules/es-errors/eval.d.ts +0 -3
  138. package/node_modules/es-errors/eval.js +0 -4
  139. package/node_modules/es-errors/index.d.ts +0 -3
  140. package/node_modules/es-errors/index.js +0 -4
  141. package/node_modules/es-errors/package.json +0 -80
  142. package/node_modules/es-errors/range.d.ts +0 -3
  143. package/node_modules/es-errors/range.js +0 -4
  144. package/node_modules/es-errors/ref.d.ts +0 -3
  145. package/node_modules/es-errors/ref.js +0 -4
  146. package/node_modules/es-errors/syntax.d.ts +0 -3
  147. package/node_modules/es-errors/syntax.js +0 -4
  148. package/node_modules/es-errors/test/index.js +0 -19
  149. package/node_modules/es-errors/tsconfig.json +0 -49
  150. package/node_modules/es-errors/type.d.ts +0 -3
  151. package/node_modules/es-errors/type.js +0 -4
  152. package/node_modules/es-errors/uri.d.ts +0 -3
  153. package/node_modules/es-errors/uri.js +0 -4
  154. package/node_modules/globalthis/.eslintrc +0 -18
  155. package/node_modules/globalthis/.nycrc +0 -10
  156. package/node_modules/globalthis/CHANGELOG.md +0 -109
  157. package/node_modules/globalthis/LICENSE +0 -21
  158. package/node_modules/globalthis/README.md +0 -70
  159. package/node_modules/globalthis/auto.js +0 -3
  160. package/node_modules/globalthis/implementation.browser.js +0 -11
  161. package/node_modules/globalthis/implementation.js +0 -3
  162. package/node_modules/globalthis/index.js +0 -19
  163. package/node_modules/globalthis/package.json +0 -99
  164. package/node_modules/globalthis/polyfill.js +0 -10
  165. package/node_modules/globalthis/shim.js +0 -29
  166. package/node_modules/globalthis/test/implementation.js +0 -11
  167. package/node_modules/globalthis/test/index.js +0 -11
  168. package/node_modules/globalthis/test/native.js +0 -26
  169. package/node_modules/globalthis/test/shimmed.js +0 -29
  170. package/node_modules/globalthis/test/tests.js +0 -36
  171. package/node_modules/gopd/.eslintrc +0 -16
  172. package/node_modules/gopd/.github/FUNDING.yml +0 -12
  173. package/node_modules/gopd/CHANGELOG.md +0 -45
  174. package/node_modules/gopd/LICENSE +0 -21
  175. package/node_modules/gopd/README.md +0 -40
  176. package/node_modules/gopd/gOPD.d.ts +0 -1
  177. package/node_modules/gopd/gOPD.js +0 -4
  178. package/node_modules/gopd/index.d.ts +0 -5
  179. package/node_modules/gopd/index.js +0 -15
  180. package/node_modules/gopd/package.json +0 -77
  181. package/node_modules/gopd/test/index.js +0 -36
  182. package/node_modules/gopd/tsconfig.json +0 -9
  183. package/node_modules/has-property-descriptors/.eslintrc +0 -13
  184. package/node_modules/has-property-descriptors/.github/FUNDING.yml +0 -12
  185. package/node_modules/has-property-descriptors/.nycrc +0 -9
  186. package/node_modules/has-property-descriptors/CHANGELOG.md +0 -35
  187. package/node_modules/has-property-descriptors/LICENSE +0 -21
  188. package/node_modules/has-property-descriptors/README.md +0 -43
  189. package/node_modules/has-property-descriptors/index.js +0 -22
  190. package/node_modules/has-property-descriptors/package.json +0 -77
  191. package/node_modules/has-property-descriptors/test/index.js +0 -57
  192. package/node_modules/is-it-type/License +0 -19
  193. package/node_modules/is-it-type/README.md +0 -102
  194. package/node_modules/is-it-type/changelog.md +0 -239
  195. package/node_modules/is-it-type/dist/cjs/is-it-type.js +0 -173
  196. package/node_modules/is-it-type/dist/cjs/is-it-type.js.map +0 -1
  197. package/node_modules/is-it-type/dist/cjs/is-it-type.min.js +0 -2
  198. package/node_modules/is-it-type/dist/cjs/is-it-type.min.js.map +0 -1
  199. package/node_modules/is-it-type/dist/esm/is-it-type.js +0 -143
  200. package/node_modules/is-it-type/dist/esm/is-it-type.js.map +0 -1
  201. package/node_modules/is-it-type/dist/esm/is-it-type.min.js +0 -2
  202. package/node_modules/is-it-type/dist/esm/is-it-type.min.js.map +0 -1
  203. package/node_modules/is-it-type/dist/esm/package.json +0 -3
  204. package/node_modules/is-it-type/dist/umd/is-it-type.js +0 -450
  205. package/node_modules/is-it-type/dist/umd/is-it-type.js.map +0 -1
  206. package/node_modules/is-it-type/dist/umd/is-it-type.min.js +0 -2
  207. package/node_modules/is-it-type/dist/umd/is-it-type.min.js.map +0 -1
  208. package/node_modules/is-it-type/es/index.js +0 -8
  209. package/node_modules/is-it-type/es/package.json +0 -3
  210. package/node_modules/is-it-type/index.js +0 -10
  211. package/node_modules/is-it-type/package.json +0 -87
  212. package/node_modules/is-it-type/src/index.js +0 -169
  213. package/node_modules/object-keys/.editorconfig +0 -13
  214. package/node_modules/object-keys/.eslintrc +0 -17
  215. package/node_modules/object-keys/.travis.yml +0 -277
  216. package/node_modules/object-keys/CHANGELOG.md +0 -232
  217. package/node_modules/object-keys/LICENSE +0 -21
  218. package/node_modules/object-keys/README.md +0 -76
  219. package/node_modules/object-keys/implementation.js +0 -122
  220. package/node_modules/object-keys/index.js +0 -32
  221. package/node_modules/object-keys/isArguments.js +0 -17
  222. package/node_modules/object-keys/package.json +0 -88
  223. package/node_modules/object-keys/test/index.js +0 -5
  224. package/node_modules/simple-invariant/License +0 -19
  225. package/node_modules/simple-invariant/README.md +0 -64
  226. package/node_modules/simple-invariant/changelog.md +0 -31
  227. package/node_modules/simple-invariant/index.js +0 -19
  228. package/node_modules/simple-invariant/package.json +0 -50
  229. package/node_modules/yauzl-promise/License +0 -19
  230. package/node_modules/yauzl-promise/README.md +0 -440
  231. package/node_modules/yauzl-promise/index.js +0 -10
  232. package/node_modules/yauzl-promise/lib/entry.js +0 -312
  233. package/node_modules/yauzl-promise/lib/index.js +0 -160
  234. package/node_modules/yauzl-promise/lib/reader.js +0 -289
  235. package/node_modules/yauzl-promise/lib/shared.js +0 -20
  236. package/node_modules/yauzl-promise/lib/utils.js +0 -105
  237. package/node_modules/yauzl-promise/lib/zip.js +0 -1224
  238. package/node_modules/yauzl-promise/package.json +0 -56
@@ -1,368 +0,0 @@
1
- // prettier-ignore
2
- /* eslint-disable */
3
- // @ts-nocheck
4
- /* auto-generated by NAPI-RS */
5
-
6
- const { createRequire } = require('node:module')
7
- require = createRequire(__filename)
8
-
9
- const { readFileSync } = require('node:fs')
10
- let nativeBinding = null
11
- const loadErrors = []
12
-
13
- const isMusl = () => {
14
- let musl = false
15
- if (process.platform === 'linux') {
16
- musl = isMuslFromFilesystem()
17
- if (musl === null) {
18
- musl = isMuslFromReport()
19
- }
20
- if (musl === null) {
21
- musl = isMuslFromChildProcess()
22
- }
23
- }
24
- return musl
25
- }
26
-
27
- const isFileMusl = (f) => f.includes('libc.musl-') || f.includes('ld-musl-')
28
-
29
- const isMuslFromFilesystem = () => {
30
- try {
31
- return readFileSync('/usr/bin/ldd', 'utf-8').includes('musl')
32
- } catch {
33
- return null
34
- }
35
- }
36
-
37
- const isMuslFromReport = () => {
38
- const report = typeof process.report.getReport === 'function' ? process.report.getReport() : null
39
- if (!report) {
40
- return null
41
- }
42
- if (report.header && report.header.glibcVersionRuntime) {
43
- return false
44
- }
45
- if (Array.isArray(report.sharedObjects)) {
46
- if (report.sharedObjects.some(isFileMusl)) {
47
- return true
48
- }
49
- }
50
- return false
51
- }
52
-
53
- const isMuslFromChildProcess = () => {
54
- try {
55
- return require('child_process').execSync('ldd --version', { encoding: 'utf8' }).includes('musl')
56
- } catch (e) {
57
- // If we reach this case, we don't know if the system is musl or not, so is better to just fallback to false
58
- return false
59
- }
60
- }
61
-
62
- function requireNative() {
63
- if (process.platform === 'android') {
64
- if (process.arch === 'arm64') {
65
- try {
66
- return require('./crc32.android-arm64.node')
67
- } catch (e) {
68
- loadErrors.push(e)
69
- }
70
- try {
71
- return require('@node-rs/crc32-android-arm64')
72
- } catch (e) {
73
- loadErrors.push(e)
74
- }
75
-
76
- } else if (process.arch === 'arm') {
77
- try {
78
- return require('./crc32.android-arm-eabi.node')
79
- } catch (e) {
80
- loadErrors.push(e)
81
- }
82
- try {
83
- return require('@node-rs/crc32-android-arm-eabi')
84
- } catch (e) {
85
- loadErrors.push(e)
86
- }
87
-
88
- } else {
89
- loadErrors.push(new Error(`Unsupported architecture on Android ${process.arch}`))
90
- }
91
- } else if (process.platform === 'win32') {
92
- if (process.arch === 'x64') {
93
- try {
94
- return require('./crc32.win32-x64-msvc.node')
95
- } catch (e) {
96
- loadErrors.push(e)
97
- }
98
- try {
99
- return require('@node-rs/crc32-win32-x64-msvc')
100
- } catch (e) {
101
- loadErrors.push(e)
102
- }
103
-
104
- } else if (process.arch === 'ia32') {
105
- try {
106
- return require('./crc32.win32-ia32-msvc.node')
107
- } catch (e) {
108
- loadErrors.push(e)
109
- }
110
- try {
111
- return require('@node-rs/crc32-win32-ia32-msvc')
112
- } catch (e) {
113
- loadErrors.push(e)
114
- }
115
-
116
- } else if (process.arch === 'arm64') {
117
- try {
118
- return require('./crc32.win32-arm64-msvc.node')
119
- } catch (e) {
120
- loadErrors.push(e)
121
- }
122
- try {
123
- return require('@node-rs/crc32-win32-arm64-msvc')
124
- } catch (e) {
125
- loadErrors.push(e)
126
- }
127
-
128
- } else {
129
- loadErrors.push(new Error(`Unsupported architecture on Windows: ${process.arch}`))
130
- }
131
- } else if (process.platform === 'darwin') {
132
- try {
133
- return require('./crc32.darwin-universal.node')
134
- } catch (e) {
135
- loadErrors.push(e)
136
- }
137
- try {
138
- return require('@node-rs/crc32-darwin-universal')
139
- } catch (e) {
140
- loadErrors.push(e)
141
- }
142
-
143
- if (process.arch === 'x64') {
144
- try {
145
- return require('./crc32.darwin-x64.node')
146
- } catch (e) {
147
- loadErrors.push(e)
148
- }
149
- try {
150
- return require('@node-rs/crc32-darwin-x64')
151
- } catch (e) {
152
- loadErrors.push(e)
153
- }
154
-
155
- } else if (process.arch === 'arm64') {
156
- try {
157
- return require('./crc32.darwin-arm64.node')
158
- } catch (e) {
159
- loadErrors.push(e)
160
- }
161
- try {
162
- return require('@node-rs/crc32-darwin-arm64')
163
- } catch (e) {
164
- loadErrors.push(e)
165
- }
166
-
167
- } else {
168
- loadErrors.push(new Error(`Unsupported architecture on macOS: ${process.arch}`))
169
- }
170
- } else if (process.platform === 'freebsd') {
171
- if (process.arch === 'x64') {
172
- try {
173
- return require('./crc32.freebsd-x64.node')
174
- } catch (e) {
175
- loadErrors.push(e)
176
- }
177
- try {
178
- return require('@node-rs/crc32-freebsd-x64')
179
- } catch (e) {
180
- loadErrors.push(e)
181
- }
182
-
183
- } else if (process.arch === 'arm64') {
184
- try {
185
- return require('./crc32.freebsd-arm64.node')
186
- } catch (e) {
187
- loadErrors.push(e)
188
- }
189
- try {
190
- return require('@node-rs/crc32-freebsd-arm64')
191
- } catch (e) {
192
- loadErrors.push(e)
193
- }
194
-
195
- } else {
196
- loadErrors.push(new Error(`Unsupported architecture on FreeBSD: ${process.arch}`))
197
- }
198
- } else if (process.platform === 'linux') {
199
- if (process.arch === 'x64') {
200
- if (isMusl()) {
201
- try {
202
- return require('./crc32.linux-x64-musl.node')
203
- } catch (e) {
204
- loadErrors.push(e)
205
- }
206
- try {
207
- return require('@node-rs/crc32-linux-x64-musl')
208
- } catch (e) {
209
- loadErrors.push(e)
210
- }
211
-
212
- } else {
213
- try {
214
- return require('./crc32.linux-x64-gnu.node')
215
- } catch (e) {
216
- loadErrors.push(e)
217
- }
218
- try {
219
- return require('@node-rs/crc32-linux-x64-gnu')
220
- } catch (e) {
221
- loadErrors.push(e)
222
- }
223
-
224
- }
225
- } else if (process.arch === 'arm64') {
226
- if (isMusl()) {
227
- try {
228
- return require('./crc32.linux-arm64-musl.node')
229
- } catch (e) {
230
- loadErrors.push(e)
231
- }
232
- try {
233
- return require('@node-rs/crc32-linux-arm64-musl')
234
- } catch (e) {
235
- loadErrors.push(e)
236
- }
237
-
238
- } else {
239
- try {
240
- return require('./crc32.linux-arm64-gnu.node')
241
- } catch (e) {
242
- loadErrors.push(e)
243
- }
244
- try {
245
- return require('@node-rs/crc32-linux-arm64-gnu')
246
- } catch (e) {
247
- loadErrors.push(e)
248
- }
249
-
250
- }
251
- } else if (process.arch === 'arm') {
252
- if (isMusl()) {
253
- try {
254
- return require('./crc32.linux-arm-musleabihf.node')
255
- } catch (e) {
256
- loadErrors.push(e)
257
- }
258
- try {
259
- return require('@node-rs/crc32-linux-arm-musleabihf')
260
- } catch (e) {
261
- loadErrors.push(e)
262
- }
263
-
264
- } else {
265
- try {
266
- return require('./crc32.linux-arm-gnueabihf.node')
267
- } catch (e) {
268
- loadErrors.push(e)
269
- }
270
- try {
271
- return require('@node-rs/crc32-linux-arm-gnueabihf')
272
- } catch (e) {
273
- loadErrors.push(e)
274
- }
275
-
276
- }
277
- } else if (process.arch === 'riscv64') {
278
- if (isMusl()) {
279
- try {
280
- return require('./crc32.linux-riscv64-musl.node')
281
- } catch (e) {
282
- loadErrors.push(e)
283
- }
284
- try {
285
- return require('@node-rs/crc32-linux-riscv64-musl')
286
- } catch (e) {
287
- loadErrors.push(e)
288
- }
289
-
290
- } else {
291
- try {
292
- return require('./crc32.linux-riscv64-gnu.node')
293
- } catch (e) {
294
- loadErrors.push(e)
295
- }
296
- try {
297
- return require('@node-rs/crc32-linux-riscv64-gnu')
298
- } catch (e) {
299
- loadErrors.push(e)
300
- }
301
-
302
- }
303
- } else if (process.arch === 'ppc64') {
304
- try {
305
- return require('./crc32.linux-ppc64-gnu.node')
306
- } catch (e) {
307
- loadErrors.push(e)
308
- }
309
- try {
310
- return require('@node-rs/crc32-linux-ppc64-gnu')
311
- } catch (e) {
312
- loadErrors.push(e)
313
- }
314
-
315
- } else if (process.arch === 's390x') {
316
- try {
317
- return require('./crc32.linux-s390x-gnu.node')
318
- } catch (e) {
319
- loadErrors.push(e)
320
- }
321
- try {
322
- return require('@node-rs/crc32-linux-s390x-gnu')
323
- } catch (e) {
324
- loadErrors.push(e)
325
- }
326
-
327
- } else {
328
- loadErrors.push(new Error(`Unsupported architecture on Linux: ${process.arch}`))
329
- }
330
- } else {
331
- loadErrors.push(new Error(`Unsupported OS: ${process.platform}, architecture: ${process.arch}`))
332
- }
333
- }
334
-
335
- nativeBinding = requireNative()
336
-
337
- if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
338
- try {
339
- nativeBinding = require('./crc32.wasi.cjs')
340
- } catch (err) {
341
- if (process.env.NAPI_RS_FORCE_WASI) {
342
- loadErrors.push(err)
343
- }
344
- }
345
- if (!nativeBinding) {
346
- try {
347
- nativeBinding = require('@node-rs/crc32-wasm32-wasi')
348
- } catch (err) {
349
- if (process.env.NAPI_RS_FORCE_WASI) {
350
- loadErrors.push(err)
351
- }
352
- }
353
- }
354
- }
355
-
356
- if (!nativeBinding) {
357
- if (loadErrors.length > 0) {
358
- // TODO Link to documentation with potential fixes
359
- // - The package owner could build/publish bindings for this arch
360
- // - The user may need to bundle the correct files
361
- // - The user may need to re-install node_modules to get new packages
362
- throw new Error('Failed to load native binding', { cause: loadErrors })
363
- }
364
- throw new Error(`Failed to load native binding`)
365
- }
366
-
367
- module.exports.crc32 = nativeBinding.crc32
368
- module.exports.crc32c = nativeBinding.crc32c
@@ -1,97 +0,0 @@
1
- {
2
- "name": "@node-rs/crc32",
3
- "version": "1.10.6",
4
- "description": "SIMD crc32",
5
- "keywords": [
6
- "SIMD",
7
- "NAPI",
8
- "napi-rs",
9
- "node-rs",
10
- "crc32",
11
- "crc32c"
12
- ],
13
- "author": "LongYinan <lynweklm@gmail.com>",
14
- "homepage": "https://github.com/napi-rs/node-rs",
15
- "license": "MIT",
16
- "main": "index.js",
17
- "typings": "index.d.ts",
18
- "browser": "browser.js",
19
- "files": [
20
- "index.js",
21
- "index.d.ts",
22
- "browser.js",
23
- "LICENSE"
24
- ],
25
- "napi": {
26
- "binaryName": "crc32",
27
- "targets": [
28
- "x86_64-apple-darwin",
29
- "aarch64-apple-darwin",
30
- "x86_64-pc-windows-msvc",
31
- "x86_64-unknown-linux-gnu",
32
- "aarch64-linux-android",
33
- "aarch64-unknown-linux-gnu",
34
- "aarch64-unknown-linux-musl",
35
- "aarch64-pc-windows-msvc",
36
- "armv7-unknown-linux-gnueabihf",
37
- "x86_64-unknown-linux-musl",
38
- "x86_64-unknown-freebsd",
39
- "i686-pc-windows-msvc",
40
- "armv7-linux-androideabi",
41
- "wasm32-wasip1-threads"
42
- ]
43
- },
44
- "engines": {
45
- "node": ">= 10"
46
- },
47
- "publishConfig": {
48
- "registry": "https://registry.npmjs.org/",
49
- "access": "public"
50
- },
51
- "repository": {
52
- "type": "git",
53
- "url": "git+https://github.com/napi-rs/node-rs.git"
54
- },
55
- "scripts": {
56
- "artifacts": "napi artifacts -d ../../artifacts",
57
- "bench": "cross-env NODE_ENV=production node --import @oxc-node/core/register benchmark/crc32.ts",
58
- "build": "napi build --platform --release",
59
- "build:debug": "napi build --platform",
60
- "prepublishOnly": "napi prepublish",
61
- "version": "napi version"
62
- },
63
- "bugs": {
64
- "url": "https://github.com/napi-rs/node-rs/issues"
65
- },
66
- "devDependencies": {
67
- "@napi-rs/cli": "^3.0.0-alpha.64",
68
- "@types/crc": "^4.0.0",
69
- "@types/sse4_crc32": "^7.0.3",
70
- "buffer": "^6.0.3",
71
- "crc": "^4.3.2",
72
- "cross-env": "^7.0.3",
73
- "sse4_crc32": "^7.0.0",
74
- "tinybench": "^3.0.0"
75
- },
76
- "funding": {
77
- "type": "github",
78
- "url": "https://github.com/sponsors/Brooooooklyn"
79
- },
80
- "gitHead": "83ca124b3e3968c945708136d6ff68d0e0549582",
81
- "optionalDependencies": {
82
- "@node-rs/crc32-darwin-x64": "1.10.6",
83
- "@node-rs/crc32-darwin-arm64": "1.10.6",
84
- "@node-rs/crc32-win32-x64-msvc": "1.10.6",
85
- "@node-rs/crc32-linux-x64-gnu": "1.10.6",
86
- "@node-rs/crc32-android-arm64": "1.10.6",
87
- "@node-rs/crc32-linux-arm64-gnu": "1.10.6",
88
- "@node-rs/crc32-linux-arm64-musl": "1.10.6",
89
- "@node-rs/crc32-win32-arm64-msvc": "1.10.6",
90
- "@node-rs/crc32-linux-arm-gnueabihf": "1.10.6",
91
- "@node-rs/crc32-linux-x64-musl": "1.10.6",
92
- "@node-rs/crc32-freebsd-x64": "1.10.6",
93
- "@node-rs/crc32-win32-ia32-msvc": "1.10.6",
94
- "@node-rs/crc32-android-arm-eabi": "1.10.6",
95
- "@node-rs/crc32-wasm32-wasi": "1.10.6"
96
- }
97
- }
@@ -1,3 +0,0 @@
1
- # `@node-rs/crc32-linux-x64-gnu`
2
-
3
- This is the **x86_64-unknown-linux-gnu** binary for `@node-rs/crc32`
@@ -1,43 +0,0 @@
1
- {
2
- "name": "@node-rs/crc32-linux-x64-gnu",
3
- "version": "1.10.6",
4
- "cpu": [
5
- "x64"
6
- ],
7
- "main": "crc32.linux-x64-gnu.node",
8
- "files": [
9
- "crc32.linux-x64-gnu.node"
10
- ],
11
- "description": "SIMD crc32",
12
- "keywords": [
13
- "SIMD",
14
- "NAPI",
15
- "napi-rs",
16
- "node-rs",
17
- "crc32",
18
- "crc32c"
19
- ],
20
- "author": "LongYinan <lynweklm@gmail.com>",
21
- "homepage": "https://github.com/napi-rs/node-rs",
22
- "license": "MIT",
23
- "engines": {
24
- "node": ">= 10"
25
- },
26
- "publishConfig": {
27
- "registry": "https://registry.npmjs.org/",
28
- "access": "public"
29
- },
30
- "repository": {
31
- "type": "git",
32
- "url": "git+https://github.com/napi-rs/node-rs.git"
33
- },
34
- "bugs": {
35
- "url": "https://github.com/napi-rs/node-rs/issues"
36
- },
37
- "os": [
38
- "linux"
39
- ],
40
- "libc": [
41
- "glibc"
42
- ]
43
- }
@@ -1,3 +0,0 @@
1
- # `@node-rs/crc32-linux-x64-musl`
2
-
3
- This is the **x86_64-unknown-linux-musl** binary for `@node-rs/crc32`
@@ -1,43 +0,0 @@
1
- {
2
- "name": "@node-rs/crc32-linux-x64-musl",
3
- "version": "1.10.6",
4
- "cpu": [
5
- "x64"
6
- ],
7
- "main": "crc32.linux-x64-musl.node",
8
- "files": [
9
- "crc32.linux-x64-musl.node"
10
- ],
11
- "description": "SIMD crc32",
12
- "keywords": [
13
- "SIMD",
14
- "NAPI",
15
- "napi-rs",
16
- "node-rs",
17
- "crc32",
18
- "crc32c"
19
- ],
20
- "author": "LongYinan <lynweklm@gmail.com>",
21
- "homepage": "https://github.com/napi-rs/node-rs",
22
- "license": "MIT",
23
- "engines": {
24
- "node": ">= 10"
25
- },
26
- "publishConfig": {
27
- "registry": "https://registry.npmjs.org/",
28
- "access": "public"
29
- },
30
- "repository": {
31
- "type": "git",
32
- "url": "git+https://github.com/napi-rs/node-rs.git"
33
- },
34
- "bugs": {
35
- "url": "https://github.com/napi-rs/node-rs/issues"
36
- },
37
- "os": [
38
- "linux"
39
- ],
40
- "libc": [
41
- "musl"
42
- ]
43
- }
@@ -1,24 +0,0 @@
1
- {
2
- "root": true,
3
-
4
- "extends": "@ljharb",
5
-
6
- "rules": {
7
- "complexity": 0,
8
- "id-length": 0,
9
- "new-cap": ["error", {
10
- "capIsNewExceptions": [
11
- "GetIntrinsic",
12
- ],
13
- }],
14
- },
15
-
16
- "overrides": [
17
- {
18
- "files": "test/**",
19
- "rules": {
20
- "max-lines-per-function": "off",
21
- },
22
- },
23
- ],
24
- }
@@ -1,12 +0,0 @@
1
- # These are supported funding model platforms
2
-
3
- github: [ljharb]
4
- patreon: # Replace with a single Patreon username
5
- open_collective: # Replace with a single Open Collective username
6
- ko_fi: # Replace with a single Ko-fi username
7
- tidelift: npm/define-data-property
8
- community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9
- liberapay: # Replace with a single Liberapay username
10
- issuehunt: # Replace with a single IssueHunt username
11
- otechie: # Replace with a single Otechie username
12
- custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
@@ -1,13 +0,0 @@
1
- {
2
- "all": true,
3
- "check-coverage": false,
4
- "reporter": ["text-summary", "text", "html", "json"],
5
- "lines": 86,
6
- "statements": 85.93,
7
- "functions": 82.43,
8
- "branches": 76.06,
9
- "exclude": [
10
- "coverage",
11
- "test"
12
- ]
13
- }
@@ -1,70 +0,0 @@
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
- ## [v1.1.4](https://github.com/ljharb/define-data-property/compare/v1.1.3...v1.1.4) - 2024-02-13
9
-
10
- ### Commits
11
-
12
- - [Refactor] use `es-define-property` [`90f2f4c`](https://github.com/ljharb/define-data-property/commit/90f2f4cc20298401e71c28e1e08888db12021453)
13
- - [Dev Deps] update `@types/object.getownpropertydescriptors` [`cd929d9`](https://github.com/ljharb/define-data-property/commit/cd929d9a04f5f2fdcfa9d5be140940b91a083153)
14
-
15
- ## [v1.1.3](https://github.com/ljharb/define-data-property/compare/v1.1.2...v1.1.3) - 2024-02-12
16
-
17
- ### Commits
18
-
19
- - [types] hand-write d.ts instead of emitting it [`0cbc988`](https://github.com/ljharb/define-data-property/commit/0cbc988203c105f2d97948327c7167ebd33bd318)
20
- - [meta] simplify `exports` [`690781e`](https://github.com/ljharb/define-data-property/commit/690781eed28bbf2d6766237efda0ba6dd591609e)
21
- - [Dev Deps] update `hasown`; clean up DT packages [`6cdfd1c`](https://github.com/ljharb/define-data-property/commit/6cdfd1cb2d91d791bfd18cda5d5cab232fd5d8fc)
22
- - [actions] cleanup [`3142bc6`](https://github.com/ljharb/define-data-property/commit/3142bc6a4bc406a51f5b04f31e98562a27f35ffd)
23
- - [meta] add `funding` [`8474423`](https://github.com/ljharb/define-data-property/commit/847442391a79779af3e0f1bf0b5bb923552b7804)
24
- - [Deps] update `get-intrinsic` [`3e9be00`](https://github.com/ljharb/define-data-property/commit/3e9be00e07784ba34e7c77d8bc0fdbc832ad61de)
25
-
26
- ## [v1.1.2](https://github.com/ljharb/define-data-property/compare/v1.1.1...v1.1.2) - 2024-02-05
27
-
28
- ### Commits
29
-
30
- - [Dev Deps] update @types packages, `object-inspect`, `tape`, `typescript` [`df41bf8`](https://github.com/ljharb/define-data-property/commit/df41bf84ca3456be6226055caab44e38e3a7fd2f)
31
- - [Dev Deps] update DT packages, `aud`, `npmignore`, `tape`, typescript` [`fab0e4e`](https://github.com/ljharb/define-data-property/commit/fab0e4ec709ee02b79f42d6db3ee5f26e0a34b8a)
32
- - [Dev Deps] use `hasown` instead of `has` [`aa51ef9`](https://github.com/ljharb/define-data-property/commit/aa51ef93f6403d49d9bb72a807bcdb6e418978c0)
33
- - [Refactor] use `es-errors`, so things that only need those do not need `get-intrinsic` [`d89be50`](https://github.com/ljharb/define-data-property/commit/d89be50571175888d391238605122679f7e65ffc)
34
- - [Deps] update `has-property-descriptors` [`7af887c`](https://github.com/ljharb/define-data-property/commit/7af887c9083b59b195b0079e04815cfed9fcee2b)
35
- - [Deps] update `get-intrinsic` [`bb8728e`](https://github.com/ljharb/define-data-property/commit/bb8728ec42cd998505a7157ae24853a560c20646)
36
-
37
- ## [v1.1.1](https://github.com/ljharb/define-data-property/compare/v1.1.0...v1.1.1) - 2023-10-12
38
-
39
- ### Commits
40
-
41
- - [Tests] fix tests in ES3 engines [`5c6920e`](https://github.com/ljharb/define-data-property/commit/5c6920edd1f52f675b02f417e539c28135b43f94)
42
- - [Dev Deps] update `@types/es-value-fixtures`, `@types/for-each`, `@types/gopd`, `@types/has-property-descriptors`, `tape`, `typescript` [`7d82dfc`](https://github.com/ljharb/define-data-property/commit/7d82dfc20f778b4465bba06335dd53f6f431aea3)
43
- - [Fix] IE 8 has a broken `Object.defineProperty` [`0672e1a`](https://github.com/ljharb/define-data-property/commit/0672e1af2a9fcc787e7c23b96dea60d290df5548)
44
- - [meta] emit types on prepack [`73acb1f`](https://github.com/ljharb/define-data-property/commit/73acb1f903c21b314ec7156bf10f73c7910530c0)
45
- - [Dev Deps] update `tape`, `typescript` [`9489a77`](https://github.com/ljharb/define-data-property/commit/9489a7738bf2ecf0ac71d5b78ec4ca6ad7ba0142)
46
-
47
- ## [v1.1.0](https://github.com/ljharb/define-data-property/compare/v1.0.1...v1.1.0) - 2023-09-13
48
-
49
- ### Commits
50
-
51
- - [New] add `loose` arg [`155235a`](https://github.com/ljharb/define-data-property/commit/155235a4c4d7741f6de01cd87c99599a56654b72)
52
- - [New] allow `null` to be passed for the non* args [`7d2fa5f`](https://github.com/ljharb/define-data-property/commit/7d2fa5f06be0392736c13b126f7cd38979f34792)
53
-
54
- ## [v1.0.1](https://github.com/ljharb/define-data-property/compare/v1.0.0...v1.0.1) - 2023-09-12
55
-
56
- ### Commits
57
-
58
- - [meta] add TS types [`43d763c`](https://github.com/ljharb/define-data-property/commit/43d763c6c883f652de1c9c02ef6216ee507ffa69)
59
- - [Dev Deps] update `@types/tape`, `typescript` [`f444985`](https://github.com/ljharb/define-data-property/commit/f444985811c36f3e6448a03ad2f9b7898917f4c7)
60
- - [meta] add `safe-publish-latest`, [`172bb10`](https://github.com/ljharb/define-data-property/commit/172bb10890896ebb160e64398f6ee55760107bee)
61
-
62
- ## v1.0.0 - 2023-09-12
63
-
64
- ### Commits
65
-
66
- - Initial implementation, tests, readme [`5b43d6b`](https://github.com/ljharb/define-data-property/commit/5b43d6b44e675a904810467a7d4e0adb7efc3196)
67
- - Initial commit [`35e577a`](https://github.com/ljharb/define-data-property/commit/35e577a6ba59a98befa97776d70d90f3bea9009d)
68
- - npm init [`82a0a04`](https://github.com/ljharb/define-data-property/commit/82a0a04a321ca7de220af02d41e2745e8a9962ed)
69
- - Only apps should have lockfiles [`96df244`](https://github.com/ljharb/define-data-property/commit/96df244a3c6f426f9a2437be825d1c6f5dd7158e)
70
- - [meta] use `npmignore` to autogenerate an npmignore file [`a87ff18`](https://github.com/ljharb/define-data-property/commit/a87ff18cb79e14c2eb5720486c4759fd9a189375)