@suchipi/quickjs 0.12.1 → 0.12.3

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 (52) hide show
  1. package/README.md +1 -0
  2. package/build/aarch64-apple-darwin/bin/qjs +0 -0
  3. package/build/aarch64-apple-darwin/bin/qjsbootstrap +0 -0
  4. package/build/aarch64-apple-darwin/bin/qjsbootstrap-bytecode +0 -0
  5. package/build/aarch64-apple-darwin/bin/qjsc +0 -0
  6. package/build/aarch64-apple-darwin/bin/quickjs-run +0 -0
  7. package/build/aarch64-apple-darwin/lib/quickjs-core.a +0 -0
  8. package/build/aarch64-apple-darwin/lib/quickjs-full.a +0 -0
  9. package/build/aarch64-unknown-freebsd-15/bin/qjs +0 -0
  10. package/build/aarch64-unknown-freebsd-15/bin/qjsbootstrap +0 -0
  11. package/build/aarch64-unknown-freebsd-15/bin/qjsbootstrap-bytecode +0 -0
  12. package/build/aarch64-unknown-freebsd-15/bin/qjsc +0 -0
  13. package/build/aarch64-unknown-freebsd-15/bin/quickjs-run +0 -0
  14. package/build/aarch64-unknown-freebsd-15/lib/quickjs-core.a +0 -0
  15. package/build/aarch64-unknown-freebsd-15/lib/quickjs-full.a +0 -0
  16. package/build/aarch64-unknown-linux-static/bin/qjs +0 -0
  17. package/build/aarch64-unknown-linux-static/bin/qjsbootstrap +0 -0
  18. package/build/aarch64-unknown-linux-static/bin/qjsbootstrap-bytecode +0 -0
  19. package/build/aarch64-unknown-linux-static/bin/qjsc +0 -0
  20. package/build/aarch64-unknown-linux-static/bin/quickjs-run +0 -0
  21. package/build/aarch64-unknown-linux-static/lib/quickjs-core.a +0 -0
  22. package/build/aarch64-unknown-linux-static/lib/quickjs-full.a +0 -0
  23. package/build/dts/quickjs-std.d.ts +27 -29
  24. package/build/x86_64-apple-darwin/bin/qjs +0 -0
  25. package/build/x86_64-apple-darwin/bin/qjsbootstrap +0 -0
  26. package/build/x86_64-apple-darwin/bin/qjsbootstrap-bytecode +0 -0
  27. package/build/x86_64-apple-darwin/bin/qjsc +0 -0
  28. package/build/x86_64-apple-darwin/bin/quickjs-run +0 -0
  29. package/build/x86_64-apple-darwin/lib/quickjs-core.a +0 -0
  30. package/build/x86_64-apple-darwin/lib/quickjs-full.a +0 -0
  31. package/build/x86_64-pc-windows-static/bin/qjs.exe +0 -0
  32. package/build/x86_64-pc-windows-static/bin/qjsbootstrap-bytecode.exe +0 -0
  33. package/build/x86_64-pc-windows-static/bin/qjsbootstrap.exe +0 -0
  34. package/build/x86_64-pc-windows-static/bin/qjsc.exe +0 -0
  35. package/build/x86_64-pc-windows-static/bin/quickjs-run.exe +0 -0
  36. package/build/x86_64-pc-windows-static/lib/quickjs-core.a +0 -0
  37. package/build/x86_64-pc-windows-static/lib/quickjs-full.a +0 -0
  38. package/build/x86_64-unknown-freebsd-15/bin/qjs +0 -0
  39. package/build/x86_64-unknown-freebsd-15/bin/qjsbootstrap +0 -0
  40. package/build/x86_64-unknown-freebsd-15/bin/qjsbootstrap-bytecode +0 -0
  41. package/build/x86_64-unknown-freebsd-15/bin/qjsc +0 -0
  42. package/build/x86_64-unknown-freebsd-15/bin/quickjs-run +0 -0
  43. package/build/x86_64-unknown-freebsd-15/lib/quickjs-core.a +0 -0
  44. package/build/x86_64-unknown-freebsd-15/lib/quickjs-full.a +0 -0
  45. package/build/x86_64-unknown-linux-static/bin/qjs +0 -0
  46. package/build/x86_64-unknown-linux-static/bin/qjsbootstrap +0 -0
  47. package/build/x86_64-unknown-linux-static/bin/qjsbootstrap-bytecode +0 -0
  48. package/build/x86_64-unknown-linux-static/bin/qjsc +0 -0
  49. package/build/x86_64-unknown-linux-static/bin/quickjs-run +0 -0
  50. package/build/x86_64-unknown-linux-static/lib/quickjs-core.a +0 -0
  51. package/build/x86_64-unknown-linux-static/lib/quickjs-full.a +0 -0
  52. package/package.json +1 -1
package/README.md CHANGED
@@ -85,6 +85,7 @@ Fork of the fantastic QuickJS engine by Fabrice Bellard, with many changes.
85
85
  - Several C-side helper functions were moved out of quickjs-libc and into quickjs-utils.
86
86
  - Most module-related code (setting import.meta, etc) was moved into quickjs-modulesys.
87
87
  - The manual garbage collection function `std.gc()` was moved to `"quickjs:engine"`.
88
+ - `std.urlGet` now uses libcurl (via `dlopen`) instead of shelling out to `curl`.
88
89
 
89
90
  ### Changes to the `qjs` binary:
90
91
 
Binary file
Binary file
@@ -272,63 +272,61 @@ declare module "quickjs:std" {
272
272
 
273
273
  interface UrlGet {
274
274
  /**
275
- * Download `url` using the `curl` command line utility. Returns string
276
- * when the http status code is between 200 and 299, and throws otherwise.
275
+ * Download `url` using libcurl (dynamically loaded). Returns string when
276
+ * the http status code is between 200 and 299, and throws otherwise.
277
277
  *
278
- * Pass an object with { full: true } as the second argument to get
279
- * response headers and status code.
278
+ * Pass an object with { full: true } as the second argument to get response
279
+ * headers and status code.
280
280
  */
281
281
  (url: string): string;
282
282
 
283
283
  /**
284
- * Download `url` using the `curl` command line utility. Returns string
285
- * when the http status code is between 200 and 299, and throws otherwise.
284
+ * Download `url` using libcurl (dynamically loaded). Returns string when
285
+ * the http status code is between 200 and 299, and throws otherwise.
286
286
  *
287
- * Pass an object with { full: true } as the second argument to get
288
- * response headers and status code.
287
+ * Pass an object with { full: true } as the second argument to get response
288
+ * headers and status code.
289
289
  */
290
290
  (url: string, options: { binary: false }): string;
291
291
 
292
292
  /**
293
- * Download `url` using the `curl` command line utility. Returns string
294
- * when the http status code is between 200 and 299, and throws otherwise.
293
+ * Download `url` using libcurl (dynamically loaded). Returns string when
294
+ * the http status code is between 200 and 299, and throws otherwise.
295
295
  *
296
- * Pass an object with { full: true } as the second argument to get
297
- * response headers and status code.
296
+ * Pass an object with { full: true } as the second argument to get response
297
+ * headers and status code.
298
298
  */
299
299
  (url: string, options: { full: false }): string;
300
300
 
301
301
  /**
302
- * Download `url` using the `curl` command line utility. Returns string
303
- * when the http status code is between 200 and 299, and throws otherwise.
302
+ * Download `url` using libcurl (dynamically loaded). Returns string when
303
+ * the http status code is between 200 and 299, and throws otherwise.
304
304
  *
305
- * Pass an object with { full: true } as the second argument to get
306
- * response headers and status code.
305
+ * Pass an object with { full: true } as the second argument to get response
306
+ * headers and status code.
307
307
  */
308
308
  (url: string, options: { binary: false; full: false }): string;
309
309
 
310
310
  /**
311
- * Download `url` using the `curl` command line utility. Returns
312
- * ArrayBuffer when the http status code is between 200 and 299, and throws
313
- * otherwise.
311
+ * Download `url` using libcurl (dynamically loaded). Returns ArrayBuffer
312
+ * when the http status code is between 200 and 299, and throws otherwise.
314
313
  *
315
- * Pass an object with { full: true } as the second argument to get
316
- * response headers and status code.
314
+ * Pass an object with { full: true } as the second argument to get response
315
+ * headers and status code.
317
316
  */
318
317
  (url: string, options: { binary: true }): ArrayBuffer;
319
318
 
320
319
  /**
321
- * Download `url` using the `curl` command line utility. Returns
322
- * ArrayBuffer when the http status code is between 200 and 299, and throws
323
- * otherwise.
320
+ * Download `url` using libcurl (dynamically loaded). Returns ArrayBuffer
321
+ * when the http status code is between 200 and 299, and throws otherwise.
324
322
  *
325
- * Pass an object with { full: true } as the second argument to get
326
- * response headers and status code.
323
+ * Pass an object with { full: true } as the second argument to get response
324
+ * headers and status code.
327
325
  */
328
326
  (url: string, options: { binary: true; full: false }): ArrayBuffer;
329
327
 
330
328
  /**
331
- * Download `url` using the `curl` command line utility.
329
+ * Download `url` using libcurl (dynamically loaded).
332
330
  *
333
331
  * Returns an object with three properties:
334
332
  *
@@ -343,7 +341,7 @@ declare module "quickjs:std" {
343
341
  };
344
342
 
345
343
  /**
346
- * Download `url` using the `curl` command line utility.
344
+ * Download `url` using libcurl (dynamically loaded).
347
345
  *
348
346
  * Returns an object with three properties:
349
347
  *
@@ -358,7 +356,7 @@ declare module "quickjs:std" {
358
356
  };
359
357
 
360
358
  /**
361
- * Download `url` using the `curl` command line utility.
359
+ * Download `url` using libcurl (dynamically loaded).
362
360
  *
363
361
  * Returns an object with three properties:
364
362
  *
Binary file
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@suchipi/quickjs",
3
3
  "description": "Suchipi's QuickJS Fork",
4
- "version": "0.12.1",
4
+ "version": "0.12.3",
5
5
  "main": "./npm/index.js",
6
6
  "bin": {
7
7
  "qjs": "npm/cli/qjs.js",