Socket
Socket
Sign inDemoInstall

hyperapplicable

Package Overview
Dependencies
1
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.11.2 to 0.11.3

2

dist/hyperapplicable.d.ts

@@ -14,3 +14,3 @@ import { Action, Effect, Dispatchable, MaybeVNode, CustomPayloads, Dispatch, Unsubscribe, VNode, ClassProp } from 'hyperapp';

declare const nextFrame: <S>(f: Function, ...args: any[]) => Effect<S>;
declare const nextFrame: <S>(f: (..._: any[]) => Record<string, any> | null, ...args: any[]) => Effect<S>;

@@ -17,0 +17,0 @@ type ActionWithPayload<S, P = any> = [action: Action<S, P>, payload: P];

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

(function(o,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("hyperapp")):typeof define=="function"&&define.amd?define(["exports","hyperapp"],i):(o=typeof globalThis<"u"?globalThis:o||self,i(o.hyperapplicable={},o.Hyperapp))})(this,function(o,i){"use strict";let a;const l=(t,n,e)=>[m,{action:t,delay:n,payload:e}],m=(t,n)=>{clearTimeout(a),a=setTimeout(()=>window.requestAnimationFrame(()=>t(n.action,n.payload)),n.delay)},A=t=>[b,t],b=(t,n)=>{window.requestAnimationFrame(()=>console.log(n))},g=t=>[h,t],h=(t,n)=>{window.requestAnimationFrame(()=>t(n))},F=(t,...n)=>[S,{f:t,args:n}],S=(t,n)=>{window.requestAnimationFrame(async()=>{const e=await n.f(...n.args);if(e instanceof Error)throw e;t(r=>e??r)})},V=(t,...n)=>{let e=t;for(let r=0;r<n.length;++r){const y=n[r];if(!Array.isArray(e))e=y(e);else{const[j,...d]=e,s=y(j);if(!Array.isArray(s))e=[s,...d];else{const[D,...E]=s;e=[D,...d,...E]}}}return e},p=(t,n)=>i.h("div",{class:t},n),q=t=>n=>i.h("pre",{},i.text(`${t}: ${JSON.stringify(n[t],N,2)}`)),N=(t,n)=>typeof n=="function"?"function":n,c=t=>n=>{if(typeof t=="function"){const e=t(n);return Array.isArray(e)?e:[e]}return typeof t=="number"||typeof t=="string"?[i.text(t)]:[t]},T=t=>t==null||typeof t=="boolean"||typeof t=="function"||typeof t=="number"||typeof t=="string"||Array.isArray(t)||u(t),u=t=>typeof t=="object"&&t!=null&&"node"in t,f=t=>n=>Array.isArray(t)?t.reduce((e,r)=>[...e,...Array.isArray(r)?f(r)(n):c(r)(n)],[]):c(t)(n),w=t=>typeof t=="function"||Array.isArray(t)&&t.length>0;o.box=p,o.contentView=c,o.debounce=l,o.isAction=w,o.isVNode=u,o.isVista=T,o.log=A,o.next=g,o.nextFrame=F,o.readout=q,o.unite=V,o.vista=f,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
(function(o,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("hyperapp")):typeof define=="function"&&define.amd?define(["exports","hyperapp"],i):(o=typeof globalThis<"u"?globalThis:o||self,i(o.hyperapplicable={},o.Hyperapp))})(this,function(o,i){"use strict";let a;const l=(n,t,e)=>[m,{action:n,delay:t,payload:e}],m=(n,t)=>{clearTimeout(a),a=setTimeout(()=>window.requestAnimationFrame(()=>n(t.action,t.payload)),t.delay)},A=n=>[b,n],b=(n,t)=>{window.requestAnimationFrame(()=>console.log(t))},g=n=>[h,n],h=(n,t)=>{window.requestAnimationFrame(()=>n(t))},F=(n,...t)=>[S,{f:n,args:t}],S=(n,t)=>{window.requestAnimationFrame(async()=>{const e=await t.f(...t.args);if(e instanceof Error)throw e;n(r=>e==null?r:{...r,...e})})},V=(n,...t)=>{let e=n;for(let r=0;r<t.length;++r){const y=t[r];if(!Array.isArray(e))e=y(e);else{const[j,...d]=e,s=y(j);if(!Array.isArray(s))e=[s,...d];else{const[D,...E]=s;e=[D,...d,...E]}}}return e},p=(n,t)=>i.h("div",{class:n},t),q=n=>t=>i.h("pre",{},i.text(`${n}: ${JSON.stringify(t[n],N,2)}`)),N=(n,t)=>typeof t=="function"?"function":t,c=n=>t=>{if(typeof n=="function"){const e=n(t);return Array.isArray(e)?e:[e]}return typeof n=="number"||typeof n=="string"?[i.text(n)]:[n]},T=n=>n==null||typeof n=="boolean"||typeof n=="function"||typeof n=="number"||typeof n=="string"||Array.isArray(n)||u(n),u=n=>typeof n=="object"&&n!=null&&"node"in n,f=n=>t=>Array.isArray(n)?n.reduce((e,r)=>[...e,...Array.isArray(r)?f(r)(t):c(r)(t)],[]):c(n)(t),w=n=>typeof n=="function"||Array.isArray(n)&&n.length>0;o.box=p,o.contentView=c,o.debounce=l,o.isAction=w,o.isVNode=u,o.isVista=T,o.log=A,o.next=g,o.nextFrame=F,o.readout=q,o.unite=V,o.vista=f,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
{
"name": "hyperapplicable",
"version": "0.11.2",
"version": "0.11.3",
"description": "A utility library for Hyperapp.",

@@ -51,13 +51,13 @@ "keywords": [

"@types/jest": "^29.5.1",
"@typescript-eslint/eslint-plugin": "^5.59.1",
"@typescript-eslint/parser": "^5.59.1",
"eslint": "^8.39.0",
"@typescript-eslint/eslint-plugin": "^5.59.5",
"@typescript-eslint/parser": "^5.59.5",
"eslint": "^8.40.0",
"fast-check": "^3.8.1",
"jest": "^29.5.0",
"rollup": "^3.21.2",
"terser": "^5.17.1",
"rollup": "^3.21.7",
"terser": "^5.17.3",
"ts-jest": "^29.1.0",
"tsup": "^6.7.0",
"typescript": "^5.0.4",
"vite": "^4.3.3"
"vite": "^4.3.5"
},

@@ -64,0 +64,0 @@ "dependencies": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc