Socket
Socket
Sign inDemoInstall

yow

Package Overview
Dependencies
2
Maintainers
1
Versions
106
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.104 to 1.0.105

once.js

6

package.json
{
"name": "yow",
"version": "1.0.104",
"version": "1.0.105",
"description": "You Only Wish module",
"main": "yow.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"goto-github": "open https://github.com/meg768/yow",
"goto-npm": "open https://www.npmjs.com/package/yow",
"commit": "git add -A && git commit -m '-' && git push"
},

@@ -9,0 +11,0 @@ "repository": {

var isArray = require('./is.js').isArray;
var isNumber = require('./is.js').isNumber;
var isInteger = require('./is.js').isInteger;
var isFloat = require('./is.js').isFloat;
var isObject = require('./is.js').isObject;

@@ -32,8 +30,2 @@

/*
if (isFloat(arg)) {
return Math.random() * arg;
}
*/
if (isInteger(arg)) {

@@ -40,0 +32,0 @@ return Math.floor(Math.random() * arg);

@@ -22,2 +22,3 @@ # Yow

- **extend(args)** - Again, just as you would expect. Uses the npm module 'extend'.
- **once(fn, context)** - Call a function just once and return the same result.

@@ -24,0 +25,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