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.7.1 to 0.8.0

6

dist/hyperapplicable.d.ts

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

import { ClassProp, MaybeVNode, VNode, Action, Dispatchable, Effect, CustomPayloads, Dispatch, Unsubscribe } from 'hyperapp';
import { ClassProp, MaybeVNode, VNode, Action, Effect, Dispatchable, CustomPayloads, Dispatch, Unsubscribe } from 'hyperapp';

@@ -7,2 +7,4 @@ declare const box: <S>(classProp: ClassProp, contents: MaybeVNode<S> | MaybeVNode<S>[]) => VNode<S>;

declare const log: <S>(x: unknown) => Effect<S, any>;
declare const next: <S>(x: Dispatchable<S, any>) => Effect<S, any>;

@@ -33,2 +35,2 @@

export { ActionWithPayload, Content, CustomProps, Effecter, Reaction, StateFormat, StateWithEffects, Subscriber, Transform, View, ViewComponent, Vista, VistaView, box, contentView, isAction, isVNode, isVista, next, readout, unite, vista };
export { ActionWithPayload, Content, CustomProps, Effecter, Reaction, StateFormat, StateWithEffects, Subscriber, Transform, View, ViewComponent, Vista, VistaView, box, contentView, isAction, isVNode, isVista, log, next, readout, unite, vista };
import { h, text } from "hyperapp";
const box = (classProp, contents) => h("div", { class: classProp }, contents);
const isAction = (x) => typeof x === "function" || Array.isArray(x) && x.length > 0;
const runLog = (_dispatch, x) => {
window.requestAnimationFrame(() => console.log(x));
};
const log = (x) => [runLog, x];
const runNext = (dispatch, x) => {

@@ -42,2 +46,2 @@ window.requestAnimationFrame(() => dispatch(x));

], []);
export { box, contentView, isAction, isVNode, isVista, next, readout, unite, vista };
export { box, contentView, isAction, isVNode, isVista, log, next, readout, unite, vista };

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

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

@@ -50,14 +50,14 @@ "keywords": [

"devDependencies": {
"@types/jest": "^27.5.1",
"@typescript-eslint/eslint-plugin": "^5.23.0",
"@typescript-eslint/parser": "^5.23.0",
"eslint": "^8.15.0",
"fast-check": "^2.25.0",
"jest": "^28.1.0",
"rollup": "^2.73.0",
"terser": "^5.13.1",
"ts-jest": "^28.0.2",
"tsup": "^5.12.7",
"typescript": "^4.6.4",
"vite": "^2.9.9"
"@types/jest": "^28.1.4",
"@typescript-eslint/eslint-plugin": "^5.30.5",
"@typescript-eslint/parser": "^5.30.5",
"eslint": "^8.19.0",
"fast-check": "^3.0.1",
"jest": "^28.1.2",
"rollup": "^2.76.0",
"terser": "^5.14.1",
"ts-jest": "^28.0.5",
"tsup": "^6.1.3",
"typescript": "^4.7.4",
"vite": "^2.9.14"
},

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

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