Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

notie

Package Overview
Dependencies
0
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.3.0 to 4.3.1

4

package.json

@@ -5,3 +5,3 @@ {

"author": "Jared Reich",
"version": "4.3.0",
"version": "4.3.1",
"main": "./dist/notie.min.js",

@@ -34,3 +34,3 @@ "files": [

},
"homepage": "https://jaredreich.com/projects/notie",
"homepage": "https://jaredreich.com/notie",
"devDependencies": {

@@ -37,0 +37,0 @@ "babel-core": "6.23.1",

@@ -6,3 +6,3 @@ # notie

notie is a clean and simple notification, input, and selection suite for javascript, with no dependencies.
demo: https://jaredreich.com/projects/notie
demo: https://jaredreich.com/notie

@@ -278,7 +278,21 @@ #### With notie you can:

#### Use ES6 to inherit `this`:
#### Use ES6 for nicer code and to inherit `this`:
``` javascript
notie.confirm('Is ES6 great?', 'Yes', 'Cancel', () => {
this.location.href = 'htts://google.com'
notie.confirm({
text: 'Leave the page?',
submitCallback: () => this.location.href = 'https://google.com'
})
notie.confirm({
text: 'Is ES6 great?',
cancelCallback: () => notie.alert({ type: 3, text: 'Why not?' }),
submitCallback: () => notie.alert({ type: 1, text: 'I Agree' })
})
notie.force({
type: 3,
text: 'You cannot do that, sending you back.',
buttonText: 'OK',
callback: () => notie.alert({ type: 3, text: 'Maybe when you\'re older...' })
})
```

@@ -285,0 +299,0 @@

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