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

uhooks-fx

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uhooks-fx - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

4

async.js

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

self.uhooksFX=function(e){"use strict";var t=Promise;let n=null,s=new Set;const a=new WeakMap,c=e=>{const{$:t,r:n,h:s}=e;p(n)&&(l.get(s).delete(e),n()),p(e.r=t())&&l.get(s).add(e)},u=()=>{const e=s;s=new Set,e.forEach((({h:e,c:t,a:n,e:s})=>{s&&e.apply(t,n)}))},l=new WeakMap,o=[],r=[];function h(e,t){return e!==this[t]}const i=()=>a.get(n),p=e=>"function"==typeof e,f=e=>{const t={h:s,c:null,a:null,e:0,i:0,s:[]};return a.set(s,t),s;function s(){const a=n;n=s,t.e=t.i=0;try{return e.apply(t.c=this,t.a=arguments)}finally{n=a,o.length&&d.then(o.forEach.bind(o.splice(0),c)),r.length&&r.splice(0).forEach(c)}}},d=new t((e=>e()));function y(e){const{_:t,value:n}=this;n!==e&&(this._=new Set,this.value=e,t.forEach((({h:e,c:t,a:n})=>{e.apply(t,n)})))}const w=(e,t)=>{const n=i(),{i:s,s:a}=n;return s!==a.length&&t&&!t.some(h,a[s]._)||(a[s]={$:e(),_:t}),a[n.i++].$},g=e=>(t,n)=>{const s=i(),{i:a,s:c,h:u}=s,o=a===c.length;s.i++,o&&(l.has(u)||l.set(u,new Set),c[a]={$:t,_:n,r:null,h:u}),(o||!n||n.some(h,c[a]._))&&e.push(c[a]),c[a].$=t,c[a]._=n},_=g(o),v=g(r),E=(e,t)=>p(t)?t(e):t,$=(e,t,n)=>{const a=i(),{i:c,s:l}=a;c===l.length&&l.push({$:p(n)?n(t):E(void 0,t),set:t=>{l[c].$=e(l[c].$,t),(e=>{s.has(e)||(e.e=1,s.add(e),d.then(u))})(a)}});const{$:o,set:r}=l[a.i++];return[o,r]},k=new WeakMap,M=e=>{const t=f(e);return k.set(n,t),n;async function n(){return await t.apply(this,arguments)}};
self.uhooksFX=function(e){"use strict";var t=Promise;let n=null,s=new Set;const a=new WeakMap,c=e=>{const{$:t,r:n,h:s}=e;p(n)&&(u.get(s).delete(e),n()),p(e.r=t())&&u.get(s).add(e)},r=()=>{const e=s;s=new Set,e.forEach((({h:e,c:t,a:n,e:s})=>{s&&e.apply(t,n)}))},u=new WeakMap,o=[],l=[];function h(e,t){return e!==this[t]}const i=()=>a.get(n),p=e=>"function"==typeof e,f=e=>{const t={h:s,c:null,a:null,e:0,i:0,s:[]};return a.set(s,t),s;function s(){const a=n;n=s,t.e=t.i=0;try{return e.apply(t.c=this,t.a=arguments)}finally{n=a,o.length&&d.then(o.forEach.bind(o.splice(0),c)),l.length&&l.splice(0).forEach(c)}}},d=new t((e=>e()));function y(e){const{_:t,value:n}=this;n!==e&&(this._=new Set,this.value=e,t.forEach((({h:e,c:t,a:n})=>{e.apply(t,n)})))}const w=(e,t)=>{const n=i(),{i:s,s:a}=n;return s!==a.length&&t&&!t.some(h,a[s]._)||(a[s]={$:e(),_:t}),a[n.i++].$},g=e=>(t,n)=>{const s=i(),{i:a,s:c,h:r}=s,o=a===c.length;s.i++,o&&(u.has(r)||u.set(r,new Set),c[a]={$:t,_:n,r:null,h:r}),(o||!n||n.some(h,c[a]._))&&e.push(c[a]),c[a].$=t,c[a]._=n},_=g(o),v=g(l),E=(e,t)=>p(t)?t(e):t,$=(e,t,n)=>{const a=i(),{i:c,s:u}=a;c===u.length&&u.push({$:p(n)?n(t):E(void 0,t),set:t=>{u[c].$=e(u[c].$,t),(e=>{s.has(e)||(e.e=1,s.add(e),d.then(r))})(a)}});const{$:o,set:l}=u[a.i++];return[o,l]},k=new WeakMap,M=e=>{const t=f(e);return k.set(n,t),n;async function n(){return await t.apply(this,arguments)}};
/*! (c) Andrea Giammarchi - ISC */
let S=null,W=null,m=null;const b=new WeakMap,C=new WeakMap,x=(e,t,n,s)=>{const a=a=>{b.has(e)||(b.set(e,0),d.then((()=>{b.delete(e),e.apply(t,n)}))),s(a)};return C.set(s,a),a},P=(e,t,n,s)=>e?[s[0],C.get(s[1])||x(e,t,n,s[1])]:s;return e.createContext=e=>({_:new Set,provide:y,value:e}),e.dropEffect=e=>(e=>{const t=l.get(e);t&&d.then((()=>{t.forEach((e=>{e.r(),e.r=null})),t.clear()}))})(k.get(e)),e.hasEffect=e=>(e=>l.has(e))(k.get(e)),e.hooked=(e,t)=>M(t?async function t(){const[n,s,a]=[S,W,m];[S,W,m]=[t,this,arguments];try{return await e.apply(W,m)}finally{[S,W,m]=[n,s,a]}}:e),e.useCallback=(e,t)=>w((()=>e),t),e.useContext=({_:e,value:t})=>(e.add(i()),t),e.useEffect=_,e.useLayoutEffect=v,e.useMemo=w,e.useReducer=(e,t,n)=>P(S,W,m,$(e,t,n)),e.useRef=e=>{const t=i(),{i:n,s:s}=t;return n===s.length&&s.push({current:e}),s[t.i++]},e.useState=e=>P(S,W,m,(e=>$(E,e))(e)),e.wait=d,e}({});
let S=null,W=null,m=null;const b=new WeakMap,C=new WeakMap,x=(e,t,n,s)=>{const a=a=>{b.has(e)||(b.set(e,0),d.then((()=>{b.delete(e),e.apply(t,n)}))),s(a)};return C.set(s,a),a},P=(e,t,n,s)=>e?[s[0],C.get(s[1])||x(e,t,n,s[1])]:s;return e.createContext=e=>({_:new Set,provide:y,value:e}),e.dropEffect=e=>(e=>{const t=u.get(e);t&&d.then((()=>{t.forEach((e=>{e.r(),e.r=null})),t.clear()}))})(k.get(e)),e.hasEffect=e=>(e=>u.has(e))(k.get(e)),e.hooked=(e,t)=>{const n=M(t?async function(){const[t,s,a]=[S,W,m];[S,W,m]=[n,this,arguments];try{return await e.apply(W,m)}finally{[S,W,m]=[t,s,a]}}:e);return n},e.useCallback=(e,t)=>w((()=>e),t),e.useContext=({_:e,value:t})=>(e.add(i()),t),e.useEffect=_,e.useLayoutEffect=v,e.useMemo=w,e.useReducer=(e,t,n)=>P(S,W,m,$(e,t,n)),e.useRef=e=>{const t=i(),{i:n,s:s}=t;return n===s.length&&s.push({current:e}),s[t.i++]},e.useState=e=>P(S,W,m,(e=>$(E,e))(e)),e.wait=d,e}({});

@@ -39,16 +39,19 @@ 'use strict';

const hooked = (callback, outer) => $hooked(
outer ?
async function hook() {
const [ph, pc, pa] = [h, c, a];
[h, c, a] = [hook, this, arguments];
try {
return await callback.apply(c, a);
}
finally {
[h, c, a] = [ph, pc, pa];
}
} :
callback
);
const hooked = (callback, outer) => {
const hook = $hooked(
outer ?
async function () {
const [ph, pc, pa] = [h, c, a];
[h, c, a] = [hook, this, arguments];
try {
return await callback.apply(c, a);
}
finally {
[h, c, a] = [ph, pc, pa];
}
} :
callback
);
return hook;
};
exports.hooked = hooked;

@@ -55,0 +58,0 @@

@@ -39,16 +39,19 @@ 'use strict';

const hooked = (callback, outer) => $hooked(
outer ?
/*async*/ function hook() {
const [ph, pc, pa] = [h, c, a];
[h, c, a] = [hook, this, arguments];
try {
return /*await*/ callback.apply(c, a);
}
finally {
[h, c, a] = [ph, pc, pa];
}
} :
callback
);
const hooked = (callback, outer) => {
const hook = $hooked(
outer ?
/*async*/ function () {
const [ph, pc, pa] = [h, c, a];
[h, c, a] = [hook, this, arguments];
try {
return /*await*/ callback.apply(c, a);
}
finally {
[h, c, a] = [ph, pc, pa];
}
} :
callback
);
return hook;
};
exports.hooked = hooked;

@@ -55,0 +58,0 @@

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

self.uhooksFX=function(e){"use strict";var t=Promise;let n=null,s=new Set;const a=new WeakMap,l=e=>{const{$:t,r:n,h:s}=e;f(n)&&(o.get(s).delete(e),n()),f(e.r=t())&&o.get(s).add(e)},c=()=>{const e=s;s=new Set,e.forEach((({h:e,c:t,a:n,e:s})=>{s&&e.apply(t,n)}))},o=new WeakMap,u=[],r=[];function h(e,t){return e!==this[t]}const i=()=>a.get(n),f=e=>"function"==typeof e,p=e=>{const t={h:s,c:null,a:null,e:0,i:0,s:[]};return a.set(s,t),s;function s(){const a=n;n=s,t.e=t.i=0;try{return e.apply(t.c=this,t.a=arguments)}finally{n=a,u.length&&d.then(u.forEach.bind(u.splice(0),l)),r.length&&r.splice(0).forEach(l)}}},d=new t((e=>e()));function y(e){const{_:t,value:n}=this;n!==e&&(this._=new Set,this.value=e,t.forEach((({h:e,c:t,a:n})=>{e.apply(t,n)})))}const g=(e,t)=>{const n=i(),{i:s,s:a}=n;return s!==a.length&&t&&!t.some(h,a[s]._)||(a[s]={$:e(),_:t}),a[n.i++].$},w=e=>(t,n)=>{const s=i(),{i:a,s:l,h:c}=s,u=a===l.length;s.i++,u&&(o.has(c)||o.set(c,new Set),l[a]={$:t,_:n,r:null,h:c}),(u||!n||n.some(h,l[a]._))&&e.push(l[a]),l[a].$=t,l[a]._=n},_=w(u),v=w(r),E=(e,t)=>f(t)?t(e):t,$=(e,t,n)=>{const a=i(),{i:l,s:o}=a;l===o.length&&o.push({$:f(n)?n(t):E(void 0,t),set:t=>{o[l].$=e(o[l].$,t),(e=>{s.has(e)||(e.e=1,s.add(e),d.then(c))})(a)}});const{$:u,set:r}=o[a.i++];return[u,r]};
self.uhooksFX=function(e){"use strict";var t=Promise;let n=null,s=new Set;const a=new WeakMap,c=e=>{const{$:t,r:n,h:s}=e;f(n)&&(o.get(s).delete(e),n()),f(e.r=t())&&o.get(s).add(e)},l=()=>{const e=s;s=new Set,e.forEach((({h:e,c:t,a:n,e:s})=>{s&&e.apply(t,n)}))},o=new WeakMap,u=[],r=[];function h(e,t){return e!==this[t]}const i=()=>a.get(n),f=e=>"function"==typeof e,p=e=>{const t={h:s,c:null,a:null,e:0,i:0,s:[]};return a.set(s,t),s;function s(){const a=n;n=s,t.e=t.i=0;try{return e.apply(t.c=this,t.a=arguments)}finally{n=a,u.length&&d.then(u.forEach.bind(u.splice(0),c)),r.length&&r.splice(0).forEach(c)}}},d=new t((e=>e()));function y(e){const{_:t,value:n}=this;n!==e&&(this._=new Set,this.value=e,t.forEach((({h:e,c:t,a:n})=>{e.apply(t,n)})))}const g=(e,t)=>{const n=i(),{i:s,s:a}=n;return s!==a.length&&t&&!t.some(h,a[s]._)||(a[s]={$:e(),_:t}),a[n.i++].$},w=e=>(t,n)=>{const s=i(),{i:a,s:c,h:l}=s,u=a===c.length;s.i++,u&&(o.has(l)||o.set(l,new Set),c[a]={$:t,_:n,r:null,h:l}),(u||!n||n.some(h,c[a]._))&&e.push(c[a]),c[a].$=t,c[a]._=n},_=w(u),v=w(r),E=(e,t)=>f(t)?t(e):t,$=(e,t,n)=>{const a=i(),{i:c,s:o}=a;c===o.length&&o.push({$:f(n)?n(t):E(void 0,t),set:t=>{o[c].$=e(o[c].$,t),(e=>{s.has(e)||(e.e=1,s.add(e),d.then(l))})(a)}});const{$:u,set:r}=o[a.i++];return[u,r]};
/*! (c) Andrea Giammarchi - ISC */
let k=null,M=null,S=null;const m=new WeakMap,W=new WeakMap,b=(e,t,n,s)=>{const a=a=>{m.has(e)||(m.set(e,0),d.then((()=>{m.delete(e),e.apply(t,n)}))),s(a)};return W.set(s,a),a},C=(e,t,n,s)=>e?[s[0],W.get(s[1])||b(e,t,n,s[1])]:s;return e.createContext=e=>({_:new Set,provide:y,value:e}),e.dropEffect=e=>{const t=o.get(e);t&&d.then((()=>{t.forEach((e=>{e.r(),e.r=null})),t.clear()}))},e.hasEffect=e=>o.has(e),e.hooked=(e,t)=>p(t?function t(){const[n,s,a]=[k,M,S];[k,M,S]=[t,this,arguments];try{return e.apply(M,S)}finally{[k,M,S]=[n,s,a]}}:e),e.useCallback=(e,t)=>g((()=>e),t),e.useContext=({_:e,value:t})=>(e.add(i()),t),e.useEffect=_,e.useLayoutEffect=v,e.useMemo=g,e.useReducer=(e,t,n)=>C(k,M,S,$(e,t,n)),e.useRef=e=>{const t=i(),{i:n,s:s}=t;return n===s.length&&s.push({current:e}),s[t.i++]},e.useState=e=>C(k,M,S,(e=>$(E,e))(e)),e.wait=d,e}({});
let k=null,M=null,S=null;const m=new WeakMap,W=new WeakMap,b=(e,t,n,s)=>{const a=a=>{m.has(e)||(m.set(e,0),d.then((()=>{m.delete(e),e.apply(t,n)}))),s(a)};return W.set(s,a),a},C=(e,t,n,s)=>e?[s[0],W.get(s[1])||b(e,t,n,s[1])]:s;return e.createContext=e=>({_:new Set,provide:y,value:e}),e.dropEffect=e=>{const t=o.get(e);t&&d.then((()=>{t.forEach((e=>{e.r(),e.r=null})),t.clear()}))},e.hasEffect=e=>o.has(e),e.hooked=(e,t)=>{const n=p(t?function(){const[t,s,a]=[k,M,S];[k,M,S]=[n,this,arguments];try{return e.apply(M,S)}finally{[k,M,S]=[t,s,a]}}:e);return n},e.useCallback=(e,t)=>g((()=>e),t),e.useContext=({_:e,value:t})=>(e.add(i()),t),e.useEffect=_,e.useLayoutEffect=v,e.useMemo=g,e.useReducer=(e,t,n)=>C(k,M,S,$(e,t,n)),e.useRef=e=>{const t=i(),{i:n,s:s}=t;return n===s.length&&s.push({current:e}),s[t.i++]},e.useState=e=>C(k,M,S,(e=>$(E,e))(e)),e.wait=d,e}({});

@@ -38,16 +38,19 @@ /*! (c) Andrea Giammarchi - ISC */

export const hooked = (callback, outer) => $hooked(
outer ?
async function hook() {
const [ph, pc, pa] = [h, c, a];
[h, c, a] = [hook, this, arguments];
try {
return await callback.apply(c, a);
}
finally {
[h, c, a] = [ph, pc, pa];
}
} :
callback
);
export const hooked = (callback, outer) => {
const hook = $hooked(
outer ?
async function () {
const [ph, pc, pa] = [h, c, a];
[h, c, a] = [hook, this, arguments];
try {
return await callback.apply(c, a);
}
finally {
[h, c, a] = [ph, pc, pa];
}
} :
callback
);
return hook;
};

@@ -54,0 +57,0 @@ export const useReducer = (reducer, value, init) =>

@@ -38,16 +38,19 @@ /*! (c) Andrea Giammarchi - ISC */

export const hooked = (callback, outer) => $hooked(
outer ?
/*async*/ function hook() {
const [ph, pc, pa] = [h, c, a];
[h, c, a] = [hook, this, arguments];
try {
return /*await*/ callback.apply(c, a);
}
finally {
[h, c, a] = [ph, pc, pa];
}
} :
callback
);
export const hooked = (callback, outer) => {
const hook = $hooked(
outer ?
/*async*/ function () {
const [ph, pc, pa] = [h, c, a];
[h, c, a] = [hook, this, arguments];
try {
return /*await*/ callback.apply(c, a);
}
finally {
[h, c, a] = [ph, pc, pa];
}
} :
callback
);
return hook;
};

@@ -54,0 +57,0 @@ export const useReducer = (reducer, value, init) =>

@@ -255,5 +255,5 @@ self.uhooksFX = (function (exports) {

var hooked$1 = function hooked$1(callback, outer) {
return hooked(outer ?
var hook = hooked(outer ?
/*async*/
function hook() {
function () {
var ph = h$1,

@@ -277,2 +277,3 @@ pc = c,

} : callback);
return hook;
};

@@ -279,0 +280,0 @@ var useReducer$1 = function useReducer$1(reducer, value, init) {

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

self.uhooksFX=function(n){"use strict";var t="function"==typeof Promise?Promise:function(n){var t,e=[],u=0;return n((function(n){t=n,u=1,e.splice(0).forEach(r)})),{then:r};function r(n){return u?setTimeout(n,0,t):e.push(n),this}},e=null,u=new Set,r=new WeakMap,i=function(n){var t=n.$,e=n.r,u=n.h;h(e)&&(c.get(u).delete(n),e()),h(n.r=t())&&c.get(u).add(n)},o=function(){var n=u;u=new Set,n.forEach((function(n){var t=n.h,e=n.c,u=n.a;n.e&&t.apply(e,u)}))},c=new WeakMap,a=[],f=[];function s(n,t){return n!==this[t]}var l=function(){return r.get(e)},h=function(n){return"function"==typeof n},v=new t((function(n){return n()}));function p(n){var t=this._;this.value!==n&&(this._=new Set,this.value=n,t.forEach((function(n){var t=n.h,e=n.c,u=n.a;t.apply(e,u)})))}var d=function(n,t){var e=l(),u=e.i,r=e.s;return u!==r.length&&t&&!t.some(s,r[u]._)||(r[u]={$:n(),_:t}),r[e.i++].$},y=function(n){return function(t,e){var u=l(),r=u.i,i=u.s,o=u.h,a=r===i.length;u.i++,a&&(c.has(o)||c.set(o,new Set),i[r]={$:t,_:e,r:null,h:o}),(a||!e||e.some(s,i[r]._))&&n.push(i[r]),i[r].$=t,i[r]._=e}},g=y(a),w=y(f),E=function(n,t){return h(t)?t(n):t},$=function(n,t,e){var r=l(),i=r.i,c=r.s;i===c.length&&c.push({$:h(e)?e(t):E(void 0,t),set:function(t){c[i].$=n(c[i].$,t),function(n){u.has(n)||(n.e=1,u.add(n),v.then(o))}(r)}});var a=c[r.i++];return[a.$,a.set]},_=null,k=null,m=null,S=new WeakMap,M=new WeakMap,W=function(n,t,e,u){var r=function(r){S.has(n)||(S.set(n,0),v.then((function(){S.delete(n),n.apply(t,e)}))),u(r)};return M.set(u,r),r},C=function(n,t,e,u){return n?[u[0],M.get(u[1])||W(n,t,e,u[1])]:u};return n.createContext=function(n){return{_:new Set,provide:p,value:n}},n.dropEffect=function(n){var t=c.get(n);t&&v.then((function(){t.forEach((function(n){n.r(),n.r=null})),t.clear()}))},n.hasEffect=function(n){return c.has(n)},n.hooked=function(n,t){return function(n){var t={h:u,c:null,a:null,e:0,i:0,s:[]};return r.set(u,t),u;function u(){var r=e;e=u,t.e=t.i=0;try{return n.apply(t.c=this,t.a=arguments)}finally{e=r,a.length&&v.then(a.forEach.bind(a.splice(0),i)),f.length&&f.splice(0).forEach(i)}}}(t?function t(){var e=_,u=k,r=m;_=t,k=this,m=arguments;try{return n.apply(k,m)}finally{_=e,k=u,m=r}}:n)},n.useCallback=function(n,t){return d((function(){return n}),t)},n.useContext=function(n){var t=n._,e=n.value;return t.add(l()),e},n.useEffect=g,n.useLayoutEffect=w,n.useMemo=d,n.useReducer=function(n,t,e){return C(_,k,m,$(n,t,e))},n.useRef=function(n){var t=l(),e=t.i,u=t.s;return e===u.length&&u.push({current:n}),u[t.i++]},n.useState=function(n){return C(_,k,m,function(n){return $(E,n)}(n))},n.wait=v,n}({});
self.uhooksFX=function(n){"use strict";var t="function"==typeof Promise?Promise:function(n){var t,e=[],u=0;return n((function(n){t=n,u=1,e.splice(0).forEach(r)})),{then:r};function r(n){return u?setTimeout(n,0,t):e.push(n),this}},e=null,u=new Set,r=new WeakMap,i=function(n){var t=n.$,e=n.r,u=n.h;h(e)&&(a.get(u).delete(n),e()),h(n.r=t())&&a.get(u).add(n)},o=function(){var n=u;u=new Set,n.forEach((function(n){var t=n.h,e=n.c,u=n.a;n.e&&t.apply(e,u)}))},a=new WeakMap,c=[],f=[];function s(n,t){return n!==this[t]}var l=function(){return r.get(e)},h=function(n){return"function"==typeof n},v=new t((function(n){return n()}));function p(n){var t=this._;this.value!==n&&(this._=new Set,this.value=n,t.forEach((function(n){var t=n.h,e=n.c,u=n.a;t.apply(e,u)})))}var d=function(n,t){var e=l(),u=e.i,r=e.s;return u!==r.length&&t&&!t.some(s,r[u]._)||(r[u]={$:n(),_:t}),r[e.i++].$},y=function(n){return function(t,e){var u=l(),r=u.i,i=u.s,o=u.h,c=r===i.length;u.i++,c&&(a.has(o)||a.set(o,new Set),i[r]={$:t,_:e,r:null,h:o}),(c||!e||e.some(s,i[r]._))&&n.push(i[r]),i[r].$=t,i[r]._=e}},g=y(c),w=y(f),E=function(n,t){return h(t)?t(n):t},$=function(n,t,e){var r=l(),i=r.i,a=r.s;i===a.length&&a.push({$:h(e)?e(t):E(void 0,t),set:function(t){a[i].$=n(a[i].$,t),function(n){u.has(n)||(n.e=1,u.add(n),v.then(o))}(r)}});var c=a[r.i++];return[c.$,c.set]},_=null,k=null,m=null,S=new WeakMap,M=new WeakMap,W=function(n,t,e,u){var r=function(r){S.has(n)||(S.set(n,0),v.then((function(){S.delete(n),n.apply(t,e)}))),u(r)};return M.set(u,r),r},C=function(n,t,e,u){return n?[u[0],M.get(u[1])||W(n,t,e,u[1])]:u};return n.createContext=function(n){return{_:new Set,provide:p,value:n}},n.dropEffect=function(n){var t=a.get(n);t&&v.then((function(){t.forEach((function(n){n.r(),n.r=null})),t.clear()}))},n.hasEffect=function(n){return a.has(n)},n.hooked=function(n,t){var u=function(n){var t={h:u,c:null,a:null,e:0,i:0,s:[]};return r.set(u,t),u;function u(){var r=e;e=u,t.e=t.i=0;try{return n.apply(t.c=this,t.a=arguments)}finally{e=r,c.length&&v.then(c.forEach.bind(c.splice(0),i)),f.length&&f.splice(0).forEach(i)}}}(t?function(){var t=_,e=k,r=m;_=u,k=this,m=arguments;try{return n.apply(k,m)}finally{_=t,k=e,m=r}}:n);return u},n.useCallback=function(n,t){return d((function(){return n}),t)},n.useContext=function(n){var t=n._,e=n.value;return t.add(l()),e},n.useEffect=g,n.useLayoutEffect=w,n.useMemo=d,n.useReducer=function(n,t,e){return C(_,k,m,$(n,t,e))},n.useRef=function(n){var t=l(),e=t.i,u=t.s;return e===u.length&&u.push({current:n}),u[t.i++]},n.useState=function(n){return C(_,k,m,function(n){return $(E,n)}(n))},n.wait=v,n}({});
{
"name": "uhooks-fx",
"version": "0.2.0",
"version": "0.2.1",
"description": "uhooks with propagated states",

@@ -5,0 +5,0 @@ "main": "./cjs/index.js",

@@ -5,3 +5,3 @@ # <em>µ</em>hooks-fx

This module exports same utilities via `uhooks-fx/async`, which is based on `uhooks/async` for asynchronous hooks.
This module exports same utilities via `uhooks-fx/async`, which is based on `uhooks/async` for asynchronous hooks.

@@ -8,0 +8,0 @@ ### Example

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