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.5.0 to 0.5.1

3

dist/hyperapplicable.d.ts

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

declare const contentNode: <S>(x: Content<S>) => MaybeVNode<S>;
declare const contentView: <S>(view: Content<S> | VistaView<S>) => (state: S) => MaybeVNode<S>[];

@@ -36,2 +35,2 @@ declare const isContent: <S>(x: unknown) => x is Content<S>;

export { ActionWithPayload, Content, CustomProps, Effecter, Reaction, StateFormat, StateWithEffects, Subscriber, Transform, View, ViewComponent, Vista, VistaView, box, contentNode, contentView, handleWith, isAction, isContent, isVNode, next, readout, unite, vista };
export { ActionWithPayload, Content, CustomProps, Effecter, Reaction, StateFormat, StateWithEffects, Subscriber, Transform, View, ViewComponent, Vista, VistaView, box, contentView, handleWith, isAction, isContent, isVNode, next, readout, unite, vista };
import { h, text } from "hyperapp";
const box = (classProp, contents) => h("div", { class: classProp }, contents);
const contentNode = (x) => typeof x === "number" || typeof x === "string" ? text(x) : x;
const contentView = (view) => (state) => {

@@ -37,2 +36,2 @@ if (typeof view === "function") {

const readout = (prop) => (obj) => h("pre", {}, text(`${prop}: ${JSON.stringify(obj[prop], readoutReplacer, 2)}`));
export { box, contentNode, contentView, handleWith, isAction, isContent, isVNode, next, readout, unite, vista };
export { box, contentView, handleWith, isAction, isContent, isVNode, next, readout, unite, vista };

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

(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 a=(t,n)=>i.h("div",{class:t},n),l=t=>typeof t=="number"||typeof t=="string"?i.text(t):t,u=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]},A=t=>t==null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||s(t),s=t=>t!=null&&typeof t=="object"&&"node"in t,y=t=>n=>Array.isArray(t)?t.reduce((o,r)=>[...o,...Array.isArray(r)?y(r)(n):u(r)(n)],[]):u(t)(n),d=(t,n,o)=>{if(!Array.isArray(n))return t(n,o);const[r,...c]=n,f=t(r,o);if(!Array.isArray(f))return[f,...c];const[S,...V]=f;return[S,...c,...V]},b=t=>(n,o)=>t.reduce((r,c)=>d(c,r,o),n),h=t=>typeof t=="function"||Array.isArray(t)&&t.length>0,p=(t,n)=>{window.requestAnimationFrame(()=>t(n))},g=t=>[p,t],m=(t,n)=>typeof n=="function"?"function":n,N=t=>n=>i.h("pre",{},i.text(`${t}: ${JSON.stringify(n[t],m,2)}`));e.box=a,e.contentNode=l,e.contentView=u,e.handleWith=b,e.isAction=h,e.isContent=A,e.isVNode=s,e.next=g,e.readout=N,e.unite=d,e.vista=y,Object.defineProperties(e,{__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 a=(n,t)=>i.h("div",{class:n},t),u=n=>t=>{if(typeof n=="function"){const o=n(t);return Array.isArray(o)?o:[o]}return typeof n=="number"||typeof n=="string"?[i.text(n)]:[n]},l=n=>n==null||typeof n=="boolean"||typeof n=="number"||typeof n=="string"||f(n),f=n=>n!=null&&typeof n=="object"&&"node"in n,y=n=>t=>Array.isArray(n)?n.reduce((o,r)=>[...o,...Array.isArray(r)?y(r)(t):u(r)(t)],[]):u(n)(t),d=(n,t,o)=>{if(!Array.isArray(t))return n(t,o);const[r,...c]=t,s=n(r,o);if(!Array.isArray(s))return[s,...c];const[S,...N]=s;return[S,...c,...N]},A=n=>(t,o)=>n.reduce((r,c)=>d(c,r,o),t),h=n=>typeof n=="function"||Array.isArray(n)&&n.length>0,b=(n,t)=>{window.requestAnimationFrame(()=>n(t))},p=n=>[b,n],g=(n,t)=>typeof t=="function"?"function":t,m=n=>t=>i.h("pre",{},i.text(`${n}: ${JSON.stringify(t[n],g,2)}`));e.box=a,e.contentView=u,e.handleWith=A,e.isAction=h,e.isContent=l,e.isVNode=f,e.next=p,e.readout=m,e.unite=d,e.vista=y,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
{
"name": "hyperapplicable",
"version": "0.5.0",
"version": "0.5.1",
"description": "A utility library for Hyperapp.",

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

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