diff --git a/Cargo.toml b/Cargo.toml index 3ada85b5..0402213f 100755 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,8 +27,8 @@ usvg-writer = { git = "https://github.com/zimond/resvg", rev = "6201182c" } mimalloc-rust = { version = "0.2" } [target.'cfg(target_arch = "wasm32")'.dependencies] -wasm-bindgen = "0.2.84" -js-sys = "0.3.61" +wasm-bindgen = "0.2.87" +js-sys = "0.3.64" resvg = { version = "0.29.0", default-features = false, features = [ "filter", "raster-images", @@ -36,8 +36,8 @@ resvg = { version = "0.29.0", default-features = false, features = [ ] } [target.'cfg(not(target_arch = "wasm32"))'.dependencies] -napi = { version = "2.12.1", features = ["serde-json", "async"] } -napi-derive = "2.10.1" +napi = { version = "2.13.3", features = ["serde-json", "async"] } +napi-derive = "2.13.0" resvg = { version = "0.29.0", default-features = false, features = [ "filter", "raster-images", diff --git a/package.json b/package.json index 78a81a3c..40ff50e4 100644 --- a/package.json +++ b/package.json @@ -73,16 +73,16 @@ "version": "napi version" }, "devDependencies": { - "@napi-rs/cli": "^2.14.6", - "@swc-node/register": "^1.6.4", - "@swc/core": "^1.3.53", - "@types/node": "^18.16.0", - "@typescript-eslint/eslint-plugin": "^6.0.0", - "@typescript-eslint/parser": "^6.0.0", - "ava": "^5.2.0", + "@napi-rs/cli": "^2.16.3", + "@swc-node/register": "1.6.4", + "@swc/core": "^1.3.88", + "@types/node": "^20.6.5", + "@typescript-eslint/eslint-plugin": "^6.7.2", + "@typescript-eslint/parser": "^6.7.2", + "ava": "^5.3.1", "copyfiles": "^2.4.1", "dts-bundle-generator": "^8.0.1", - "esbuild": "^0.19.0", + "esbuild": "^0.19.3", "eslint": "^8.39.0", "eslint-config-prettier": "^8.5.0", "eslint-plugin-import": "^2.26.0", @@ -94,7 +94,7 @@ "node-fetch": "2.x", "npm-run-all": "^4.1.5", "prettier": "^2.7.1", - "typescript": "^5.0.4" + "typescript": "^5.2.2" }, "lint-staged": { "*.@(js|ts|tsx)": [ diff --git a/wasm/index.js b/wasm/index.js index ada728e3..57d07aba 100644 --- a/wasm/index.js +++ b/wasm/index.js @@ -60,7 +60,9 @@ function getUint8Memory0() { } return cachedUint8Memory0; } -var cachedTextEncoder = new TextEncoder("utf-8"); +var cachedTextEncoder = typeof TextEncoder !== "undefined" ? new TextEncoder("utf-8") : { encode: () => { + throw Error("TextEncoder not available"); +} }; var encodeString = typeof cachedTextEncoder.encodeInto === "function" ? function(arg, view) { return cachedTextEncoder.encodeInto(arg, view); } : function(arg, view) { @@ -74,13 +76,13 @@ var encodeString = typeof cachedTextEncoder.encodeInto === "function" ? function function passStringToWasm0(arg, malloc, realloc) { if (realloc === void 0) { const buf = cachedTextEncoder.encode(arg); - const ptr2 = malloc(buf.length); + const ptr2 = malloc(buf.length, 1) >>> 0; getUint8Memory0().subarray(ptr2, ptr2 + buf.length).set(buf); WASM_VECTOR_LEN = buf.length; return ptr2; } let len = arg.length; - let ptr = malloc(len); + let ptr = malloc(len, 1) >>> 0; const mem = getUint8Memory0(); let offset = 0; for (; offset < len; offset++) { @@ -93,7 +95,7 @@ function passStringToWasm0(arg, malloc, realloc) { if (offset !== 0) { arg = arg.slice(offset); } - ptr = realloc(ptr, len, len = offset + arg.length * 3); + ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0; const view = getUint8Memory0().subarray(ptr + offset, ptr + len); const ret = encodeString(arg, view); offset += ret.written; @@ -111,9 +113,14 @@ function getInt32Memory0() { } return cachedInt32Memory0; } -var cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }); -cachedTextDecoder.decode(); +var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => { + throw Error("TextDecoder not available"); +} }; +if (typeof TextDecoder !== "undefined") { + cachedTextDecoder.decode(); +} function getStringFromWasm0(ptr, len) { + ptr = ptr >>> 0; return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); } function _assertClass(instance, klass) { @@ -131,13 +138,14 @@ function handleError(f, args) { } var BBox = class _BBox { static __wrap(ptr) { + ptr = ptr >>> 0; const obj = Object.create(_BBox.prototype); - obj.ptr = ptr; + obj.__wbg_ptr = ptr; return obj; } __destroy_into_raw() { - const ptr = this.ptr; - this.ptr = 0; + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; return ptr; } free() { @@ -148,64 +156,65 @@ var BBox = class _BBox { * @returns {number} */ get x() { - const ret = wasm.__wbg_get_bbox_x(this.ptr); + const ret = wasm.__wbg_get_bbox_x(this.__wbg_ptr); return ret; } /** * @param {number} arg0 */ set x(arg0) { - wasm.__wbg_set_bbox_x(this.ptr, arg0); + wasm.__wbg_set_bbox_x(this.__wbg_ptr, arg0); } /** * @returns {number} */ get y() { - const ret = wasm.__wbg_get_bbox_y(this.ptr); + const ret = wasm.__wbg_get_bbox_y(this.__wbg_ptr); return ret; } /** * @param {number} arg0 */ set y(arg0) { - wasm.__wbg_set_bbox_y(this.ptr, arg0); + wasm.__wbg_set_bbox_y(this.__wbg_ptr, arg0); } /** * @returns {number} */ get width() { - const ret = wasm.__wbg_get_bbox_width(this.ptr); + const ret = wasm.__wbg_get_bbox_width(this.__wbg_ptr); return ret; } /** * @param {number} arg0 */ set width(arg0) { - wasm.__wbg_set_bbox_width(this.ptr, arg0); + wasm.__wbg_set_bbox_width(this.__wbg_ptr, arg0); } /** * @returns {number} */ get height() { - const ret = wasm.__wbg_get_bbox_height(this.ptr); + const ret = wasm.__wbg_get_bbox_height(this.__wbg_ptr); return ret; } /** * @param {number} arg0 */ set height(arg0) { - wasm.__wbg_set_bbox_height(this.ptr, arg0); + wasm.__wbg_set_bbox_height(this.__wbg_ptr, arg0); } }; var RenderedImage = class _RenderedImage { static __wrap(ptr) { + ptr = ptr >>> 0; const obj = Object.create(_RenderedImage.prototype); - obj.ptr = ptr; + obj.__wbg_ptr = ptr; return obj; } __destroy_into_raw() { - const ptr = this.ptr; - this.ptr = 0; + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; return ptr; } free() { @@ -217,7 +226,7 @@ var RenderedImage = class _RenderedImage { * @returns {number} */ get width() { - const ret = wasm.renderedimage_width(this.ptr); + const ret = wasm.renderedimage_width(this.__wbg_ptr); return ret >>> 0; } /** @@ -225,7 +234,7 @@ var RenderedImage = class _RenderedImage { * @returns {number} */ get height() { - const ret = wasm.renderedimage_height(this.ptr); + const ret = wasm.renderedimage_height(this.__wbg_ptr); return ret >>> 0; } /** @@ -235,7 +244,7 @@ var RenderedImage = class _RenderedImage { asPng() { try { const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); - wasm.renderedimage_asPng(retptr, this.ptr); + wasm.renderedimage_asPng(retptr, this.__wbg_ptr); var r0 = getInt32Memory0()[retptr / 4 + 0]; var r1 = getInt32Memory0()[retptr / 4 + 1]; var r2 = getInt32Memory0()[retptr / 4 + 2]; @@ -252,19 +261,20 @@ var RenderedImage = class _RenderedImage { * @returns {Uint8Array} */ get pixels() { - const ret = wasm.renderedimage_pixels(this.ptr); + const ret = wasm.renderedimage_pixels(this.__wbg_ptr); return takeObject(ret); } }; var Resvg = class _Resvg { static __wrap(ptr) { + ptr = ptr >>> 0; const obj = Object.create(_Resvg.prototype); - obj.ptr = ptr; + obj.__wbg_ptr = ptr; return obj; } __destroy_into_raw() { - const ptr = this.ptr; - this.ptr = 0; + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; return ptr; } free() { @@ -298,7 +308,7 @@ var Resvg = class _Resvg { * @returns {number} */ get width() { - const ret = wasm.resvg_width(this.ptr); + const ret = wasm.resvg_width(this.__wbg_ptr); return ret; } /** @@ -306,7 +316,7 @@ var Resvg = class _Resvg { * @returns {number} */ get height() { - const ret = wasm.resvg_height(this.ptr); + const ret = wasm.resvg_height(this.__wbg_ptr); return ret; } /** @@ -316,7 +326,7 @@ var Resvg = class _Resvg { render() { try { const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); - wasm.resvg_render(retptr, this.ptr); + wasm.resvg_render(retptr, this.__wbg_ptr); var r0 = getInt32Memory0()[retptr / 4 + 0]; var r1 = getInt32Memory0()[retptr / 4 + 1]; var r2 = getInt32Memory0()[retptr / 4 + 2]; @@ -333,15 +343,19 @@ var Resvg = class _Resvg { * @returns {string} */ toString() { + let deferred1_0; + let deferred1_1; try { const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); - wasm.resvg_toString(retptr, this.ptr); + wasm.resvg_toString(retptr, this.__wbg_ptr); var r0 = getInt32Memory0()[retptr / 4 + 0]; var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; return getStringFromWasm0(r0, r1); } finally { wasm.__wbindgen_add_to_stack_pointer(16); - wasm.__wbindgen_free(r0, r1); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); } } /** @@ -351,7 +365,7 @@ var Resvg = class _Resvg { * @returns {BBox | undefined} */ innerBBox() { - const ret = wasm.resvg_innerBBox(this.ptr); + const ret = wasm.resvg_innerBBox(this.__wbg_ptr); return ret === 0 ? void 0 : BBox.__wrap(ret); } /** @@ -361,7 +375,7 @@ var Resvg = class _Resvg { * @returns {BBox | undefined} */ getBBox() { - const ret = wasm.resvg_getBBox(this.ptr); + const ret = wasm.resvg_getBBox(this.__wbg_ptr); return ret === 0 ? void 0 : BBox.__wrap(ret); } /** @@ -371,7 +385,7 @@ var Resvg = class _Resvg { */ cropByBBox(bbox) { _assertClass(bbox, BBox); - wasm.resvg_cropByBBox(this.ptr, bbox.ptr); + wasm.resvg_cropByBBox(this.__wbg_ptr, bbox.__wbg_ptr); } /** * @returns {Array} @@ -379,7 +393,7 @@ var Resvg = class _Resvg { imagesToResolve() { try { const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); - wasm.resvg_imagesToResolve(retptr, this.ptr); + wasm.resvg_imagesToResolve(retptr, this.__wbg_ptr); var r0 = getInt32Memory0()[retptr / 4 + 0]; var r1 = getInt32Memory0()[retptr / 4 + 1]; var r2 = getInt32Memory0()[retptr / 4 + 2]; @@ -400,7 +414,7 @@ var Resvg = class _Resvg { const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); const ptr0 = passStringToWasm0(href, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len0 = WASM_VECTOR_LEN; - wasm.resvg_resolveImage(retptr, this.ptr, ptr0, len0, addHeapObject(buffer)); + wasm.resvg_resolveImage(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(buffer)); var r0 = getInt32Memory0()[retptr / 4 + 0]; var r1 = getInt32Memory0()[retptr / 4 + 1]; if (r1) { @@ -411,7 +425,7 @@ var Resvg = class _Resvg { } } }; -async function load(module2, imports) { +async function __wbg_load(module2, imports) { if (typeof Response === "function" && module2 instanceof Response) { if (typeof WebAssembly.instantiateStreaming === "function") { try { @@ -435,10 +449,10 @@ async function load(module2, imports) { } } } -function getImports() { +function __wbg_get_imports() { const imports = {}; imports.wbg = {}; - imports.wbg.__wbg_new_15d3966e9981a196 = function(arg0, arg1) { + imports.wbg.__wbg_new_d258248ed531ff54 = function(arg0, arg1) { const ret = new Error(getStringFromWasm0(arg0, arg1)); return addHeapObject(ret); }; @@ -446,40 +460,40 @@ function getImports() { const ret = wasm.memory; return addHeapObject(ret); }; - imports.wbg.__wbg_buffer_cf65c07de34b9a08 = function(arg0) { + imports.wbg.__wbg_buffer_085ec1f694018c4f = function(arg0) { const ret = getObject(arg0).buffer; return addHeapObject(ret); }; - imports.wbg.__wbg_newwithbyteoffsetandlength_9fb2f11355ecadf5 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_newwithbyteoffsetandlength_6da8e527659b86aa = function(arg0, arg1, arg2) { const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0); return addHeapObject(ret); }; imports.wbg.__wbindgen_object_drop_ref = function(arg0) { takeObject(arg0); }; - imports.wbg.__wbg_new_537b7341ce90bb31 = function(arg0) { + imports.wbg.__wbg_new_8125e318e6245eed = function(arg0) { const ret = new Uint8Array(getObject(arg0)); return addHeapObject(ret); }; - imports.wbg.__wbg_values_97683218f24ed826 = function(arg0) { + imports.wbg.__wbg_values_e80af618f92c8649 = function(arg0) { const ret = getObject(arg0).values(); return addHeapObject(ret); }; - imports.wbg.__wbg_next_88560ec06a094dea = function() { + imports.wbg.__wbg_next_ddb3312ca1c4e32a = function() { return handleError(function(arg0) { const ret = getObject(arg0).next(); return addHeapObject(ret); }, arguments); }; - imports.wbg.__wbg_done_1ebec03bbd919843 = function(arg0) { + imports.wbg.__wbg_done_5c1f01fb660d73b5 = function(arg0) { const ret = getObject(arg0).done; return ret; }; - imports.wbg.__wbg_value_6ac8da5cc5b3efda = function(arg0) { + imports.wbg.__wbg_value_1695675138684bd5 = function(arg0) { const ret = getObject(arg0).value; return addHeapObject(ret); }; - imports.wbg.__wbg_instanceof_Uint8Array_01cebe79ca606cca = function(arg0) { + imports.wbg.__wbg_instanceof_Uint8Array_d8d9cb2b8e8ac1d4 = function(arg0) { let result; try { result = getObject(arg0) instanceof Uint8Array; @@ -492,12 +506,12 @@ function getImports() { imports.wbg.__wbindgen_string_get = function(arg0, arg1) { const obj = getObject(arg1); const ret = typeof obj === "string" ? obj : void 0; - var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - getInt32Memory0()[arg0 / 4 + 1] = len0; - getInt32Memory0()[arg0 / 4 + 0] = ptr0; + var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; }; - imports.wbg.__wbg_new_b525de17f44a8943 = function() { + imports.wbg.__wbg_new_898a68150f225f2e = function() { const ret = new Array(); return addHeapObject(ret); }; @@ -505,15 +519,15 @@ function getImports() { const ret = getStringFromWasm0(arg0, arg1); return addHeapObject(ret); }; - imports.wbg.__wbg_push_49c286f04dd3bf59 = function(arg0, arg1) { + imports.wbg.__wbg_push_ca1c26067ef907ac = function(arg0, arg1) { const ret = getObject(arg0).push(getObject(arg1)); return ret; }; - imports.wbg.__wbg_length_27a2afe8ab42b09f = function(arg0) { + imports.wbg.__wbg_length_72e2208bbc0efc61 = function(arg0) { const ret = getObject(arg0).length; return ret; }; - imports.wbg.__wbg_set_17499e8aa4003ebd = function(arg0, arg1, arg2) { + imports.wbg.__wbg_set_5cf90238115182c3 = function(arg0, arg1, arg2) { getObject(arg0).set(getObject(arg1), arg2 >>> 0); }; imports.wbg.__wbindgen_throw = function(arg0, arg1) { @@ -521,28 +535,30 @@ function getImports() { }; return imports; } -function initMemory(imports, maybe_memory) { +function __wbg_init_memory(imports, maybe_memory) { } -function finalizeInit(instance, module2) { +function __wbg_finalize_init(instance, module2) { wasm = instance.exports; - init.__wbindgen_wasm_module = module2; + __wbg_init.__wbindgen_wasm_module = module2; cachedInt32Memory0 = null; cachedUint8Memory0 = null; return wasm; } -async function init(input) { +async function __wbg_init(input) { + if (wasm !== void 0) + return wasm; if (typeof input === "undefined") { input = new URL("index_bg.wasm", void 0); } - const imports = getImports(); + const imports = __wbg_get_imports(); if (typeof input === "string" || typeof Request === "function" && input instanceof Request || typeof URL === "function" && input instanceof URL) { input = fetch(input); } - initMemory(imports); - const { instance, module: module2 } = await load(await input, imports); - return finalizeInit(instance, module2); + __wbg_init_memory(imports); + const { instance, module: module2 } = await __wbg_load(await input, imports); + return __wbg_finalize_init(instance, module2); } -var dist_default = init; +var dist_default = __wbg_init; // wasm-binding.ts var initialized = false; diff --git a/wasm/index.min.js b/wasm/index.min.js index 44f277d0..717a64dc 100644 --- a/wasm/index.min.js +++ b/wasm/index.min.js @@ -1 +1 @@ -"use strict";var resvg=(()=>{var B=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var U=Object.getOwnPropertyNames;var T=Object.prototype.hasOwnProperty;var C=(e,t)=>{for(var n in t)B(e,n,{get:t[n],enumerable:!0})},F=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of U(t))!T.call(e,i)&&i!==n&&B(e,i,{get:()=>t[i],enumerable:!(o=M(t,i))||o.enumerable});return e};var L=e=>F(B({},"__esModule",{value:!0}),e);var K={};C(K,{Resvg:()=>$,initWasm:()=>V});var r,b=new Array(128).fill(void 0);b.push(void 0,null,!0,!1);var l=b.length;function c(e){l===b.length&&b.push(b.length+1);let t=l;return l=b[t],b[t]=e,t}function a(e){return b[e]}function z(e){e<132||(b[e]=l,l=e)}function g(e){let t=a(e);return z(e),t}var y=0,d=null;function v(){return(d===null||d.byteLength===0)&&(d=new Uint8Array(r.memory.buffer)),d}var x=new TextEncoder("utf-8"),P=typeof x.encodeInto=="function"?function(e,t){return x.encodeInto(e,t)}:function(e,t){let n=x.encode(e);return t.set(n),{read:e.length,written:n.length}};function I(e,t,n){if(n===void 0){let f=x.encode(e),w=t(f.length);return v().subarray(w,w+f.length).set(f),y=f.length,w}let o=e.length,i=t(o),u=v(),_=0;for(;_127)break;u[i+_]=f}if(_!==o){_!==0&&(e=e.slice(_)),i=n(i,o,o=_+e.length*3);let f=v().subarray(i+_,i+o),w=P(e,f);_+=w.written}return y=_,i}function W(e){return e==null}var p=null;function s(){return(p===null||p.byteLength===0)&&(p=new Int32Array(r.memory.buffer)),p}var S=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});S.decode();function O(e,t){return S.decode(v().subarray(e,e+t))}function N(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`);return e.ptr}function q(e,t){try{return e.apply(this,t)}catch(n){r.__wbindgen_exn_store(c(n))}}var h=class e{static __wrap(t){let n=Object.create(e.prototype);return n.ptr=t,n}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();r.__wbg_bbox_free(t)}get x(){return r.__wbg_get_bbox_x(this.ptr)}set x(t){r.__wbg_set_bbox_x(this.ptr,t)}get y(){return r.__wbg_get_bbox_y(this.ptr)}set y(t){r.__wbg_set_bbox_y(this.ptr,t)}get width(){return r.__wbg_get_bbox_width(this.ptr)}set width(t){r.__wbg_set_bbox_width(this.ptr,t)}get height(){return r.__wbg_get_bbox_height(this.ptr)}set height(t){r.__wbg_set_bbox_height(this.ptr,t)}},k=class e{static __wrap(t){let n=Object.create(e.prototype);return n.ptr=t,n}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();r.__wbg_renderedimage_free(t)}get width(){return r.renderedimage_width(this.ptr)>>>0}get height(){return r.renderedimage_height(this.ptr)>>>0}asPng(){try{let i=r.__wbindgen_add_to_stack_pointer(-16);r.renderedimage_asPng(i,this.ptr);var t=s()[i/4+0],n=s()[i/4+1],o=s()[i/4+2];if(o)throw g(n);return g(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get pixels(){let t=r.renderedimage_pixels(this.ptr);return g(t)}},A=class e{static __wrap(t){let n=Object.create(e.prototype);return n.ptr=t,n}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();r.__wbg_resvg_free(t)}constructor(t,n,o){try{let m=r.__wbindgen_add_to_stack_pointer(-16);var i=W(n)?0:I(n,r.__wbindgen_malloc,r.__wbindgen_realloc),u=y;r.resvg_new(m,c(t),i,u,W(o)?0:c(o));var _=s()[m/4+0],f=s()[m/4+1],w=s()[m/4+2];if(w)throw g(f);return e.__wrap(_)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get width(){return r.resvg_width(this.ptr)}get height(){return r.resvg_height(this.ptr)}render(){try{let i=r.__wbindgen_add_to_stack_pointer(-16);r.resvg_render(i,this.ptr);var t=s()[i/4+0],n=s()[i/4+1],o=s()[i/4+2];if(o)throw g(n);return k.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}toString(){try{let o=r.__wbindgen_add_to_stack_pointer(-16);r.resvg_toString(o,this.ptr);var t=s()[o/4+0],n=s()[o/4+1];return O(t,n)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,n)}}innerBBox(){let t=r.resvg_innerBBox(this.ptr);return t===0?void 0:h.__wrap(t)}getBBox(){let t=r.resvg_getBBox(this.ptr);return t===0?void 0:h.__wrap(t)}cropByBBox(t){N(t,h),r.resvg_cropByBBox(this.ptr,t.ptr)}imagesToResolve(){try{let i=r.__wbindgen_add_to_stack_pointer(-16);r.resvg_imagesToResolve(i,this.ptr);var t=s()[i/4+0],n=s()[i/4+1],o=s()[i/4+2];if(o)throw g(n);return g(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}resolveImage(t,n){try{let u=r.__wbindgen_add_to_stack_pointer(-16),_=I(t,r.__wbindgen_malloc,r.__wbindgen_realloc),f=y;r.resvg_resolveImage(u,this.ptr,_,f,c(n));var o=s()[u/4+0],i=s()[u/4+1];if(i)throw g(o)}finally{r.__wbindgen_add_to_stack_pointer(16)}}};async function D(e,t){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,t)}catch(o){if(e.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",o);else throw o}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function J(){let e={};return e.wbg={},e.wbg.__wbg_new_15d3966e9981a196=function(t,n){let o=new Error(O(t,n));return c(o)},e.wbg.__wbindgen_memory=function(){let t=r.memory;return c(t)},e.wbg.__wbg_buffer_cf65c07de34b9a08=function(t){let n=a(t).buffer;return c(n)},e.wbg.__wbg_newwithbyteoffsetandlength_9fb2f11355ecadf5=function(t,n,o){let i=new Uint8Array(a(t),n>>>0,o>>>0);return c(i)},e.wbg.__wbindgen_object_drop_ref=function(t){g(t)},e.wbg.__wbg_new_537b7341ce90bb31=function(t){let n=new Uint8Array(a(t));return c(n)},e.wbg.__wbg_values_97683218f24ed826=function(t){let n=a(t).values();return c(n)},e.wbg.__wbg_next_88560ec06a094dea=function(){return q(function(t){let n=a(t).next();return c(n)},arguments)},e.wbg.__wbg_done_1ebec03bbd919843=function(t){return a(t).done},e.wbg.__wbg_value_6ac8da5cc5b3efda=function(t){let n=a(t).value;return c(n)},e.wbg.__wbg_instanceof_Uint8Array_01cebe79ca606cca=function(t){let n;try{n=a(t)instanceof Uint8Array}catch{n=!1}return n},e.wbg.__wbindgen_string_get=function(t,n){let o=a(n),i=typeof o=="string"?o:void 0;var u=W(i)?0:I(i,r.__wbindgen_malloc,r.__wbindgen_realloc),_=y;s()[t/4+1]=_,s()[t/4+0]=u},e.wbg.__wbg_new_b525de17f44a8943=function(){let t=new Array;return c(t)},e.wbg.__wbindgen_string_new=function(t,n){let o=O(t,n);return c(o)},e.wbg.__wbg_push_49c286f04dd3bf59=function(t,n){return a(t).push(a(n))},e.wbg.__wbg_length_27a2afe8ab42b09f=function(t){return a(t).length},e.wbg.__wbg_set_17499e8aa4003ebd=function(t,n,o){a(t).set(a(n),o>>>0)},e.wbg.__wbindgen_throw=function(t,n){throw new Error(O(t,n))},e}function H(e,t){return r=e.exports,j.__wbindgen_wasm_module=t,p=null,d=null,r}async function j(e){typeof e>"u"&&(e=new URL("index_bg.wasm",void 0));let t=J();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));let{instance:n,module:o}=await D(await e,t);return H(n,o)}var E=j;var R=!1,V=async e=>{if(R)throw new Error("Already initialized. The `initWasm()` function can be used only once.");await E(await e),R=!0},$=class extends A{constructor(e,t){if(!R)throw new Error("Wasm has not been initialized. Call `initWasm()` function.");let n=t?.font;if(n&&G(n)){let o={...t,font:{...n,fontBuffers:void 0}};super(e,JSON.stringify(o),n.fontBuffers)}else super(e,JSON.stringify(t))}};function G(e){return Object.prototype.hasOwnProperty.call(e,"fontBuffers")}return L(K);})(); +"use strict";var resvg=(()=>{var B=Object.defineProperty;var j=Object.getOwnPropertyDescriptor;var U=Object.getOwnPropertyNames;var M=Object.prototype.hasOwnProperty;var C=(e,t)=>{for(var n in t)B(e,n,{get:t[n],enumerable:!0})},F=(e,t,n,_)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of U(t))!M.call(e,o)&&o!==n&&B(e,o,{get:()=>t[o],enumerable:!(_=j(t,o))||_.enumerable});return e};var L=e=>F(B({},"__esModule",{value:!0}),e);var K={};C(K,{Resvg:()=>$,initWasm:()=>V});var r,w=new Array(128).fill(void 0);w.push(void 0,null,!0,!1);var p=w.length;function a(e){p===w.length&&w.push(w.length+1);let t=p;return p=w[t],w[t]=e,t}function c(e){return w[e]}function z(e){e<132||(w[e]=p,p=e)}function f(e){let t=c(e);return z(e),t}var y=0,d=null;function v(){return(d===null||d.byteLength===0)&&(d=new Uint8Array(r.memory.buffer)),d}var x=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},D=typeof x.encodeInto=="function"?function(e,t){return x.encodeInto(e,t)}:function(e,t){let n=x.encode(e);return t.set(n),{read:e.length,written:n.length}};function W(e,t,n){if(n===void 0){let b=x.encode(e),u=t(b.length,1)>>>0;return v().subarray(u,u+b.length).set(b),y=b.length,u}let _=e.length,o=t(_,1)>>>0,g=v(),s=0;for(;s<_;s++){let b=e.charCodeAt(s);if(b>127)break;g[o+s]=b}if(s!==_){s!==0&&(e=e.slice(s)),o=n(o,_,_=s+e.length*3,1)>>>0;let b=v().subarray(o+s,o+_),u=D(e,b);s+=u.written}return y=s,o}function k(e){return e==null}var l=null;function i(){return(l===null||l.byteLength===0)&&(l=new Int32Array(r.memory.buffer)),l}var R=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&R.decode();function O(e,t){return e=e>>>0,R.decode(v().subarray(e,e+t))}function P(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`);return e.ptr}function N(e,t){try{return e.apply(this,t)}catch(n){r.__wbindgen_exn_store(a(n))}}var h=class e{static __wrap(t){t=t>>>0;let n=Object.create(e.prototype);return n.__wbg_ptr=t,n}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){let t=this.__destroy_into_raw();r.__wbg_bbox_free(t)}get x(){return r.__wbg_get_bbox_x(this.__wbg_ptr)}set x(t){r.__wbg_set_bbox_x(this.__wbg_ptr,t)}get y(){return r.__wbg_get_bbox_y(this.__wbg_ptr)}set y(t){r.__wbg_set_bbox_y(this.__wbg_ptr,t)}get width(){return r.__wbg_get_bbox_width(this.__wbg_ptr)}set width(t){r.__wbg_set_bbox_width(this.__wbg_ptr,t)}get height(){return r.__wbg_get_bbox_height(this.__wbg_ptr)}set height(t){r.__wbg_set_bbox_height(this.__wbg_ptr,t)}},E=class e{static __wrap(t){t=t>>>0;let n=Object.create(e.prototype);return n.__wbg_ptr=t,n}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){let t=this.__destroy_into_raw();r.__wbg_renderedimage_free(t)}get width(){return r.renderedimage_width(this.__wbg_ptr)>>>0}get height(){return r.renderedimage_height(this.__wbg_ptr)>>>0}asPng(){try{let o=r.__wbindgen_add_to_stack_pointer(-16);r.renderedimage_asPng(o,this.__wbg_ptr);var t=i()[o/4+0],n=i()[o/4+1],_=i()[o/4+2];if(_)throw f(n);return f(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get pixels(){let t=r.renderedimage_pixels(this.__wbg_ptr);return f(t)}},A=class e{static __wrap(t){t=t>>>0;let n=Object.create(e.prototype);return n.__wbg_ptr=t,n}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){let t=this.__destroy_into_raw();r.__wbg_resvg_free(t)}constructor(t,n,_){try{let m=r.__wbindgen_add_to_stack_pointer(-16);var o=k(n)?0:W(n,r.__wbindgen_malloc,r.__wbindgen_realloc),g=y;r.resvg_new(m,a(t),o,g,k(_)?0:a(_));var s=i()[m/4+0],b=i()[m/4+1],u=i()[m/4+2];if(u)throw f(b);return e.__wrap(s)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get width(){return r.resvg_width(this.__wbg_ptr)}get height(){return r.resvg_height(this.__wbg_ptr)}render(){try{let o=r.__wbindgen_add_to_stack_pointer(-16);r.resvg_render(o,this.__wbg_ptr);var t=i()[o/4+0],n=i()[o/4+1],_=i()[o/4+2];if(_)throw f(n);return E.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}toString(){let t,n;try{let g=r.__wbindgen_add_to_stack_pointer(-16);r.resvg_toString(g,this.__wbg_ptr);var _=i()[g/4+0],o=i()[g/4+1];return t=_,n=o,O(_,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,n,1)}}innerBBox(){let t=r.resvg_innerBBox(this.__wbg_ptr);return t===0?void 0:h.__wrap(t)}getBBox(){let t=r.resvg_getBBox(this.__wbg_ptr);return t===0?void 0:h.__wrap(t)}cropByBBox(t){P(t,h),r.resvg_cropByBBox(this.__wbg_ptr,t.__wbg_ptr)}imagesToResolve(){try{let o=r.__wbindgen_add_to_stack_pointer(-16);r.resvg_imagesToResolve(o,this.__wbg_ptr);var t=i()[o/4+0],n=i()[o/4+1],_=i()[o/4+2];if(_)throw f(n);return f(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}resolveImage(t,n){try{let g=r.__wbindgen_add_to_stack_pointer(-16),s=W(t,r.__wbindgen_malloc,r.__wbindgen_realloc),b=y;r.resvg_resolveImage(g,this.__wbg_ptr,s,b,a(n));var _=i()[g/4+0],o=i()[g/4+1];if(o)throw f(_)}finally{r.__wbindgen_add_to_stack_pointer(16)}}};async function q(e,t){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,t)}catch(_){if(e.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",_);else throw _}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function J(){let e={};return e.wbg={},e.wbg.__wbg_new_d258248ed531ff54=function(t,n){let _=new Error(O(t,n));return a(_)},e.wbg.__wbindgen_memory=function(){let t=r.memory;return a(t)},e.wbg.__wbg_buffer_085ec1f694018c4f=function(t){let n=c(t).buffer;return a(n)},e.wbg.__wbg_newwithbyteoffsetandlength_6da8e527659b86aa=function(t,n,_){let o=new Uint8Array(c(t),n>>>0,_>>>0);return a(o)},e.wbg.__wbindgen_object_drop_ref=function(t){f(t)},e.wbg.__wbg_new_8125e318e6245eed=function(t){let n=new Uint8Array(c(t));return a(n)},e.wbg.__wbg_values_e80af618f92c8649=function(t){let n=c(t).values();return a(n)},e.wbg.__wbg_next_ddb3312ca1c4e32a=function(){return N(function(t){let n=c(t).next();return a(n)},arguments)},e.wbg.__wbg_done_5c1f01fb660d73b5=function(t){return c(t).done},e.wbg.__wbg_value_1695675138684bd5=function(t){let n=c(t).value;return a(n)},e.wbg.__wbg_instanceof_Uint8Array_d8d9cb2b8e8ac1d4=function(t){let n;try{n=c(t)instanceof Uint8Array}catch{n=!1}return n},e.wbg.__wbindgen_string_get=function(t,n){let _=c(n),o=typeof _=="string"?_:void 0;var g=k(o)?0:W(o,r.__wbindgen_malloc,r.__wbindgen_realloc),s=y;i()[t/4+1]=s,i()[t/4+0]=g},e.wbg.__wbg_new_898a68150f225f2e=function(){let t=new Array;return a(t)},e.wbg.__wbindgen_string_new=function(t,n){let _=O(t,n);return a(_)},e.wbg.__wbg_push_ca1c26067ef907ac=function(t,n){return c(t).push(c(n))},e.wbg.__wbg_length_72e2208bbc0efc61=function(t){return c(t).length},e.wbg.__wbg_set_5cf90238115182c3=function(t,n,_){c(t).set(c(n),_>>>0)},e.wbg.__wbindgen_throw=function(t,n){throw new Error(O(t,n))},e}function H(e,t){return r=e.exports,T.__wbindgen_wasm_module=t,l=null,d=null,r}async function T(e){if(r!==void 0)return r;typeof e>"u"&&(e=new URL("index_bg.wasm",void 0));let t=J();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));let{instance:n,module:_}=await q(await e,t);return H(n,_)}var S=T;var I=!1,V=async e=>{if(I)throw new Error("Already initialized. The `initWasm()` function can be used only once.");await S(await e),I=!0},$=class extends A{constructor(e,t){if(!I)throw new Error("Wasm has not been initialized. Call `initWasm()` function.");let n=t?.font;if(n&&G(n)){let _={...t,font:{...n,fontBuffers:void 0}};super(e,JSON.stringify(_),n.fontBuffers)}else super(e,JSON.stringify(t))}};function G(e){return Object.prototype.hasOwnProperty.call(e,"fontBuffers")}return L(K);})(); diff --git a/wasm/index.mjs b/wasm/index.mjs index 4c353df5..e0281ba5 100644 --- a/wasm/index.mjs +++ b/wasm/index.mjs @@ -33,7 +33,9 @@ function getUint8Memory0() { } return cachedUint8Memory0; } -var cachedTextEncoder = new TextEncoder("utf-8"); +var cachedTextEncoder = typeof TextEncoder !== "undefined" ? new TextEncoder("utf-8") : { encode: () => { + throw Error("TextEncoder not available"); +} }; var encodeString = typeof cachedTextEncoder.encodeInto === "function" ? function(arg, view) { return cachedTextEncoder.encodeInto(arg, view); } : function(arg, view) { @@ -47,13 +49,13 @@ var encodeString = typeof cachedTextEncoder.encodeInto === "function" ? function function passStringToWasm0(arg, malloc, realloc) { if (realloc === void 0) { const buf = cachedTextEncoder.encode(arg); - const ptr2 = malloc(buf.length); + const ptr2 = malloc(buf.length, 1) >>> 0; getUint8Memory0().subarray(ptr2, ptr2 + buf.length).set(buf); WASM_VECTOR_LEN = buf.length; return ptr2; } let len = arg.length; - let ptr = malloc(len); + let ptr = malloc(len, 1) >>> 0; const mem = getUint8Memory0(); let offset = 0; for (; offset < len; offset++) { @@ -66,7 +68,7 @@ function passStringToWasm0(arg, malloc, realloc) { if (offset !== 0) { arg = arg.slice(offset); } - ptr = realloc(ptr, len, len = offset + arg.length * 3); + ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0; const view = getUint8Memory0().subarray(ptr + offset, ptr + len); const ret = encodeString(arg, view); offset += ret.written; @@ -84,9 +86,14 @@ function getInt32Memory0() { } return cachedInt32Memory0; } -var cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }); -cachedTextDecoder.decode(); +var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => { + throw Error("TextDecoder not available"); +} }; +if (typeof TextDecoder !== "undefined") { + cachedTextDecoder.decode(); +} function getStringFromWasm0(ptr, len) { + ptr = ptr >>> 0; return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); } function _assertClass(instance, klass) { @@ -104,13 +111,14 @@ function handleError(f, args) { } var BBox = class _BBox { static __wrap(ptr) { + ptr = ptr >>> 0; const obj = Object.create(_BBox.prototype); - obj.ptr = ptr; + obj.__wbg_ptr = ptr; return obj; } __destroy_into_raw() { - const ptr = this.ptr; - this.ptr = 0; + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; return ptr; } free() { @@ -121,64 +129,65 @@ var BBox = class _BBox { * @returns {number} */ get x() { - const ret = wasm.__wbg_get_bbox_x(this.ptr); + const ret = wasm.__wbg_get_bbox_x(this.__wbg_ptr); return ret; } /** * @param {number} arg0 */ set x(arg0) { - wasm.__wbg_set_bbox_x(this.ptr, arg0); + wasm.__wbg_set_bbox_x(this.__wbg_ptr, arg0); } /** * @returns {number} */ get y() { - const ret = wasm.__wbg_get_bbox_y(this.ptr); + const ret = wasm.__wbg_get_bbox_y(this.__wbg_ptr); return ret; } /** * @param {number} arg0 */ set y(arg0) { - wasm.__wbg_set_bbox_y(this.ptr, arg0); + wasm.__wbg_set_bbox_y(this.__wbg_ptr, arg0); } /** * @returns {number} */ get width() { - const ret = wasm.__wbg_get_bbox_width(this.ptr); + const ret = wasm.__wbg_get_bbox_width(this.__wbg_ptr); return ret; } /** * @param {number} arg0 */ set width(arg0) { - wasm.__wbg_set_bbox_width(this.ptr, arg0); + wasm.__wbg_set_bbox_width(this.__wbg_ptr, arg0); } /** * @returns {number} */ get height() { - const ret = wasm.__wbg_get_bbox_height(this.ptr); + const ret = wasm.__wbg_get_bbox_height(this.__wbg_ptr); return ret; } /** * @param {number} arg0 */ set height(arg0) { - wasm.__wbg_set_bbox_height(this.ptr, arg0); + wasm.__wbg_set_bbox_height(this.__wbg_ptr, arg0); } }; var RenderedImage = class _RenderedImage { static __wrap(ptr) { + ptr = ptr >>> 0; const obj = Object.create(_RenderedImage.prototype); - obj.ptr = ptr; + obj.__wbg_ptr = ptr; return obj; } __destroy_into_raw() { - const ptr = this.ptr; - this.ptr = 0; + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; return ptr; } free() { @@ -190,7 +199,7 @@ var RenderedImage = class _RenderedImage { * @returns {number} */ get width() { - const ret = wasm.renderedimage_width(this.ptr); + const ret = wasm.renderedimage_width(this.__wbg_ptr); return ret >>> 0; } /** @@ -198,7 +207,7 @@ var RenderedImage = class _RenderedImage { * @returns {number} */ get height() { - const ret = wasm.renderedimage_height(this.ptr); + const ret = wasm.renderedimage_height(this.__wbg_ptr); return ret >>> 0; } /** @@ -208,7 +217,7 @@ var RenderedImage = class _RenderedImage { asPng() { try { const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); - wasm.renderedimage_asPng(retptr, this.ptr); + wasm.renderedimage_asPng(retptr, this.__wbg_ptr); var r0 = getInt32Memory0()[retptr / 4 + 0]; var r1 = getInt32Memory0()[retptr / 4 + 1]; var r2 = getInt32Memory0()[retptr / 4 + 2]; @@ -225,19 +234,20 @@ var RenderedImage = class _RenderedImage { * @returns {Uint8Array} */ get pixels() { - const ret = wasm.renderedimage_pixels(this.ptr); + const ret = wasm.renderedimage_pixels(this.__wbg_ptr); return takeObject(ret); } }; var Resvg = class _Resvg { static __wrap(ptr) { + ptr = ptr >>> 0; const obj = Object.create(_Resvg.prototype); - obj.ptr = ptr; + obj.__wbg_ptr = ptr; return obj; } __destroy_into_raw() { - const ptr = this.ptr; - this.ptr = 0; + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; return ptr; } free() { @@ -271,7 +281,7 @@ var Resvg = class _Resvg { * @returns {number} */ get width() { - const ret = wasm.resvg_width(this.ptr); + const ret = wasm.resvg_width(this.__wbg_ptr); return ret; } /** @@ -279,7 +289,7 @@ var Resvg = class _Resvg { * @returns {number} */ get height() { - const ret = wasm.resvg_height(this.ptr); + const ret = wasm.resvg_height(this.__wbg_ptr); return ret; } /** @@ -289,7 +299,7 @@ var Resvg = class _Resvg { render() { try { const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); - wasm.resvg_render(retptr, this.ptr); + wasm.resvg_render(retptr, this.__wbg_ptr); var r0 = getInt32Memory0()[retptr / 4 + 0]; var r1 = getInt32Memory0()[retptr / 4 + 1]; var r2 = getInt32Memory0()[retptr / 4 + 2]; @@ -306,15 +316,19 @@ var Resvg = class _Resvg { * @returns {string} */ toString() { + let deferred1_0; + let deferred1_1; try { const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); - wasm.resvg_toString(retptr, this.ptr); + wasm.resvg_toString(retptr, this.__wbg_ptr); var r0 = getInt32Memory0()[retptr / 4 + 0]; var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; return getStringFromWasm0(r0, r1); } finally { wasm.__wbindgen_add_to_stack_pointer(16); - wasm.__wbindgen_free(r0, r1); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); } } /** @@ -324,7 +338,7 @@ var Resvg = class _Resvg { * @returns {BBox | undefined} */ innerBBox() { - const ret = wasm.resvg_innerBBox(this.ptr); + const ret = wasm.resvg_innerBBox(this.__wbg_ptr); return ret === 0 ? void 0 : BBox.__wrap(ret); } /** @@ -334,7 +348,7 @@ var Resvg = class _Resvg { * @returns {BBox | undefined} */ getBBox() { - const ret = wasm.resvg_getBBox(this.ptr); + const ret = wasm.resvg_getBBox(this.__wbg_ptr); return ret === 0 ? void 0 : BBox.__wrap(ret); } /** @@ -344,7 +358,7 @@ var Resvg = class _Resvg { */ cropByBBox(bbox) { _assertClass(bbox, BBox); - wasm.resvg_cropByBBox(this.ptr, bbox.ptr); + wasm.resvg_cropByBBox(this.__wbg_ptr, bbox.__wbg_ptr); } /** * @returns {Array} @@ -352,7 +366,7 @@ var Resvg = class _Resvg { imagesToResolve() { try { const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); - wasm.resvg_imagesToResolve(retptr, this.ptr); + wasm.resvg_imagesToResolve(retptr, this.__wbg_ptr); var r0 = getInt32Memory0()[retptr / 4 + 0]; var r1 = getInt32Memory0()[retptr / 4 + 1]; var r2 = getInt32Memory0()[retptr / 4 + 2]; @@ -373,7 +387,7 @@ var Resvg = class _Resvg { const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); const ptr0 = passStringToWasm0(href, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len0 = WASM_VECTOR_LEN; - wasm.resvg_resolveImage(retptr, this.ptr, ptr0, len0, addHeapObject(buffer)); + wasm.resvg_resolveImage(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(buffer)); var r0 = getInt32Memory0()[retptr / 4 + 0]; var r1 = getInt32Memory0()[retptr / 4 + 1]; if (r1) { @@ -384,7 +398,7 @@ var Resvg = class _Resvg { } } }; -async function load(module, imports) { +async function __wbg_load(module, imports) { if (typeof Response === "function" && module instanceof Response) { if (typeof WebAssembly.instantiateStreaming === "function") { try { @@ -408,10 +422,10 @@ async function load(module, imports) { } } } -function getImports() { +function __wbg_get_imports() { const imports = {}; imports.wbg = {}; - imports.wbg.__wbg_new_15d3966e9981a196 = function(arg0, arg1) { + imports.wbg.__wbg_new_d258248ed531ff54 = function(arg0, arg1) { const ret = new Error(getStringFromWasm0(arg0, arg1)); return addHeapObject(ret); }; @@ -419,40 +433,40 @@ function getImports() { const ret = wasm.memory; return addHeapObject(ret); }; - imports.wbg.__wbg_buffer_cf65c07de34b9a08 = function(arg0) { + imports.wbg.__wbg_buffer_085ec1f694018c4f = function(arg0) { const ret = getObject(arg0).buffer; return addHeapObject(ret); }; - imports.wbg.__wbg_newwithbyteoffsetandlength_9fb2f11355ecadf5 = function(arg0, arg1, arg2) { + imports.wbg.__wbg_newwithbyteoffsetandlength_6da8e527659b86aa = function(arg0, arg1, arg2) { const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0); return addHeapObject(ret); }; imports.wbg.__wbindgen_object_drop_ref = function(arg0) { takeObject(arg0); }; - imports.wbg.__wbg_new_537b7341ce90bb31 = function(arg0) { + imports.wbg.__wbg_new_8125e318e6245eed = function(arg0) { const ret = new Uint8Array(getObject(arg0)); return addHeapObject(ret); }; - imports.wbg.__wbg_values_97683218f24ed826 = function(arg0) { + imports.wbg.__wbg_values_e80af618f92c8649 = function(arg0) { const ret = getObject(arg0).values(); return addHeapObject(ret); }; - imports.wbg.__wbg_next_88560ec06a094dea = function() { + imports.wbg.__wbg_next_ddb3312ca1c4e32a = function() { return handleError(function(arg0) { const ret = getObject(arg0).next(); return addHeapObject(ret); }, arguments); }; - imports.wbg.__wbg_done_1ebec03bbd919843 = function(arg0) { + imports.wbg.__wbg_done_5c1f01fb660d73b5 = function(arg0) { const ret = getObject(arg0).done; return ret; }; - imports.wbg.__wbg_value_6ac8da5cc5b3efda = function(arg0) { + imports.wbg.__wbg_value_1695675138684bd5 = function(arg0) { const ret = getObject(arg0).value; return addHeapObject(ret); }; - imports.wbg.__wbg_instanceof_Uint8Array_01cebe79ca606cca = function(arg0) { + imports.wbg.__wbg_instanceof_Uint8Array_d8d9cb2b8e8ac1d4 = function(arg0) { let result; try { result = getObject(arg0) instanceof Uint8Array; @@ -465,12 +479,12 @@ function getImports() { imports.wbg.__wbindgen_string_get = function(arg0, arg1) { const obj = getObject(arg1); const ret = typeof obj === "string" ? obj : void 0; - var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - getInt32Memory0()[arg0 / 4 + 1] = len0; - getInt32Memory0()[arg0 / 4 + 0] = ptr0; + var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; }; - imports.wbg.__wbg_new_b525de17f44a8943 = function() { + imports.wbg.__wbg_new_898a68150f225f2e = function() { const ret = new Array(); return addHeapObject(ret); }; @@ -478,15 +492,15 @@ function getImports() { const ret = getStringFromWasm0(arg0, arg1); return addHeapObject(ret); }; - imports.wbg.__wbg_push_49c286f04dd3bf59 = function(arg0, arg1) { + imports.wbg.__wbg_push_ca1c26067ef907ac = function(arg0, arg1) { const ret = getObject(arg0).push(getObject(arg1)); return ret; }; - imports.wbg.__wbg_length_27a2afe8ab42b09f = function(arg0) { + imports.wbg.__wbg_length_72e2208bbc0efc61 = function(arg0) { const ret = getObject(arg0).length; return ret; }; - imports.wbg.__wbg_set_17499e8aa4003ebd = function(arg0, arg1, arg2) { + imports.wbg.__wbg_set_5cf90238115182c3 = function(arg0, arg1, arg2) { getObject(arg0).set(getObject(arg1), arg2 >>> 0); }; imports.wbg.__wbindgen_throw = function(arg0, arg1) { @@ -494,28 +508,30 @@ function getImports() { }; return imports; } -function initMemory(imports, maybe_memory) { +function __wbg_init_memory(imports, maybe_memory) { } -function finalizeInit(instance, module) { +function __wbg_finalize_init(instance, module) { wasm = instance.exports; - init.__wbindgen_wasm_module = module; + __wbg_init.__wbindgen_wasm_module = module; cachedInt32Memory0 = null; cachedUint8Memory0 = null; return wasm; } -async function init(input) { +async function __wbg_init(input) { + if (wasm !== void 0) + return wasm; if (typeof input === "undefined") { input = new URL("index_bg.wasm", void 0); } - const imports = getImports(); + const imports = __wbg_get_imports(); if (typeof input === "string" || typeof Request === "function" && input instanceof Request || typeof URL === "function" && input instanceof URL) { input = fetch(input); } - initMemory(imports); - const { instance, module } = await load(await input, imports); - return finalizeInit(instance, module); + __wbg_init_memory(imports); + const { instance, module } = await __wbg_load(await input, imports); + return __wbg_finalize_init(instance, module); } -var dist_default = init; +var dist_default = __wbg_init; // wasm-binding.ts var initialized = false; diff --git a/wasm/index_bg.wasm b/wasm/index_bg.wasm index c9d701d8..76aedf2e 100644 Binary files a/wasm/index_bg.wasm and b/wasm/index_bg.wasm differ diff --git a/yarn.lock b/yarn.lock index 8a19897e..9ae713c2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5,156 +5,156 @@ __metadata: version: 6 cacheKey: 8 -"@esbuild/android-arm64@npm:0.19.2": - version: 0.19.2 - resolution: "@esbuild/android-arm64@npm:0.19.2" +"@esbuild/android-arm64@npm:0.19.3": + version: 0.19.3 + resolution: "@esbuild/android-arm64@npm:0.19.3" conditions: os=android & cpu=arm64 languageName: node linkType: hard -"@esbuild/android-arm@npm:0.19.2": - version: 0.19.2 - resolution: "@esbuild/android-arm@npm:0.19.2" +"@esbuild/android-arm@npm:0.19.3": + version: 0.19.3 + resolution: "@esbuild/android-arm@npm:0.19.3" conditions: os=android & cpu=arm languageName: node linkType: hard -"@esbuild/android-x64@npm:0.19.2": - version: 0.19.2 - resolution: "@esbuild/android-x64@npm:0.19.2" +"@esbuild/android-x64@npm:0.19.3": + version: 0.19.3 + resolution: "@esbuild/android-x64@npm:0.19.3" conditions: os=android & cpu=x64 languageName: node linkType: hard -"@esbuild/darwin-arm64@npm:0.19.2": - version: 0.19.2 - resolution: "@esbuild/darwin-arm64@npm:0.19.2" +"@esbuild/darwin-arm64@npm:0.19.3": + version: 0.19.3 + resolution: "@esbuild/darwin-arm64@npm:0.19.3" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@esbuild/darwin-x64@npm:0.19.2": - version: 0.19.2 - resolution: "@esbuild/darwin-x64@npm:0.19.2" +"@esbuild/darwin-x64@npm:0.19.3": + version: 0.19.3 + resolution: "@esbuild/darwin-x64@npm:0.19.3" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@esbuild/freebsd-arm64@npm:0.19.2": - version: 0.19.2 - resolution: "@esbuild/freebsd-arm64@npm:0.19.2" +"@esbuild/freebsd-arm64@npm:0.19.3": + version: 0.19.3 + resolution: "@esbuild/freebsd-arm64@npm:0.19.3" conditions: os=freebsd & cpu=arm64 languageName: node linkType: hard -"@esbuild/freebsd-x64@npm:0.19.2": - version: 0.19.2 - resolution: "@esbuild/freebsd-x64@npm:0.19.2" +"@esbuild/freebsd-x64@npm:0.19.3": + version: 0.19.3 + resolution: "@esbuild/freebsd-x64@npm:0.19.3" conditions: os=freebsd & cpu=x64 languageName: node linkType: hard -"@esbuild/linux-arm64@npm:0.19.2": - version: 0.19.2 - resolution: "@esbuild/linux-arm64@npm:0.19.2" +"@esbuild/linux-arm64@npm:0.19.3": + version: 0.19.3 + resolution: "@esbuild/linux-arm64@npm:0.19.3" conditions: os=linux & cpu=arm64 languageName: node linkType: hard -"@esbuild/linux-arm@npm:0.19.2": - version: 0.19.2 - resolution: "@esbuild/linux-arm@npm:0.19.2" +"@esbuild/linux-arm@npm:0.19.3": + version: 0.19.3 + resolution: "@esbuild/linux-arm@npm:0.19.3" conditions: os=linux & cpu=arm languageName: node linkType: hard -"@esbuild/linux-ia32@npm:0.19.2": - version: 0.19.2 - resolution: "@esbuild/linux-ia32@npm:0.19.2" +"@esbuild/linux-ia32@npm:0.19.3": + version: 0.19.3 + resolution: "@esbuild/linux-ia32@npm:0.19.3" conditions: os=linux & cpu=ia32 languageName: node linkType: hard -"@esbuild/linux-loong64@npm:0.19.2": - version: 0.19.2 - resolution: "@esbuild/linux-loong64@npm:0.19.2" +"@esbuild/linux-loong64@npm:0.19.3": + version: 0.19.3 + resolution: "@esbuild/linux-loong64@npm:0.19.3" conditions: os=linux & cpu=loong64 languageName: node linkType: hard -"@esbuild/linux-mips64el@npm:0.19.2": - version: 0.19.2 - resolution: "@esbuild/linux-mips64el@npm:0.19.2" +"@esbuild/linux-mips64el@npm:0.19.3": + version: 0.19.3 + resolution: "@esbuild/linux-mips64el@npm:0.19.3" conditions: os=linux & cpu=mips64el languageName: node linkType: hard -"@esbuild/linux-ppc64@npm:0.19.2": - version: 0.19.2 - resolution: "@esbuild/linux-ppc64@npm:0.19.2" +"@esbuild/linux-ppc64@npm:0.19.3": + version: 0.19.3 + resolution: "@esbuild/linux-ppc64@npm:0.19.3" conditions: os=linux & cpu=ppc64 languageName: node linkType: hard -"@esbuild/linux-riscv64@npm:0.19.2": - version: 0.19.2 - resolution: "@esbuild/linux-riscv64@npm:0.19.2" +"@esbuild/linux-riscv64@npm:0.19.3": + version: 0.19.3 + resolution: "@esbuild/linux-riscv64@npm:0.19.3" conditions: os=linux & cpu=riscv64 languageName: node linkType: hard -"@esbuild/linux-s390x@npm:0.19.2": - version: 0.19.2 - resolution: "@esbuild/linux-s390x@npm:0.19.2" +"@esbuild/linux-s390x@npm:0.19.3": + version: 0.19.3 + resolution: "@esbuild/linux-s390x@npm:0.19.3" conditions: os=linux & cpu=s390x languageName: node linkType: hard -"@esbuild/linux-x64@npm:0.19.2": - version: 0.19.2 - resolution: "@esbuild/linux-x64@npm:0.19.2" +"@esbuild/linux-x64@npm:0.19.3": + version: 0.19.3 + resolution: "@esbuild/linux-x64@npm:0.19.3" conditions: os=linux & cpu=x64 languageName: node linkType: hard -"@esbuild/netbsd-x64@npm:0.19.2": - version: 0.19.2 - resolution: "@esbuild/netbsd-x64@npm:0.19.2" +"@esbuild/netbsd-x64@npm:0.19.3": + version: 0.19.3 + resolution: "@esbuild/netbsd-x64@npm:0.19.3" conditions: os=netbsd & cpu=x64 languageName: node linkType: hard -"@esbuild/openbsd-x64@npm:0.19.2": - version: 0.19.2 - resolution: "@esbuild/openbsd-x64@npm:0.19.2" +"@esbuild/openbsd-x64@npm:0.19.3": + version: 0.19.3 + resolution: "@esbuild/openbsd-x64@npm:0.19.3" conditions: os=openbsd & cpu=x64 languageName: node linkType: hard -"@esbuild/sunos-x64@npm:0.19.2": - version: 0.19.2 - resolution: "@esbuild/sunos-x64@npm:0.19.2" +"@esbuild/sunos-x64@npm:0.19.3": + version: 0.19.3 + resolution: "@esbuild/sunos-x64@npm:0.19.3" conditions: os=sunos & cpu=x64 languageName: node linkType: hard -"@esbuild/win32-arm64@npm:0.19.2": - version: 0.19.2 - resolution: "@esbuild/win32-arm64@npm:0.19.2" +"@esbuild/win32-arm64@npm:0.19.3": + version: 0.19.3 + resolution: "@esbuild/win32-arm64@npm:0.19.3" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@esbuild/win32-ia32@npm:0.19.2": - version: 0.19.2 - resolution: "@esbuild/win32-ia32@npm:0.19.2" +"@esbuild/win32-ia32@npm:0.19.3": + version: 0.19.3 + resolution: "@esbuild/win32-ia32@npm:0.19.3" conditions: os=win32 & cpu=ia32 languageName: node linkType: hard -"@esbuild/win32-x64@npm:0.19.2": - version: 0.19.2 - resolution: "@esbuild/win32-x64@npm:0.19.2" +"@esbuild/win32-x64@npm:0.19.3": + version: 0.19.3 + resolution: "@esbuild/win32-x64@npm:0.19.3" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -240,12 +240,12 @@ __metadata: languageName: node linkType: hard -"@napi-rs/cli@npm:^2.14.6": - version: 2.14.6 - resolution: "@napi-rs/cli@npm:2.14.6" +"@napi-rs/cli@npm:^2.16.3": + version: 2.16.3 + resolution: "@napi-rs/cli@npm:2.16.3" bin: napi: scripts/index.js - checksum: f34d6af1df96a5a592babd9f67b7aa1750527c1874c2ab7b6692511fb1eda058628739b3259429fa8d2f771fe8aba4476ed68f43cb26d93ee2106ad757679315 + checksum: 11f78b09548bc5c22df56e4fab4a87b68c2d3f2a18a55cf11e775e6a4cb5739ec0e21a14e614db2cdc2b9773cb42536c6bd00c3f85d3b461f956594f8a89ddcb languageName: node linkType: hard @@ -300,16 +300,16 @@ __metadata: version: 0.0.0-use.local resolution: "@resvg/resvg-js@workspace:." dependencies: - "@napi-rs/cli": ^2.14.6 - "@swc-node/register": ^1.6.4 - "@swc/core": ^1.3.53 - "@types/node": ^18.16.0 - "@typescript-eslint/eslint-plugin": ^6.0.0 - "@typescript-eslint/parser": ^6.0.0 - ava: ^5.2.0 + "@napi-rs/cli": ^2.16.3 + "@swc-node/register": 1.6.4 + "@swc/core": ^1.3.88 + "@types/node": ^20.6.5 + "@typescript-eslint/eslint-plugin": ^6.7.2 + "@typescript-eslint/parser": ^6.7.2 + ava: ^5.3.1 copyfiles: ^2.4.1 dts-bundle-generator: ^8.0.1 - esbuild: ^0.19.0 + esbuild: ^0.19.3 eslint: ^8.39.0 eslint-config-prettier: ^8.5.0 eslint-plugin-import: ^2.26.0 @@ -321,20 +321,20 @@ __metadata: node-fetch: 2.x npm-run-all: ^4.1.5 prettier: ^2.7.1 - typescript: ^5.0.4 + typescript: ^5.2.2 languageName: unknown linkType: soft "@swc-node/core@npm:^1.10.3": - version: 1.10.3 - resolution: "@swc-node/core@npm:1.10.3" + version: 1.10.5 + resolution: "@swc-node/core@npm:1.10.5" peerDependencies: "@swc/core": ">= 1.3" - checksum: 6e3e50a44d7a1c1aa62599d83c58f21568c1da03422124b46634488aba02747939063eeb1a2710aab0ab9f14f347386226a017ed72e6ba608d4a26532cd426af + checksum: 642e230388fd53842a4ad2c7daff0bf4cf1327f0002de49a5fac19d74770f5a0a5b7dd265c1e2feafa08ef22fa5dfe7957e375c03834a3059adefecfdbbff274 languageName: node linkType: hard -"@swc-node/register@npm:^1.6.4": +"@swc-node/register@npm:1.6.4": version: 1.6.4 resolution: "@swc-node/register@npm:1.6.4" dependencies: @@ -361,90 +361,92 @@ __metadata: languageName: node linkType: hard -"@swc/core-darwin-arm64@npm:1.3.53": - version: 1.3.53 - resolution: "@swc/core-darwin-arm64@npm:1.3.53" +"@swc/core-darwin-arm64@npm:1.3.88": + version: 1.3.88 + resolution: "@swc/core-darwin-arm64@npm:1.3.88" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@swc/core-darwin-x64@npm:1.3.53": - version: 1.3.53 - resolution: "@swc/core-darwin-x64@npm:1.3.53" +"@swc/core-darwin-x64@npm:1.3.88": + version: 1.3.88 + resolution: "@swc/core-darwin-x64@npm:1.3.88" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@swc/core-linux-arm-gnueabihf@npm:1.3.53": - version: 1.3.53 - resolution: "@swc/core-linux-arm-gnueabihf@npm:1.3.53" +"@swc/core-linux-arm-gnueabihf@npm:1.3.88": + version: 1.3.88 + resolution: "@swc/core-linux-arm-gnueabihf@npm:1.3.88" conditions: os=linux & cpu=arm languageName: node linkType: hard -"@swc/core-linux-arm64-gnu@npm:1.3.53": - version: 1.3.53 - resolution: "@swc/core-linux-arm64-gnu@npm:1.3.53" +"@swc/core-linux-arm64-gnu@npm:1.3.88": + version: 1.3.88 + resolution: "@swc/core-linux-arm64-gnu@npm:1.3.88" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@swc/core-linux-arm64-musl@npm:1.3.53": - version: 1.3.53 - resolution: "@swc/core-linux-arm64-musl@npm:1.3.53" +"@swc/core-linux-arm64-musl@npm:1.3.88": + version: 1.3.88 + resolution: "@swc/core-linux-arm64-musl@npm:1.3.88" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@swc/core-linux-x64-gnu@npm:1.3.53": - version: 1.3.53 - resolution: "@swc/core-linux-x64-gnu@npm:1.3.53" +"@swc/core-linux-x64-gnu@npm:1.3.88": + version: 1.3.88 + resolution: "@swc/core-linux-x64-gnu@npm:1.3.88" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@swc/core-linux-x64-musl@npm:1.3.53": - version: 1.3.53 - resolution: "@swc/core-linux-x64-musl@npm:1.3.53" +"@swc/core-linux-x64-musl@npm:1.3.88": + version: 1.3.88 + resolution: "@swc/core-linux-x64-musl@npm:1.3.88" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard -"@swc/core-win32-arm64-msvc@npm:1.3.53": - version: 1.3.53 - resolution: "@swc/core-win32-arm64-msvc@npm:1.3.53" +"@swc/core-win32-arm64-msvc@npm:1.3.88": + version: 1.3.88 + resolution: "@swc/core-win32-arm64-msvc@npm:1.3.88" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@swc/core-win32-ia32-msvc@npm:1.3.53": - version: 1.3.53 - resolution: "@swc/core-win32-ia32-msvc@npm:1.3.53" +"@swc/core-win32-ia32-msvc@npm:1.3.88": + version: 1.3.88 + resolution: "@swc/core-win32-ia32-msvc@npm:1.3.88" conditions: os=win32 & cpu=ia32 languageName: node linkType: hard -"@swc/core-win32-x64-msvc@npm:1.3.53": - version: 1.3.53 - resolution: "@swc/core-win32-x64-msvc@npm:1.3.53" +"@swc/core-win32-x64-msvc@npm:1.3.88": + version: 1.3.88 + resolution: "@swc/core-win32-x64-msvc@npm:1.3.88" conditions: os=win32 & cpu=x64 languageName: node linkType: hard -"@swc/core@npm:^1.3.53": - version: 1.3.53 - resolution: "@swc/core@npm:1.3.53" +"@swc/core@npm:^1.3.88": + version: 1.3.88 + resolution: "@swc/core@npm:1.3.88" dependencies: - "@swc/core-darwin-arm64": 1.3.53 - "@swc/core-darwin-x64": 1.3.53 - "@swc/core-linux-arm-gnueabihf": 1.3.53 - "@swc/core-linux-arm64-gnu": 1.3.53 - "@swc/core-linux-arm64-musl": 1.3.53 - "@swc/core-linux-x64-gnu": 1.3.53 - "@swc/core-linux-x64-musl": 1.3.53 - "@swc/core-win32-arm64-msvc": 1.3.53 - "@swc/core-win32-ia32-msvc": 1.3.53 - "@swc/core-win32-x64-msvc": 1.3.53 + "@swc/core-darwin-arm64": 1.3.88 + "@swc/core-darwin-x64": 1.3.88 + "@swc/core-linux-arm-gnueabihf": 1.3.88 + "@swc/core-linux-arm64-gnu": 1.3.88 + "@swc/core-linux-arm64-musl": 1.3.88 + "@swc/core-linux-x64-gnu": 1.3.88 + "@swc/core-linux-x64-musl": 1.3.88 + "@swc/core-win32-arm64-msvc": 1.3.88 + "@swc/core-win32-ia32-msvc": 1.3.88 + "@swc/core-win32-x64-msvc": 1.3.88 + "@swc/counter": ^0.1.1 + "@swc/types": ^0.1.5 peerDependencies: "@swc/helpers": ^0.5.0 dependenciesMeta: @@ -471,7 +473,21 @@ __metadata: peerDependenciesMeta: "@swc/helpers": optional: true - checksum: b446aaee4db7e1febf18a4f8490ac9fc8af39cea9e9eed436ec0ec9910e15bd8c4efa88b0a8a1abd95c1bc01ac5cffede1cb0b027371d6879071c2b038bc0e81 + checksum: caaf06fc1f4d472b20d825cf84139306777d03d599b6a2a7cddc01e2edc176479992166acb94034989222a8f662662f05ec48bb16d6262a471b9be45c1a7d9cd + languageName: node + linkType: hard + +"@swc/counter@npm:^0.1.1": + version: 0.1.1 + resolution: "@swc/counter@npm:0.1.1" + checksum: bb974babd493ba01c0d4a95ab610c3fc15fbf609c08cb0342798e485f57ecc0950abbf84e07124e63c5fe610b492d9a8dd03701d3b9ef7329d9e8bf3cc44980f + languageName: node + linkType: hard + +"@swc/types@npm:^0.1.5": + version: 0.1.5 + resolution: "@swc/types@npm:0.1.5" + checksum: 6aee11f62d3d805a64848e0bd5f0e0e615f958e327a9e1260056c368d7d28764d89e38bd8005a536c9bf18afbcd303edd84099d60df34a2975d62540f61df13b languageName: node linkType: hard @@ -496,10 +512,10 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:^18.16.0": - version: 18.16.0 - resolution: "@types/node@npm:18.16.0" - checksum: 63e0042136663b9e85ce503a4c65406cc6621fdba63ea66c74b4b1364a9aa9bdb57cadcb76696abab177f38a819b0fa6ace9e7f1647dcb990aedb1b4bd01012f +"@types/node@npm:^20.6.5": + version: 20.6.5 + resolution: "@types/node@npm:20.6.5" + checksum: b849e849cf7631458a65c5019c81962028e306d8c4455a48422277b240f5a7eb8a1f1dafa60306bd4c773b77263bb8b05c074b1026e868bd137bb2022cf63ea2 languageName: node linkType: hard @@ -510,20 +526,19 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/eslint-plugin@npm:^6.0.0": - version: 6.2.0 - resolution: "@typescript-eslint/eslint-plugin@npm:6.2.0" +"@typescript-eslint/eslint-plugin@npm:^6.7.2": + version: 6.7.2 + resolution: "@typescript-eslint/eslint-plugin@npm:6.7.2" dependencies: "@eslint-community/regexpp": ^4.5.1 - "@typescript-eslint/scope-manager": 6.2.0 - "@typescript-eslint/type-utils": 6.2.0 - "@typescript-eslint/utils": 6.2.0 - "@typescript-eslint/visitor-keys": 6.2.0 + "@typescript-eslint/scope-manager": 6.7.2 + "@typescript-eslint/type-utils": 6.7.2 + "@typescript-eslint/utils": 6.7.2 + "@typescript-eslint/visitor-keys": 6.7.2 debug: ^4.3.4 graphemer: ^1.4.0 ignore: ^5.2.4 natural-compare: ^1.4.0 - natural-compare-lite: ^1.4.0 semver: ^7.5.4 ts-api-utils: ^1.0.1 peerDependencies: @@ -532,44 +547,44 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: 1ef46b1c2e3e2013f66b4982dcfb9e198a3824cc1503b843e553201a108a3cb6e4adfb2c486158c89d993e5e4b9d99aeb2af28297e43da98c4750dae8f5131b5 + checksum: 4d6f612619282a20518cd6581bce16cd7c50ac4e49f5eeca2ab916a923049379aa382817568c929216381fb2c1bfbc1c4e6fde16ac8bfdd63862a9126f0ab797 languageName: node linkType: hard -"@typescript-eslint/parser@npm:^6.0.0": - version: 6.2.0 - resolution: "@typescript-eslint/parser@npm:6.2.0" +"@typescript-eslint/parser@npm:^6.7.2": + version: 6.7.2 + resolution: "@typescript-eslint/parser@npm:6.7.2" dependencies: - "@typescript-eslint/scope-manager": 6.2.0 - "@typescript-eslint/types": 6.2.0 - "@typescript-eslint/typescript-estree": 6.2.0 - "@typescript-eslint/visitor-keys": 6.2.0 + "@typescript-eslint/scope-manager": 6.7.2 + "@typescript-eslint/types": 6.7.2 + "@typescript-eslint/typescript-estree": 6.7.2 + "@typescript-eslint/visitor-keys": 6.7.2 debug: ^4.3.4 peerDependencies: eslint: ^7.0.0 || ^8.0.0 peerDependenciesMeta: typescript: optional: true - checksum: ba79674f2d4599a24c7afa8f18ec28243b80df39f82a4a6b7a4ce7c584ec37d4ade40a3aa058d597a5cbf71647a40d0995866748d14cf4b52d8ad4420d10f669 + checksum: 9e93d3eb432ed5457a852e25a31782d07518f728966cd477620175ae64db9be04f5d8e605f3561dbfe9a365f209a83b2a3788efb9b3cf33669c8bca17f1bcf6f languageName: node linkType: hard -"@typescript-eslint/scope-manager@npm:6.2.0": - version: 6.2.0 - resolution: "@typescript-eslint/scope-manager@npm:6.2.0" +"@typescript-eslint/scope-manager@npm:6.7.2": + version: 6.7.2 + resolution: "@typescript-eslint/scope-manager@npm:6.7.2" dependencies: - "@typescript-eslint/types": 6.2.0 - "@typescript-eslint/visitor-keys": 6.2.0 - checksum: 75a650a3ede78bf841a3bf3f4880b94a06aa4c420f399a6fb9faee19a2e5998f7e330a13f78e07c4958413345bab58b0593f09fa163a77e8f6353012e795660c + "@typescript-eslint/types": 6.7.2 + "@typescript-eslint/visitor-keys": 6.7.2 + checksum: e35fa23ecb16252c3ad00b5f1ec05d9b8d33ee30d4c57543892f900443ed77926be9bd2836f06463c31b483f5f0f79070273bc51c4a606f55ac3cd1d9c9cd542 languageName: node linkType: hard -"@typescript-eslint/type-utils@npm:6.2.0": - version: 6.2.0 - resolution: "@typescript-eslint/type-utils@npm:6.2.0" +"@typescript-eslint/type-utils@npm:6.7.2": + version: 6.7.2 + resolution: "@typescript-eslint/type-utils@npm:6.7.2" dependencies: - "@typescript-eslint/typescript-estree": 6.2.0 - "@typescript-eslint/utils": 6.2.0 + "@typescript-eslint/typescript-estree": 6.7.2 + "@typescript-eslint/utils": 6.7.2 debug: ^4.3.4 ts-api-utils: ^1.0.1 peerDependencies: @@ -577,23 +592,23 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: 9adb542fb3c49bf5c1fecca98549bee3fcfd28a0ceee5227817a1ceb0841b912e322f58ba1b3ca98a47fc998cbec0a3d69cacb9cf9ac4be1d133b11bb9d53aae + checksum: 67743f8e4b77d0ab3d82907eda0411ffd221357b60ac9cbd29683d5b8c77127369ebfafcf0bfc30a1f1828927ccd5635fab5b2eaf2b2f1d12a9361549cab3e62 languageName: node linkType: hard -"@typescript-eslint/types@npm:6.2.0": - version: 6.2.0 - resolution: "@typescript-eslint/types@npm:6.2.0" - checksum: 81878866cf7f49dbc335cce05adfbd994f348e2ebe9538fd6e934fa82e44186c16b2112b8d5f9f4c528ea127be157185be5e35e4913db4880d20ac495785baaf +"@typescript-eslint/types@npm:6.7.2": + version: 6.7.2 + resolution: "@typescript-eslint/types@npm:6.7.2" + checksum: 5a7c4cd456f721649757d2edb4cae71d1405c1c2c35672031f012b27007b9d49b7118297eec746dc3351370e6aa414e5d2c493fb658c7b910154b7998c0278e1 languageName: node linkType: hard -"@typescript-eslint/typescript-estree@npm:6.2.0": - version: 6.2.0 - resolution: "@typescript-eslint/typescript-estree@npm:6.2.0" +"@typescript-eslint/typescript-estree@npm:6.7.2": + version: 6.7.2 + resolution: "@typescript-eslint/typescript-estree@npm:6.7.2" dependencies: - "@typescript-eslint/types": 6.2.0 - "@typescript-eslint/visitor-keys": 6.2.0 + "@typescript-eslint/types": 6.7.2 + "@typescript-eslint/visitor-keys": 6.7.2 debug: ^4.3.4 globby: ^11.1.0 is-glob: ^4.0.3 @@ -602,34 +617,34 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: 5bfd5bf09feff6c4807cfa65cf407dd0249f7d487d6820941dd05999ee35cacdabaacadf23c92b90b57920025e93088e93924bc8df41f393ac0366538eb2902f + checksum: c30b9803567c37527e2806badd98f3083ae125db9a430d8a28647b153e446e6a4b830833f229cca27d5aa0ff5497c149aaa524aa3a6dbf932b557c60d0bfd4f9 languageName: node linkType: hard -"@typescript-eslint/utils@npm:6.2.0": - version: 6.2.0 - resolution: "@typescript-eslint/utils@npm:6.2.0" +"@typescript-eslint/utils@npm:6.7.2": + version: 6.7.2 + resolution: "@typescript-eslint/utils@npm:6.7.2" dependencies: "@eslint-community/eslint-utils": ^4.4.0 "@types/json-schema": ^7.0.12 "@types/semver": ^7.5.0 - "@typescript-eslint/scope-manager": 6.2.0 - "@typescript-eslint/types": 6.2.0 - "@typescript-eslint/typescript-estree": 6.2.0 + "@typescript-eslint/scope-manager": 6.7.2 + "@typescript-eslint/types": 6.7.2 + "@typescript-eslint/typescript-estree": 6.7.2 semver: ^7.5.4 peerDependencies: eslint: ^7.0.0 || ^8.0.0 - checksum: 54f062412a8ce23554ca4063d275327981640426b1ecd1073d30dd8b9464ff7af68b8f9f6272033bad9307815d56f2f922faa8a995421efdccd6165dd62557e1 + checksum: 97f950562dba2bda63ffe64672f643ef940123cf74007bc878afcf31c75f905c99934a3ad77da3d5a4fe7807d5d69c791b20c429712ad5a5525e331ebc313756 languageName: node linkType: hard -"@typescript-eslint/visitor-keys@npm:6.2.0": - version: 6.2.0 - resolution: "@typescript-eslint/visitor-keys@npm:6.2.0" +"@typescript-eslint/visitor-keys@npm:6.7.2": + version: 6.7.2 + resolution: "@typescript-eslint/visitor-keys@npm:6.7.2" dependencies: - "@typescript-eslint/types": 6.2.0 + "@typescript-eslint/types": 6.7.2 eslint-visitor-keys: ^3.4.1 - checksum: b400c657c7e5c65b289304f6f5cee6536f23b3441306f82aff2d2e047e13770330715d4f7b29e734b0b2dab6030e41028894d5cd441696115bfea43ad18b2c54 + checksum: b4915fbc0f3d44c81b92b7151830b698e8b6ed2dee8587bb65540c888c7a84300d3fd6b0c159e2131c7c6df1bebe49fb0d21c347ecdbf7f3e4aec05acebbb0bc languageName: node linkType: hard @@ -665,12 +680,12 @@ __metadata: languageName: node linkType: hard -"acorn@npm:^8.8.1": - version: 8.8.1 - resolution: "acorn@npm:8.8.1" +"acorn@npm:^8.8.2": + version: 8.10.0 + resolution: "acorn@npm:8.10.0" bin: acorn: bin/acorn - checksum: 4079b67283b94935157698831967642f24a075c52ce3feaaaafe095776dfbe15d86a1b33b1e53860fc0d062ed6c83f4284a5c87c85b9ad51853a01173da6097f + checksum: 538ba38af0cc9e5ef983aee196c4b8b4d87c0c94532334fa7e065b2c8a1f85863467bb774231aae91613fcda5e68740c15d97b1967ae3394d20faddddd8af61d languageName: node linkType: hard @@ -877,11 +892,11 @@ __metadata: languageName: node linkType: hard -"ava@npm:^5.2.0": - version: 5.2.0 - resolution: "ava@npm:5.2.0" +"ava@npm:^5.3.1": + version: 5.3.1 + resolution: "ava@npm:5.3.1" dependencies: - acorn: ^8.8.1 + acorn: ^8.8.2 acorn-walk: ^8.2.0 ansi-styles: ^6.2.1 arrgv: ^1.0.2 @@ -891,7 +906,7 @@ __metadata: chalk: ^5.2.0 chokidar: ^3.5.3 chunkd: ^2.0.1 - ci-info: ^3.7.1 + ci-info: ^3.8.0 ci-parallel-vars: ^1.0.1 clean-yaml-object: ^0.1.0 cli-truncate: ^3.1.0 @@ -900,10 +915,9 @@ __metadata: concordance: ^5.0.4 currently-unhandled: ^0.4.1 debug: ^4.3.4 - del: ^7.0.0 emittery: ^1.0.1 figures: ^5.0.0 - globby: ^13.1.3 + globby: ^13.1.4 ignore-by-default: ^2.1.0 indent-string: ^5.0.0 is-error: ^2.2.2 @@ -919,13 +933,12 @@ __metadata: plur: ^5.1.0 pretty-ms: ^8.0.0 resolve-cwd: ^3.0.0 - slash: ^3.0.0 stack-utils: ^2.0.6 strip-ansi: ^7.0.1 supertap: ^3.0.1 temp-dir: ^3.0.0 - write-file-atomic: ^5.0.0 - yargs: ^17.6.2 + write-file-atomic: ^5.0.1 + yargs: ^17.7.2 peerDependencies: "@ava/typescript": "*" peerDependenciesMeta: @@ -933,7 +946,7 @@ __metadata: optional: true bin: ava: entrypoints/cli.mjs - checksum: d5991f1f3d7ca0e63e0df185c5c025a9c80614dd42537336a9b96ea29e8a8d5ad680c1e775dacabb55f3b1b2d63764e468f201d52a44166c8a88d4e9309cde61 + checksum: 126a5932baef74eccd8bec992bd522e25c05b6ee4985dde87c20cece76c2377f0bf9448f242f3f9cd2abbf7a5ac932fe4e4abde2a23792d6271a6088e5a1984e languageName: node linkType: hard @@ -1120,10 +1133,10 @@ __metadata: languageName: node linkType: hard -"ci-info@npm:^3.7.1": - version: 3.7.1 - resolution: "ci-info@npm:3.7.1" - checksum: 72d93d5101ea1c186511277fbd8d06ae8a6e028cc2fb94361e92bf735b39c5ebd192e8d15a66ff8c4e3ed569f87c2f844e96f90e141b2de5c649f77ec34ff601 +"ci-info@npm:^3.8.0": + version: 3.8.0 + resolution: "ci-info@npm:3.8.0" + checksum: d0a4d3160497cae54294974a7246202244fff031b0a6ea20dd57b10ec510aa17399c41a1b0982142c105f3255aff2173e5c0dd7302ee1b2f28ba3debda375098 languageName: node linkType: hard @@ -1420,22 +1433,6 @@ __metadata: languageName: node linkType: hard -"del@npm:^7.0.0": - version: 7.0.0 - resolution: "del@npm:7.0.0" - dependencies: - globby: ^13.1.2 - graceful-fs: ^4.2.10 - is-glob: ^4.0.3 - is-path-cwd: ^3.0.0 - is-path-inside: ^4.0.0 - p-map: ^5.5.0 - rimraf: ^3.0.2 - slash: ^4.0.0 - checksum: 33e5077f18b5dfbe81971d1f8a2cd8bf676dd5ede491bab85ec17a4a1d59001bd3ec47fd38e9a4ae01a3c98c07b98c7b3dc56190b86d88926798802d7858d827 - languageName: node - linkType: hard - "delegates@npm:^1.0.0": version: 1.0.0 resolution: "delegates@npm:1.0.0" @@ -1600,32 +1597,32 @@ __metadata: languageName: node linkType: hard -"esbuild@npm:^0.19.0": - version: 0.19.2 - resolution: "esbuild@npm:0.19.2" - dependencies: - "@esbuild/android-arm": 0.19.2 - "@esbuild/android-arm64": 0.19.2 - "@esbuild/android-x64": 0.19.2 - "@esbuild/darwin-arm64": 0.19.2 - "@esbuild/darwin-x64": 0.19.2 - "@esbuild/freebsd-arm64": 0.19.2 - "@esbuild/freebsd-x64": 0.19.2 - "@esbuild/linux-arm": 0.19.2 - "@esbuild/linux-arm64": 0.19.2 - "@esbuild/linux-ia32": 0.19.2 - "@esbuild/linux-loong64": 0.19.2 - "@esbuild/linux-mips64el": 0.19.2 - "@esbuild/linux-ppc64": 0.19.2 - "@esbuild/linux-riscv64": 0.19.2 - "@esbuild/linux-s390x": 0.19.2 - "@esbuild/linux-x64": 0.19.2 - "@esbuild/netbsd-x64": 0.19.2 - "@esbuild/openbsd-x64": 0.19.2 - "@esbuild/sunos-x64": 0.19.2 - "@esbuild/win32-arm64": 0.19.2 - "@esbuild/win32-ia32": 0.19.2 - "@esbuild/win32-x64": 0.19.2 +"esbuild@npm:^0.19.3": + version: 0.19.3 + resolution: "esbuild@npm:0.19.3" + dependencies: + "@esbuild/android-arm": 0.19.3 + "@esbuild/android-arm64": 0.19.3 + "@esbuild/android-x64": 0.19.3 + "@esbuild/darwin-arm64": 0.19.3 + "@esbuild/darwin-x64": 0.19.3 + "@esbuild/freebsd-arm64": 0.19.3 + "@esbuild/freebsd-x64": 0.19.3 + "@esbuild/linux-arm": 0.19.3 + "@esbuild/linux-arm64": 0.19.3 + "@esbuild/linux-ia32": 0.19.3 + "@esbuild/linux-loong64": 0.19.3 + "@esbuild/linux-mips64el": 0.19.3 + "@esbuild/linux-ppc64": 0.19.3 + "@esbuild/linux-riscv64": 0.19.3 + "@esbuild/linux-s390x": 0.19.3 + "@esbuild/linux-x64": 0.19.3 + "@esbuild/netbsd-x64": 0.19.3 + "@esbuild/openbsd-x64": 0.19.3 + "@esbuild/sunos-x64": 0.19.3 + "@esbuild/win32-arm64": 0.19.3 + "@esbuild/win32-ia32": 0.19.3 + "@esbuild/win32-x64": 0.19.3 dependenciesMeta: "@esbuild/android-arm": optional: true @@ -1673,7 +1670,7 @@ __metadata: optional: true bin: esbuild: bin/esbuild - checksum: f9ad8ad4f0cbcc675c059f2676c4458d75307af20f9168859de8642accd7f2b7d6bbe8286a23633790dcba07d1d66a8f63c204ea933a0d51300c1b69d4f25d8f + checksum: f998ba82b1bbf0f3036201dc2cb94f92aff887b7552738ea3e4dd6f386f87740ef76aabae2fc1c4b91a519354d390f6d9fd89eb71e26882983f6fbaf75369206 languageName: node linkType: hard @@ -1962,29 +1959,29 @@ __metadata: languageName: node linkType: hard -"fast-glob@npm:^3.2.11": - version: 3.2.12 - resolution: "fast-glob@npm:3.2.12" +"fast-glob@npm:^3.2.9": + version: 3.2.11 + resolution: "fast-glob@npm:3.2.11" dependencies: "@nodelib/fs.stat": ^2.0.2 "@nodelib/fs.walk": ^1.2.3 glob-parent: ^5.1.2 merge2: ^1.3.0 micromatch: ^4.0.4 - checksum: 0b1990f6ce831c7e28c4d505edcdaad8e27e88ab9fa65eedadb730438cfc7cde4910d6c975d6b7b8dc8a73da4773702ebcfcd6e3518e73938bb1383badfe01c2 + checksum: f473105324a7780a20c06de842e15ddbb41d3cb7e71d1e4fe6e8373204f22245d54f5ab9e2061e6a1c613047345954d29b022e0e76f5c28b1df9858179a0e6d7 languageName: node linkType: hard -"fast-glob@npm:^3.2.9": - version: 3.2.11 - resolution: "fast-glob@npm:3.2.11" +"fast-glob@npm:^3.3.0": + version: 3.3.1 + resolution: "fast-glob@npm:3.3.1" dependencies: "@nodelib/fs.stat": ^2.0.2 "@nodelib/fs.walk": ^1.2.3 glob-parent: ^5.1.2 merge2: ^1.3.0 micromatch: ^4.0.4 - checksum: f473105324a7780a20c06de842e15ddbb41d3cb7e71d1e4fe6e8373204f22245d54f5ab9e2061e6a1c613047345954d29b022e0e76f5c28b1df9858179a0e6d7 + checksum: b6f3add6403e02cf3a798bfbb1183d0f6da2afd368f27456010c0bc1f9640aea308243d4cb2c0ab142f618276e65ecb8be1661d7c62a7b4e5ba774b9ce5432e5 languageName: node linkType: hard @@ -2265,20 +2262,20 @@ __metadata: languageName: node linkType: hard -"globby@npm:^13.1.2, globby@npm:^13.1.3": - version: 13.1.3 - resolution: "globby@npm:13.1.3" +"globby@npm:^13.1.4": + version: 13.2.2 + resolution: "globby@npm:13.2.2" dependencies: dir-glob: ^3.0.1 - fast-glob: ^3.2.11 - ignore: ^5.2.0 + fast-glob: ^3.3.0 + ignore: ^5.2.4 merge2: ^1.4.1 slash: ^4.0.0 - checksum: 93f06e02002cdf368f7e3d55bd59e7b00784c7cc8fe92c7ee5082cc7171ff6109fda45e1c97a80bb48bc811dedaf7843c7c9186f5f84bde4883ab630e13c43df + checksum: f3d84ced58a901b4fcc29c846983108c426631fe47e94872868b65565495f7bee7b3defd68923bd480582771fd4bbe819217803a164a618ad76f1d22f666f41e languageName: node linkType: hard -"graceful-fs@npm:^4.1.2, graceful-fs@npm:^4.2.10, graceful-fs@npm:^4.2.6": +"graceful-fs@npm:^4.1.2, graceful-fs@npm:^4.2.6": version: 4.2.10 resolution: "graceful-fs@npm:4.2.10" checksum: 3f109d70ae123951905d85032ebeae3c2a5a7a997430df00ea30df0e3a6c60cf6689b109654d6fdacd28810a053348c4d14642da1d075049e6be1ba5216218da @@ -2658,13 +2655,6 @@ __metadata: languageName: node linkType: hard -"is-path-cwd@npm:^3.0.0": - version: 3.0.0 - resolution: "is-path-cwd@npm:3.0.0" - checksum: bc34d13b6a03dfca4a3ab6a8a5ba78ae4b24f4f1db4b2b031d2760c60d0913bd16a4b980dcb4e590adfc906649d5f5132684079a3972bd219da49deebb9adea8 - languageName: node - linkType: hard - "is-path-inside@npm:^3.0.3": version: 3.0.3 resolution: "is-path-inside@npm:3.0.3" @@ -2672,13 +2662,6 @@ __metadata: languageName: node linkType: hard -"is-path-inside@npm:^4.0.0": - version: 4.0.0 - resolution: "is-path-inside@npm:4.0.0" - checksum: 8810fa11c58e6360b82c3e0d6cd7d9c7d0392d3ac9eb10f980b81f9839f40ac6d1d6d6f05d069db0d227759801228f0b072e1b6c343e4469b065ab5fe0b68fe5 - languageName: node - linkType: hard - "is-plain-object@npm:^5.0.0": version: 5.0.0 resolution: "is-plain-object@npm:5.0.0" @@ -3227,13 +3210,6 @@ __metadata: languageName: node linkType: hard -"natural-compare-lite@npm:^1.4.0": - version: 1.4.0 - resolution: "natural-compare-lite@npm:1.4.0" - checksum: 5222ac3986a2b78dd6069ac62cbb52a7bf8ffc90d972ab76dfe7b01892485d229530ed20d0c62e79a6b363a663b273db3bde195a1358ce9e5f779d4453887225 - languageName: node - linkType: hard - "natural-compare@npm:^1.4.0": version: 1.4.0 resolution: "natural-compare@npm:1.4.0" @@ -3689,9 +3665,9 @@ __metadata: linkType: hard "pirates@npm:^4.0.5": - version: 4.0.5 - resolution: "pirates@npm:4.0.5" - checksum: c9994e61b85260bec6c4fc0307016340d9b0c4f4b6550a957afaaff0c9b1ad58fbbea5cfcf083860a25cb27a375442e2b0edf52e2e1e40e69934e08dcc52d227 + version: 4.0.6 + resolution: "pirates@npm:4.0.6" + checksum: 46a65fefaf19c6f57460388a5af9ab81e3d7fd0e7bc44ca59d753cb5c4d0df97c6c6e583674869762101836d68675f027d60f841c105d72734df9dfca97cbcc6 languageName: node linkType: hard @@ -4076,6 +4052,13 @@ __metadata: languageName: node linkType: hard +"signal-exit@npm:^4.0.1": + version: 4.1.0 + resolution: "signal-exit@npm:4.1.0" + checksum: 64c757b498cb8629ffa5f75485340594d2f8189e9b08700e69199069c8e3070fb3e255f7ab873c05dc0b3cec412aea7402e10a5990cb6a050bd33ba062a6c549 + languageName: node + linkType: hard + "slash@npm:^3.0.0": version: 3.0.0 resolution: "slash@npm:3.0.0" @@ -4450,9 +4433,9 @@ __metadata: linkType: hard "tslib@npm:^2.5.0": - version: 2.5.0 - resolution: "tslib@npm:2.5.0" - checksum: ae3ed5f9ce29932d049908ebfdf21b3a003a85653a9a140d614da6b767a93ef94f460e52c3d787f0e4f383546981713f165037dc2274df212ea9f8a4541004e1 + version: 2.6.2 + resolution: "tslib@npm:2.6.2" + checksum: 329ea56123005922f39642318e3d1f0f8265d1e7fcb92c633e0809521da75eeaca28d2cf96d7248229deb40e5c19adf408259f4b9640afd20d13aecc1430f3ad languageName: node linkType: hard @@ -4486,7 +4469,7 @@ __metadata: languageName: node linkType: hard -"typescript@npm:>=5.0.2, typescript@npm:^5.0.4": +"typescript@npm:>=5.0.2": version: 5.0.4 resolution: "typescript@npm:5.0.4" bin: @@ -4496,7 +4479,17 @@ __metadata: languageName: node linkType: hard -"typescript@patch:typescript@>=5.0.2#~builtin, typescript@patch:typescript@^5.0.4#~builtin": +"typescript@npm:^5.2.2": + version: 5.2.2 + resolution: "typescript@npm:5.2.2" + bin: + tsc: bin/tsc + tsserver: bin/tsserver + checksum: 7912821dac4d962d315c36800fe387cdc0a6298dba7ec171b350b4a6e988b51d7b8f051317786db1094bd7431d526b648aba7da8236607febb26cf5b871d2d3c + languageName: node + linkType: hard + +"typescript@patch:typescript@>=5.0.2#~builtin": version: 5.0.4 resolution: "typescript@patch:typescript@npm%3A5.0.4#~builtin::version=5.0.4&hash=b5f058" bin: @@ -4506,6 +4499,16 @@ __metadata: languageName: node linkType: hard +"typescript@patch:typescript@^5.2.2#~builtin": + version: 5.2.2 + resolution: "typescript@patch:typescript@npm%3A5.2.2#~builtin::version=5.2.2&hash=f3b441" + bin: + tsc: bin/tsc + tsserver: bin/tsserver + checksum: 0f4da2f15e6f1245e49db15801dbee52f2bbfb267e1c39225afdab5afee1a72839cd86000e65ee9d7e4dfaff12239d28beaf5ee431357fcced15fb08583d72ca + languageName: node + linkType: hard + "unbox-primitive@npm:^1.0.2": version: 1.0.2 resolution: "unbox-primitive@npm:1.0.2" @@ -4673,13 +4676,13 @@ __metadata: languageName: node linkType: hard -"write-file-atomic@npm:^5.0.0": - version: 5.0.0 - resolution: "write-file-atomic@npm:5.0.0" +"write-file-atomic@npm:^5.0.1": + version: 5.0.1 + resolution: "write-file-atomic@npm:5.0.1" dependencies: imurmurhash: ^0.1.4 - signal-exit: ^3.0.7 - checksum: 6ee16b195572386cb1c905f9d29808f77f4de2fd063d74a6f1ab6b566363832d8906a493b764ee715e57ab497271d5fc91642a913724960e8e845adf504a9837 + signal-exit: ^4.0.1 + checksum: 8dbb0e2512c2f72ccc20ccedab9986c7d02d04039ed6e8780c987dc4940b793339c50172a1008eed7747001bfacc0ca47562668a069a7506c46c77d7ba3926a9 languageName: node linkType: hard @@ -4755,9 +4758,9 @@ __metadata: languageName: node linkType: hard -"yargs@npm:^17.6.2": - version: 17.6.2 - resolution: "yargs@npm:17.6.2" +"yargs@npm:^17.7.2": + version: 17.7.2 + resolution: "yargs@npm:17.7.2" dependencies: cliui: ^8.0.1 escalade: ^3.1.1 @@ -4766,7 +4769,7 @@ __metadata: string-width: ^4.2.3 y18n: ^5.0.5 yargs-parser: ^21.1.1 - checksum: 47da1b0d854fa16d45a3ded57b716b013b2179022352a5f7467409da5a04a1eef5b3b3d97a2dfc13e8bbe5f2ffc0afe3bc6a4a72f8254e60f5a4bd7947138643 + checksum: 73b572e863aa4a8cbef323dd911d79d193b772defd5a51aab0aca2d446655216f5002c42c5306033968193bdbf892a7a4c110b0d77954a7fdf563e653967b56a languageName: node linkType: hard