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

@spectrum-web-components/toast

Package Overview
Dependencies
Maintainers
5
Versions
287
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spectrum-web-components/toast - npm Package Compare versions

Comparing version 0.3.5-alpha.6 to 0.3.5-alpha.38

custom-elements.json

37

package.json

@@ -21,20 +21,27 @@ {

],
"version": "0.3.5-alpha.6+07ae41d1",
"version": "0.3.5-alpha.38+3926abb2",
"description": "",
"main": "lib/index.js",
"module": "lib/index.js",
"main": "src/index.js",
"module": "src/index.js",
"type": "module",
"exports": {
"./src/": "./src/",
"./custom-elements.json": "./custom-elements.json",
"./package.json": "./package.json",
"./sp-toast": "./sp-toast.js",
"./sp-toast.js": "./sp-toast.js"
},
"files": [
"/lib/",
"custom-elements.json",
"*.d.ts",
"*.js",
"*.js.map",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts"
"./sp-toast.js",
"./sp-toast.ts"
],
"author": "",
"license": "Apache-2.0",
"peerDependencies": {
"lit-element": "^2.1.0",
"lit-html": "^1.0.0"
},
"devDependencies": {

@@ -44,8 +51,10 @@ "@spectrum-css/toast": "^2.0.2"

"dependencies": {
"@spectrum-web-components/button": "^0.7.1-alpha.6+07ae41d1",
"@spectrum-web-components/icon": "^0.4.8",
"@spectrum-web-components/icons-ui": "^0.1.2",
"@spectrum-web-components/button": "^0.7.1-alpha.38+3926abb2",
"@spectrum-web-components/icon": "^0.4.9-alpha.38+3926abb2",
"@spectrum-web-components/icons-ui": "^0.1.3-alpha.38+3926abb2",
"lit-element": "^2.1.0",
"lit-html": "^1.0.0",
"tslib": "^2.0.0"
},
"gitHead": "07ae41d1915488ddd523d0a83731664d2136dc40"
"gitHead": "3926abb2769a9bab28762bf3b3e1fab7c5f03589"
}

@@ -5,3 +5,3 @@ ## Description

### Installation
### Usage

@@ -12,9 +12,17 @@ [![See it on NPM!](https://img.shields.io/npm/v/@spectrum-web-components/toast?style=for-the-badge)](https://www.npmjs.com/package/@spectrum-web-components/toast)

```
npm install @spectrum-web-components/toast
yarn add @spectrum-web-components/toast
```
# or
Import the side effectful registration of `<sp-toast>` via:
yarn add @spectrum-web-components/toast
```
import '@spectrum-web-components/toast/sp-toast.js';
```
When looking to leverage the `Toast` base class as a type and/or for extension purposes, do so via:
```
import { Toast } from '@spectrum-web-components/toast';
```
## Example

@@ -21,0 +29,0 @@

@@ -12,15 +12,2 @@ /*

*/
export * from './toast.js';
import { Toast } from './toast.js';
/* istanbul ignore else */
if (!customElements.get('sp-toast')) {
customElements.define('sp-toast', Toast);
}
declare global {
interface HTMLElementTagNameMap {
'sp-toast': Toast;
}
}
export * from './Toast.js';
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