@live-codes/browser-compilers 0.5.8 → 0.5.9
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var lightningcss=(()=>{var
|
|
2
|
-
${r.stack}`:a}function T(r){try{let e=c.__wbindgen_add_to_stack_pointer(-16);c.transform(e,_(r));var
|
|
1
|
+
var lightningcss=(()=>{var E=Object.defineProperty;var U=(r,n)=>{for(var u in n)E(r,u,{get:n[u],enumerable:!0})};var D={};U(D,{browserslistToTargets:()=>I,init:()=>M,transform:()=>T,transformStyleAttribute:()=>O});var c,N=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});N.decode();var d=null;function m(){return(d===null||d.buffer!==c.memory.buffer)&&(d=new Uint8Array(c.memory.buffer)),d}function S(r,n){return N.decode(m().subarray(r,r+n))}var s=new Array(32).fill(void 0);s.push(void 0,null,!0,!1);var l=s.length;function _(r){l===s.length&&s.push(s.length+1);let n=l;return l=s[n],s[n]=r,n}function o(r){return s[r]}function F(r){r<36||(s[r]=l,l=r)}function w(r){let n=o(r);return F(r),n}function j(r){return r==null}var y=null;function $(){return(y===null||y.buffer!==c.memory.buffer)&&(y=new Float64Array(c.memory.buffer)),y}var p=null;function b(){return(p===null||p.buffer!==c.memory.buffer)&&(p=new Int32Array(c.memory.buffer)),p}var h=0,v=new TextEncoder("utf-8"),B=typeof v.encodeInto=="function"?function(r,n){return v.encodeInto(r,n)}:function(r,n){let u=v.encode(r);return n.set(u),{read:r.length,written:u.length}};function R(r,n,u){if(u===void 0){let f=v.encode(r),g=n(f.length);return m().subarray(g,g+f.length).set(f),h=f.length,g}let a=r.length,e=n(a),t=m(),i=0;for(;i<a;i++){let f=r.charCodeAt(i);if(f>127)break;t[e+i]=f}if(i!==a){i!==0&&(r=r.slice(i)),e=u(e,a,a=i+r.length*3);let f=m().subarray(e+i,e+a);i+=B(r,f).written}return h=i,e}function x(r){let n=typeof r;if(n=="number"||n=="boolean"||r==null)return`${r}`;if(n=="string")return`"${r}"`;if(n=="symbol"){let e=r.description;return e==null?"Symbol":`Symbol(${e})`}if(n=="function"){let e=r.name;return typeof e=="string"&&e.length>0?`Function(${e})`:"Function"}if(Array.isArray(r)){let e=r.length,t="[";e>0&&(t+=x(r[0]));for(let i=1;i<e;i++)t+=", "+x(r[i]);return t+="]",t}let u=/\[object ([^\]]+)\]/.exec(toString.call(r)),a;if(u.length>1)a=u[1];else return toString.call(r);if(a=="Object")try{return"Object("+JSON.stringify(r)+")"}catch(e){return"Object"}return r instanceof Error?`${r.name}: ${r.message}
|
|
2
|
+
${r.stack}`:a}function T(r){try{let e=c.__wbindgen_add_to_stack_pointer(-16);c.transform(e,_(r));var n=b()[e/4+0],u=b()[e/4+1],a=b()[e/4+2];if(a)throw w(u);return w(n)}finally{c.__wbindgen_add_to_stack_pointer(16)}}function O(r){try{let e=c.__wbindgen_add_to_stack_pointer(-16);c.transformStyleAttribute(e,_(r));var n=b()[e/4+0],u=b()[e/4+1],a=b()[e/4+2];if(a)throw w(u);return w(n)}finally{c.__wbindgen_add_to_stack_pointer(16)}}function A(r,n){try{return r.apply(this,n)}catch(u){c.__wbindgen_exn_store(_(u))}}async function L(r,n){if(typeof Response=="function"&&r instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(r,n)}catch(a){if(r.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",a);else throw a}let u=await r.arrayBuffer();return await WebAssembly.instantiate(u,n)}else{let u=await WebAssembly.instantiate(r,n);return u instanceof WebAssembly.Instance?{instance:u,module:r}:u}}async function W(r){typeof r=="undefined"&&(r=new URL("lightningcss_node_bg.wasm",location));let n={};n.wbg={},n.wbg.__wbindgen_string_new=function(e,t){var i=S(e,t);return _(i)},n.wbg.__wbindgen_object_drop_ref=function(e){w(e)},n.wbg.__wbg_set_e543156a3c4d08a8=function(e,t,i){var f=o(e).set(o(t),o(i));return _(f)},n.wbg.__wbindgen_is_string=function(e){var t=typeof o(e)=="string";return t},n.wbg.__wbg_new_55259b13834a484c=function(e,t){var i=new Error(S(e,t));return _(i)},n.wbg.__wbg_set_f1a4ac8f3a605b11=function(e,t,i){o(e)[w(t)]=w(i)},n.wbg.__wbg_get_2d1407dba3452350=function(e,t){var i=o(e)[w(t)];return _(i)},n.wbg.__wbindgen_is_null=function(e){var t=o(e)===null;return t},n.wbg.__wbindgen_is_undefined=function(e){var t=o(e)===void 0;return t},n.wbg.__wbindgen_is_object=function(e){let t=o(e);var i=typeof t=="object"&&t!==null;return i},n.wbg.__wbindgen_number_get=function(e,t){let i=o(t);var f=typeof i=="number"?i:void 0;$()[e/8+1]=j(f)?0:f,b()[e/4+0]=!j(f)},n.wbg.__wbg_isSafeInteger_91192d88df6f12b9=function(e){var t=Number.isSafeInteger(o(e));return t},n.wbg.__wbindgen_boolean_get=function(e){let t=o(e);var i=typeof t=="boolean"?t?1:0:2;return i},n.wbg.__wbindgen_string_get=function(e,t){let i=o(t);var f=typeof i=="string"?i:void 0,g=j(f)?0:R(f,c.__wbindgen_malloc,c.__wbindgen_realloc),k=h;b()[e/4+1]=k,b()[e/4+0]=g},n.wbg.__wbg_new_d3138911a89329b0=function(){var e=new Object;return _(e)},n.wbg.__wbg_isArray_8480ed76e5369634=function(e){var t=Array.isArray(o(e));return t},n.wbg.__wbg_iterator_4b9cedbeda0c0e30=function(){var e=Symbol.iterator;return _(e)},n.wbg.__wbg_values_71935f80778b5113=function(e){var t=o(e).values();return _(t)},n.wbg.__wbg_entries_38f300d4350c7466=function(e){var t=Object.entries(o(e));return _(t)},n.wbg.__wbg_next_dd1a890d37e38d73=function(){return A(function(e){var t=o(e).next();return _(t)},arguments)},n.wbg.__wbg_done_982b1c7ac0cbc69d=function(e){var t=o(e).done;return t},n.wbg.__wbg_value_2def2d1fb38b02cd=function(e){var t=o(e).value;return _(t)},n.wbg.__wbg_get_f45dff51f52d7222=function(e,t){var i=o(e)[t>>>0];return _(i)},n.wbg.__wbindgen_number_new=function(e){var t=e;return _(t)},n.wbg.__wbg_new_16f24b0728c5e67b=function(){var e=new Array;return _(e)},n.wbg.__wbg_push_a72df856079e6930=function(e,t){var i=o(e).push(o(t));return i},n.wbg.__wbg_new_b563cacb0bf27b31=function(){var e=new Map;return _(e)},n.wbg.__wbg_get_8bbb82393651dd9c=function(){return A(function(e,t){var i=Reflect.get(o(e),o(t));return _(i)},arguments)},n.wbg.__wbindgen_is_function=function(e){var t=typeof o(e)=="function";return t},n.wbg.__wbg_call_89558c3e96703ca1=function(){return A(function(e,t){var i=o(e).call(o(t));return _(i)},arguments)},n.wbg.__wbg_next_c7a2a6b012059a5e=function(e){var t=o(e).next;return _(t)},n.wbg.__wbg_has_3850edde6df9191b=function(){return A(function(e,t){var i=Reflect.has(o(e),o(t));return i},arguments)},n.wbg.__wbg_length_30803400a8f15c59=function(e){var t=o(e).length;return t},n.wbg.__wbindgen_memory=function(){var e=c.memory;return _(e)},n.wbg.__wbg_buffer_5e74a88a1424a2e0=function(e){var t=o(e).buffer;return _(t)},n.wbg.__wbg_new_e3b800e570795b3c=function(e){var t=new Uint8Array(o(e));return _(t)},n.wbg.__wbg_set_5b8081e9d002f0df=function(e,t,i){o(e).set(o(t),i>>>0)},n.wbg.__wbg_instanceof_Uint8Array_8a8537f46e056474=function(e){var t=o(e)instanceof Uint8Array;return t},n.wbg.__wbg_instanceof_ArrayBuffer_649f53c967aec9b3=function(e){var t=o(e)instanceof ArrayBuffer;return t},n.wbg.__wbg_newwithbyteoffsetandlength_278ec7532799393a=function(e,t,i){var f=new Uint8Array(o(e),t>>>0,i>>>0);return _(f)},n.wbg.__wbindgen_object_clone_ref=function(e){var t=o(e);return _(t)},n.wbg.__wbindgen_debug_string=function(e,t){var i=x(o(t)),f=R(i,c.__wbindgen_malloc,c.__wbindgen_realloc),g=h;b()[e/4+1]=g,b()[e/4+0]=f},n.wbg.__wbindgen_throw=function(e,t){throw new Error(S(e,t))},(typeof r=="string"||typeof Request=="function"&&r instanceof Request||typeof URL=="function"&&r instanceof URL)&&(r=fetch(r));let{instance:u,module:a}=await L(await r,n);return c=u.exports,W.__wbindgen_wasm_module=a,c}var M=W;var q={and_chr:"chrome",and_ff:"firefox",ie_mob:"ie",op_mob:"opera",and_qq:null,and_uc:null,baidu:null,bb:null,kaios:null,op_mini:null};function I(r){let n={};for(let u of r){let[a,e]=u.split(" ");if(q[a]===null)continue;let t=C(e);t!=null&&(n[a]==null||t<n[a])&&(n[a]=t)}return n}function C(r){let[n,u=0,a=0]=r.split("-")[0].split(".").map(e=>parseInt(e,10));return isNaN(n)||isNaN(u)||isNaN(a)?null:n<<16|u<<8|a}return D;})();
|
package/package.json
CHANGED
package/vendor-licenses.md
CHANGED
|
@@ -20,6 +20,8 @@ JSCPP: [MIT License](https://github.com/felixhao28/JSCPP/blob/befbd6b48666007151
|
|
|
20
20
|
|
|
21
21
|
Less: [Apache License 2.0](https://github.com/less/less.js/blob/870f9b2d8136bfbcdc9e1293bb0def51b54f9276/LICENSE)
|
|
22
22
|
|
|
23
|
+
Lightning CSS: [Mozilla Public License 2.0](https://github.com/parcel-bundler/lightningcss/blob/3c9db12b684f34ea015a287f2a23b728ee5ade85/LICENSE)
|
|
24
|
+
|
|
23
25
|
LiveScript: [MIT License](https://github.com/gkz/LiveScript/blob/bd9faa4d484b6abb110473f96c28bf8686e7b7a0/LICENSE)
|
|
24
26
|
|
|
25
27
|
lua-fmt: [MIT License](https://github.com/trixnz/lua-fmt/blob/3cbb57c38b12b849711286dda4f43b62e09f806d/LICENSE)
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import init, { transform, browserslistToTargets } from 'lightningcss-wasm';
|
|
1
|
+
import init, { transform, transformStyleAttribute, browserslistToTargets } from 'lightningcss-wasm';
|
|
2
2
|
|
|
3
|
-
export { init, transform, browserslistToTargets };
|
|
3
|
+
export { init, transform, transformStyleAttribute, browserslistToTargets };
|