Socket
Socket
Sign inDemoInstall

hyperapplicable

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hyperapplicable - npm Package Compare versions

Comparing version 0.10.0 to 0.11.0

4

dist/hyperapplicable.d.ts

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

declare const nextFrame: <S>(f: Function, ...args: any[]) => Effect<S, any>;
declare type ActionWithPayload<S, P = any> = [action: Action<S, P>, payload: P];

@@ -43,2 +45,2 @@ declare type Content<S> = number | string | MaybeVNode<S>;

export { ActionWithPayload, Content, CustomProps, Effecter, MaybeView, Reaction, StateFormat, StateWithEffects, Subscriber, Transform, View, ViewComponent, Vista, VistaView, box, contentView, debounce, isAction, isVNode, isVista, log, next, readout, unite, vista };
export { ActionWithPayload, Content, CustomProps, Effecter, MaybeView, Reaction, StateFormat, StateWithEffects, Subscriber, Transform, View, ViewComponent, Vista, VistaView, box, contentView, debounce, isAction, isVNode, isVista, log, next, nextFrame, readout, unite, vista };

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

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

@@ -5,0 +5,0 @@ "keywords": [

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