@moneybutton/config
Advanced tools
Comparing version 0.21.8 to 0.21.9
@@ -20,3 +20,3 @@ /** | ||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
*/var MoneyButtonConfigBuilder = (function () { 'use strict'; function a (a, b) { for (var c, d = 0; d < b.length; d++)c = b[d], c.enumerable = c.enumerable || !1, c.configurable = !0, 'value' in c && (c.writable = !0), Object.defineProperty(a, c.key, c) } var b = function (a, b) { if (!(a instanceof b)) throw new TypeError('Cannot call a class as a function') }; var c = function (b, c, d) { return c && a(b.prototype, c), d && a(b, d), b }; var d = (function () { function a (c) { b(this, a), this.keyDefined = function (a) { return a in c }, this.getValue = function (a) { return c[a] } } return c(a, [{ key: 'get', value: function (a) { if (this.keyDefined(a)) return this.getValue(a); throw new Error('Unknown configuration: '.concat(a)) } }]), a }()); var e = (function () { function a () { b(this, a), this.variables = {} } return c(a, [{ key: 'build', value: function () { return new d(this.variables) } }, { key: 'addValue', value: function (a, b) { if (void 0 === b) throw new Error('Failed to add "'.concat(a, '" property. The value cannot be undefined')); if (a in this.variables) throw new Error('"'.concat(a, '" already has a value defined.')); return this.variables[a] = b, this } }, { key: 'addValueWithDefault', value: function (a, b, c) { if (void 0 === c) throw new Error('Failed to add "'.concat(a, '" property. Default value cannot be undefined')); return this.addValue(a, void 0 === b ? c : b) } }]), a }()); return e }()) | ||
// # sourceMappingURL=moneybutton.iife.js.map | ||
*/var MoneyButtonConfigBuilder=function(){"use strict";function a(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}var b=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},c=function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b},d=function(){function a(c){b(this,a),this.keyDefined=function(a){return a in c},this.getValue=function(a){return c[a]}}return c(a,[{key:"get",value:function(a){if(this.keyDefined(a))return this.getValue(a);throw new Error("Unknown configuration: ".concat(a))}}]),a}(),e=function(){function a(){b(this,a),this.variables={}}return c(a,[{key:"build",value:function(){return new d(this.variables)}},{key:"addValue",value:function(a,b){if(void 0===b)throw new Error("Failed to add \"".concat(a,"\" property. The value cannot be undefined"));if(a in this.variables)throw new Error("\"".concat(a,"\" already has a value defined."));return this.variables[a]=b,this}},{key:"addValueWithDefault",value:function(a,b,c){if(void 0===c)throw new Error("Failed to add \"".concat(a,"\" property. Default value cannot be undefined"));return this.addValue(a,void 0===b?c:b)}}]),a}();return e}(); | ||
//# sourceMappingURL=moneybutton.iife.js.map |
{ | ||
"name": "@moneybutton/config", | ||
"version": "0.21.8", | ||
"version": "0.21.9", | ||
"description": "Money Button configuration.", | ||
@@ -70,3 +70,3 @@ "main": "dist/moneybutton.config.cjs.js", | ||
}, | ||
"gitHead": "fc57fe5c9f272ba472996eaa38c2a5268d52503b" | ||
"gitHead": "5cb4759e36f3b18a415d952bf51e7beafd712147" | ||
} |
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
106115