@spikard/node 0.13.0 → 0.15.2

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/index.js CHANGED
@@ -75,10 +75,10 @@ function requireNative() {
75
75
  loadErrors.push(e)
76
76
  }
77
77
  try {
78
- const binding = require('@spikard/node-native-android-arm64')
79
- const bindingPackageVersion = require('@spikard/node-native-android-arm64/package.json').version
80
- if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
81
- throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
78
+ const binding = require('@spikard/node-android-arm64')
79
+ const bindingPackageVersion = require('@spikard/node-android-arm64/package.json').version
80
+ if (bindingPackageVersion !== '0.15.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
81
+ throw new Error(`Native binding package version mismatch, expected 0.15.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
82
82
  }
83
83
  return binding
84
84
  } catch (e) {
@@ -91,10 +91,10 @@ function requireNative() {
91
91
  loadErrors.push(e)
92
92
  }
93
93
  try {
94
- const binding = require('@spikard/node-native-android-arm-eabi')
95
- const bindingPackageVersion = require('@spikard/node-native-android-arm-eabi/package.json').version
96
- if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
97
- throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
94
+ const binding = require('@spikard/node-android-arm-eabi')
95
+ const bindingPackageVersion = require('@spikard/node-android-arm-eabi/package.json').version
96
+ if (bindingPackageVersion !== '0.15.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
97
+ throw new Error(`Native binding package version mismatch, expected 0.15.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
98
98
  }
99
99
  return binding
100
100
  } catch (e) {
@@ -112,10 +112,10 @@ function requireNative() {
112
112
  loadErrors.push(e)
113
113
  }
114
114
  try {
115
- const binding = require('@spikard/node-native-win32-x64-gnu')
116
- const bindingPackageVersion = require('@spikard/node-native-win32-x64-gnu/package.json').version
117
- if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
118
- throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
115
+ const binding = require('@spikard/node-win32-x64-gnu')
116
+ const bindingPackageVersion = require('@spikard/node-win32-x64-gnu/package.json').version
117
+ if (bindingPackageVersion !== '0.15.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
118
+ throw new Error(`Native binding package version mismatch, expected 0.15.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
119
119
  }
120
120
  return binding
121
121
  } catch (e) {
@@ -128,10 +128,10 @@ function requireNative() {
128
128
  loadErrors.push(e)
129
129
  }
130
130
  try {
131
- const binding = require('@spikard/node-native-win32-x64-msvc')
132
- const bindingPackageVersion = require('@spikard/node-native-win32-x64-msvc/package.json').version
133
- if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
134
- throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
131
+ const binding = require('@spikard/node-win32-x64-msvc')
132
+ const bindingPackageVersion = require('@spikard/node-win32-x64-msvc/package.json').version
133
+ if (bindingPackageVersion !== '0.15.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
134
+ throw new Error(`Native binding package version mismatch, expected 0.15.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
135
135
  }
136
136
  return binding
137
137
  } catch (e) {
@@ -145,10 +145,10 @@ function requireNative() {
145
145
  loadErrors.push(e)
146
146
  }
147
147
  try {
148
- const binding = require('@spikard/node-native-win32-ia32-msvc')
149
- const bindingPackageVersion = require('@spikard/node-native-win32-ia32-msvc/package.json').version
150
- if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
151
- throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
148
+ const binding = require('@spikard/node-win32-ia32-msvc')
149
+ const bindingPackageVersion = require('@spikard/node-win32-ia32-msvc/package.json').version
150
+ if (bindingPackageVersion !== '0.15.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
151
+ throw new Error(`Native binding package version mismatch, expected 0.15.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
152
152
  }
153
153
  return binding
154
154
  } catch (e) {
@@ -161,10 +161,10 @@ function requireNative() {
161
161
  loadErrors.push(e)
162
162
  }
163
163
  try {
164
- const binding = require('@spikard/node-native-win32-arm64-msvc')
165
- const bindingPackageVersion = require('@spikard/node-native-win32-arm64-msvc/package.json').version
166
- if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
167
- throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
164
+ const binding = require('@spikard/node-win32-arm64-msvc')
165
+ const bindingPackageVersion = require('@spikard/node-win32-arm64-msvc/package.json').version
166
+ if (bindingPackageVersion !== '0.15.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
167
+ throw new Error(`Native binding package version mismatch, expected 0.15.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
168
168
  }
169
169
  return binding
170
170
  } catch (e) {
@@ -180,10 +180,10 @@ function requireNative() {
180
180
  loadErrors.push(e)
181
181
  }
182
182
  try {
183
- const binding = require('@spikard/node-native-darwin-universal')
184
- const bindingPackageVersion = require('@spikard/node-native-darwin-universal/package.json').version
185
- if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
186
- throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
183
+ const binding = require('@spikard/node-darwin-universal')
184
+ const bindingPackageVersion = require('@spikard/node-darwin-universal/package.json').version
185
+ if (bindingPackageVersion !== '0.15.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
186
+ throw new Error(`Native binding package version mismatch, expected 0.15.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
187
187
  }
188
188
  return binding
189
189
  } catch (e) {
@@ -196,10 +196,10 @@ function requireNative() {
196
196
  loadErrors.push(e)
197
197
  }
198
198
  try {
199
- const binding = require('@spikard/node-native-darwin-x64')
200
- const bindingPackageVersion = require('@spikard/node-native-darwin-x64/package.json').version
201
- if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
202
- throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
199
+ const binding = require('@spikard/node-darwin-x64')
200
+ const bindingPackageVersion = require('@spikard/node-darwin-x64/package.json').version
201
+ if (bindingPackageVersion !== '0.15.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
202
+ throw new Error(`Native binding package version mismatch, expected 0.15.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
203
203
  }
204
204
  return binding
205
205
  } catch (e) {
@@ -212,10 +212,10 @@ function requireNative() {
212
212
  loadErrors.push(e)
213
213
  }
214
214
  try {
215
- const binding = require('@spikard/node-native-darwin-arm64')
216
- const bindingPackageVersion = require('@spikard/node-native-darwin-arm64/package.json').version
217
- if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
218
- throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
215
+ const binding = require('@spikard/node-darwin-arm64')
216
+ const bindingPackageVersion = require('@spikard/node-darwin-arm64/package.json').version
217
+ if (bindingPackageVersion !== '0.15.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
218
+ throw new Error(`Native binding package version mismatch, expected 0.15.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
219
219
  }
220
220
  return binding
221
221
  } catch (e) {
@@ -232,10 +232,10 @@ function requireNative() {
232
232
  loadErrors.push(e)
233
233
  }
234
234
  try {
235
- const binding = require('@spikard/node-native-freebsd-x64')
236
- const bindingPackageVersion = require('@spikard/node-native-freebsd-x64/package.json').version
237
- if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
238
- throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
235
+ const binding = require('@spikard/node-freebsd-x64')
236
+ const bindingPackageVersion = require('@spikard/node-freebsd-x64/package.json').version
237
+ if (bindingPackageVersion !== '0.15.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
238
+ throw new Error(`Native binding package version mismatch, expected 0.15.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
239
239
  }
240
240
  return binding
241
241
  } catch (e) {
@@ -248,10 +248,10 @@ function requireNative() {
248
248
  loadErrors.push(e)
249
249
  }
250
250
  try {
251
- const binding = require('@spikard/node-native-freebsd-arm64')
252
- const bindingPackageVersion = require('@spikard/node-native-freebsd-arm64/package.json').version
253
- if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
254
- throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
251
+ const binding = require('@spikard/node-freebsd-arm64')
252
+ const bindingPackageVersion = require('@spikard/node-freebsd-arm64/package.json').version
253
+ if (bindingPackageVersion !== '0.15.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
254
+ throw new Error(`Native binding package version mismatch, expected 0.15.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
255
255
  }
256
256
  return binding
257
257
  } catch (e) {
@@ -269,10 +269,10 @@ function requireNative() {
269
269
  loadErrors.push(e)
270
270
  }
271
271
  try {
272
- const binding = require('@spikard/node-native-linux-x64-musl')
273
- const bindingPackageVersion = require('@spikard/node-native-linux-x64-musl/package.json').version
274
- if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
275
- throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
272
+ const binding = require('@spikard/node-linux-x64-musl')
273
+ const bindingPackageVersion = require('@spikard/node-linux-x64-musl/package.json').version
274
+ if (bindingPackageVersion !== '0.15.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
275
+ throw new Error(`Native binding package version mismatch, expected 0.15.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
276
276
  }
277
277
  return binding
278
278
  } catch (e) {
@@ -285,10 +285,10 @@ function requireNative() {
285
285
  loadErrors.push(e)
286
286
  }
287
287
  try {
288
- const binding = require('@spikard/node-native-linux-x64-gnu')
289
- const bindingPackageVersion = require('@spikard/node-native-linux-x64-gnu/package.json').version
290
- if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
291
- throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
288
+ const binding = require('@spikard/node-linux-x64-gnu')
289
+ const bindingPackageVersion = require('@spikard/node-linux-x64-gnu/package.json').version
290
+ if (bindingPackageVersion !== '0.15.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
291
+ throw new Error(`Native binding package version mismatch, expected 0.15.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
292
292
  }
293
293
  return binding
294
294
  } catch (e) {
@@ -303,10 +303,10 @@ function requireNative() {
303
303
  loadErrors.push(e)
304
304
  }
305
305
  try {
306
- const binding = require('@spikard/node-native-linux-arm64-musl')
307
- const bindingPackageVersion = require('@spikard/node-native-linux-arm64-musl/package.json').version
308
- if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
309
- throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
306
+ const binding = require('@spikard/node-linux-arm64-musl')
307
+ const bindingPackageVersion = require('@spikard/node-linux-arm64-musl/package.json').version
308
+ if (bindingPackageVersion !== '0.15.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
309
+ throw new Error(`Native binding package version mismatch, expected 0.15.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
310
310
  }
311
311
  return binding
312
312
  } catch (e) {
@@ -319,10 +319,10 @@ function requireNative() {
319
319
  loadErrors.push(e)
320
320
  }
321
321
  try {
322
- const binding = require('@spikard/node-native-linux-arm64-gnu')
323
- const bindingPackageVersion = require('@spikard/node-native-linux-arm64-gnu/package.json').version
324
- if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
325
- throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
322
+ const binding = require('@spikard/node-linux-arm64-gnu')
323
+ const bindingPackageVersion = require('@spikard/node-linux-arm64-gnu/package.json').version
324
+ if (bindingPackageVersion !== '0.15.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
325
+ throw new Error(`Native binding package version mismatch, expected 0.15.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
326
326
  }
327
327
  return binding
328
328
  } catch (e) {
@@ -337,10 +337,10 @@ function requireNative() {
337
337
  loadErrors.push(e)
338
338
  }
339
339
  try {
340
- const binding = require('@spikard/node-native-linux-arm-musleabihf')
341
- const bindingPackageVersion = require('@spikard/node-native-linux-arm-musleabihf/package.json').version
342
- if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
343
- throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
340
+ const binding = require('@spikard/node-linux-arm-musleabihf')
341
+ const bindingPackageVersion = require('@spikard/node-linux-arm-musleabihf/package.json').version
342
+ if (bindingPackageVersion !== '0.15.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
343
+ throw new Error(`Native binding package version mismatch, expected 0.15.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
344
344
  }
345
345
  return binding
346
346
  } catch (e) {
@@ -353,10 +353,10 @@ function requireNative() {
353
353
  loadErrors.push(e)
354
354
  }
355
355
  try {
356
- const binding = require('@spikard/node-native-linux-arm-gnueabihf')
357
- const bindingPackageVersion = require('@spikard/node-native-linux-arm-gnueabihf/package.json').version
358
- if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
359
- throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
356
+ const binding = require('@spikard/node-linux-arm-gnueabihf')
357
+ const bindingPackageVersion = require('@spikard/node-linux-arm-gnueabihf/package.json').version
358
+ if (bindingPackageVersion !== '0.15.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
359
+ throw new Error(`Native binding package version mismatch, expected 0.15.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
360
360
  }
361
361
  return binding
362
362
  } catch (e) {
@@ -371,10 +371,10 @@ function requireNative() {
371
371
  loadErrors.push(e)
372
372
  }
373
373
  try {
374
- const binding = require('@spikard/node-native-linux-loong64-musl')
375
- const bindingPackageVersion = require('@spikard/node-native-linux-loong64-musl/package.json').version
376
- if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
377
- throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
374
+ const binding = require('@spikard/node-linux-loong64-musl')
375
+ const bindingPackageVersion = require('@spikard/node-linux-loong64-musl/package.json').version
376
+ if (bindingPackageVersion !== '0.15.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
377
+ throw new Error(`Native binding package version mismatch, expected 0.15.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
378
378
  }
379
379
  return binding
380
380
  } catch (e) {
@@ -387,10 +387,10 @@ function requireNative() {
387
387
  loadErrors.push(e)
388
388
  }
389
389
  try {
390
- const binding = require('@spikard/node-native-linux-loong64-gnu')
391
- const bindingPackageVersion = require('@spikard/node-native-linux-loong64-gnu/package.json').version
392
- if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
393
- throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
390
+ const binding = require('@spikard/node-linux-loong64-gnu')
391
+ const bindingPackageVersion = require('@spikard/node-linux-loong64-gnu/package.json').version
392
+ if (bindingPackageVersion !== '0.15.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
393
+ throw new Error(`Native binding package version mismatch, expected 0.15.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
394
394
  }
395
395
  return binding
396
396
  } catch (e) {
@@ -405,10 +405,10 @@ function requireNative() {
405
405
  loadErrors.push(e)
406
406
  }
407
407
  try {
408
- const binding = require('@spikard/node-native-linux-riscv64-musl')
409
- const bindingPackageVersion = require('@spikard/node-native-linux-riscv64-musl/package.json').version
410
- if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
411
- throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
408
+ const binding = require('@spikard/node-linux-riscv64-musl')
409
+ const bindingPackageVersion = require('@spikard/node-linux-riscv64-musl/package.json').version
410
+ if (bindingPackageVersion !== '0.15.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
411
+ throw new Error(`Native binding package version mismatch, expected 0.15.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
412
412
  }
413
413
  return binding
414
414
  } catch (e) {
@@ -421,10 +421,10 @@ function requireNative() {
421
421
  loadErrors.push(e)
422
422
  }
423
423
  try {
424
- const binding = require('@spikard/node-native-linux-riscv64-gnu')
425
- const bindingPackageVersion = require('@spikard/node-native-linux-riscv64-gnu/package.json').version
426
- if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
427
- throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
424
+ const binding = require('@spikard/node-linux-riscv64-gnu')
425
+ const bindingPackageVersion = require('@spikard/node-linux-riscv64-gnu/package.json').version
426
+ if (bindingPackageVersion !== '0.15.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
427
+ throw new Error(`Native binding package version mismatch, expected 0.15.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
428
428
  }
429
429
  return binding
430
430
  } catch (e) {
@@ -438,10 +438,10 @@ function requireNative() {
438
438
  loadErrors.push(e)
439
439
  }
440
440
  try {
441
- const binding = require('@spikard/node-native-linux-ppc64-gnu')
442
- const bindingPackageVersion = require('@spikard/node-native-linux-ppc64-gnu/package.json').version
443
- if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
444
- throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
441
+ const binding = require('@spikard/node-linux-ppc64-gnu')
442
+ const bindingPackageVersion = require('@spikard/node-linux-ppc64-gnu/package.json').version
443
+ if (bindingPackageVersion !== '0.15.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
444
+ throw new Error(`Native binding package version mismatch, expected 0.15.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
445
445
  }
446
446
  return binding
447
447
  } catch (e) {
@@ -454,10 +454,10 @@ function requireNative() {
454
454
  loadErrors.push(e)
455
455
  }
456
456
  try {
457
- const binding = require('@spikard/node-native-linux-s390x-gnu')
458
- const bindingPackageVersion = require('@spikard/node-native-linux-s390x-gnu/package.json').version
459
- if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
460
- throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
457
+ const binding = require('@spikard/node-linux-s390x-gnu')
458
+ const bindingPackageVersion = require('@spikard/node-linux-s390x-gnu/package.json').version
459
+ if (bindingPackageVersion !== '0.15.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
460
+ throw new Error(`Native binding package version mismatch, expected 0.15.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
461
461
  }
462
462
  return binding
463
463
  } catch (e) {
@@ -474,10 +474,10 @@ function requireNative() {
474
474
  loadErrors.push(e)
475
475
  }
476
476
  try {
477
- const binding = require('@spikard/node-native-openharmony-arm64')
478
- const bindingPackageVersion = require('@spikard/node-native-openharmony-arm64/package.json').version
479
- if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
480
- throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
477
+ const binding = require('@spikard/node-openharmony-arm64')
478
+ const bindingPackageVersion = require('@spikard/node-openharmony-arm64/package.json').version
479
+ if (bindingPackageVersion !== '0.15.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
480
+ throw new Error(`Native binding package version mismatch, expected 0.15.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
481
481
  }
482
482
  return binding
483
483
  } catch (e) {
@@ -490,10 +490,10 @@ function requireNative() {
490
490
  loadErrors.push(e)
491
491
  }
492
492
  try {
493
- const binding = require('@spikard/node-native-openharmony-x64')
494
- const bindingPackageVersion = require('@spikard/node-native-openharmony-x64/package.json').version
495
- if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
496
- throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
493
+ const binding = require('@spikard/node-openharmony-x64')
494
+ const bindingPackageVersion = require('@spikard/node-openharmony-x64/package.json').version
495
+ if (bindingPackageVersion !== '0.15.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
496
+ throw new Error(`Native binding package version mismatch, expected 0.15.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
497
497
  }
498
498
  return binding
499
499
  } catch (e) {
@@ -506,10 +506,10 @@ function requireNative() {
506
506
  loadErrors.push(e)
507
507
  }
508
508
  try {
509
- const binding = require('@spikard/node-native-openharmony-arm')
510
- const bindingPackageVersion = require('@spikard/node-native-openharmony-arm/package.json').version
511
- if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
512
- throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
509
+ const binding = require('@spikard/node-openharmony-arm')
510
+ const bindingPackageVersion = require('@spikard/node-openharmony-arm/package.json').version
511
+ if (bindingPackageVersion !== '0.15.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
512
+ throw new Error(`Native binding package version mismatch, expected 0.15.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
513
513
  }
514
514
  return binding
515
515
  } catch (e) {
@@ -538,7 +538,7 @@ if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
538
538
  }
539
539
  if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
540
540
  try {
541
- wasiBinding = require('@spikard/node-native-wasm32-wasi')
541
+ wasiBinding = require('@spikard/node-wasm32-wasi')
542
542
  nativeBinding = wasiBinding
543
543
  } catch (err) {
544
544
  if (process.env.NAPI_RS_FORCE_WASI) {
@@ -576,17 +576,40 @@ if (!nativeBinding) {
576
576
  }
577
577
 
578
578
  module.exports = nativeBinding
579
- module.exports.GrpcMessageStream = nativeBinding.GrpcMessageStream
580
- module.exports.SseEvent = nativeBinding.SseEvent
581
- module.exports.SseEvent = nativeBinding.SseEvent
582
- module.exports.SseStream = nativeBinding.SseStream
583
- module.exports.SseStream = nativeBinding.SseStream
579
+ module.exports.GraphQLRouteConfig = nativeBinding.GraphQLRouteConfig
580
+ module.exports.JsGraphQLRouteConfig = nativeBinding.JsGraphQLRouteConfig
581
+ module.exports.JsGraphQlErrorInfo = nativeBinding.JsGraphQlErrorInfo
582
+ module.exports.JsGraphQLErrorInfo = nativeBinding.JsGraphQLErrorInfo
584
583
  module.exports.TestClient = nativeBinding.TestClient
585
- module.exports.TestResponse = nativeBinding.TestResponse
584
+ module.exports.JsTestClient = nativeBinding.JsTestClient
585
+ module.exports.backgroundJobMetadataDefault = nativeBinding.backgroundJobMetadataDefault
586
+ module.exports.backgroundTaskConfigDefault = nativeBinding.backgroundTaskConfigDefault
587
+ module.exports.compressionConfigDefault = nativeBinding.compressionConfigDefault
588
+ module.exports.corsConfigDefault = nativeBinding.corsConfigDefault
589
+ module.exports.fullSchemaConfigDefault = nativeBinding.fullSchemaConfigDefault
590
+ module.exports.grpcConfigDefault = nativeBinding.grpcConfigDefault
591
+ module.exports.jsonRpcConfigDefault = nativeBinding.jsonRpcConfigDefault
592
+ module.exports.Method = nativeBinding.Method
593
+ module.exports.JsMethod = nativeBinding.JsMethod
594
+ module.exports.openApiConfigDefault = nativeBinding.openApiConfigDefault
595
+ module.exports.problemDetailsBadRequest = nativeBinding.problemDetailsBadRequest
596
+ module.exports.problemDetailsInternalServerError = nativeBinding.problemDetailsInternalServerError
597
+ module.exports.problemDetailsMethodNotAllowed = nativeBinding.problemDetailsMethodNotAllowed
598
+ module.exports.problemDetailsNotFound = nativeBinding.problemDetailsNotFound
599
+ module.exports.problemDetailsWithDetail = nativeBinding.problemDetailsWithDetail
600
+ module.exports.problemDetailsWithInstance = nativeBinding.problemDetailsWithInstance
601
+ module.exports.queryMutationConfigDefault = nativeBinding.queryMutationConfigDefault
602
+ module.exports.queryOnlyConfigDefault = nativeBinding.queryOnlyConfigDefault
603
+ module.exports.rateLimitConfigDefault = nativeBinding.rateLimitConfigDefault
604
+ module.exports.responseDefault = nativeBinding.responseDefault
605
+ module.exports.schemaConfigDefault = nativeBinding.schemaConfigDefault
606
+ module.exports.schemaFull = nativeBinding.schemaFull
607
+ module.exports.schemaQueryMutation = nativeBinding.schemaQueryMutation
608
+ module.exports.schemaQueryOnly = nativeBinding.schemaQueryOnly
609
+ module.exports.serverConfigDefault = nativeBinding.serverConfigDefault
610
+ module.exports.SnapshotError = nativeBinding.SnapshotError
611
+ module.exports.JsSnapshotError = nativeBinding.JsSnapshotError
612
+ module.exports.sseEventWithId = nativeBinding.sseEventWithId
613
+ module.exports.sseEventWithRetry = nativeBinding.sseEventWithRetry
586
614
  module.exports.WebSocketMessage = nativeBinding.WebSocketMessage
587
- module.exports.WebSocketMessage = nativeBinding.WebSocketMessage
588
- module.exports.WebSocketTestConnection = nativeBinding.WebSocketTestConnection
589
- module.exports.WebSocketTestConnection = nativeBinding.WebSocketTestConnection
590
- module.exports.backgroundRun = nativeBinding.backgroundRun
591
- module.exports.createStreamingHandle = nativeBinding.createStreamingHandle
592
- module.exports.runServer = nativeBinding.runServer
615
+ module.exports.JsWebSocketMessage = nativeBinding.JsWebSocketMessage
package/package.json CHANGED
@@ -1,88 +1,39 @@
1
1
  {
2
2
  "name": "@spikard/node",
3
- "version": "0.13.0",
4
- "description": "High-performance Node.js HTTP framework with Rust core. Type-safe routing, validation, middleware, and testing via napi-rs bindings.",
5
- "main": "dist/index.js",
6
- "module": "dist/index.mjs",
7
- "types": "dist/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "types": "./dist/index.d.ts",
11
- "import": "./dist/index.mjs",
12
- "require": "./dist/index.js"
13
- }
14
- },
15
- "keywords": [
16
- "http",
17
- "framework",
18
- "typescript",
19
- "nodejs",
20
- "bun",
21
- "rust",
22
- "napi",
23
- "performance",
24
- "validation",
25
- "testing",
26
- "type-safe",
27
- "axum",
28
- "tower",
29
- "web",
30
- "api",
31
- "rest"
32
- ],
33
- "author": {
34
- "name": "Na'aman Hirschfeld",
35
- "email": "nhirschfeld@gmail.com"
36
- },
3
+ "version": "0.15.2",
4
+ "description": "Rust-centric multi-language HTTP framework with polyglot bindings",
5
+ "license": "MIT",
37
6
  "repository": {
38
7
  "type": "git",
39
- "url": "https://github.com/Goldziher/spikard"
8
+ "url": "git+https://github.com/Goldziher/spikard.git"
40
9
  },
41
- "homepage": "https://github.com/Goldziher/spikard",
42
- "bugs": {
43
- "url": "https://github.com/Goldziher/spikard/issues"
44
- },
45
- "license": "MIT",
46
10
  "files": [
47
- "dist",
48
- "index.d.ts",
49
11
  "index.js",
50
- "config.d.ts",
51
- "*.node",
52
- "README.md",
53
- "LICENSE"
12
+ "index.d.ts",
13
+ "*.node"
54
14
  ],
55
- "devDependencies": {
56
- "@biomejs/biome": "^2.4.7",
57
- "@grpc/grpc-js": "^1.14.3",
58
- "@grpc/proto-loader": "^0.8.0",
59
- "@napi-rs/cli": "^3.5.1",
60
- "@types/node": "^25.5.0",
61
- "@types/ws": "^8.18.1",
62
- "@vitest/coverage-v8": "^4.1.0",
63
- "tsup": "^8.5.1",
64
- "typescript": "^5.9.3",
65
- "vitest": "^4.1.0",
66
- "ws": "^8.19.0"
15
+ "main": "index.js",
16
+ "types": "index.d.ts",
17
+ "scripts": {
18
+ "build": "napi build --platform --release",
19
+ "artifacts": "napi artifacts",
20
+ "prepublishOnly": "napi prepublish -t npm --skip-optional-publish"
67
21
  },
68
- "engines": {
69
- "node": ">=20"
22
+ "devDependencies": {
23
+ "@napi-rs/cli": "^3.6.2"
70
24
  },
71
- "dependencies": {
72
- "zod": "^4.3.6",
73
- "@spikard/node-native": "0.13.0"
25
+ "napi": {
26
+ "binaryName": "spikard-node",
27
+ "targets": [
28
+ "x86_64-unknown-linux-gnu",
29
+ "aarch64-unknown-linux-gnu",
30
+ "x86_64-apple-darwin",
31
+ "aarch64-apple-darwin",
32
+ "x86_64-pc-windows-msvc",
33
+ "aarch64-pc-windows-msvc"
34
+ ]
74
35
  },
75
- "scripts": {
76
- "build": "pnpm build:native && tsup",
77
- "build:native": "cd ../../crates/spikard-node && napi build --platform --release -o ../../packages/node",
78
- "build:debug": "cd ../../crates/spikard-node && napi build --platform -o ../../packages/node",
79
- "test": "pnpm build:debug && vitest run --passWithNoTests",
80
- "test:watch": "vitest",
81
- "test:cov": "pnpm build:debug && vitest run --coverage --passWithNoTests",
82
- "typecheck": "tsc --noEmit",
83
- "lint": "biome check src",
84
- "lint:fix": "biome check --write src",
85
- "format": "biome format --write src",
86
- "clean": "rm -rf dist node_modules spikard.*.node coverage"
36
+ "engines": {
37
+ "node": ">= 18"
87
38
  }
88
- }
39
+ }
Binary file
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Na'aman Hirschfeld
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.