Socket
Socket
Sign inDemoInstall

base-questions

Package Overview
Dependencies
151
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.5 to 0.5.6

24

index.js

@@ -19,4 +19,4 @@ /*!

opts.globals = this.globals;
opts.data = this.cache.data;
opts.cwd = this.cwd;
opts.data = this.cache.data || {};
opts.cwd = this.cwd || process.cwd();
var self = this;

@@ -38,2 +38,6 @@

var globals = questions.globals;
var store = questions.store;
var data = questions.data;
questions.on('ask', app.emit.bind(app, 'ask'));

@@ -48,11 +52,13 @@ questions.on('answer', app.emit.bind(app, 'answer'));

utils.sync(questions, 'data', function() {
return self.cache.data;
var obj = utils.merge({}, data, self.cache.data);
utils.merge(data, obj);
return data;
});
utils.sync(questions, 'store', function() {
return self.store;
return self.store || store;
});
utils.sync(questions, 'globals', function() {
return self.globals;
return self.globals || globals;
});

@@ -87,3 +93,3 @@

this.questions.confirm.apply(this.questions, arguments);
return this;
return this.questions;
});

@@ -122,3 +128,3 @@

this.questions.choices.apply(this.questions, arguments);
return this;
return this.questions;
});

@@ -181,5 +187,5 @@

if (typeof queue === 'string' && !this.questions.has(queue)) {
this.questions.set(queue, opts, queue);
this.questions.set.call(this.questions, queue, opts, queue);
}
this.questions.ask(queue, opts, cb);
this.questions.ask.call(this.questions, queue, opts, cb);
});

@@ -186,0 +192,0 @@

{
"name": "base-questions",
"description": "Plugin for base-methods that adds methods for prompting the user and storing the answers on a project-by-project basis.",
"version": "0.5.5",
"version": "0.5.6",
"homepage": "https://github.com/node-base/base-questions",

@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

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