Socket
Socket
Sign inDemoInstall

tiny-toast

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.1.0

11

dist/tiny-toast.js

@@ -57,2 +57,4 @@ (function webpackUniversalModuleDefinition(root, factory) {

'use strict'
var tinyToast

@@ -101,9 +103,12 @@

function hide (timeoutMs) {
maybeDefer(closeMessage, timeoutMs)
}
var tinyToastApi = {
show: function show (text) {
createMessage(text)
return tinyToastApi
},
hide: function (timeoutMs) {
maybeDefer(closeMessage, timeoutMs)
}
hide: hide
}

@@ -110,0 +115,0 @@

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

'use strict'
var tinyToast

@@ -44,11 +46,14 @@

function hide (timeoutMs) {
maybeDefer(closeMessage, timeoutMs)
}
var tinyToastApi = {
show: function show (text) {
createMessage(text)
return tinyToastApi
},
hide: function (timeoutMs) {
maybeDefer(closeMessage, timeoutMs)
}
hide: hide
}
module.exports = tinyToastApi
{
"name": "tiny-toast",
"description": "Tiny library for JavaScript only message popups",
"version": "1.0.2",
"version": "1.1.0",
"main": "index.js",

@@ -13,3 +13,4 @@ "scripts": {

"deploy": "grunty grunt-gh-pages gh-pages deploy.json",
"size": "t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";"
"size": "t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";",
"issues": "git-issues"
},

@@ -40,2 +41,3 @@ "repository": {

"devDependencies": {
"git-issues": "1.2.0",
"grunt": "0.4.5",

@@ -42,0 +44,0 @@ "grunt-gh-pages": "1.0.0",

@@ -26,5 +26,11 @@ # tiny-toast

tinyToast.hide(2000)
// hide can be fluent
tinyToast.show('Hi').hide(1000)
</script>
```
You can also use this library via [RawGit CDN](https://rawgit.com/) by grabbing the
CDN path to the `https://github.com/bahmutov/tiny-toast/blob/master/dist/tiny-toast.js` or
specific tag.
### Small print

@@ -31,0 +37,0 @@

Sorry, the diff of this file is not supported yet

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