Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@demostf/edit

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@demostf/edit - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

dist/199d548a1f610bfc0535.module.wasm

2

dist/demos-tf-edit.js

@@ -1,1 +0,1 @@

self.webpackChunk([0],[,function(n,t,r){"use strict";r.r(t);var e=r(2);r.d(t,"edit_js",(function(){return e.K})),r.d(t,"__wbindgen_object_drop_ref",(function(){return e.G})),r.d(t,"__wbindgen_boolean_get",(function(){return e.v})),r.d(t,"__wbindgen_error_new",(function(){return e.x})),r.d(t,"__wbindgen_is_object",(function(){return e.A})),r.d(t,"__wbindgen_is_undefined",(function(){return e.B})),r.d(t,"__wbindgen_in",(function(){return e.y})),r.d(t,"__wbindgen_jsval_loose_eq",(function(){return e.C})),r.d(t,"__wbindgen_number_get",(function(){return e.E})),r.d(t,"__wbindgen_string_get",(function(){return e.H})),r.d(t,"__wbindgen_object_clone_ref",(function(){return e.F})),r.d(t,"__wbg_getwithrefkey_15c62c2b8546208d",(function(){return e.g})),r.d(t,"__wbg_new_abda76e883ba8a5f",(function(){return e.p})),r.d(t,"__wbg_stack_658279fe44541cf6",(function(){return e.t})),r.d(t,"__wbg_error_f851667af71bcfc6",(function(){return e.d})),r.d(t,"__wbg_get_57245cc7d7c7619d",(function(){return e.e})),r.d(t,"__wbg_length_6e3bbe7c8bd4dbd8",(function(){return e.m})),r.d(t,"__wbindgen_is_function",(function(){return e.z})),r.d(t,"__wbg_next_579e583d33566a86",(function(){return e.q})),r.d(t,"__wbg_next_aaef7c8aa5e212ac",(function(){return e.r})),r.d(t,"__wbg_done_1b73b0672e15f234",(function(){return e.c})),r.d(t,"__wbg_value_1ccc36bc03462d71",(function(){return e.u})),r.d(t,"__wbg_iterator_6f9d4f28845f426c",(function(){return e.l})),r.d(t,"__wbg_get_765201544a2b6869",(function(){return e.f})),r.d(t,"__wbg_call_97ae9d8645dc388b",(function(){return e.b})),r.d(t,"__wbindgen_string_new",(function(){return e.I})),r.d(t,"__wbg_isArray_27c46c67f498e15d",(function(){return e.j})),r.d(t,"__wbg_instanceof_ArrayBuffer_e5e48f4762c5610b",(function(){return e.h})),r.d(t,"__wbg_isSafeInteger_dfa0593e8d7ac35a",(function(){return e.k})),r.d(t,"__wbg_buffer_3f3d764d4747d564",(function(){return e.a})),r.d(t,"__wbg_new_8c3f0052272a457a",(function(){return e.o})),r.d(t,"__wbg_set_83db9690f9353e79",(function(){return e.s})),r.d(t,"__wbg_length_9e1ae1900cb0fbd5",(function(){return e.n})),r.d(t,"__wbg_instanceof_Uint8Array_971eeda69eb75003",(function(){return e.i})),r.d(t,"__wbindgen_debug_string",(function(){return e.w})),r.d(t,"__wbindgen_throw",(function(){return e.J})),r.d(t,"__wbindgen_memory",(function(){return e.D}))},function(n,t,r){"use strict";(function(n){r.d(t,"K",(function(){return m})),r.d(t,"G",(function(){return j})),r.d(t,"v",(function(){return x})),r.d(t,"x",(function(){return k})),r.d(t,"A",(function(){return E})),r.d(t,"B",(function(){return O})),r.d(t,"y",(function(){return I})),r.d(t,"C",(function(){return S})),r.d(t,"E",(function(){return F})),r.d(t,"H",(function(){return T})),r.d(t,"F",(function(){return $})),r.d(t,"g",(function(){return q})),r.d(t,"p",(function(){return B})),r.d(t,"t",(function(){return D})),r.d(t,"d",(function(){return P})),r.d(t,"e",(function(){return U})),r.d(t,"m",(function(){return C})),r.d(t,"z",(function(){return J})),r.d(t,"q",(function(){return L})),r.d(t,"r",(function(){return z})),r.d(t,"c",(function(){return G})),r.d(t,"u",(function(){return H})),r.d(t,"l",(function(){return K})),r.d(t,"f",(function(){return N})),r.d(t,"b",(function(){return M})),r.d(t,"I",(function(){return R})),r.d(t,"j",(function(){return Q})),r.d(t,"h",(function(){return V})),r.d(t,"k",(function(){return W})),r.d(t,"a",(function(){return X})),r.d(t,"o",(function(){return Y})),r.d(t,"s",(function(){return Z})),r.d(t,"n",(function(){return nn})),r.d(t,"i",(function(){return tn})),r.d(t,"w",(function(){return rn})),r.d(t,"J",(function(){return en})),r.d(t,"D",(function(){return un}));var e=r(3);const u=new Array(32).fill(void 0);function o(n){return u[n]}u.push(void 0,null,!0,!1);let c=u.length;function i(n){const t=o(n);return function(n){n<36||(u[n]=c,c=n)}(n),t}let f=new("undefined"==typeof TextDecoder?(0,n.require)("util").TextDecoder:TextDecoder)("utf-8",{ignoreBOM:!0,fatal:!0});f.decode();let d=new Uint8Array;function _(){return 0===d.byteLength&&(d=new Uint8Array(e.g.buffer)),d}function a(n,t){return f.decode(_().subarray(n,n+t))}function b(n){c===u.length&&u.push(u.length+1);const t=c;return c=u[t],u[t]=n,t}function l(n){return null==n}let g=new Float64Array;let s=new Int32Array;function w(){return 0===s.byteLength&&(s=new Int32Array(e.g.buffer)),s}let y=0;let h=new("undefined"==typeof TextEncoder?(0,n.require)("util").TextEncoder:TextEncoder)("utf-8");const p="function"==typeof h.encodeInto?function(n,t){return h.encodeInto(n,t)}:function(n,t){const r=h.encode(n);return t.set(r),{read:n.length,written:r.length}};function A(n,t,r){if(void 0===r){const r=h.encode(n),e=t(r.length);return _().subarray(e,e+r.length).set(r),y=r.length,e}let e=n.length,u=t(e);const o=_();let c=0;for(;c<e;c++){const t=n.charCodeAt(c);if(t>127)break;o[u+c]=t}if(c!==e){0!==c&&(n=n.slice(c)),u=r(u,e,e=c+3*n.length);const t=_().subarray(u+c,u+e);c+=p(n,t).written}return y=c,u}function m(n,t){try{const f=e.a(-16),d=function(n,t){const r=t(1*n.length);return _().set(n,r/1),y=n.length,r}(n,e.d),a=y;e.f(f,d,a,b(t));var r=w()[f/4+0],u=w()[f/4+1],o=(c=r,i=u,_().subarray(c/1,c/1+i)).slice();return e.c(r,1*u),o}finally{e.a(16)}var c,i}function v(n,t){try{return n.apply(this,t)}catch(n){e.b(b(n))}}function j(n){i(n)}function x(n){const t=o(n);return"boolean"==typeof t?t?1:0:2}function k(n,t){return b(new Error(a(n,t)))}function E(n){const t=o(n);return"object"==typeof t&&null!==t}function O(n){return void 0===o(n)}function I(n,t){return o(n)in o(t)}function S(n,t){return o(n)==o(t)}function F(n,t){const r=o(t),u="number"==typeof r?r:void 0;(0===g.byteLength&&(g=new Float64Array(e.g.buffer)),g)[n/8+1]=l(u)?0:u,w()[n/4+0]=!l(u)}function T(n,t){const r=o(t),u="string"==typeof r?r:void 0;var c=l(u)?0:A(u,e.d,e.e),i=y;w()[n/4+1]=i,w()[n/4+0]=c}function $(n){return b(o(n))}function q(n,t){return b(o(n)[o(t)])}function B(){return b(new Error)}function D(n,t){const r=A(o(t).stack,e.d,e.e),u=y;w()[n/4+1]=u,w()[n/4+0]=r}function P(n,t){try{console.error(a(n,t))}finally{e.c(n,t)}}function U(n,t){return b(o(n)[t>>>0])}function C(n){return o(n).length}function J(n){return"function"==typeof o(n)}function L(n){return b(o(n).next)}function z(){return v((function(n){return b(o(n).next())}),arguments)}function G(n){return o(n).done}function H(n){return b(o(n).value)}function K(){return b(Symbol.iterator)}function N(){return v((function(n,t){return b(Reflect.get(o(n),o(t)))}),arguments)}function M(){return v((function(n,t){return b(o(n).call(o(t)))}),arguments)}function R(n,t){return b(a(n,t))}function Q(n){return Array.isArray(o(n))}function V(n){let t;try{t=o(n)instanceof ArrayBuffer}catch{t=!1}return t}function W(n){return Number.isSafeInteger(o(n))}function X(n){return b(o(n).buffer)}function Y(n){return b(new Uint8Array(o(n)))}function Z(n,t,r){o(n).set(o(t),r>>>0)}function nn(n){return o(n).length}function tn(n){let t;try{t=o(n)instanceof Uint8Array}catch{t=!1}return t}function rn(n,t){const r=A(function n(t){const r=typeof t;if("number"==r||"boolean"==r||null==t)return""+t;if("string"==r)return`"${t}"`;if("symbol"==r){const n=t.description;return null==n?"Symbol":`Symbol(${n})`}if("function"==r){const n=t.name;return"string"==typeof n&&n.length>0?`Function(${n})`:"Function"}if(Array.isArray(t)){const r=t.length;let e="[";r>0&&(e+=n(t[0]));for(let u=1;u<r;u++)e+=", "+n(t[u]);return e+="]",e}const e=/\[object ([^\]]+)\]/.exec(toString.call(t));let u;if(!(e.length>1))return toString.call(t);if(u=e[1],"Object"==u)try{return"Object("+JSON.stringify(t)+")"}catch(n){return"Object"}return t instanceof Error?`${t.name}: ${t.message}\n${t.stack}`:u}(o(t)),e.d,e.e),u=y;w()[n/4+1]=u,w()[n/4+0]=r}function en(n,t){throw new Error(a(n,t))}function un(){return b(e.g)}}).call(this,r(4)(n))},function(n,t,r){"use strict";var e=r.w[n.i];n.exports=e;r(2);e.h()},function(n,t){n.exports=function(n){if(!n.webpackPolyfill){var t=Object.create(n);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}}]);
self.webpackChunk([0],[function(n,t,r){"use strict";r.r(t);var e=r(2);r.d(t,"edit_js",(function(){return e.L})),r.d(t,"count_ticks",(function(){return e.K})),r.d(t,"__wbindgen_object_drop_ref",(function(){return e.G})),r.d(t,"__wbindgen_error_new",(function(){return e.x})),r.d(t,"__wbindgen_boolean_get",(function(){return e.v})),r.d(t,"__wbindgen_is_object",(function(){return e.A})),r.d(t,"__wbindgen_is_undefined",(function(){return e.B})),r.d(t,"__wbindgen_in",(function(){return e.y})),r.d(t,"__wbindgen_jsval_loose_eq",(function(){return e.C})),r.d(t,"__wbindgen_number_get",(function(){return e.E})),r.d(t,"__wbindgen_string_get",(function(){return e.H})),r.d(t,"__wbindgen_object_clone_ref",(function(){return e.F})),r.d(t,"__wbg_getwithrefkey_15c62c2b8546208d",(function(){return e.g})),r.d(t,"__wbg_new_abda76e883ba8a5f",(function(){return e.p})),r.d(t,"__wbg_stack_658279fe44541cf6",(function(){return e.t})),r.d(t,"__wbg_error_f851667af71bcfc6",(function(){return e.d})),r.d(t,"__wbg_get_57245cc7d7c7619d",(function(){return e.e})),r.d(t,"__wbg_length_6e3bbe7c8bd4dbd8",(function(){return e.m})),r.d(t,"__wbindgen_is_function",(function(){return e.z})),r.d(t,"__wbg_next_579e583d33566a86",(function(){return e.q})),r.d(t,"__wbg_next_aaef7c8aa5e212ac",(function(){return e.r})),r.d(t,"__wbg_done_1b73b0672e15f234",(function(){return e.c})),r.d(t,"__wbg_value_1ccc36bc03462d71",(function(){return e.u})),r.d(t,"__wbg_iterator_6f9d4f28845f426c",(function(){return e.l})),r.d(t,"__wbg_get_765201544a2b6869",(function(){return e.f})),r.d(t,"__wbg_call_97ae9d8645dc388b",(function(){return e.b})),r.d(t,"__wbindgen_string_new",(function(){return e.I})),r.d(t,"__wbg_isArray_27c46c67f498e15d",(function(){return e.j})),r.d(t,"__wbg_instanceof_ArrayBuffer_e5e48f4762c5610b",(function(){return e.h})),r.d(t,"__wbg_isSafeInteger_dfa0593e8d7ac35a",(function(){return e.k})),r.d(t,"__wbg_buffer_3f3d764d4747d564",(function(){return e.a})),r.d(t,"__wbg_new_8c3f0052272a457a",(function(){return e.o})),r.d(t,"__wbg_set_83db9690f9353e79",(function(){return e.s})),r.d(t,"__wbg_length_9e1ae1900cb0fbd5",(function(){return e.n})),r.d(t,"__wbg_instanceof_Uint8Array_971eeda69eb75003",(function(){return e.i})),r.d(t,"__wbindgen_debug_string",(function(){return e.w})),r.d(t,"__wbindgen_throw",(function(){return e.J})),r.d(t,"__wbindgen_memory",(function(){return e.D}))},,function(n,t,r){"use strict";(function(n){r.d(t,"L",(function(){return v})),r.d(t,"K",(function(){return j})),r.d(t,"G",(function(){return k})),r.d(t,"x",(function(){return E})),r.d(t,"v",(function(){return O})),r.d(t,"A",(function(){return I})),r.d(t,"B",(function(){return S})),r.d(t,"y",(function(){return F})),r.d(t,"C",(function(){return T})),r.d(t,"E",(function(){return $})),r.d(t,"H",(function(){return q})),r.d(t,"F",(function(){return B})),r.d(t,"g",(function(){return D})),r.d(t,"p",(function(){return L})),r.d(t,"t",(function(){return P})),r.d(t,"d",(function(){return U})),r.d(t,"e",(function(){return C})),r.d(t,"m",(function(){return J})),r.d(t,"z",(function(){return z})),r.d(t,"q",(function(){return G})),r.d(t,"r",(function(){return H})),r.d(t,"c",(function(){return K})),r.d(t,"u",(function(){return N})),r.d(t,"l",(function(){return M})),r.d(t,"f",(function(){return R})),r.d(t,"b",(function(){return Q})),r.d(t,"I",(function(){return V})),r.d(t,"j",(function(){return W})),r.d(t,"h",(function(){return X})),r.d(t,"k",(function(){return Y})),r.d(t,"a",(function(){return Z})),r.d(t,"o",(function(){return nn})),r.d(t,"s",(function(){return tn})),r.d(t,"n",(function(){return rn})),r.d(t,"i",(function(){return en})),r.d(t,"w",(function(){return un})),r.d(t,"J",(function(){return cn})),r.d(t,"D",(function(){return on}));var e=r(3);const u=new Array(32).fill(void 0);function c(n){return u[n]}u.push(void 0,null,!0,!1);let o=u.length;function i(n){const t=c(n);return function(n){n<36||(u[n]=o,o=n)}(n),t}let f=new("undefined"==typeof TextDecoder?(0,n.require)("util").TextDecoder:TextDecoder)("utf-8",{ignoreBOM:!0,fatal:!0});f.decode();let d=new Uint8Array;function _(){return 0===d.byteLength&&(d=new Uint8Array(e.h.buffer)),d}function a(n,t){return f.decode(_().subarray(n,n+t))}function b(n){o===u.length&&u.push(u.length+1);const t=o;return o=u[t],u[t]=n,t}function l(n){return null==n}let g=new Float64Array;let s=new Int32Array;function w(){return 0===s.byteLength&&(s=new Int32Array(e.h.buffer)),s}let y=0;let h=new("undefined"==typeof TextEncoder?(0,n.require)("util").TextEncoder:TextEncoder)("utf-8");const p="function"==typeof h.encodeInto?function(n,t){return h.encodeInto(n,t)}:function(n,t){const r=h.encode(n);return t.set(r),{read:n.length,written:r.length}};function A(n,t,r){if(void 0===r){const r=h.encode(n),e=t(r.length);return _().subarray(e,e+r.length).set(r),y=r.length,e}let e=n.length,u=t(e);const c=_();let o=0;for(;o<e;o++){const t=n.charCodeAt(o);if(t>127)break;c[u+o]=t}if(o!==e){0!==o&&(n=n.slice(o)),u=r(u,e,e=o+3*n.length);const t=_().subarray(u+o,u+e);o+=p(n,t).written}return y=o,u}function m(n,t){const r=t(1*n.length);return _().set(n,r/1),y=n.length,r}function v(n,t){try{const f=e.a(-16),d=m(n,e.d),a=y;e.g(f,d,a,b(t));var r=w()[f/4+0],u=w()[f/4+1],c=(o=r,i=u,_().subarray(o/1,o/1+i)).slice();return e.c(r,1*u),c}finally{e.a(16)}var o,i}function j(n){const t=m(n,e.d),r=y;return e.f(t,r)>>>0}function x(n,t){try{return n.apply(this,t)}catch(n){e.b(b(n))}}function k(n){i(n)}function E(n,t){return b(new Error(a(n,t)))}function O(n){const t=c(n);return"boolean"==typeof t?t?1:0:2}function I(n){const t=c(n);return"object"==typeof t&&null!==t}function S(n){return void 0===c(n)}function F(n,t){return c(n)in c(t)}function T(n,t){return c(n)==c(t)}function $(n,t){const r=c(t),u="number"==typeof r?r:void 0;(0===g.byteLength&&(g=new Float64Array(e.h.buffer)),g)[n/8+1]=l(u)?0:u,w()[n/4+0]=!l(u)}function q(n,t){const r=c(t),u="string"==typeof r?r:void 0;var o=l(u)?0:A(u,e.d,e.e),i=y;w()[n/4+1]=i,w()[n/4+0]=o}function B(n){return b(c(n))}function D(n,t){return b(c(n)[c(t)])}function L(){return b(new Error)}function P(n,t){const r=A(c(t).stack,e.d,e.e),u=y;w()[n/4+1]=u,w()[n/4+0]=r}function U(n,t){try{console.error(a(n,t))}finally{e.c(n,t)}}function C(n,t){return b(c(n)[t>>>0])}function J(n){return c(n).length}function z(n){return"function"==typeof c(n)}function G(n){return b(c(n).next)}function H(){return x((function(n){return b(c(n).next())}),arguments)}function K(n){return c(n).done}function N(n){return b(c(n).value)}function M(){return b(Symbol.iterator)}function R(){return x((function(n,t){return b(Reflect.get(c(n),c(t)))}),arguments)}function Q(){return x((function(n,t){return b(c(n).call(c(t)))}),arguments)}function V(n,t){return b(a(n,t))}function W(n){return Array.isArray(c(n))}function X(n){let t;try{t=c(n)instanceof ArrayBuffer}catch{t=!1}return t}function Y(n){return Number.isSafeInteger(c(n))}function Z(n){return b(c(n).buffer)}function nn(n){return b(new Uint8Array(c(n)))}function tn(n,t,r){c(n).set(c(t),r>>>0)}function rn(n){return c(n).length}function en(n){let t;try{t=c(n)instanceof Uint8Array}catch{t=!1}return t}function un(n,t){const r=A(function n(t){const r=typeof t;if("number"==r||"boolean"==r||null==t)return""+t;if("string"==r)return`"${t}"`;if("symbol"==r){const n=t.description;return null==n?"Symbol":`Symbol(${n})`}if("function"==r){const n=t.name;return"string"==typeof n&&n.length>0?`Function(${n})`:"Function"}if(Array.isArray(t)){const r=t.length;let e="[";r>0&&(e+=n(t[0]));for(let u=1;u<r;u++)e+=", "+n(t[u]);return e+="]",e}const e=/\[object ([^\]]+)\]/.exec(toString.call(t));let u;if(!(e.length>1))return toString.call(t);if(u=e[1],"Object"==u)try{return"Object("+JSON.stringify(t)+")"}catch(n){return"Object"}return t instanceof Error?`${t.name}: ${t.message}\n${t.stack}`:u}(c(t)),e.d,e.e),u=y;w()[n/4+1]=u,w()[n/4+0]=r}function cn(n,t){throw new Error(a(n,t))}function on(){return b(e.h)}}).call(this,r(4)(n))},function(n,t,r){"use strict";var e=r.w[n.i];n.exports=e;r(2);e.i()},function(n,t){n.exports=function(n){if(!n.webpackPolyfill){var t=Object.create(n);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}}]);

@@ -1,1 +0,1 @@

!function(n,e){for(var t in e)n[t]=e[t]}(exports,function(n){self.webpackChunk=function(e,r){for(var o in r)n[o]=r[o];for(;e.length;)t[e.pop()]=1};var e={},t={1:1},r={};var o={3:function(){return{"./index_bg.js":{__wbindgen_object_drop_ref:function(n){return e[2].exports.G(n)},__wbindgen_boolean_get:function(n){return e[2].exports.v(n)},__wbindgen_error_new:function(n,t){return e[2].exports.x(n,t)},__wbindgen_is_object:function(n){return e[2].exports.A(n)},__wbindgen_is_undefined:function(n){return e[2].exports.B(n)},__wbindgen_in:function(n,t){return e[2].exports.y(n,t)},__wbindgen_jsval_loose_eq:function(n,t){return e[2].exports.C(n,t)},__wbindgen_number_get:function(n,t){return e[2].exports.E(n,t)},__wbindgen_string_get:function(n,t){return e[2].exports.H(n,t)},__wbindgen_object_clone_ref:function(n){return e[2].exports.F(n)},__wbg_getwithrefkey_15c62c2b8546208d:function(n,t){return e[2].exports.g(n,t)},__wbg_new_abda76e883ba8a5f:function(){return e[2].exports.p()},__wbg_stack_658279fe44541cf6:function(n,t){return e[2].exports.t(n,t)},__wbg_error_f851667af71bcfc6:function(n,t){return e[2].exports.d(n,t)},__wbg_get_57245cc7d7c7619d:function(n,t){return e[2].exports.e(n,t)},__wbg_length_6e3bbe7c8bd4dbd8:function(n){return e[2].exports.m(n)},__wbindgen_is_function:function(n){return e[2].exports.z(n)},__wbg_next_579e583d33566a86:function(n){return e[2].exports.q(n)},__wbg_next_aaef7c8aa5e212ac:function(n){return e[2].exports.r(n)},__wbg_done_1b73b0672e15f234:function(n){return e[2].exports.c(n)},__wbg_value_1ccc36bc03462d71:function(n){return e[2].exports.u(n)},__wbg_iterator_6f9d4f28845f426c:function(){return e[2].exports.l()},__wbg_get_765201544a2b6869:function(n,t){return e[2].exports.f(n,t)},__wbg_call_97ae9d8645dc388b:function(n,t){return e[2].exports.b(n,t)},__wbindgen_string_new:function(n,t){return e[2].exports.I(n,t)},__wbg_isArray_27c46c67f498e15d:function(n){return e[2].exports.j(n)},__wbg_instanceof_ArrayBuffer_e5e48f4762c5610b:function(n){return e[2].exports.h(n)},__wbg_isSafeInteger_dfa0593e8d7ac35a:function(n){return e[2].exports.k(n)},__wbg_buffer_3f3d764d4747d564:function(n){return e[2].exports.a(n)},__wbg_new_8c3f0052272a457a:function(n){return e[2].exports.o(n)},__wbg_set_83db9690f9353e79:function(n,t,r){return e[2].exports.s(n,t,r)},__wbg_length_9e1ae1900cb0fbd5:function(n){return e[2].exports.n(n)},__wbg_instanceof_Uint8Array_971eeda69eb75003:function(n){return e[2].exports.i(n)},__wbindgen_debug_string:function(n,t){return e[2].exports.w(n,t)},__wbindgen_throw:function(n,t){return e[2].exports.J(n,t)},__wbindgen_memory:function(){return e[2].exports.D()}}}}};function u(t){if(e[t])return e[t].exports;var r=e[t]={i:t,l:!1,exports:{}};return n[t].call(r.exports,r,r.exports,u),r.l=!0,r.exports}return u.e=function(n){var e=[];return e.push(Promise.resolve().then((function(){t[n]||importScripts(u.p+""+({0:"demos-tf-edit"}[n]||n)+".js")}))),({0:[3]}[n]||[]).forEach((function(n){var t=r[n];if(t)e.push(t);else{var i,_=o[n](),c=fetch(u.p+""+{3:"4f0bfbaba6989a55d579"}[n]+".module.wasm");if(_ instanceof Promise&&"function"==typeof WebAssembly.compileStreaming)i=Promise.all([WebAssembly.compileStreaming(c),_]).then((function(n){return WebAssembly.instantiate(n[0],n[1])}));else if("function"==typeof WebAssembly.instantiateStreaming)i=WebAssembly.instantiateStreaming(c,_);else{i=c.then((function(n){return n.arrayBuffer()})).then((function(n){return WebAssembly.instantiate(n,_)}))}e.push(r[n]=i.then((function(e){return u.w[n]=(e.instance||e).exports})))}})),Promise.all(e)},u.m=n,u.c=e,u.d=function(n,e,t){u.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:t})},u.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},u.t=function(n,e){if(1&e&&(n=u(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var t=Object.create(null);if(u.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var r in n)u.d(t,r,function(e){return n[e]}.bind(null,r));return t},u.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return u.d(e,"a",e),e},u.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},u.p="",u.w={},u(u.s=0)}([function(n,e,t){"use strict";t.r(e),t.d(e,"edit",(function(){return u}));var r=function(n,e,t,r){return new(t||(t=Promise))((function(o,u){function i(n){try{c(r.next(n))}catch(n){u(n)}}function _(n){try{c(r.throw(n))}catch(n){u(n)}}function c(n){var e;n.done?o(n.value):(e=n.value,e instanceof t?e:new t((function(n){n(e)}))).then(i,_)}c((r=r.apply(n,e||[])).next())}))},o=function(n,e){var t,r,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:_(0),throw:_(1),return:_(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function _(u){return function(_){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;i;)try{if(t=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=e.call(n,i)}catch(n){u=[6,n],r=0}finally{t=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,_])}}};function u(n,e){return r(this,void 0,void 0,(function(){return o(this,(function(r){switch(r.label){case 0:return[4,t.e(0).then(t.bind(null,1))];case 1:return[2,r.sent().edit_js(n,e)]}}))}))}}]));
!function(n,e){for(var t in e)n[t]=e[t]}(exports,function(n){self.webpackChunk=function(e,r){for(var o in r)n[o]=r[o];for(;e.length;)t[e.pop()]=1};var e={},t={1:1},r={};var o={3:function(){return{"./index_bg.js":{__wbindgen_object_drop_ref:function(n){return e[2].exports.G(n)},__wbindgen_error_new:function(n,t){return e[2].exports.x(n,t)},__wbindgen_boolean_get:function(n){return e[2].exports.v(n)},__wbindgen_is_object:function(n){return e[2].exports.A(n)},__wbindgen_is_undefined:function(n){return e[2].exports.B(n)},__wbindgen_in:function(n,t){return e[2].exports.y(n,t)},__wbindgen_jsval_loose_eq:function(n,t){return e[2].exports.C(n,t)},__wbindgen_number_get:function(n,t){return e[2].exports.E(n,t)},__wbindgen_string_get:function(n,t){return e[2].exports.H(n,t)},__wbindgen_object_clone_ref:function(n){return e[2].exports.F(n)},__wbg_getwithrefkey_15c62c2b8546208d:function(n,t){return e[2].exports.g(n,t)},__wbg_new_abda76e883ba8a5f:function(){return e[2].exports.p()},__wbg_stack_658279fe44541cf6:function(n,t){return e[2].exports.t(n,t)},__wbg_error_f851667af71bcfc6:function(n,t){return e[2].exports.d(n,t)},__wbg_get_57245cc7d7c7619d:function(n,t){return e[2].exports.e(n,t)},__wbg_length_6e3bbe7c8bd4dbd8:function(n){return e[2].exports.m(n)},__wbindgen_is_function:function(n){return e[2].exports.z(n)},__wbg_next_579e583d33566a86:function(n){return e[2].exports.q(n)},__wbg_next_aaef7c8aa5e212ac:function(n){return e[2].exports.r(n)},__wbg_done_1b73b0672e15f234:function(n){return e[2].exports.c(n)},__wbg_value_1ccc36bc03462d71:function(n){return e[2].exports.u(n)},__wbg_iterator_6f9d4f28845f426c:function(){return e[2].exports.l()},__wbg_get_765201544a2b6869:function(n,t){return e[2].exports.f(n,t)},__wbg_call_97ae9d8645dc388b:function(n,t){return e[2].exports.b(n,t)},__wbindgen_string_new:function(n,t){return e[2].exports.I(n,t)},__wbg_isArray_27c46c67f498e15d:function(n){return e[2].exports.j(n)},__wbg_instanceof_ArrayBuffer_e5e48f4762c5610b:function(n){return e[2].exports.h(n)},__wbg_isSafeInteger_dfa0593e8d7ac35a:function(n){return e[2].exports.k(n)},__wbg_buffer_3f3d764d4747d564:function(n){return e[2].exports.a(n)},__wbg_new_8c3f0052272a457a:function(n){return e[2].exports.o(n)},__wbg_set_83db9690f9353e79:function(n,t,r){return e[2].exports.s(n,t,r)},__wbg_length_9e1ae1900cb0fbd5:function(n){return e[2].exports.n(n)},__wbg_instanceof_Uint8Array_971eeda69eb75003:function(n){return e[2].exports.i(n)},__wbindgen_debug_string:function(n,t){return e[2].exports.w(n,t)},__wbindgen_throw:function(n,t){return e[2].exports.J(n,t)},__wbindgen_memory:function(){return e[2].exports.D()}}}}};function u(t){if(e[t])return e[t].exports;var r=e[t]={i:t,l:!1,exports:{}};return n[t].call(r.exports,r,r.exports,u),r.l=!0,r.exports}return u.e=function(n){var e=[];return e.push(Promise.resolve().then((function(){t[n]||importScripts(u.p+""+({0:"demos-tf-edit"}[n]||n)+".js")}))),({0:[3]}[n]||[]).forEach((function(n){var t=r[n];if(t)e.push(t);else{var i,c=o[n](),f=fetch(u.p+""+{3:"199d548a1f610bfc0535"}[n]+".module.wasm");if(c instanceof Promise&&"function"==typeof WebAssembly.compileStreaming)i=Promise.all([WebAssembly.compileStreaming(f),c]).then((function(n){return WebAssembly.instantiate(n[0],n[1])}));else if("function"==typeof WebAssembly.instantiateStreaming)i=WebAssembly.instantiateStreaming(f,c);else{i=f.then((function(n){return n.arrayBuffer()})).then((function(n){return WebAssembly.instantiate(n,c)}))}e.push(r[n]=i.then((function(e){return u.w[n]=(e.instance||e).exports})))}})),Promise.all(e)},u.m=n,u.c=e,u.d=function(n,e,t){u.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:t})},u.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},u.t=function(n,e){if(1&e&&(n=u(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var t=Object.create(null);if(u.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var r in n)u.d(t,r,function(e){return n[e]}.bind(null,r));return t},u.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return u.d(e,"a",e),e},u.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},u.p="",u.w={},u(u.s=1)}([,function(n,e,t){"use strict";t.r(e),t.d(e,"edit",(function(){return u})),t.d(e,"count_ticks",(function(){return i}));var r=function(n,e,t,r){return new(t||(t=Promise))((function(o,u){function i(n){try{f(r.next(n))}catch(n){u(n)}}function c(n){try{f(r.throw(n))}catch(n){u(n)}}function f(n){var e;n.done?o(n.value):(e=n.value,e instanceof t?e:new t((function(n){n(e)}))).then(i,c)}f((r=r.apply(n,e||[])).next())}))},o=function(n,e){var t,r,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function c(u){return function(c){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;i;)try{if(t=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=e.call(n,i)}catch(n){u=[6,n],r=0}finally{t=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}};function u(n,e){return r(this,void 0,void 0,(function(){return o(this,(function(r){switch(r.label){case 0:return[4,t.e(0).then(t.bind(null,0))];case 1:return[2,r.sent().edit_js(n,e)]}}))}))}function i(n){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,t.e(0).then(t.bind(null,0))];case 1:return[2,e.sent().count_ticks(n)]}}))}))}}]));

@@ -14,2 +14,7 @@ export interface EditOptions {

return m.edit_js(bytes, options);
}
export async function count_ticks(bytes: Uint8Array): Promise<number> {
let m = await import(/* webpackChunkName: "demos-tf-edit" */ "../pkg/index.js");
return m.count_ticks(bytes);
}
{
"author": "Robin Appelman <robin@icewind.nl>",
"name": "@demostf/edit",
"version": "0.1.2",
"version": "0.1.3",
"scripts": {

@@ -6,0 +6,0 @@ "build": "rimraf dist pkg && webpack",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc