@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.
- package/README.md +1 -0
- package/build/aarch64-apple-darwin/bin/qjs +0 -0
- package/build/aarch64-apple-darwin/bin/qjsbootstrap +0 -0
- package/build/aarch64-apple-darwin/bin/qjsbootstrap-bytecode +0 -0
- package/build/aarch64-apple-darwin/bin/qjsc +0 -0
- package/build/aarch64-apple-darwin/bin/quickjs-run +0 -0
- package/build/aarch64-apple-darwin/lib/quickjs-core.a +0 -0
- package/build/aarch64-apple-darwin/lib/quickjs-full.a +0 -0
- package/build/aarch64-unknown-freebsd-15/bin/qjs +0 -0
- package/build/aarch64-unknown-freebsd-15/bin/qjsbootstrap +0 -0
- package/build/aarch64-unknown-freebsd-15/bin/qjsbootstrap-bytecode +0 -0
- package/build/aarch64-unknown-freebsd-15/bin/qjsc +0 -0
- package/build/aarch64-unknown-freebsd-15/bin/quickjs-run +0 -0
- package/build/aarch64-unknown-freebsd-15/lib/quickjs-core.a +0 -0
- package/build/aarch64-unknown-freebsd-15/lib/quickjs-full.a +0 -0
- package/build/aarch64-unknown-linux-static/bin/qjs +0 -0
- package/build/aarch64-unknown-linux-static/bin/qjsbootstrap +0 -0
- package/build/aarch64-unknown-linux-static/bin/qjsbootstrap-bytecode +0 -0
- package/build/aarch64-unknown-linux-static/bin/qjsc +0 -0
- package/build/aarch64-unknown-linux-static/bin/quickjs-run +0 -0
- package/build/aarch64-unknown-linux-static/lib/quickjs-core.a +0 -0
- package/build/aarch64-unknown-linux-static/lib/quickjs-full.a +0 -0
- package/build/dts/quickjs-std.d.ts +27 -29
- package/build/x86_64-apple-darwin/bin/qjs +0 -0
- package/build/x86_64-apple-darwin/bin/qjsbootstrap +0 -0
- package/build/x86_64-apple-darwin/bin/qjsbootstrap-bytecode +0 -0
- package/build/x86_64-apple-darwin/bin/qjsc +0 -0
- package/build/x86_64-apple-darwin/bin/quickjs-run +0 -0
- package/build/x86_64-apple-darwin/lib/quickjs-core.a +0 -0
- package/build/x86_64-apple-darwin/lib/quickjs-full.a +0 -0
- package/build/x86_64-pc-windows-static/bin/qjs.exe +0 -0
- package/build/x86_64-pc-windows-static/bin/qjsbootstrap-bytecode.exe +0 -0
- package/build/x86_64-pc-windows-static/bin/qjsbootstrap.exe +0 -0
- package/build/x86_64-pc-windows-static/bin/qjsc.exe +0 -0
- package/build/x86_64-pc-windows-static/bin/quickjs-run.exe +0 -0
- package/build/x86_64-pc-windows-static/lib/quickjs-core.a +0 -0
- package/build/x86_64-pc-windows-static/lib/quickjs-full.a +0 -0
- package/build/x86_64-unknown-freebsd-15/bin/qjs +0 -0
- package/build/x86_64-unknown-freebsd-15/bin/qjsbootstrap +0 -0
- package/build/x86_64-unknown-freebsd-15/bin/qjsbootstrap-bytecode +0 -0
- package/build/x86_64-unknown-freebsd-15/bin/qjsc +0 -0
- package/build/x86_64-unknown-freebsd-15/bin/quickjs-run +0 -0
- package/build/x86_64-unknown-freebsd-15/lib/quickjs-core.a +0 -0
- package/build/x86_64-unknown-freebsd-15/lib/quickjs-full.a +0 -0
- package/build/x86_64-unknown-linux-static/bin/qjs +0 -0
- package/build/x86_64-unknown-linux-static/bin/qjsbootstrap +0 -0
- package/build/x86_64-unknown-linux-static/bin/qjsbootstrap-bytecode +0 -0
- package/build/x86_64-unknown-linux-static/bin/qjsc +0 -0
- package/build/x86_64-unknown-linux-static/bin/quickjs-run +0 -0
- package/build/x86_64-unknown-linux-static/lib/quickjs-core.a +0 -0
- package/build/x86_64-unknown-linux-static/lib/quickjs-full.a +0 -0
- 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
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -272,63 +272,61 @@ declare module "quickjs:std" {
|
|
|
272
272
|
|
|
273
273
|
interface UrlGet {
|
|
274
274
|
/**
|
|
275
|
-
* Download `url` using
|
|
276
|
-
*
|
|
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
|
-
*
|
|
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
|
|
285
|
-
*
|
|
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
|
-
*
|
|
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
|
|
294
|
-
*
|
|
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
|
-
*
|
|
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
|
|
303
|
-
*
|
|
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
|
-
*
|
|
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
|
|
312
|
-
*
|
|
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
|
-
*
|
|
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
|
|
322
|
-
*
|
|
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
|
-
*
|
|
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
|
|
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
|
|
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
|
|
359
|
+
* Download `url` using libcurl (dynamically loaded).
|
|
362
360
|
*
|
|
363
361
|
* Returns an object with three properties:
|
|
364
362
|
*
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|