@trademe/ensure
Advanced tools
Comparing version 0.2.0-beta.3 to 0.2.0-beta.4
@@ -171,3 +171,3 @@ (function (global, factory) { | ||
Object.keys(enumT).forEach(function (key) { | ||
if (isNaN(parseInt(key, 10))) { | ||
if ("" + parseInt(key, 10) !== key) { | ||
stripped[key] = enumT[key]; | ||
@@ -243,2 +243,2 @@ } | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhZGVtZS1lbnN1cmUudW1kLmpzLm1hcCIsInNvdXJjZXMiOlsibmc6Ly9AdHJhZGVtZS9lbnN1cmUvZW5zdXJlLWVycm9yLnRzIiwibmc6Ly9AdHJhZGVtZS9lbnN1cmUvdmFsdWUvdmFsdWUudHMiLCJuZzovL0B0cmFkZW1lL2Vuc3VyZS9ndWFyZC9ndWFyZC50cyIsIm5nOi8vQHRyYWRlbWUvZW5zdXJlL2d1YXJkcy9ib29sLnRzIiwibmc6Ly9AdHJhZGVtZS9lbnN1cmUvZ3VhcmRzL2VudW0udHMiLCJuZzovL0B0cmFkZW1lL2Vuc3VyZS9ndWFyZHMvbm90LW51bGwudHMiLCJuZzovL0B0cmFkZW1lL2Vuc3VyZS9ndWFyZHMvbnVtYmVyLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjbGFzcyBFbnN1cmVFcnJvciBleHRlbmRzIEVycm9yIHtcbiAgICBjb25zdHJ1Y3RvcihcbiAgICAgICAgbWVzc2FnZT86IHN0cmluZ1xuICAgICkge1xuICAgICAgICBzdXBlcihkZWRlbnQobWVzc2FnZSkpO1xuICAgICAgICBPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcywgbmV3LnRhcmdldC5wcm90b3R5cGUpO1xuICAgIH1cbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGRlZGVudCAoc3RyOiBzdHJpbmcpOiBzdHJpbmcge1xuICAgIGNvbnN0IGxpbmVzID0gc3RyLnNwbGl0KC9cXG4vKTtcbiAgICBj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HN0cmluZykgPT4ge1xuICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkodGFyZ2V0LCBwcm9wZXJ0eUtleSwge1xuICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAgICAgY29uc3QgdmFsdWUgPSAoUmVmbGVjdCBhcyBhbnkpLmdldE1ldGFkYXRhKGAke1ZBTFVFX0tFWX0ke3Byb3BlcnR5S2V5fWAsIHRoaXMpO1xuICAgICAgICAgICAgICAgIGdldHRlcnMuZm9yRWFjaChnZXR0ZXIgPT4ge1xuICAgICAgICAgICAgICAgICAgICBnZXR0ZXIuY2FsbCh0aGlzLCB2YWx1ZSwgcHJvcGVydHlLZXkpO1xuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIHJldHVybiB2YWx1ZTtcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICh2YWx1ZSkge1xuICAgICAgICAgICAgICAgIGxldCBjYXN0VmFsdWUgPSB2YWx1ZTtcblxuICAgICAgICAgICAgICAgIGlmIChjYXN0VmFsdWUgPT09ICdudWxsJykge1xuICAgICAgICAgICAgICAgICAgICBjYXN0VmFsdWUgPSBudWxsO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGlmIChjYXN0VmFsdWUgIT0gbnVsbCkge1xuICAgICAgICAgICAgICAgICAgICBzZXR0ZXJzLmZvckVhY2goc2V0dGVyID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNhc3RWYWx1ZSA9IHNldHRlci5jYWxsKHRoaXMsIGNhc3RWYWx1ZSwgcHJvcGVydHlLZXkpO1xuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgKFJlZmxlY3QgYXMgYW55KS5kZWZpbmVNZXRhZGF0YShgJHtWQUxVRV9LRVl9JHtwcm9wZXJ0eUtleX1gLCBjYXN0VmFsdWUsI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GdldHRlcnMuZm9yRWFjaChnZXR0ZXIgPT4ge1xuICAgICAgICAgICAgICAgICAgICBnZXR0ZXIuY2FsbCh0aGlzLCB2YWx1ZSwgcHJvcGVydHlLZXkpO1xuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIHJldHVybiB2YWx1ZTtcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICh2YWx1ZSkge1xuICAgICAgICAgICAgICAgIGxldCBjYXN0VmFsdWUgPSB2YWx1ZTtcblxuICAgICAgICAgICAgICAgIGlmIChjYXN0VmFsdWUgPT09ICdudWxsJykge1xuICAgICAgICAgICAgICAgICAgICBjYXN0VmFsdWUgPSBudWxsO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGlmIChjYXN0VmFsdWUgIT0gbnVsbCkge1xuICAgICAgICAgICAgICAgICAgICBzZXR0ZXJzLmZvckVhY2goc2V0dGVyID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNhc3RWYWx1ZSA9IHNldHRlci5jYWxsKHRoaXMsIGNhc3RWYWx1ZSwgcHJvcGVydHlLZXkpO1xuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgKFJlZmxlY3QgYXMgYW55KS5kZWZpbmVNZXRhZGF0YShgJHtWQUxVRV9LRVl9JHtwcm9wZXJ0eUtleX1gLCBjYXN0VmFsdWUsIHRoaXMpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICB9O1xufVxuXG5mdW5jdGlvbiBnZXRHdWFyZHNBcnJheSAoZ3VhcmRzOiBBcnJheTxHdWFyZDxhbnk+IHwgQXJyYXk8R3VhcmQ8YW55Pj4+KTogQXJyYXk8R3VhcmQ8YW55Pj4ge1xuICAgIC8vIEhhbmRsZSBvbGQgQFZhbHVlKFtndWFyZE9uZSwgZ3VhcmRUd29dKSBzeW50YXg6XG4gICAgY29u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HLEdBQUEsQ0FBQzthQUN0QixJQUFJLENBQUMseUJBQXlCLENBQUMsQ0FBQztLQUNwQzs7Ozs7O0FDN0NELHlCQUdhLFNBQVMsR0FBRyxNQUFNLENBQUMsVUFBQyxLQUFVLEVBQUUsR0FBUTtRQUNqRCxJQUFJLEtBQUssSUFBSSxJQUFJLEVBQUU7WUFDZixNQUFNLElBQUksV0FBVyxDQUFDLG9CQUNmLEdBQUcsdURBQ1QsQ0FBQyxDQUFDO1NBQ047UUFDRCxPQUFPLEtBQUssQ0FBQztLQUNoQixFQUFFO1FBQ0MsTUFBTSxFQUFFLElBQUk7S0FDZixDQUFDOzs7Ozs7QUNaRix5QkFHYSxRQUFRLEdBQUcsTUFBTSxDQUFDLFVBQUMsS0FBVSxFQUFFLEdBQVc7UUFDbkQsS0FBSyxHQUFHLENBQUMsVUFBVSxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBQzNCLElBQUksS0FBSyxDQUFDLEtBQUssQ0FBQyxFQUFFO1lBQ2QsTUFBTSxJQUFJLFdBQVcsQ0FBQyxvQkFDZixHQUFHLGtDQUNULENBQUMsQ0FBQztTQUNOO1FBQ0QsT0FBTyxLQUFLLENBQUM7S0FDaEIsQ0FBQzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OzsifQ== |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("tslib")):"function"==typeof define&&define.amd?define("@trademe/ensure",["exports","tslib"],t):t((e.trademe=e.trademe||{},e.trademe.ensure={}),e.tslib)}(this,function(e,f){"use strict";var a=function(r){function e(e){var t=this.constructor,n=r.call(this,u(e))||this;return Object.setPrototypeOf(n,t.prototype),n}return f.__extends(e,r),e}(Error);function u(e){var t=e.split(/\n/),n=t.reduce(function(e,t){var n=t.search(/\S/);return n<0?e:n<e?n:e},Infinity);return t.map(function(e){return e.substr(n)}).join("\n")}var l="__value_";function s(e,t){return Object.defineProperty(e,"isGetter",{get:function(){return!!t&&t.getter}}),e}var t=s(function(e,t){if(!0===e||!1===e)return e;if("true"===e||""===e)return!0;if("false"===e)return!1;throw new a('\n "'+e+"\" is not a valid value for '"+t+'\'.\n The following values will evaluate to true: true, "true", "".\n The following values will evaluate to false: false, "false".\n ')});var n=s(function(e,t){if(null==e)throw new a("\n '"+t+'\' must not be "null" or "undefined".\n ');return e},{getter:!0}),r=s(function(e,t){if(e=+parseFloat(e),isNaN(e))throw new a("\n '"+t+"' must be a number.\n ");return e});e.EnsureError=a,e.dedent=u,e.Value=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n,r,u=(n=e,r=f.__read(n,1)[0],Array.isArray(r)?r:n),i=u.filter(function(e){return e.isGetter}),o=u.filter(function(e){return!e.isGetter});return function(e,r){Object.defineProperty(e,r,{get:function(){var t=this,n=Reflect.getMetadata(""+l+r,this);return i.forEach(function(e){e.call(t,n,r)}),n},set:function(e){var t=this,n=e;"null"===n&&(n=null),null!=n&&o.forEach(function(e){n=e.call(t,n,r)}),Reflect.defineMetadata(""+l+r,n,this)}})}},e.ensure=s,e.isBool=t,e.isEnum=function(u){var t,n,r,i,o=(t=u,n={},Object.keys(t).forEach(function(e){n[e]=t[e],n[t[e]]=e}),n),f=(r=u,i={},Object.keys(r).forEach(function(e){isNaN(parseInt(e,10))&&(i[e]=r[e])}),i);return s(function(e,t){var n,r=null!=f[e]?f[e]:f[o[e]];if(null==r)throw new a('\n "'+e+"\" is not a valid value for '"+t+"'. You can use one of the following:\n "+(n=u,Object.keys(n).filter(function(e){return isNaN(+e)}).map(function(e){return'"'+e+'"'}).join(",\n "))+"\n ");return r})},e.isNotNull=n,e.isNumber=r,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("tslib")):"function"==typeof define&&define.amd?define("@trademe/ensure",["exports","tslib"],t):t((e.trademe=e.trademe||{},e.trademe.ensure={}),e.tslib)}(this,function(e,f){"use strict";var a=function(r){function e(e){var t=this.constructor,n=r.call(this,u(e))||this;return Object.setPrototypeOf(n,t.prototype),n}return f.__extends(e,r),e}(Error);function u(e){var t=e.split(/\n/),n=t.reduce(function(e,t){var n=t.search(/\S/);return n<0?e:n<e?n:e},Infinity);return t.map(function(e){return e.substr(n)}).join("\n")}var l="__value_";function s(e,t){return Object.defineProperty(e,"isGetter",{get:function(){return!!t&&t.getter}}),e}var t=s(function(e,t){if(!0===e||!1===e)return e;if("true"===e||""===e)return!0;if("false"===e)return!1;throw new a('\n "'+e+"\" is not a valid value for '"+t+'\'.\n The following values will evaluate to true: true, "true", "".\n The following values will evaluate to false: false, "false".\n ')});var n=s(function(e,t){if(null==e)throw new a("\n '"+t+'\' must not be "null" or "undefined".\n ');return e},{getter:!0}),r=s(function(e,t){if(e=+parseFloat(e),isNaN(e))throw new a("\n '"+t+"' must be a number.\n ");return e});e.EnsureError=a,e.dedent=u,e.Value=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n,r,u=(n=e,r=f.__read(n,1)[0],Array.isArray(r)?r:n),i=u.filter(function(e){return e.isGetter}),o=u.filter(function(e){return!e.isGetter});return function(e,r){Object.defineProperty(e,r,{get:function(){var t=this,n=Reflect.getMetadata(""+l+r,this);return i.forEach(function(e){e.call(t,n,r)}),n},set:function(e){var t=this,n=e;"null"===n&&(n=null),null!=n&&o.forEach(function(e){n=e.call(t,n,r)}),Reflect.defineMetadata(""+l+r,n,this)}})}},e.ensure=s,e.isBool=t,e.isEnum=function(u){var t,n,r,i,o=(t=u,n={},Object.keys(t).forEach(function(e){n[e]=t[e],n[t[e]]=e}),n),f=(r=u,i={},Object.keys(r).forEach(function(e){""+parseInt(e,10)!==e&&(i[e]=r[e])}),i);return s(function(e,t){var n,r=null!=f[e]?f[e]:f[o[e]];if(null==r)throw new a('\n "'+e+"\" is not a valid value for '"+t+"'. You can use one of the following:\n "+(n=u,Object.keys(n).filter(function(e){return isNaN(+e)}).map(function(e){return'"'+e+'"'}).join(",\n "))+"\n ");return r})},e.isNotNull=n,e.isNumber=r,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=trademe-ensure.umd.min.js.map |
@@ -49,3 +49,3 @@ /** | ||
Object.keys(enumT).forEach(key => { | ||
if (isNaN(parseInt(key, 10))) { | ||
if (`${parseInt(key, 10)}` !== key) { | ||
stripped[key] = enumT[key]; | ||
@@ -68,2 +68,2 @@ } | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW51bS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B0cmFkZW1lL2Vuc3VyZS8iLCJzb3VyY2VzIjpbImd1YXJkcy9lbnVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFDQSxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDOUMsT0FBTyxFQUFFLE1BQU0sRUFBUyxNQUFNLGdCQUFnQixDQUFDOzs7Ozs7QUFFL0MsTUFBTSxpQkFBc0IsVUFBYTs7O0lBR3JDLHVCQUFNLE9BQU8sR0FBRyxRQUFRLENBQUMsVUFBVSxDQUFDLENBQUM7SUFDckMsdUJBQU0sUUFBUSxHQUFHLFNBQVMsQ0FBQyxVQUFVLENBQUMsQ0FBQztJQUV2QyxNQUFNLENBQUMsTUFBTSxDQUFDLENBQUMsS0FBVSxFQUFFLEdBQVcsRUFBZ0IsRUFBRTtRQUNwRCx1QkFBTSxTQUFTLEdBQUcsUUFBUSxDQUFDLEtBQUssQ0FBQyxJQUFJLElBQUksQ0FBQyxDQUFDLENBQUMsUUFBUSxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQyxRQUFRLENBQUMsT0FBTyxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUM7UUFDdkYsRUFBRSxDQUFDLENBQUMsU0FBUyxJQUFJLElBQUksQ0FBQyxDQUFDLENBQUM7WUFDc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4gICAgICAgICAgICBgKTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gZW51bVZhbHVlO1xuICAgIH0pO1xufVxuXG5mdW5jdGlvbiBmbGlwRW51bSA8VD4gKGVudW1UOiBUKTogeyBba2V5OiBzdHJpbmddOiBhbnkgfSB7XG4gICAgY29uc3QgZmxpcHBlZCA9IHt9O1xuICAgIE9iamVjdC5rZXlzKGVudW1UKS5mb3JFYWNoKGtleSA9PiB7XG4gICAgICAgIGZsaXBwZWRba2V5XSA9IGVudW1UW2tleV07XG4gICAgICAgIGZsaXBwZWRbZW51bVRba2V5XV0gPSBrZXk7XG4gICAgfSk7XG4gICAgcmV0dXJuIGZsaXBwZWQ7XG59XG5cbmZ1bmN0aW9uIHN0cmlwRW51bSA8VD4gKGVudW1UOiBUKTogeyBba2V5OiBzdHJpbmddOiBhbnkgfSB7XG4gICAgY29uc3Qgc3RyaXBwZWQgPSB7fTtcbiAgICBPYmplY3Qua2V5cyhlbnVtVCkuZm9yRWFjaChrZXkgPT4ge1xuICAgICAgICBpZiAoYCR7cGFyc2VJbnQoa2V5LCAxMCl9YCAhPT0ga2V5KSB7XG4gICAgICAgICAgICBzdHJpcHBlZFtrZXldID0gZW51bVRba2V5XTtcbiAgICAgICAgfVxuICAgIH0pO1xuICAgIHJldHVybiBzdHJpcHBlZDtcbn1cblxuZnVuY3Rpb24gZ2V0VmFsdWVzPFQ+IChlbnVtVDogVCk6IHN0cmluZyB7XG4gICAgcmV0dXJuIE9iamVjdC5rZXlzKGVudW1UKVxuICAgIC5maWx0ZXIoa2V5ID0+IGlzTmFOKCtrZXkpKVxuICAgIC5tYXAoa2V5ID0+IGBcIiR7a2V5fVwiYClcbiAgICAuam9pbignLFxcbiAgICAgICAgICAgICAgICAgICAgJyk7XG59XG4iXX0= |
@@ -46,3 +46,3 @@ /** | ||
Object.keys(enumT).forEach(function (key) { | ||
if (isNaN(parseInt(key, 10))) { | ||
if ("" + parseInt(key, 10) !== key) { | ||
stripped[key] = en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Ck7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIGVudW1WYWx1ZTtcbiAgICB9KTtcbn1cblxuZnVuY3Rpb24gZmxpcEVudW0gPFQ+IChlbnVtVDogVCk6IHsgW2tleTogc3RyaW5nXTogYW55IH0ge1xuICAgIGNvbnN0IGZsaXBwZWQgPSB7fTtcbiAgICBPYmplY3Qua2V5cyhlbnVtVCkuZm9yRWFjaChrZXkgPT4ge1xuICAgICAgICBmbGlwcGVkW2tleV0gPSBlbnVtVFtrZXldO1xuICAgICAgICBmbGlwcGVkW2VudW1UW2tleV1dID0ga2V5O1xuICAgIH0pO1xuICAgIHJldHVybiBmbGlwcGVkO1xufVxuXG5mdW5jdGlvbiBzdHJpcEVudW0gPFQ+IChlbnVtVDogVCk6IHsgW2tleTogc3RyaW5nXTogYW55IH0ge1xuICAgIGNvbnN0IHN0cmlwcGVkID0ge307XG4gICAgT2JqZWN0LmtleXMoZW51bVQpLmZvckVhY2goa2V5ID0+IHtcbiAgICAgICAgaWYgKGlzTmFOKHBhcnNlSW50KGtleSwgMTApKSkge1xuICAgICAgICAgICAgc3RyaXBwZWRba2V5XSA9IGVudW1UW2tleV07XG4gICAgICAgIH1cbiAgICB9KTtcbiAgICByZXR1cm4gc3RyaXBwZWQ7XG59XG5cbmZ1bmN0aW9uIGdldFZhbHVlczxUPiAoZW51bVQ6IFQpOiBzdHJpbmcge1xuICAgIHJldHVybiBPYmplY3Qua2V5cyhlbnVtVClcbiAgICAuZmlsdGVyKGtleSA9PiBpc05hTigra2V5KSlcbiAgICAubWFwKGtleSA9PiBgXCIke2tleX1cImApXG4gICAgLmpvaW4oJyxcXG4gICAgICAgICAgICAgICAgICAgICcpO1xufVxuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW51bS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B0cmFkZW1lL2Vuc3VyZS8iLCJzb3VyY2VzIjpbImd1YXJkcy9lbnVtL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TtcbiAgICBPYmplY3Qua2V5cyhlbnVtVCkuZm9yRWFjaChrZXkgPT4ge1xuICAgICAgICBmbGlwcGVkW2tleV0gPSBlbnVtVFtrZXldO1xuICAgICAgICBmbGlwcGVkW2VudW1UW2tleV1dID0ga2V5O1xuICAgIH0pO1xuICAgIHJldHVybiBmbGlwcGVkO1xufVxuXG5mdW5jdGlvbiBzdHJpcEVudW0gPFQ+IChlbnVtVDogVCk6IHsgW2tleTogc3RyaW5nXTogYW55IH0ge1xuICAgIGNvbnN0IHN0cmlwcGVkID0ge307XG4gICAgT2JqZWN0LmtleXMoZW51bVQpLmZvckVhY2goa2V5ID0+IHtcbiAgICAgICAgaWYgKGAke3BhcnNlSW50KGtleSwgMTApfWAgIT09IGtleSkge1xuICAgICAgICAgICAgc3RyaXBwZWRba2V5XSA9IGVudW1UW2tleV07XG4gICAgICAgIH1cbiAgICB9KTtcbiAgICByZXR1cm4gc3RyaXBwZWQ7XG59XG5cbmZ1bmN0aW9uIGdldFZhbHVlczxUPiAoZW51bVQ6IFQpOiBzdHJpbmcge1xuICAgIHJldHVybiBPYmplY3Qua2V5cyhlbnVtVClcbiAgICAuZmlsdGVyKGtleSA9PiBpc05hTigra2V5KSlcbiAgICAubWFwKGtleSA9PiBgXCIke2tleX1cImApXG4gICAgLmpvaW4oJyxcXG4gICAgICAgICAgICAgICAgICAgICcpO1xufVxuIl19 |
@@ -165,3 +165,3 @@ /** | ||
Object.keys(enumT).forEach(key => { | ||
if (isNaN(parseInt(key, 10))) { | ||
if (`${parseInt(key, 10)}` !== key) { | ||
stripped[key] = enumT[key]; | ||
@@ -230,2 +230,2 @@ } | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhZGVtZS1lbnN1cmUuanMubWFwIiwic291cmNlcyI6WyJuZzovL0B0cmFkZW1lL2Vuc3VyZS9lbnN1cmUtZXJyb3IudHMiLCJuZzovL0B0cmFkZW1lL2Vuc3VyZS92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ICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHZhbHVlO1xuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKHZhbHVlKSB7XG4gICAgICAgICAgICAgICAgbGV0IGNhc3RWYWx1ZSA9IHZhbHVlO1xuXG4gICAgICAgICAgICAgICAgaWYgKGNhc3RWYWx1ZSA9PT0gJ251bGwnKSB7XG4gICAgICAgICAgICAgICAgICAgIGNhc3RWYWx1ZSA9IG51bGw7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgaWYgKGNhc3RWYWx1ZSAhPSBudWxsKSB7XG4gICAgICAgICAgICAgICAgICAgIHNldHRlcnMuZm9yRWFjaChzZXR0ZXIgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgY2FzdFZhbHVlID0gc2V0dGVyLmNhbGwodGhpcywgY2FzdFZhbHVlLCBwcm9wZXJ0eUtleSk7XG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAoUmVmbGVjdCBhcyBhbnkpLmRlZmluZU1ldGFkYXRhKGAke1ZBTFVFX0tFWX0ke3Byb3BlcnR5S2V5fWAsIGNhc3RWYWx1ZSwgdGhpcyk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgIH07XG59XG5cbmZ1bmN0aW9uIGdldEd1YXJkc0FycmF5IChndWFyZHM6IEFycmF5PEd1YXJkPGFueT4gfCBBcnJheTxHdWFyZDxhbnk+Pj4pOiBBcnJheTxHdWFyZDxhbnk+PiB7XG4gICAgLy8gSGFuZGxlIG9sZCBAVmFsdWUoW2d1YXJkT25lLCBndWFyZFR3b10pIHN5bnRheDpcbiAgICBjb25zdCBbZmlyc3RHdWFyZF0gPSBndWFyZHM7XG4gICAgcmV0dXJuIEFycmF5LmlzQXJyYXkoZmlyc3RHdWFyZCkgPyBmaXJzdEd1YXJkIGFzIEFycmF5PEd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heS5maWx0ZXIoYyA9PiAhYy5pc0dldHRlcik7XG5cbiAgICByZXR1cm4gKHRhcmdldDogYW55LCBwcm9wZXJ0eUtleTogc3RyaW5nKSA9PiB7XG4gICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eSh0YXJnZXQsIHByb3BlcnR5S2V5LCB7XG4gICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICBjb25zdCB2YWx1ZSA9IChSZWZsZWN0IGFzIGFueSkuZ2V0TWV0YWRhdGEoYCR7VkFMVUVfS0VZfSR7cHJvcGVydHlLZXl9YCwgdGhpcyk7XG4gICAgICAgICAgICAgICAgZ2V0dGVycy5mb3JFYWNoKGdldHRlciA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGdldHRlci5jYWxsKHRoaXMsIHZhbHVlLCBwcm9wZXJ0eUtleSk7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHZhbHVlO1xuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKHZhbHVlKSB7XG4gICAgICAgICAgICAgICAgbGV0IGNhc3RWYWx1ZSA9IHZhbHVlO1xuXG4gICAgICAgICAgICAgICAgaWYgKGNhc3RWYWx1ZSA9PT0gJ251bGwnKSB7XG4gICAgICAgICAgICAgICAgICAgIGNhc3RWYWx1ZSA9IG51bGw7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgaWYgKGNhc3RWYWx1ZSAhPSBudWxsKSB7XG4gICAgICAgICAgICAgICAgICAgIHNldHRlcnMuZm9yRWFjaChzZXR0ZXIgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgY2FzdFZhbHVlID0gc2V0dGVyLmNhbGwodGhpcywgY2FzdFZhbHVlLCBwcm9wZXJ0eUtleSk7XG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgIC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sR0FBRyxJQUFJLEtBQUssQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDO1NBQzFCLEdBQUcsQ0FBQyxHQUFHLElBQUksSUFBSSxHQUFHLEdBQUcsQ0FBQztTQUN0QixJQUFJLENBQUMseUJBQXlCLENBQUMsQ0FBQztDQUNwQzs7Ozs7O0FDN0NELHVCQUdhLFNBQVMsR0FBRyxNQUFNLENBQUMsQ0FBQyxLQUFVLEVBQUUsR0FBUTtJQUNqRCxJQUFJLEtBQUssSUFBSSxJQUFJLEVBQUU7UUFDZixNQUFNLElBQUksV0FBVyxDQUFDO2VBQ2YsR0FBRztTQUNULENBQUMsQ0FBQztLQUNOO0lBQ0QsT0FBTyxLQUFLLENBQUM7Q0FDaEIsRUFBRTtJQUNDLE1BQU0sRUFBRSxJQUFJO0NBQ2YsQ0FBQzs7Ozs7O0FDWkYsdUJBR2EsUUFBUSxHQUFHLE1BQU0sQ0FBQyxDQUFDLEtBQVUsRUFBRSxHQUFXO0lBQ25ELEtBQUssR0FBRyxDQUFDLFVBQVUsQ0FBQyxLQUFLLENBQUMsQ0FBQztJQUMzQixJQUFJLEtBQUssQ0FBQyxLQUFLLENBQUMsRUFBRTtRQUNkLE1BQU0sSUFBSSxXQUFXLENBQUM7ZUFDZixHQUFHO1NBQ1QsQ0FBQyxDQUFDO0tBQ047SUFDRCxPQUFPLEtBQUssQ0FBQztDQUNoQixDQUFDOzs7Ozs7Ozs7Ozs7Ozs7Ozs7OyJ9 |
@@ -167,3 +167,3 @@ import { __extends, __read } from 'tslib'; | ||
Object.keys(enumT).forEach(function (key) { | ||
if (isNaN(parseInt(key, 10))) { | ||
if ("" + parseInt(key, 10) !== key) { | ||
stripped[key] = enumT[key]; | ||
@@ -228,2 +228,2 @@ } | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhZGVtZS1lbnN1cmUuanMubWFwIiwic291cmNlcyI6WyJuZzovL0B0cmFkZW1l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ICAgICAgIGdldHRlci5jYWxsKHRoaXMsIHZhbHVlLCBwcm9wZXJ0eUtleSk7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHZhbHVlO1xuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKHZhbHVlKSB7XG4gICAgICAgICAgICAgICAgbGV0IGNhc3RWYWx1ZSA9IHZhbHVlO1xuXG4gICAgICAgICAgICAgICAgaWYgKGNhc3RWYWx1ZSA9PT0gJ251bGwnKSB7XG4gICAgICAgICAgICAgICAgICAgIGNhc3RWYWx1ZSA9IG51bGw7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgaWYgKGNhc3RWYWx1ZSAhPSBudWxsKSB7XG4gICAgICAgICAgICAgICAgICAgIHNldHRlcnMuZm9yRWFjaChzZXR0ZXIgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgY2FzdFZhbHVlID0gc2V0dGVyLmNhbGwodGhpcywgY2FzdFZhbHVlLCBwcm9wZXJ0eUtleSk7XG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAoUmVmbGVjdCBhcyBhbnkpLmRlZmluZU1ldGFkYXRhKGAke1ZBTFVFX0tFWX0ke3Byb3BlcnR5S2V5fWAsIGNhc3RWYWx1ZSwgdGhpcyk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgIH07XG59XG5cbmZ1bmN0aW9uIGdldEd1YXJkc0FycmF5IChndWFyZHM6IEFycmF5PEd1YXJkPGFueT4gfCBBcnJheTxHdWFyZDxhbnk+Pj4pOiBBcnJheTxHdWFyZDxhbnk+PiB7XG4gICAgLy8gSGFuZGxlIG9sZCBAVmFsdWUoW2d1YXJkT25lLCBndWFyZFR3b10pIHN5bnRheDpcbiAgICBjb25zdCBbZmlyc3RHdWFyZF0gPSBndWFyZHM7XG4gICAgcmV0dXJuIE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Q25ELEtBQUssR0FBRyxDQUFDLFVBQVUsQ0FBQyxLQUFLLENBQUMsQ0FBQztJQUMzQixJQUFJLEtBQUssQ0FBQyxLQUFLLENBQUMsRUFBRTtRQUNkLE1BQU0sSUFBSSxXQUFXLENBQUMsb0JBQ2YsR0FBRyxrQ0FDVCxDQUFDLENBQUM7S0FDTjtJQUNELE9BQU8sS0FBSyxDQUFDO0NBQ2hCLENBQUM7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7In0= |
{ | ||
"name": "@trademe/ensure", | ||
"version": "0.2.0-beta.3", | ||
"version": "0.2.0-beta.4", | ||
"peerDependencies": { | ||
@@ -5,0 +5,0 @@ "@angular/common": "^6.0.0-rc.0 || ^6.0.0", |
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
172972