Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@trademe/ensure

Package Overview
Dependencies
Maintainers
8
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trademe/ensure - npm Package Compare versions

Comparing version 0.2.2 to 1.0.0-beta.0

14

bundles/trademe-ensure.umd.js

@@ -64,3 +64,3 @@ (function (global, factory) {

*/
var EnsureError = (function (_super) {
var EnsureError = /** @class */ (function (_super) {
__extends(EnsureError, _super);

@@ -123,3 +123,3 @@ function EnsureError(message) {

/** @type {?} */
var value = (((Reflect))).getMetadata("" + VALUE_KEY + propertyKey, this);
var value = (( /** @type {?} */(Reflect))).getMetadata("" + VALUE_KEY + propertyKey, this);
getters.forEach(function (getter) {

@@ -142,3 +142,3 @@ getter.call(_this, value, propertyKey);

}
(((Reflect))).defineMetadata("" + VALUE_KEY + propertyKey, castValue, this);
(( /** @type {?} */(Reflect))).defineMetadata("" + VALUE_KEY + propertyKey, castValue, this);
}

@@ -155,3 +155,3 @@ });

var _a = __read(guards, 1), firstGuard = _a[0];
return Array.isArray(firstGuard) ? ((firstGuard)) : ((guards));
return Array.isArray(firstGuard) ? ( /** @type {?} */(firstGuard)) : ( /** @type {?} */(guards));
}

@@ -175,3 +175,3 @@

});
return ((guard));
return ( /** @type {?} */(guard));
}

@@ -305,4 +305,4 @@

exports.dedent = dedent;
exports.EnsureError = EnsureError;
exports.dedent = dedent;
exports.Value = Value;

@@ -319,2 +319,2 @@ exports.ensure = ensure;

//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhZGVtZS1lbnN1cmUudW1kLmpzLm1hcCIsInNvdXJjZXMiOltudWxsLCJuZzovL0B0cmFkZW1lL2Vuc3VyZS9lbnN1cmUtZXJyb3IudHMiLCJuZzovL0B0cmFkZW1lL2Vuc3VyZS92YWx1ZS92YWx1ZS50cyIsIm5nOi8vQHRyYW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gICAgICAgICAgICAgIGNhc2UgNzogb3AgPSBfLm9wcy5wb3AoKTsgXy50cnlzLnBvcCgpOyBjb250aW51ZTtcclxuICAgICAgICAgICAgICAgIGRlZmF1bHQ6XHJcbiAgICAgICAgICAgICAgICAgICAgaWYgKCEodCA9IF8udHJ5cywgdCA9IHQubGVuZ3RoID4gMCAmJiB0W3QubGVuZ3RoIC0gMV0pICYmIChvcFswXSA9PT0gNiB8fCBvcFswXSA9PT0gMikpIHsgXyA9IDA7IGNvbnRpbnVlOyB9XHJcbiAgICAgICAgICAgICAgICAgICAgaWYgKG9wWzBdID09PSAzICYmICghdCB8fCAob3BbMV0gPiB0WzBdICYmIG9wWzFdIDwgdFszXSkpKSB7IF8ubGFiZWwgPSBvcFsxXTsgYnJlYWs7IH1cclxuICAgICAgICAgICAgICAgICAgICBpZiAob3BbMF0gPT09IDYgJiYgXy5sYWJlbCA8IHRbMV0pIHsgXy5sYWJlbCA9IHRbMV07IHQgPSBvcDsgYnJlYWs7IH1cclxuICAgICAgICAgICAgICAgICAgICBpZiAodCAmJiBfLmxhYmVsIDwgdFsyXSkgeyBfLmxhYmVsID0gdFsyXTsgXy5vcHMucHVzaChvcCk7IGJyZWFrOyB9XHJcbiAgICAgICAgICAgICAgICAgICAgaWYgKHRbMl0pIF8ub3BzLnBvcCgpO1xyXG4gICAgICAgICAgICAgICAgICAgIF8udHJ5cy5wb3AoKTsgY29udGludWU7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgb3AgPSBib2R5LmNhbGwodGhpc0FyZywgXyk7XHJcbiAgICAgICAgfSBjYXRjaCAoZSkgeyBvcCA9IFs2LCBlXTsgeSA9IDA7IH0gZmluYWxseSB7IGYgPSB0ID0gMDsgfVxyXG4gICAgICAgIGlmIChvcFswXSAmIDUpIHRocm93IG9wWzFdOyByZXR1cm4geyB2YWx1ZTogb3BbMF0gPyBvcFsxXSA6IHZvaWQgMCwgZG9uZTogdHJ1ZSB9O1xyXG4gICAgfVxyXG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Z2V0dGVycyA9IGd1YXJkc0FycmF5LmZpbHRlcihjID0+IGMuaXNHZXR0ZXIpO1xyXG4gICAgY29uc3Qgc2V0dGVycyA9IGd1YXJkc0FycmF5LmZpbHRlcihjID0+ICFjLmlzR2V0dGVyKTtcclxuXHJcbiAgICByZXR1cm4gKHRhcmdldDogYW55LCBwcm9wZXJ0eUtleTogc3RyaW5nKSA9PiB7XHJcbiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHRhcmdldCwgcHJvcGVydHlLZXksIHtcclxuICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7XHJcbiAgICAgICAgICAgICAgICBjb25zdCB2YWx1ZSA9IChSZWZsZWN0IGFzIGFueSkuZ2V0TWV0YWRhdGEoYCR7VkFMVUVfS0VZfSR7cHJvcGVydHlLZXl9YCwgdGhpcyk7XHJcbiAgICAgICAgICAgICAgICBnZXR0ZXJzLmZvckVhY2goZ2V0dGVyID0+IHtcclxuICAgICAgICAgICAgICAgICAgICBnZXR0ZXIuY2FsbCh0aGlzLCB2YWx1ZSwgcHJvcGVydHlLZXkpO1xyXG4gICAgICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgICAgICAgICByZXR1cm4gdmFsdWU7XHJcbiAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKHZhbHVlKSB7XHJcbiAgICAgICAgICAgICAgICBsZXQgY2FzdFZhbHVlID0gdmFsdWU7XHJcblxyXG4gICAgICAgICAgICAgICAgaWYgKGNhc3RWYWx1ZSA9PT0gJ251bGwnKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgY2FzdFZhbHVlID0gbnVsbDtcclxuICAgICAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgICAgICBpZiAoY2FzdFZhbHVlICE9IG51bGwpIHtcclxuICAgICAgICAgICAgICAgICAgICBzZXR0ZXJzLmZvckVhY2goc2V0dGVyID0+IHtcclxuICAgICAgICAgICAgICAgICAgICA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VzZSBvbmUgb2YgdGhlIGZvbGxvd2luZzpcclxuICAgICAgICAgICAgICAgICAgICAke2dldFZhbHVlczxUPihlbnVtVmFsdWVzKX1cclxuICAgICAgICAgICAgYCk7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIHJldHVybiBlbnVtVmFsdWU7XHJcbiAgICB9KTtcclxufVxyXG5cclxuZnVuY3Rpb24gZmxpcEVudW0gPFQ+IChlbnVtVDogVCk6IHsgW2tleTogc3RyaW5nXTogYW55IH0ge1xyXG4gICAgY29uc3QgZmxpcHBlZCA9IHt9O1xyXG4gICAgT2JqZWN0LmtleXMoZW51bVQpLmZvckVhY2goa2V5ID0+IHtcclxuICAgICAgICBmbGlwcGVkW2tleV0gPSBlbnVtVFtrZXldO1xyXG4gICAgICAgIGZsaXBwZWRbZW51bVRba2V5XV0gPSBrZXk7XHJcbiAgICB9KTtcclxuICAgIHJldHVybiBmbGlwcGVkO1xyXG59XHJcblxyXG5mdW5jdGlvbiBzdHJpcEVudW0gPFQ+IChlbnVtVDogVCk6IHsgW2tleTogc3RyaW5nXTogYW55IH0ge1xyXG4gICAgY29uc3Qgc3RyaXBwZWQgPSB7fTtcclxuICAgIE9iamVjdC5rZXlzKGVudW1UKS5mb3JFYWNoKGtleSA9PiB7XHJcbiAgICAgICAgaWYgKGAke3BhcnNlSW50KGtleSwgMTApfWAgIT09IGtleSkge1xyXG4gICAgICAgICAgICBzdHJpcHBlZFtrZXldID0gZW51bVRba2V5XTtcclxuICAgICAgICB9XHJcbiAgICB9KTtcclxuICAgIHJldHVybiBzdHJpcHBlZDtcclxufVxyXG5cclxuZnVuY3Rpb24gZ2V0VmFsdWVzPFQ+IChlbnVtVDogVCk6IHN0cmluZyB7XHJcbiAgICByZXR1cm4gT2JqZWN0LmtleXMoZW51bVQpXHJcbiAgICAuZmlsdGVyKGtleSA9PiBpc05hTigra2V5KSlcclxuICAgIC5tYXAoa2V5ID0+IGBcIiR7a2V5fVwiYClcclxuICAgIC5qb2luKCcsX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ELE9BQU8sS0FBSyxDQUFDO0lBQ2pCLENBQUMsQ0FBQzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OzsifQ==
//# sourceMappingURL=trademe-ensure.umd.js.map

@@ -1,2 +0,2 @@

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define("@trademe/ensure",["exports"],n):n((t.trademe=t.trademe||{},t.trademe.ensure={}))}(this,function(t){"use strict";var u=function(t,n){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])})(t,n)};var f=function(r){function t(t){var n=this.constructor,e=r.call(this,i(t))||this;return Object.setPrototypeOf(e,n.prototype),e}return function o(t,n){function e(){this.constructor=t}u(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}(t,r),t}(Error);function i(t){var n=t.split(/\n/),e=n.reduce(function(t,n){var e=n.search(/\S/);return e<0?t:e<t?e:t},Infinity);return n.map(function(t){return t.substr(e)}).join("\n")}var a="__value_";function n(t,n){return Object.defineProperty(t,"isGetter",{get:function(){return!!n&&n.getter}}),t}var e=n(function(t,n){if(!0===t||!1===t)return t;if("true"===t||""===t)return!0;if("false"===t)return!1;throw new f('\n "'+t+"\" is not a valid value for '"+n+'\'.\n The following values will evaluate to true: true, "true", "".\n The following values will evaluate to false: false, "false".\n ')});var r=n(function(t,n){if(null==t)throw new f("\n '"+n+'\' must not be "null" or "undefined".\n ');return t},{getter:!0}),o=n(function(t,n){if(t=+parseFloat(t),isNaN(t))throw new f("\n '"+n+"' must be a number.\n ");return t});t.EnsureError=f,t.dedent=i,t.Value=function c(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=function r(t){var n=function a(t,n){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var r,o,u=e.call(t),i=[];try{for(;(void 0===n||0<n--)&&!(r=u.next()).done;)i.push(r.value)}catch(f){o={error:f}}finally{try{r&&!r.done&&(e=u["return"])&&e.call(u)}finally{if(o)throw o.error}}return i}(t,1)[0];return Array.isArray(n)?n:t}(t),o=e.filter(function(t){return t.isGetter}),u=e.filter(function(t){return!t.isGetter});return function(t,r){Object.defineProperty(t,r,{get:function(){var n=this,e=Reflect.getMetadata(""+a+r,this);return o.forEach(function(t){t.call(n,e,r)}),e},set:function(t){var n=this,e=t;"null"===e&&(e=null),null!=e&&u.forEach(function(t){e=t.call(n,e,r)}),Reflect.defineMetadata(""+a+r,e,this)}})}},t.ensure=n,t.isBool=e,t.isEnum=function l(o){var u=function t(n){var e={};return Object.keys(n).forEach(function(t){e[t]=n[t],e[n[t]]=t}),e}(o),i=function r(n){var e={};return Object.keys(n).forEach(function(t){""+parseInt(t,10)!==t&&(e[t]=n[t])}),e}(o);return n(function(t,n){var e=null!=i[t]?i[t]:i[u[t]];if(null==e)throw new f('\n "'+t+"\" is not a valid value for '"+n+"'. You can use one of the following:\n "+function r(t){return Object.keys(t).filter(function(t){return isNaN(+t)}).map(function(t){return'"'+t+'"'}).join(",\n ")}(o)+"\n ");return e})},t.isNotNull=r,t.isNumber=o,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define("@trademe/ensure",["exports"],n):n((t.trademe=t.trademe||{},t.trademe.ensure={}))}(this,function(t){"use strict";var u=function(t,n){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])})(t,n)};var f=function(r){function t(t){var n=this.constructor,e=r.call(this,i(t))||this;return Object.setPrototypeOf(e,n.prototype),e}return function o(t,n){function e(){this.constructor=t}u(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}(t,r),t}(Error);function i(t){var n=t.split(/\n/),e=n.reduce(function(t,n){var e=n.search(/\S/);return e<0?t:e<t?e:t},Infinity);return n.map(function(t){return t.substr(e)}).join("\n")}var a="__value_";function n(t,n){return Object.defineProperty(t,"isGetter",{get:function(){return!!n&&n.getter}}),t}var e=n(function(t,n){if(!0===t||!1===t)return t;if("true"===t||""===t)return!0;if("false"===t)return!1;throw new f('\n "'+t+"\" is not a valid value for '"+n+'\'.\n The following values will evaluate to true: true, "true", "".\n The following values will evaluate to false: false, "false".\n ')});var r=n(function(t,n){if(null==t)throw new f("\n '"+n+'\' must not be "null" or "undefined".\n ');return t},{getter:!0}),o=n(function(t,n){if(t=+parseFloat(t),isNaN(t))throw new f("\n '"+n+"' must be a number.\n ");return t});t.dedent=i,t.EnsureError=f,t.Value=function c(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=function r(t){var n=function a(t,n){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var r,o,u=e.call(t),i=[];try{for(;(void 0===n||0<n--)&&!(r=u.next()).done;)i.push(r.value)}catch(f){o={error:f}}finally{try{r&&!r.done&&(e=u["return"])&&e.call(u)}finally{if(o)throw o.error}}return i}(t,1)[0];return Array.isArray(n)?n:t}(t),o=e.filter(function(t){return t.isGetter}),u=e.filter(function(t){return!t.isGetter});return function(t,r){Object.defineProperty(t,r,{get:function(){var n=this,e=Reflect.getMetadata(""+a+r,this);return o.forEach(function(t){t.call(n,e,r)}),e},set:function(t){var n=this,e=t;"null"===e&&(e=null),null!=e&&u.forEach(function(t){e=t.call(n,e,r)}),Reflect.defineMetadata(""+a+r,e,this)}})}},t.ensure=n,t.isBool=e,t.isEnum=function l(o){var u=function t(n){var e={};return Object.keys(n).forEach(function(t){e[t]=n[t],e[n[t]]=t}),e}(o),i=function r(n){var e={};return Object.keys(n).forEach(function(t){""+parseInt(t,10)!==t&&(e[t]=n[t])}),e}(o);return n(function(t,n){var e=null!=i[t]?i[t]:i[u[t]];if(null==e)throw new f('\n "'+t+"\" is not a valid value for '"+n+"'. You can use one of the following:\n "+function r(t){return Object.keys(t).filter(function(t){return isNaN(+t)}).map(function(t){return'"'+t+'"'}).join(",\n ")}(o)+"\n ");return e})},t.isNotNull=r,t.isNumber=o,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=trademe-ensure.umd.min.js.map

@@ -34,2 +34,2 @@ /**

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW5zdXJlLWVycm9yLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHRyYWRlbWUvZW5zdXJlLyIsInNvdXJjZXMiOlsiZW5zdXJlLWVycm9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxNQUFNLGtCQUFtQixTQUFRLEtBQUs7Ozs7SUFDbEMsWUFDSSxPQUFnQjtRQUVoQixLQUFLLENBQUMsTUFBTSxDQUFDLE9BQU8sQ0FBQyxDQUFDLENBQUM7UUFDdkIsTUFBTSxDQUFDLGNBQWMsQ0FBQyxJQUFJLEVBQUUsR0FBRyxDQUFDLE1BQU0sQ0FBQyxTQUFTLENBQUMsQ0FBQztJQUN0RCxDQUFDO0NBQ0o7Ozs7O0FBRUQsTUFBTSxpQkFBa0IsR0FBVzs7VUFDekIsS0FBSyxHQUFHLEdBQUcsQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDOztVQUN2QixhQUFhLEdBQUcsS0FBSyxDQUFDLE1BQU0sQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsRUFBRTs7Y0FDbEMsZUFBZSxHQUFHLENBQUMsQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDO1FBQ3RDLEVBQUUsQ0FBQyxDQUFDLGVBQWUsR0FBRyxDQUFDLENBQUMsQ0FBQyxDQUFDO1lBQ3RCLE1BQU0sQ0FBQyxDQUFDLENBQUM7UUFDYixDQUFDO1FBQ0QsTUFBTSxDQUFDLGVBQWUsR0FBRyxDQUFDLENBQUMsQ0FBQyxDQUFDLGVBQWUsQ0F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//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3VhcmQtY29uZmlnLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHRyYWRlbWUvZW5zdXJlLyIsInNvdXJjZXMiOlsiZ3VhcmQvZ3VhcmQtY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgdHlwZSBHdWFyZENvbmZpZyA9IHtcclxuICAgIGdldHRlcj86IGJvb2xlYW5cclxufTtcclxuIl19
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3VhcmQtY29uZmlnLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHRyYWRlbWUvZW5zdXJlLyIsInNvdXJjZXMiOlsiZ3VhcmQvZ3VhcmQtY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgdHlwZSBHdWFyZENvbmZpZyA9IHtcbiAgICBnZXR0ZXI/OiBib29sZWFuXG59O1xuIl19

@@ -19,2 +19,2 @@ /**

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3VhcmQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdHJhZGVtZS9lbnN1cmUvIiwic291cmNlcyI6WyJndWFyZC9ndWFyZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBTUEsTUFBTSxpQkFBc0IsS0FBdUIsRUFBRSxNQUFvQjtJQUNyRSxNQUFNLENBQUMsY0FBYyxDQUFDLEtBQUssRUFBRSxVQUFVLEVBQUU7UUFDckMsR0FBRyxFQUFFO1lBQ0QsTUFBTSxDQUFDLENBQUMsQ0FBQyxNQUFNLElBQUksTUFBTSxDQUFDLE1BQU0sQ0FBQztRQUNyQyxDQUFDO0tBQ0osQ0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zZSBvbmUgb2YgdGhlIGZvbGxvd2luZzpcclxuICAgICAgICAgICAgICAgICAgICAke2dldFZhbHVlczxUPihlbnVtVmFsdWVzKX1cclxuICAgICAgICAgICAgYCk7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIHJldHVybiBlbnVtVmFsdWU7XHJcbiAgICB9KTtcclxufVxyXG5cclxuZnVuY3Rpb24gZmxpcEVudW0gPFQ+IChlbnVtVDogVCk6IHsgW2tleTogc3RyaW5nXTogYW55IH0ge1xyXG4gICAgY29uc3QgZmxpcHBlZCA9IHt9O1xyXG4gICAgT2JqZWN0LmtleXMoZW51bVQpLmZvckVhY2goa2V5ID0+IHtcclxuICAgICAgICBmbGlwcGVkW2tleV0gPSBlbnVtVFtrZXldO1xyXG4gICAgICAgIGZsaXBwZWRbZW51bVRba2V5XV0gPSBrZXk7XHJcbiAgICB9KTtcclxuICAgIHJldHVybiBmbGlwcGVkO1xyXG59XHJcblxyXG5mdW5jdGlvbiBzdHJpcEVudW0gPFQ+IChlbnVtVDogVCk6IHsgW2tleTogc3RyaW5nXTogYW55IH0ge1xyXG4gICAgY29uc3Qgc3RyaXBwZWQgPSB7fTtcclxuICAgIE9iamVjdC5rZXlzKGVudW1UKS5mb3JFYWNoKGtleSA9PiB7XHJcbiAgICAgICAgaWYgKGAke3BhcnNlSW50KGtleSwgMTApfWAgIT09IGtleSkge1xyXG4gICAgICAgICAgICBzdHJpcHBlZFtrZXldID0gZW51bVRba2V5XTtcclxuICAgICAgICB9XHJcbiAgICB9KTtcclxuICAgIHJldHVybiBzdHJpcHBlZDtcclxufVxyXG5cclxuZnVuY3Rpb24gZ2V0VmFsdWVzPFQ+IChlbnVtVDogVCk6IHN0cmluZyB7XHJcbiAgICByZXR1cm4gT2JqZWN0LmtleXMoZW51bVQpXHJcbiAgICAuZmlsdGVyKGtleSA9PiBpc05hTigra2V5KSlcclxuICAgIC5tYXAoa2V5ID0+IGBcIiR7a2V5fVwiYClcclxuICAgIC5qb2luKCcsXF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ICB9KTtcbn1cblxuZnVuY3Rpb24gZmxpcEVudW0gPFQ+IChlbnVtVDogVCk6IHsgW2tleTogc3RyaW5nXTogYW55IH0ge1xuICAgIGNvbnN0IGZsaXBwZWQgPSB7fTtcbiAgICBPYmplY3Qua2V5cyhlbnVtVCkuZm9yRWFjaChrZXkgPT4ge1xuICAgICAgICBmbGlwcGVkW2tleV0gPSBlbnVtVFtrZXldO1xuICAgICAgICBmbGlwcGVkW2VudW1UW2tleV1dID0ga2V5O1xuICAgIH0pO1xuICAgIHJldHVybiBmbGlwcGVkO1xufVxuXG5mdW5jdGlvbiBzdHJpcEVudW0gPFQ+IChlbnVtVDogVCk6IHsgW2tleTogc3RyaW5nXTogYW55IH0ge1xuICAgIGNvbnN0IHN0cmlwcGVkID0ge307XG4gICAgT2JqZWN0LmtleXMoZW51bVQpLmZvckVhY2goa2V5ID0+IHtcbiAgICAgICAgaWYgKGAke3BhcnNlSW50KGtleSwgMTApfWAgIT09IGtleSkge1xuICAgICAgICAgICAgc3RyaXBwZWRba2V5XSA9IGVudW1UW2tleV07XG4gICAgICAgIH1cbiAgICB9KTtcbiAgICByZXR1cm4gc3RyaXBwZWQ7XG59XG5cbmZ1bmN0aW9uIGdldFZhbHVlczxUPiAoZW51bVQ6IFQpOiBzdHJpbmcge1xuICAgIHJldHVybiBPYmplY3Qua2V5cyhlbnVtVClcbiAgICAuZmlsdGVyKGtleSA9PiBpc05hTigra2V5KSlcbiAgICAubWFwKGtleSA9PiBgXCIke2tleX1cImApXG4gICAgLmpvaW4oJyxcXG4gICAgICAgICAgICAgICAgICAgICcpO1xufVxuIl19

@@ -19,2 +19,2 @@ /**

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90LW51bGwuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdHJhZGVtZS9lbnN1cmUvIiwic291cmNlcyI6WyJndWFyZHMvbm90LW51bGwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5nc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YXQodmFsdWUpO1xuICAgIGlmIChpc05hTih2YWx1ZSkpIHtcbiAgICAgICAgdGhyb3cgbmV3IEVuc3VyZUVycm9yKGBcbiAgICAgICAgICAgICcke2tleX0nIG11c3QgYmUgYSBudW1iZXIuXG4gICAgICAgIGApO1xuICAgIH1cbiAgICByZXR1cm4gdmFsdWU7XG59KTtcbiJdfQ==

@@ -5,3 +5,3 @@ /**

*/
export { EnsureError, dedent } from './ensure-error';
export { dedent, EnsureError } from './ensure-error';
export { Value } from './value/value';

@@ -13,2 +13,2 @@ export { ensure } from './guard/guard';

export { isNumber } from './guards/number';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdHJhZGVtZS9lbnN1cmUvIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsb0NBQWMsZ0JBQWdCLENBQUM7QUFFL0Isc0JBQWMsZUFBZSxDQUFDO0FBRTlCLHVCQUFjLGVBQWUsQ0FBQztBQUU5Qix1QkFBYyxlQUFlLENBQUM7QUFDOUIsdUJBQWMsZUFBZSxDQUFDO0FBQzlCLDBCQUFjLG1CQUFtQixDQUFDO0FBQ2xDLHlCQUFjLGlCQUFpQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9lbnN1cmUtZXJyb3InO1xyXG5cclxuZXhwb3J0ICogZnJvbSAnLi92YWx1ZS92YWx1ZSc7XHJcblxyXG5leHBvcnQgKiBmcm9tICcuL2d1YXJkL2d1YXJkJztcclxuXHJcbmV4cG9ydCAqIGZyb20gJy4vZ3VhcmRzL2Jvb2wnO1xyXG5leHBvcnQgKiBmcm9tICcuL2d1YXJkcy9lbnVtJztcclxuZXhwb3J0ICogZnJvbSAnLi9ndWFyZHMvbm90LW51bGwnO1xyXG5leHBvcnQgKiBmcm9tICcuL2d1YXJkcy9udW1iZXInO1xyXG4iXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdHJhZGVtZS9lbnN1cmUvIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsb0NBQWMsZ0JBQWdCLENBQUM7QUFFL0Isc0JBQWMsZUFBZSxDQUFDO0FBRTlCLHVCQUFjLGVBQWUsQ0FBQztBQUU5Qix1QkFBYyxlQUFlLENBQUM7QUFDOUIsdUJBQWMsZUFBZSxDQUFDO0FBQzlCLDBCQUFjLG1CQUFtQixDQUFDO0FBQ2xDLHlCQUFjLGlCQUFpQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9lbnN1cmUtZXJyb3InO1xuXG5leHBvcnQgKiBmcm9tICcuL3ZhbHVlL3ZhbHVlJztcblxuZXhwb3J0ICogZnJvbSAnLi9ndWFyZC9ndWFyZCc7XG5cbmV4cG9ydCAqIGZyb20gJy4vZ3VhcmRzL2Jvb2wnO1xuZXhwb3J0ICogZnJvbSAnLi9ndWFyZHMvZW51bSc7XG5leHBvcnQgKiBmcm9tICcuL2d1YXJkcy9ub3QtbnVsbCc7XG5leHBvcnQgKiBmcm9tICcuL2d1YXJkcy9udW1iZXInO1xuIl19

@@ -5,3 +5,3 @@ /**

*/
export { EnsureError, dedent, Value, ensure, isBool, isEnum, isNotNull, isNumber } from './index';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B0cmFkZW1lL2Vuc3VyZS8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLHdGQUFjLFNBQVMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xyXG4iXX0=
export { dedent, EnsureError, Value, ensure, isBool, isEnum, isNotNull, isNumber } from './index';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B0cmFkZW1lL2Vuc3VyZS8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLHdGQUFjLFNBQVMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19

@@ -8,3 +8,3 @@ /**

*/
export { EnsureError, dedent, Value, ensure, isBool, isEnum, isNotNull, isNumber } from './public_api';
export { dedent, EnsureError, Value, ensure, isBool, isEnum, isNotNull, isNumber } from './public_api';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhZGVtZS1lbnN1cmUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdHJhZGVtZS9lbnN1cmUvIiwic291cmNlcyI6WyJ0cmFkZW1lLWVuc3VyZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsd0ZBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuIl19

@@ -54,2 +54,2 @@ /**

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdWUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdHJhZGVtZS9lbnN1cmUvIiwic291cmNlcyI6WyJ2YWx1ZS92YWx1ZS50cyJdLCJuYW1lcyI6W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RzKTtcblxuICAgIGNvbnN0IGdldHRlcnMgPSBndWFyZHNBcnJheS5maWx0ZXIoYyA9PiBjLmlzR2V0dGVyKTtcbiAgICBjb25zdCBzZXR0ZXJzID0gZ3VhcmRzQXJyYXkuZmlsdGVyKGMgPT4gIWMuaXNHZXR0ZXIpO1xuXG4gICAgcmV0dXJuICh0YXJnZXQ6IGFueSwgcHJvcGVydHlLZXk6IHN0cmluZykgPT4ge1xuICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkodGFyZ2V0LCBwcm9wZXJ0eUtleSwge1xuICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAgICAgY29uc3QgdmFsdWUgPSAoUmVmbGVjdCBhcyBhbnkpLmdldE1ldGFkYXRhKGAke1ZBTFVFX0tFWX0ke3Byb3BlcnR5S2V5fWAsIHRoaXMpO1xuICAgICAgICAgICAgICAgIGdldHRlcnMuZm9yRWFjaChnZXR0ZXIgPT4ge1xuICAgICAgICAgICAgICAgICAgICBnZXR0ZXIuY2FsbCh0aGlzLCB2YWx1ZSwgcHJvcGVydHlLZXkpO1xuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIHJldHVybiB2YWx1ZTtcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICh2YWx1ZSkge1xuICAgICAgICAgICAgICAgIGxldCBjYXN0VmFsdWUgPSB2YWx1ZTtcblxuICAgICAgICAgICAgICAgIGlmIChjYXN0VmFsdWUgPT09ICdudWxsJykge1xuICAgICAgICAgICAgICAgICAgICBjYXN0VmFsdWUgPSBudWxsO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGlmIChjYXN0VmFsdWUgIT0gbnVsbCkge1xuICAgICAgICAgICAgICAgICAgICBzZXR0ZXJzLmZvckVhY2goc2V0dGVyID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNhc3RWYWx1ZSA9IHNldH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I6IHN0cmluZyk6IHN0cmluZyB7XG4gICAgY29uc3QgbGluZXMgPSBzdHIuc3BsaXQoL1xcbi8pO1xuICAgIGNvbnN0IG1pbldoaXBlU3BhY2UgPSBsaW5lcy5yZWR1Y2UoKHAsIG4pID0+IHtcbiAgICAgICAgY29uc3Qgd2hpdGVzcGFjZUNvdW50ID0gbi5zZWFyY2goL1xcUy8pO1xuICAgICAgICBpZiAod2hpdGVzcGFjZUNvdW50IDwgMCkge1xuICAgICAgICAgICAgcmV0dXJuIHA7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIHdoaXRlc3BhY2VDb3VudCA8IHAgPyB3aGl0ZXNwYWNlQ291bnQgOiBwO1xuICAgIH0sIEluZmluaXR5KTtcblxuICAgIGNvbnN0IG5ld0xpbmVzID0gbGluZXMubWFwKGwgPT4gbC5zdWJzdHIobWluV2hpcGVTcGFjZSkpO1xuICAgIHJldHVybiBuZXdMaW5lcy5qb2luKCdcXG4nKTtcbn1cbiJdfQ==

@@ -5,2 +5,2 @@ /**

*/
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3VhcmQtY29uZmlnLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHRyYWRlbWUvZW5zdXJlLyIsInNvdXJjZXMiOlsiZ3VhcmQvZ3VhcmQtY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgdHlwZSBHdWFyZENvbmZpZyA9IHtcclxuICAgIGdldHRlcj86IGJvb2xlYW5cclxufTtcclxuIl19
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3VhcmQtY29uZmlnLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHRyYWRlbWUvZW5zdXJlLyIsInNvdXJjZXMiOlsiZ3VhcmQvZ3VhcmQtY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ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0FBVSxFQUFFLEdBQVc7SUFDbkQsS0FBSyxHQUFHLENBQUMsVUFBVSxDQUFDLEtBQUssQ0FBQyxDQUFDO0lBQzNCLElBQUksS0FBSyxDQUFDLEtBQUssQ0FBQyxFQUFFO1FBQ2QsTUFBTSxJQUFJLFdBQVcsQ0FBQyxvQkFDZixHQUFHLGtDQUNULENBQUMsQ0FBQztLQUNOO0lBQ0QsT0FBTyxLQUFLLENBQUM7QUFDakIsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLy8gRGVwZW5kZW5jaWVzOlxuaW1wb3J0IHsgRW5zdXJlRXJyb3IgfSBmcm9tICcuLi9lbnN1cmUtZXJyb3InO1xuaW1wb3J0IHsgZW5zdXJlIH0gZnJvbSAnLi4vZ3VhcmQvZ3VhcmQnO1xuXG5leHBvcnQgY29uc3QgaXNOdW1iZXIgPSBlbnN1cmUoKHZhbHVlOiBhbnksIGtleTogc3RyaW5nKTogbnVtYmVyID0+IHtcbiAgICB2YWx1ZSA9ICtwYXJzZUZsb2F0KHZhbHVlKTtcbiAgICBpZiAoaXNOYU4odmFsdWUpKSB7XG4gICAgICAgIHRocm93IG5ldyBFbnN1cmVFcnJvcihgXG4gICAgICAgICAgICAnJHtrZXl9JyBtdXN0IGJlIGEgbnVtYmVyLlxuICAgICAgICBgKTtcbiAgICB9XG4gICAgcmV0dXJuIHZhbHVlO1xufSk7XG4iXX0=

@@ -5,3 +5,3 @@ /**

*/
export { EnsureError, dedent } from './ensure-error';
export { dedent, EnsureError } from './ensure-error';
export { Value } from './value/value';

@@ -13,2 +13,2 @@ export { ensure } from './guard/guard';

export { isNumber } from './guards/number';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdHJhZGVtZS9lbnN1cmUvIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQ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ICcuL3ZhbHVlL3ZhbHVlJztcblxuZXhwb3J0ICogZnJvbSAnLi9ndWFyZC9ndWFyZCc7XG5cbmV4cG9ydCAqIGZyb20gJy4vZ3VhcmRzL2Jvb2wnO1xuZXhwb3J0ICogZnJvbSAnLi9ndWFyZHMvZW51bSc7XG5leHBvcnQgKiBmcm9tICcuL2d1YXJkcy9ub3QtbnVsbCc7XG5leHBvcnQgKiBmcm9tICcuL2d1YXJkcy9udW1iZXInO1xuIl19

@@ -5,3 +5,3 @@ /**

*/
export { EnsureError, dedent, Value, ensure, isBool, isEnum, isNotNull, isNumber } from './index';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B0cmFkZW1lL2Vuc3VyZS8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLHdGQUFjLFNBQVMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xyXG4iXX0=
export { dedent, EnsureError, Value, ensure, isBool, isEnum, isNotNull, isNumber } from './index';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B0cmFkZW1lL2Vuc3VyZS8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLHdGQUFjLFNBQVMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19

@@ -8,3 +8,3 @@ /**

*/
export { EnsureError, dedent, Value, ensure, isBool, isEnum, isNotNull, isNumber } from './public_api';
export { dedent, EnsureError, Value, ensure, isBool, isEnum, isNotNull, isNumber } from './public_api';
//# sour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XHJcbiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkge1xyXG4gICAgICAgICAgICAgICAgY29uc3QgdmFsdWUgPSAoUmVmbGVjdCBhcyBhbnkpLmdldE1ldGFkYXRhKGAke1ZBTFVFX0tFWX0ke3Byb3BlcnR5S2V5fWAsIHRoaXMpO1xyXG4gICAgICAgICAgICAgICAgZ2V0dGVycy5mb3JFYWNoKGdldHRlciA9PiB7XHJcbiAgICAgICAgICAgICAgICAgICAgZ2V0dGVyLmNhbGwodGhpcywgdmFsdWUsIHByb3BlcnR5S2V5KTtcclxuICAgICAgICAgICAgICAgIH0pO1xyXG4gICAgICAgICAgICAgICAgcmV0dXJuIHZhbHVlO1xyXG4gICAgICAgICAgICB9LFxyXG4gICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICh2YWx1ZSkge1xyXG4gICAgICAgICAgICAgICAgbGV0IGNhc3RWYWx1ZSA9IHZhbHVlO1xyXG5cclxuICAgICAgICAgICAgICAgIGlmIChjYXN0VmFsdWUgPT09ICdudWxsJykge1xyXG4gICAgICAgICAgICAgICAgICAgIGNhc3RWYWx1ZSA9IG51bGw7XHJcbiAgICAgICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAgICAgaWYgKGNhc3RWYWx1ZSAhPSBudWxsKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgc2V0dGVycy5mb3JFYWNoKHNldHRlciA9PiB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGNhc3RWYWx1ZSA9IHNldHRlci5jYWxsKHRoaXMsIGNhc3RWYWx1ZSwgcHJvcGVydHlLZXkpO1xyXG4gICAgICAgICAgICAgICAgICAgIH0pO1xyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgKFJlZmxlY3QgYXMgYW55KS5kZWZpbmVNZXRhZGF0YShgJHtWQUxVRV9LRVl9JHtwcm9wZXJ0eUtleX1gLCBjYXN0VmFsdWUsIHRoaXMpO1xyXG4gICAgICAgICAgICB9X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AgICAgICBjb25zdCB2YWx1ZSA9IChSZWZsZWN0IGFzIGFueSkuZ2V0TWV0YWRhdGEoYCR7VkFMVUVfS0VZfSR7cHJvcGVydHlLZXl9YCwgdGhpcyk7XG4gICAgICAgICAgICAgICAgZ2V0dGVycy5mb3JFYWNoKGdldHRlciA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGdldHRlci5jYWxsKHRoaXMsIHZhbHVlLCBwcm9wZXJ0eUtleSk7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHZhbHVlO1xuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKHZhbHVlKSB7XG4gICAgICAgICAgICAgICAgbGV0IGNhc3RWYWx1ZSA9IHZhbHVlO1xuXG4gICAgICAgICAgICAgICAgaWYgKGNhc3RWYWx1ZSA9PT0gJ251bGwnKSB7XG4gICAgICAgICAgICAgICAgICAgIGNhc3RWYWx1ZSA9IG51bGw7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgaWYgKGNhc3RWYWx1ZSAhPSBudWxsKSB7XG4gICAgICAgICAgICAgICAgICAgIHNldHRlcnMuZm9yRWFjaChzZXR0ZXIgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgY2FzdFZhbHVlID0gc2V0dGVyLmNhbGwodGhpcywgY2FzdFZhbHVlLCBwcm9wZXJ0eUtleSk7XG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAoUmVmbGVjdCBhcyBhbnkpLmRlZmluZU1ldGFkYXRhKGAke1ZBTFVFX0tFWX0ke3Byb3BlcnR5S2V5fWAsIGNhc3RWYWx1ZSwgdGhpcyk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgIH07XG59XG5cbmZ1bmN0aW9uIGdldEd1YXJkc0FycmF5IChndWFyZHM6IEFycmF5PEd1YXJkPGFueT4gfCBBcnJheTxHdWFyZDxhbnk+Pj4pOiBBcnJheTxHdWFyZDxhbnk+PiB7XG4gICAgLy8gSGFuZGxlIG9sZCBAVmFsdWUoW2d1YXJkT25lLCBndWFyZFR3b10pIHN5bnRheDpcbiAgICBjb25zdCBbZmlyc3RHdWFyZF0gPSBndWFyZHM7XG4gICAgcmV0dXJuIEFycmF5LmlzQXJyYXkoZmlyc3RHdWFyZCkgPyBmaXJzdEd1YXJkIGFzIEFycmF5PEd1YXJkPGFueT4+IDogZ3VhcmRzIGFzIEFycmF5PEd1YXJkPGFueT4+O1xufVxuIl19

@@ -245,4 +245,4 @@ /**

export { EnsureError, dedent, Value, ensure, isBool, isEnum, isNotNull, isNumber };
export { dedent, EnsureError, Value, ensure, isBool, isEnum, isNotNull, isNumber };
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhZGVtZS1lbnN1cmUuanMubWFwIiwic291cmNlcyI6WyJuZzovL0B0cmFkZW1lL2Vuc3VyZS9lbnN1cmUtZXJyb3IudHMiLCJuZzovL0B0cmFkZW1lL2Vuc3VyZS92YWx1ZS92YWx1ZS50cyIsIm5nOi8vQHRyYWRlbWUvZW5zdXJlL2d1YXJkL2d1YXJkLnRzIiwibmc6Ly9AdHJhZGVtZS9lbnN1cmUvZ3VhcmRzL2Jvb2wudHMiLCJuZzovL0B0cmFkZW1lL2Vuc3VyZS9ndWFyZHMvZW51bS50cyIsIm5nOi8vQHRyYWRlbWUvZW5zdXJlL2d1YXJkcy9ub3QtbnVsbC50cyIsIm5nOi8vQHRyYWRlbWUvZW5zdXJlL2d1YXJkcy9udW1iZXIudHMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNsYXNzIEVuc3VyZUVycm9yIGV4dGVuZHMgRXJyb3Ige1xyXG4gICAgY29uc3RydWN0b3IoXHJcbiAgICAgICAgbWVzc2FnZT86IHN0cmluZ1xyXG4gICAgKSB7XHJcbiAgICAgICAgc3VwZX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QUFHO1NBQ1QsQ0FBQyxDQUFDO0tBQ047SUFDRCxPQUFPLEtBQUssQ0FBQztDQUNoQixDQUFDOzs7Ozs7Ozs7Ozs7Ozs7Ozs7OyJ9
//# sourceMappingURL=trademe-ensure.js.map

@@ -243,4 +243,4 @@ import { __extends, __read } from 'tslib';

export { EnsureError, dedent, Value, ensure, isBool, isEnum, isNotNull, isNumber };
export { dedent, EnsureError, Value, ensure, isBool, isEnum, isNotNull, isNumber };
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhZGVtZS1lbnN1cmUuanMubWFwIiwic291cmNlcyI6WyJuZzovL0B0cmFkZW1lL2Vuc3VyZS9lbnN1cmUtZXJyb3IudHMiLCJuZzovL0B0cmFkZW1lL2Vuc3VyZS92YWx1ZS92YWx1ZS50cyIsIm5nOi8vQHRyYWRlbWUvZW5zdXJlL2d1YXJkL2d1YXJkLnRzIiwibmc6Ly9AdHJhZGVtZS9lbnN1cmUvZ3VhcmRzL2Jvb2wudHMiLCJuZzovL0B0cmFkZW1lL2Vuc3VyZS9ndWFyZHMvZW51bS50cyIsIm5nOi8vQHRyYWRlbWUvZW5zdXJlL2d1YXJkcy9ub3QtbnVsbC50cyIsIm5nOi8vQHRyYWRlbWUvZW5zdXJlL2d1YXJkcy9udW1iZXIudHMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNsYXNzIEVuc3VyZUVycm9yIGV4dGVuZHMgRXJyb3Ige1xyXG4gICAgY29uc3RydWN0b3IoXHJcbiAgICAgICAgbWVzc2FnZT86IHN0cmluZ1xyXG4gICAgKSB7XHJcbiAgICAgICAgc3VwZXIoZGVkZW50KG1lc3NhZ2UpKTtcclxuICAgICAgICBPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcywgbmV3LnRhcmdldC5wcm90b3R5cGUpO1xyXG4gICAgfVxyXG59XHJcblxyXG5leHBvcnQgZnVuY3Rpb24gZGVkZW50IChzdHI6IH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gIGNvbnN0IHNldHRlcnMgPSBndWFyZHNBcnJheS5maWx0ZXIoYyA9PiAhYy5pc0dldHRlcik7XHJcblxyXG4gICAgcmV0dXJuICh0YXJnZXQ6IGFueSwgcHJvcGVydHlLZXk6IHN0cmluZykgPT4ge1xyXG4gICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eSh0YXJnZXQsIHByb3BlcnR5S2V5LCB7XHJcbiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkge1xyXG4gICAgICAgICAgICAgICAgY29uc3QgdmFsdWUgPSAoUmVmbGVjdCBhcyBhbnkpLmdldE1ldGFkYXRhKGAke1ZBTFVFX0tFWX0ke3Byb3BlcnR5S2V5fWAsIHRoaXMpO1xyXG4gICAgICAgICAgICAgICAgZ2V0dGVycy5mb3JFYWNoKGdldHRlciA9PiB7XHJcbiAgICAgICAgICAgICAgICAgICAgZ2V0dGVyLmNhbGwodGhpcywgdmFsdWUsIHByb3BlcnR5S2V5KTtcclxuICAgICAgICAgICAgICAgIH0pO1xyXG4gICAgICAgICAgICAgICAgcmV0dXJuIHZhbHVlO1xyXG4gICAgICAgICAgICB9LFxyXG4gICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICh2YWx1ZSkge1xyXG4gICAgICAgICAgICAgICAgbGV0IGNhc3RWYWx1ZSA9IHZhbHVlO1xyXG5cclxuICAgICAgICAgICAgICAgIGlmIChjYXN0VmFsdWUgPT09ICdudWxsJykge1xyXG4gICAgICAgICAgICAgICAgICAgIGNhc3RWYWx1ZSA9IG51bGw7XHJcbiAgICAgICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAgICAgaWYgKGNhc3RWYWx1ZSAhPSBudWxsKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgc2V0dGVycy5mb3JFYWNoKHNldHRlciA9PiB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGNhc3RWYWx1ZSA9IHNldHRlci5jYWxsKHRoaXMsIGNhc3RWYWx1ZSwgcHJ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pbmc6XHJcbiAgICAgICAgICAgICAgICAgICAgJHtnZXRWYWx1ZXM8VD4oZW51bVZhbHVlcyl9XHJcbiAgICAgICAgICAgIGApO1xyXG4gICAgICAgIH1cclxuICAgICAgICByZXR1cm4gZW51bVZhbHVlO1xyXG4gICAgfSk7XHJcbn1cclxuXHJcbmZ1bmN0aW9uIGZsaXBFbnVtIDxUPiAoZW51bVQ6IFQpOiB7IFtrZXk6IHN0cmluZ106IGFueSB9IHtcclxuICAgIGNvbnN0IGZsaXBwZWQgPSB7fTtcclxuICAgIE9iamVjdC5rZXlzKGVudW1UKS5mb3JFYWNoKGtleSA9PiB7XHJcbiAgICAgICAgZmxpcHBlZFtrZXldID0gZW51bVRba2V5XTtcclxuICAgICAgICBmbGlwcGVkW2VudW1UW2tleV1dID0ga2V5O1xyXG4gICAgfSk7XHJcbiAgICByZXR1cm4gZmxpcHBlZDtcclxufVxyXG5cclxuZnVuY3Rpb24gc3RyaXBFbnVtIDxUPiAoZW51bVQ6IFQpOiB7IFtrZXk6IHN0cmluZ106IGFueSB9IHtcclxuICAgIGNvbnN0IHN0cmlwcGVkID0ge307XHJcbiAgICBPYmplY3Qua2V5cyhlbnVtVCkuZm9yRWFjaChrZXkgPT4ge1xyXG4gICAgICAgIGlmIChgJHtwYXJzZUludChrZXksIDEwKX1gICE9PSBrZXkpIHtcclxuICAgICAgICAgICAgc3RyaXBwZWRba2V5XSA9IGVudW1UW2tleV07XHJcbiAgICAgICAgfVxyXG4gICAgfSk7XHJcbiAgICByZXR1cm4gc3RyaXBwZWQ7XHJcbn1cclxuXHJcbmZ1bmN0aW9uIGdldFZhbHVlczxUPiAoZW51bVQ6IFQpOiBzdHJpbmcge1xyXG4gICAgcmV0dXJuIE9iamVjdC5rZXlzKGVudW1UKVxyXG4gICAgLmZpbHRlcihrZXkgPT4gaXNOYU4oK2tleSkpXHJcbiAgICAubWFwKGtleSA9PiBgXCIke2tleX1cImApXHJcbiAgICAuam9pbignLFxcbiAgICAgICAgIC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sRUFBRTtRQUNkLE1BQU0sSUFBSSxXQUFXLENBQUMsb0JBQ2YsR0FBRyxrQ0FDVCxDQUFDLENBQUM7S0FDTjtJQUNELE9BQU8sS0FBSyxDQUFDO0NBQ2hCLENBQUM7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7In0=
//# sourceMappingURL=trademe-ensure.js.map

@@ -1,3 +0,1 @@

export declare const isBool: {
isGetter: boolean;
} & ((value: any, key: string) => boolean);
export declare const isBool: import("../guard/guard").Guard<boolean>;

@@ -1,3 +0,1 @@

export declare const isNotNull: {
isGetter: boolean;
} & ((value: any, key: string) => any);
export declare const isNotNull: import("../guard/guard").Guard<any>;

@@ -1,3 +0,1 @@

export declare const isNumber: {
isGetter: boolean;
} & ((value: any, key: string) => number);
export declare const isNumber: import("../guard/guard").Guard<number>;
{
"name": "@trademe/ensure",
"version": "0.2.2",
"version": "1.0.0-beta.0",
"license": "MIT",
"peerDependencies": {
"@angular/common": "^6.0.0-rc.0 || ^6.0.0",
"@angular/core": "^6.0.0-rc.0 || ^6.0.0"
"@angular/common": "^7.0.0",
"@angular/core": "^7.0.0"
},

@@ -9,0 +9,0 @@ "main": "bundles/trademe-ensure.umd.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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