question-store
Advanced tools
Comparing version 0.9.0 to 0.9.1
'use strict'; | ||
var util = require('util'); | ||
var path = require('path'); | ||
var debug = require('debug')('question-store'); | ||
@@ -89,4 +90,4 @@ var Cache = require('question-cache'); | ||
QuestionsStore.prototype.listen = function(app) { | ||
this.on('ask', function(vak, key, question, answers) { | ||
if (!utils.isAnswer(val) && options.enabled('global')) { | ||
this.on('ask', function(val, key, question, answers) { | ||
if (!utils.isAnswer(val) && app.options.enabled('global')) { | ||
question.answer = app.globals.get(key); | ||
@@ -93,0 +94,0 @@ debug('no answer found, using global: "%s"', val); |
{ | ||
"name": "question-store", | ||
"description": "Ask questions, persist the answers. Basic support for i18n and storing answers based on current working directory.", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"homepage": "https://github.com/jonschlinkert/question-store", | ||
@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", |
@@ -38,3 +38,3 @@ # question-store [![NPM version](https://img.shields.io/npm/v/question-store.svg?style=flat)](https://www.npmjs.com/package/question-store) [![NPM downloads](https://img.shields.io/npm/dm/question-store.svg?style=flat)](https://npmjs.org/package/question-store) [![Build Status](https://img.shields.io/travis/jonschlinkert/question-store.svg?style=flat)](https://travis-ci.org/jonschlinkert/question-store) | ||
### [QuestionsStore](index.js#L26) | ||
### [QuestionsStore](index.js#L27) | ||
@@ -53,3 +53,3 @@ Create an instance of `QuestionsStore` with the given `options`. | ||
### [.createStores](index.js#L50) | ||
### [.createStores](index.js#L51) | ||
@@ -56,0 +56,0 @@ Create stores for persisting data across sessions. |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
10688
137
0