Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hyperapp

Package Overview
Dependencies
Maintainers
1
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hyperapp - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

10

hyperapp.d.ts

@@ -16,8 +16,8 @@ export as namespace hyperapp

/** A Component is a function that returns a custom VNode.
/** A Component is a function that returns a custom VNode or View.
*
* @memberOf [VDOM]
*/
export interface Component<Attributes = {}> {
(attributes: Attributes, children: Array<VNode | string>): VNode<Attributes>
export interface Component<Attributes = {}, State = {}, Actions = {}> {
(attributes: Attributes, children: Array<VNode | string>): VNode<Attributes> | View<State, Actions>
}

@@ -39,3 +39,3 @@

export function h<Attributes>(
nodeName: Component<Attributes> | string,
nodeName: Component<Attributes, any, any> | string,
attributes?: Attributes,

@@ -101,3 +101,3 @@ ...children: Array<Children | Children[]>

namespace JSX {
interface Element<Data> extends VNode<object> {}
interface Element extends VNode<any> {}
interface IntrinsicElements {

@@ -104,0 +104,0 @@ [elemName: string]: any

{
"name": "hyperapp",
"description": "1 kB JavaScript framework for building web applications.",
"version": "1.2.1",
"version": "1.2.2",
"main": "dist/hyperapp.js",

@@ -6,0 +6,0 @@ "module": "src/index.js",

@@ -498,7 +498,7 @@ # <img height=24 src=https://cdn.rawgit.com/jorgebucaran/f53d2c00bafcf36e84ffd862f0dc2950/raw/882f20c970ff7d61aa04d44b92fc3530fa758bc0/Hyperapp.svg> Hyperapp

## Community
## Links
* [Slack](https://hyperappjs.herokuapp.com)
* [Twitter](https://twitter.com/hyperappJS)
* [CodePen](https://codepen.io/hyperapp)
* [Examples](https://codepen.io/search/pens/?q=hyperapp)
* [/r/hyperapp](https://www.reddit.com/r/hyperapp)

@@ -505,0 +505,0 @@

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