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.1.2 to 0.1.3

4

es.js

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

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

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

s = info.s;
if (i === s.length) s.push({
if (i === s.length || !guards || guards.some(different, s[i]._)) s[i] = {
$: memo(),
_: guards
});else if (!guards || guards.some(different, s[i]._)) s[i] = {
$: memo(),
_: guards
};

@@ -161,0 +158,0 @@ return s[info.i++].$;

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

@@ -47,3 +47,3 @@ "main": "./cjs/index.js",

"dependencies": {
"uhooks": "^0.1.16"
"uhooks": "^0.1.17"
},

@@ -50,0 +50,0 @@ "repository": {

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