Comparing version 1.11.3 to 1.12.0
#!/usr/bin/env node | ||
var sample = require('lodash.sample'); | ||
var jokes = require('./src/jokes'); | ||
@@ -7,4 +8,4 @@ var lulz = require('./src/lulz');; | ||
console.log([ | ||
jokes.random(), | ||
lulz.random() | ||
sample(jokes), | ||
sample(lulz) | ||
].join('\n')); |
{ | ||
"name": "antic", | ||
"version": "1.11.3", | ||
"version": "1.12.0", | ||
"description": "antics", | ||
@@ -26,4 +26,4 @@ "preferGlobal": "true", | ||
"dependencies": { | ||
"lodash.random": "^3.1.4" | ||
"lodash.sample": "^4.1.1" | ||
} | ||
} |
@@ -1,5 +0,2 @@ | ||
'use strict'; | ||
var random = require('lodash.random'); | ||
var jokes = [ | ||
module.exports = [ | ||
// originals by http://twitter.com/antic | ||
@@ -23,3 +20,3 @@ 'Atom walks into a bar. The bartender tells him to split. Everyone dies.' | ||
,'I farted on the elevator.\n ⇒ It was wrong on so many levels.' | ||
,'I was going to make a belt out of wrist watches,\n ⇒ but then I realized it would be a total waist of time.' | ||
,'I once made a belt out of wrist watches; it was a complete waist of time.' | ||
,'A doe walks out of the woods, "That’s the last time I do that for two bucks."' | ||
@@ -49,9 +46,2 @@ ,'You know why dinosours can’t talk?\n ⇒ because they’re dead.' | ||
,'What’s green and has wheels? Grass. I lied about the wheels.' | ||
]; | ||
module.exports = { | ||
random: function () { | ||
return jokes[random(0, jokes.length - 1)]; | ||
} | ||
}; |
@@ -1,5 +0,2 @@ | ||
'use strict'; | ||
var random = require('lodash.random'); | ||
var lulz = [ | ||
module.exports = [ | ||
'\\[^_^]/' | ||
@@ -17,7 +14,1 @@ ,'\\[o_o]/' | ||
]; | ||
module.exports = { | ||
random: function () { | ||
return lulz[random(0, lulz.length - 1)]; | ||
} | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7900
8
64
+ Addedlodash.sample@^4.1.1
+ Addedlodash.sample@4.2.1(transitive)
- Removedlodash.random@^3.1.4
- Removedlodash.random@3.2.0(transitive)