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

haunted

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

haunted - npm Package Compare versions

Comparing version 3.2.1 to 4.0.0-beta.0

4

haunted.js

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

import { render, directive } from 'https://unpkg.com/lit-html@^0.14.0/lit-html.js';
export { html, render } from 'https://unpkg.com/lit-html@^0.14.0/lit-html.js';
import { render, directive } from 'https://unpkg.com/lit-html@^1.0.0-rc.2/lit-html.js';
export { html, render } from 'https://unpkg.com/lit-html@^1.0.0-rc.2/lit-html.js';

@@ -4,0 +4,0 @@ const symbolFor = typeof Symbol === 'function' ? Symbol.for : str => str;

{
"name": "haunted",
"version": "3.2.1",
"version": "4.0.0-beta.0",
"description": "",

@@ -8,2 +8,3 @@ "main": "index.js",

"build": "make",
"preversion": "make",
"testee": "testee --browsers firefox test/test.html",

@@ -33,4 +34,4 @@ "test": "npm run build && npm run testee"

"dependencies": {
"lit-html": "^0.14.0"
"lit-html": "1.0.0-rc.2"
}
}

@@ -34,2 +34,4 @@ # Haunted 🦇 🎃

> Note that lit-html 1.0.0-rc is available as latest on npm. If you want to use this version with Haunted, install `haunted@next`.
Currently __Haunted__ is available as the `haunted` package. In the future I hope to get the non-scoped name.

@@ -92,2 +94,22 @@

##### Attributes
In custom elements, attributes must be pre-defined. Properties, on the other hand, do not. Do define what attributes your component supports, set the `observedAttributes` property on the functional component. For example:
```js
const App = ({name}) => {
return `Hello ${name}!`;
};
App.observedAttributes = ['name'];
customElements.define('hello-app', App);
```
Which allows you to author (in HTML):
```html
<hello-app name="world"></hello-app>
```
#### Virtual components

@@ -94,0 +116,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