Socket
Socket
Sign inDemoInstall

question-store

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

question-store - npm Package Compare versions

Comparing version 0.10.0 to 0.11.0

README.md

13

index.js

@@ -65,2 +65,7 @@ 'use strict';

// load common-config
utils.sync(this, 'common', function() {
return utils.config;
});
// persist project-specific answers

@@ -90,5 +95,9 @@ utils.sync(this, 'store', function() {

this.on('ask', function(val, key, question, answers) {
if (!utils.isAnswer(val) && app.enabled('common')) {
val = question.answer = app.common.get(key);
debug('no answer found, using common-config: "%s"', val);
}
if (!utils.isAnswer(val) && app.enabled('global')) {
question.answer = app.globals.get(key);
debug('no answer found, using global: "%s"', val);
debug('no answer found, using global-store: "%s"', val);
}

@@ -101,3 +110,3 @@ });

// persist to 'project' store if 'save' is not disabled
if (!options.disabled('save')) {
if (options.enabled('save')) {
debug('saving answer in project store: %j', val);

@@ -104,0 +113,0 @@ app.store.set(key, val);

@@ -11,2 +11,3 @@ 'use strict';

require = utils;
require('common-config', 'common');
require('data-store', 'Store');

@@ -13,0 +14,0 @@ require('is-answer');

7

package.json
{
"name": "question-store",
"description": "Ask questions, persist the answers. Basic support for i18n and storing answers based on current working directory.",
"version": "0.10.0",
"version": "0.11.0",
"homepage": "https://github.com/jonschlinkert/question-store",

@@ -26,2 +26,3 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

"dependencies": {
"common-config": "^0.1.0",
"data-store": "^0.16.1",

@@ -31,4 +32,4 @@ "debug": "^2.2.0",

"lazy-cache": "^2.0.1",
"project-name": "^0.2.5",
"question-cache": "^0.5.0"
"project-name": "^0.2.6",
"question-cache": "^0.5.1"
},

@@ -35,0 +36,0 @@ "devDependencies": {

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