message-box
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -14,9 +14,9 @@ 'use strict'; | ||
var _lodash = require('lodash.merge'); | ||
var _merge = require('lodash/merge'); | ||
var _lodash2 = _interopRequireDefault(_lodash); | ||
var _merge2 = _interopRequireDefault(_merge); | ||
var _lodash3 = require('lodash.template'); | ||
var _template = require('lodash/template'); | ||
var _lodash4 = _interopRequireDefault(_lodash3); | ||
var _template2 = _interopRequireDefault(_template); | ||
@@ -86,3 +86,3 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
if (messages) { | ||
if (globalMessages) messages = (0, _lodash2.default)({}, globalMessages, messages); | ||
if (globalMessages) messages = (0, _merge2.default)({}, globalMessages, messages); | ||
} else { | ||
@@ -125,3 +125,3 @@ messages = globalMessages; | ||
if (typeof message === 'string') { | ||
message = (0, _lodash4.default)(message, { | ||
message = (0, _template2.default)(message, { | ||
interpolate: this.interpolate, | ||
@@ -140,3 +140,3 @@ evaluate: this.evaluate, | ||
value: function messages(_messages) { | ||
(0, _lodash2.default)(this.messageList, _messages); | ||
(0, _merge2.default)(this.messageList, _messages); | ||
} | ||
@@ -173,3 +173,3 @@ }, { | ||
if (!MessageBox.messages) MessageBox.messages = {}; | ||
(0, _lodash2.default)(MessageBox.messages, messages); | ||
(0, _merge2.default)(MessageBox.messages, messages); | ||
} | ||
@@ -176,0 +176,0 @@ } |
{ | ||
"name": "message-box", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A package for defining and getting validation error messages, with support for Meteor Tracker reactivity", | ||
@@ -24,15 +24,14 @@ "author": "Eric Dobbertin <aldeed@gmail.com>", | ||
"prepare": "npm run build", | ||
"test": "mocha --compilers js:babel-core/register --recursive 'lib/**/*.tests.js'", | ||
"test": "mocha --require babel-core/register --recursive 'lib/**/*.tests.js'", | ||
"test:watch": "npm test -- --watch" | ||
}, | ||
"dependencies": { | ||
"lodash.merge": "^4.6.0", | ||
"lodash.template": "^4.4.0" | ||
"lodash": "^4.17.11" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.9.0", | ||
"babel-core": "^6.9.1", | ||
"babel-cli": "^6.26.0", | ||
"babel-core": "^6.26.3", | ||
"babel-eslint": "^6.0.4", | ||
"babel-preset-es2015": "^6.9.0", | ||
"babel-preset-stage-0": "^6.5.0", | ||
"babel-preset-es2015": "^6.24.1", | ||
"babel-preset-stage-0": "^6.24.1", | ||
"eslint": "^2.11.1", | ||
@@ -44,4 +43,4 @@ "eslint-config-airbnb": "^9.0.1", | ||
"expect": "^1.20.1", | ||
"mocha": "^2.5.3" | ||
"mocha": "^6.0.2" | ||
} | ||
} |
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
1
14731
+ Addedlodash@^4.17.11
+ Addedlodash@4.17.21(transitive)
- Removedlodash.merge@^4.6.0
- Removedlodash.template@^4.4.0
- Removedlodash._reinterpolate@3.0.0(transitive)
- Removedlodash.merge@4.6.2(transitive)
- Removedlodash.template@4.5.0(transitive)
- Removedlodash.templatesettings@4.2.0(transitive)