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.30 to 1.0.31

2

package.json
{
"name": "yow",
"version": "1.0.30",
"version": "1.0.31",
"description": "You Only Wish module",

@@ -5,0 +5,0 @@ "main": "yow.js",

@@ -16,3 +16,3 @@

_promise.then(function() {
_promise().then(function() {
_promise = undefined;

@@ -19,0 +19,0 @@

@@ -1,13 +0,23 @@

var random = require('./yow.js').random;
var fileExists = require('./yow.js').fileExists;
var writeJSON = require('./yow.js').writeJSON;
var readJSON = require('./yow.js').readJSON;
console.log(random({A:'Ahh', B:'Bee', C:'See'}));
console.log(random(['A', 'B', 'C']));
console.log(random(100, 101));
console.log(random(1));
console.log(random('Foo'));
console.log(fileExists('test.js'));
console.log(writeJSON('a.json', {a:1}));
console.log(readJSON('a.json'));
var Queue = require('./queue.js');
var queue = new Queue();
function print(text) {
return new Promise(function(resolve, reject) {
console.log(text);
resolve();
});
}
queue.enqueue(print.bind(null, 'Hej'));
queue.enqueue(print.bind(null, 'Då!'));
queue.dequeue().then(function() {
console.log('Klar!');
})
.catch(function(error) {
console.log(error);
});
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