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

roll-a-die

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

roll-a-die - npm Package Compare versions

Comparing version 1.0.5 to 1.1.0

2

package.json
{
"name": "roll-a-die",
"version": "1.0.5",
"version": "1.1.0",
"description": "Simple 3D dice roll using CSS3 animation.",

@@ -5,0 +5,0 @@ "main": "dist/roll-a-die.js",

@@ -14,7 +14,7 @@ # Roll A Die

```
You can use the [UNPKG](https://unpkg.com) link `https://unpkg.com/roll-a-die@1.0.5/dist/roll-a-die.js`. Remember to update the package number to the most recent.
You can use the [UNPKG](https://unpkg.com) link `https://unpkg.com/roll-a-die@1.1.0/dist/roll-a-die.js`. Remember to update the package number to the most recent.
Call the method with its options.
```
rollADie({ element, numberDice: 2, callback});
rollADie({ element, numberOfDice: 2, callback});
```

@@ -47,5 +47,5 @@

```
rollADie({ element, numberDice: 2, callback});
rollADie({ element, numberDice: 2, callback, noSound: true});
rollADie({ element, numberDice: 2, callback, delay: 1000});
rollADie({ element, numberOfDice: 2, callback});
rollADie({ element, numberOfDice: 2, callback, noSound: true});
rollADie({ element, numberOfDice: 2, callback, delay: 1000});
```

@@ -56,3 +56,3 @@

* `element`: The element to render die animation on.
* `numberDice`: The number of dice to use.`
* `numberOfDice`: The number of dice to use.`
* `callback`: Called when animation is finished. Returns an array of the values from throw.

@@ -59,0 +59,0 @@ * `noSound`: Roll the die without sound (Optional).

Sorry, the diff of this file is too big to display

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