@trademe/ensure
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -0,0 +0,0 @@ (function (global, factory) { |
@@ -0,0 +0,0 @@ export declare class EnsureError extends Error { |
@@ -34,2 +34,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW5zdXJlLWVycm9yLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHRyYWRlbWUvZW5zdXJlLyIsInNvdXJjZXMiOlsiZW5zdXJlLWVycm9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxNQUFNLE9BQU8sV0FBWSxTQUFRLEtBQUs7Ozs7SUFDbEMsWUFDSSxPQUFnQjtRQUVoQixLQUFLLENBQUMsTUFBTSxDQUFDLE9BQU8sQ0FBQyxDQUFDLENBQUM7UUFDdkIsTUFBTSxDQUFDLGNBQWMsQ0FBQyxJQUFJLEVBQUUsR0FBRyxDQUFDLE1BQU0sQ0FBQyxTQUFTLENBQUMsQ0FBQztJQUN0RCxDQUFDO0NBQ0o7Ozs7O0FBRUQsTUFBTSxVQUFVLE1BQU0sQ0FBRSxHQUFXOztVQUN6QixLQUFLLEdBQUcsR0FBRyxDQUFDLEtBQUssQ0FBQyxJQUFJLENBQUM7O1VBQ3ZCLGFBQWEsR0FBRyxLQUFLLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxFQUFFOztjQUNsQyxlQUFlLEdBQUcsQ0FBQyxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUM7UUFDdEMsSUFBSSxlQUFlLEdBQUcsQ0FBQyxFQUFFO1lBQ3JCLE9BQU8sQ0FBQyxDQUFDO1NBQ1o7UUFDRCxPQUFPLGVBQWUsR0FBRyxDQUFDLENBQUMsQ0FBQyxDQUFDLGVBQWUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDO0lBQ3JELENBQUMsRUFBRSxRQUFRLENBQUM7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ELE9BQU8sUUFBUSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQztBQUMvQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNsYXNzIEVuc3VyZUVycm9yIGV4dGVuZHMgRXJyb3Ige1xyXG4gICAgY29uc3RydWN0b3IoXHJcbiAgICAgICAgbWVzc2FnZT86IHN0cmluZ1xyXG4gICAgKSB7XHJcbiAgICAgICAgc3VwZXIoZGVkZW50KG1lc3NhZ2UpKTtcclxuICAgICAgICBPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcywgbmV3LnRhcmdldC5wcm90b3R5cGUpO1xyXG4gICAgfVxyXG59XHJcblxyXG5leHBvcnQgZnVuY3Rpb24gZGVkZW50IChzdHI6IHN0cmluZyk6IHN0cmluZyB7XHJcbiAgICBjb25zdCBsaW5lcyA9IHN0ci5zcGxpdCgvXFxuLyk7XHJcbiAgICBjb25zdCBtaW5XaGlwZVNwYWNlID0gbGluZXMucmVkdWNlKChwLCBuKSA9PiB7XHJcbiAgICAgICAgY29uc3Qgd2hpdGVzcGFjZUNvdW50ID0gbi5zZWFyY2goL1xcUy8pO1xyXG4gICAgICAgIGlmICh3aGl0ZXNwYWNlQ291bnQgPCAwKSB7XHJcbiAgICAgICAgICAgIHJldHVybiBwO1xyXG4gICAgICAgIH1cclxuICAgICAgICByZXR1cm4gd2hpdGVzcGFjZUNvdW50IDwgcCA/IHdoaXRlc3BhY2VDb3VudCA6IHA7XHJcbiAgICB9LCBJbmZpbml0eSk7XHJcblxyXG4gICAgY29uc3QgbmV3TGluZXMgPSBsaW5lcy5tYXAobCA9PiBsLnN1YnN0cihtaW5XaGlwZVNwYWNlKSk7XHJcbiAgICByZXR1cm4gbmV3TGluZXMuam9pbignXFxuJyk7XHJcbn1cclxuIl19 |
@@ -5,2 +5,2 @@ /** | ||
*/ | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3VhcmQtY29uZm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VCk6IHsgW2tleTogc3RyaW5nXTogYW55IH0ge1xuICAgIGNvbnN0IGZsaXBwZWQgPSB7fTtcbiAgICBPYmplY3Qua2V5cyhlbnVtVCkuZm9yRWFjaChrZXkgPT4ge1xuICAgICAgICBmbGlwcGVkW2tleV0gPSBlbnVtVFtrZXldO1xuICAgICAgICBmbGlwcGVkW2VudW1UW2tleV1dID0ga2V5O1xuICAgIH0pO1xuICAgIHJldHVybiBmbGlwcGVkO1xufVxuXG5mdW5jdGlvbiBzdHJpcEVudW0gPFQ+IChlbnVtVDogVCk6IHsgW2tleTogc3RyaW5nXTogYW55IH0ge1xuICAgIGNvbnN0IHN0cmlwcGVkID0ge307XG4gICAgT2JqZWN0LmtleXMoZW51bVQpLmZvckVhY2goa2V5ID0+IHtcbiAgICAgICAgaWYgKGAke3BhcnNlSW50KGtleSwgMTApfWAgIT09IGtleSkge1xuICAgICAgICAgICAgc3RyaXBwZWRba2V5XSA9IGVudW1UW2tleV07XG4gICAgICAgIH1cbiAgICB9KTtcbiAgICByZXR1cm4gc3RyaXBwZWQ7XG59XG5cbmZ1bmN0aW9uIGdldFZhbHVlczxUPiAoZW51bVQ6IFQpOiBzdHJpbmcge1xuICAgIHJldHVybiBPYmplY3Qua2V5cyhlbnVtVClcbiAgICAuZmlsdGVyKGtleSA9PiBpc05hTigra2V5KSlcbiAgICAubWFwKGtleSA9PiBgXCIke2tleX1cImApXG4gICAgLmpvaW4oJyxcXG4gICAgICAgICAgICAgICAgICAgICcpO1xufVxuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW51bS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B0cmFkZW1lL2Vuc3VyZS8iLCJzb3VyY2VzIjpbImd1YXJkcy9lbnVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQ0EsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0F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FtlbnVtVFtrZXldXSA9IGtleTtcclxuICAgIH0pO1xyXG4gICAgcmV0dXJuIGZsaXBwZWQ7XHJcbn1cclxuXHJcbmZ1bmN0aW9uIHN0cmlwRW51bSA8VD4gKGVudW1UOiBUKTogeyBba2V5OiBzdHJpbmddOiBhbnkgfSB7XHJcbiAgICBjb25zdCBzdHJpcHBlZCA9IHt9O1xyXG4gICAgT2JqZWN0LmtleXMoZW51bVQpLmZvckVhY2goa2V5ID0+IHtcclxuICAgICAgICBpZiAoYCR7cGFyc2VJbnQoa2V5LCAxMCl9YCAhPT0ga2V5KSB7XHJcbiAgICAgICAgICAgIHN0cmlwcGVkW2tleV0gPSBlbnVtVFtrZXldO1xyXG4gICAgICAgIH1cclxuICAgIH0pO1xyXG4gICAgcmV0dXJuIHN0cmlwcGVkO1xyXG59XHJcblxyXG5mdW5jdGlvbiBnZXRWYWx1ZXM8VD4gKGVudW1UOiBUKTogc3RyaW5nIHtcclxuICAgIHJldHVybiBPYmplY3Qua2V5cyhlbnVtVClcclxuICAgIC5maWx0ZXIoa2V5ID0+IGlzTmFOKCtrZXkpKVxyXG4gICAgLm1hcChrZXkgPT4gYFwiJHtrZXl9XCJgKVxyXG4gICAgLmpvaW4oJyxcXG4gICAgICAgICAgICAgICAgICAgICcpO1xyXG59XHJcbiJdfQ== |
@@ -19,2 +19,2 @@ /** | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90LW51bGwuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdHJhZGVtZS9lbnN1cmUvIiwic291cmNlcyI6WyJndWFyZHMvbm90LW51bGwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFDQSxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDOUMsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLGdCQUFnQixDQUFDOztBQUV4QyxNQUFNLE9BQU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 /** | ||
export { isNumber } from './guards/number'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdHJhZGVtZS9lbnN1cmUvIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsb0NBQWMsZ0JBQWdCLENBQUM7QUFFL0Isc0JBQWMsZUFBZSxDQUFDO0FBRTlCLHVCQUFjLGVBQWUsQ0FBQztBQUU5Qix1QkFBYyxlQUFlLENBQUM7QUFDOUIsdUJBQWMsZUFBZSxDQUFDO0FBQzlCLDBCQUFjLG1CQUFtQixDQUFDO0FBQ2xDLHlCQUFjLGlCQUFpQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9lbnN1cmUtZXJyb3InO1xuXG5leHBvcnQgKiBmcm9tICcuL3ZhbHVlL3ZhbHVlJztcblxuZXhwb3J0ICogZnJvbSAnLi9ndWFyZC9ndWFyZCc7XG5cbmV4cG9ydCAqIGZyb20gJy4vZ3VhcmRzL2Jvb2wnO1xuZXhwb3J0ICogZnJvbSAnLi9ndWFyZHMvZW51bSc7XG5leHBvcnQgKiBmcm9tICcuL2d1YXJkcy9ub3QtbnVsbCc7XG5leHBvcnQgKiBmcm9tICcuL2d1YXJkcy9udW1iZXInO1xuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdHJhZGVtZS9lbnN1cmUvIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsb0NBQWMsZ0JBQWdCLENBQUM7QUFFL0Isc0JBQWMsZUFBZSxDQUFDO0FBRTlCLHVCQUFjLGVBQWUsQ0FBQztBQUU5Qix1QkFBYyxlQUFlLENBQUM7QUFDOUIsdUJBQWMsZUFBZSxDQUFDO0FBQzlCLDBCQUFjLG1CQUFtQixDQUFDO0FBQ2xDLHlCQUFjLGlCQUFpQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9lbnN1cmUtZXJyb3InO1xyXG5cclxuZXhwb3J0ICogZnJvbSAnLi92YWx1ZS92YWx1ZSc7XHJcblxyXG5leHBvcnQgKiBmcm9tICcuL2d1YXJkL2d1YXJkJztcclxuXHJcbmV4cG9ydCAqIGZyb20gJy4vZ3VhcmRzL2Jvb2wnO1xyXG5leHBvcnQgKiBmcm9tICcuL2d1YXJkcy9lbnVtJztcclxuZXhwb3J0ICogZnJvbSAnLi9ndWFyZHMvbm90LW51bGwnO1xyXG5leHBvcnQgKiBmcm9tICcuL2d1YXJkcy9udW1iZXInO1xyXG4iXX0= |
@@ -6,2 +6,2 @@ /** | ||
export { dedent, EnsureError, Value, ensure, isBool, isEnum, isNotNull, isNumber } from './index'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B0cmFkZW1lL2Vuc3VyZS8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLHdGQUFjLFNBQVMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B0cmFkZW1lL2Vuc3VyZS8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLHdGQUFjLFNBQVMsQ0FBQyIsInNvdXJjZXNDb250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gPSB2YWx1ZTtcblxuICAgICAgICAgICAgICAgIGlmIChjYXN0VmFsdWUgPT09ICdudWxsJykge1xuICAgICAgICAgICAgICAgICAgICBjYXN0VmFsdWUgPSBudWxsO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGlmIChjYXN0VmFsdWUgIT0gbnVsbCkge1xuICAgICAgICAgICAgICAgICAgICBzZXR0ZXJzLmZvckVhY2goc2V0dGVyID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNhc3RWYWx1ZSA9IHNldHRlci5jYWxsKHRoaXMsIGNhc3RWYWx1ZSwgcHJvcGVydHlLZXkpO1xuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgKFJlZmxlY3QgYXMgYW55KS5kZWZpbmVNZXRhZGF0YShgJHtWQUxVRV9LRVl9JHtwcm9wZXJ0eUtleX1gLCBjYXN0VmFsdWUsIHRoaXMpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICB9O1xufVxuXG5mdW5jdGlvbiBnZXRHdWFyZHNBcnJheSAoZ3VhcmRzOiBBcnJheTxHdWFyZDxhbnk+IHwgQXJyYXk8R3VhcmQ8YW55Pj4+KTogQXJyYXk8R3VhcmQ8YW55Pj4ge1xuICAgIC8vIEhhbmRsZSBvbGQgQFZhbHVlKFtndWFyZE9uZSwgZ3VhcmRUd29dKSBzeW50YXg6XG4gICAgY29uc3QgW2ZpcnN0R3VhcmRdID0gZ3VhcmRzO1xuICAgIHJldHVybiBBcnJheS5pc0FycmF5KGZpcnN0R3VhcmQpID8gZmlyc3RHdWFyZCBhcyBBcnJheTxHdWFyZDxhbnk+PiA6IGd1YXJkcyBhcyBBcnJheTxHdWFyZDxhbnk+Pjtcbn1cbiJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdWUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9A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cclxuXHJcbiAgICAgICAgICAgICAgICBpZiAoY2FzdFZhbHVlICE9IG51bGwpIHtcclxuICAgICAgICAgICAgICAgICAgICBzZXR0ZXJzLmZvckVhY2goc2V0dGVyID0+IHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgY2FzdFZhbHVlID0gc2V0dGVyLmNhbGwodGhpcywgY2FzdFZhbHVlLCBwcm9wZXJ0eUtleSk7XHJcbiAgICAgICAgICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICAoUmVmbGVjdCBhcyBhbnkpLmRlZmluZU1ldGFkYXRhKGAke1ZBTFVFX0tFWX0ke3Byb3BlcnR5S2V5fWAsIGNhc3RWYWx1ZSwgdGhpcyk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9KTtcclxuICAgIH07XHJcbn1cclxuXHJcbmZ1bmN0aW9uIGdldEd1YXJkc0FycmF5IChndWFyZHM6IEFycmF5PEd1YXJkPGFueT4gfCBBcnJheTxHdWFyZDxhbnk+Pj4pOiBBcnJheTxHdWFyZDxhbnk+PiB7XHJcbiAgICAvLyBIYW5kbGUgb2xkIEBWYWx1ZShbZ3VhcmRPbmUsIGd1YXJkVHdvXSkgc3ludGF4OlxyXG4gICAgY29uc3QgW2ZpcnN0R3VhcmRdID0gZ3VhcmRzO1xyXG4gICAgcmV0dXJuIEFycmF5LmlzQXJyYXkoZmlyc3RHdWFyZCkgPyBmaXJzdEd1YXJkIGFzIEFycmF5PEd1YXJkPGFueT4+IDogZ3VhcmRzIGFzIEFycmF5PEd1YXJkPGFueT4+O1xyXG59XHJcbiJdfQ== |
@@ -37,2 +37,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW5zdXJlLWVycm9yLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHRyYWRlbWUvZW5zdXJlLyIsInNvdXJjZXMiOlsiZW5zdXJlLWVycm9yLnR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tcclxuICAgICAgICBPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcywgbmV3LnRhcmdldC5wcm90b3R5cGUpO1xyXG4gICAgfVxyXG59XHJcblxyXG5leHBvcnQgZnVuY3Rpb24gZGVkZW50IChzdHI6IHN0cmluZyk6IHN0cmluZyB7XHJcbiAgICBjb25zdCBsaW5lcyA9IHN0ci5zcGxpdCgvXFxuLyk7XHJcbiAgICBjb25zdCBtaW5XaGlwZVNwYWNlID0gbGluZXMucmVkdWNlKChwLCBuKSA9PiB7XHJcbiAgICAgICAgY29uc3Qgd2hpdGVzcGFjZUNvdW50ID0gbi5zZWFyY2goL1xcUy8pO1xyXG4gICAgICAgIGlmICh3aGl0ZXNwYWNlQ291bnQgPCAwKSB7XHJcbiAgICAgICAgICAgIHJldHVybiBwO1xyXG4gICAgICAgIH1cclxuICAgICAgICByZXR1cm4gd2hpdGVzcGFjZUNvdW50IDwgcCA/IHdoaXRlc3BhY2VDb3VudCA6IHA7XHJcbiAgICB9LCBJbmZpbml0eSk7XHJcblxyXG4gICAgY29uc3QgbmV3TGluZXMgPSBsaW5lcy5tYXAobCA9PiBsLnN1YnN0cihtaW5XaGlwZVNwYWNlKSk7XHJcbiAgICByZXR1cm4gbmV3TGluZXMuam9pbignXFxuJyk7XHJcbn1cclxuIl19 |
@@ -5,2 +5,2 @@ /** | ||
*/ | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3VhcmQtY29uZmlnLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHRyYWRlbWUvZW5zdXJlLyIsInNvdXJjZXMiOlsiZ3VhcmQvZ3VhcmQtY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgdHlwZSBHdWFyZENvbmZpZyA9IHtcbiAgICBnZXR0ZXI/OiBib29sZWFuXG59O1xuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ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29uc3QgZW51bVZhbHVlID0gc3RyaXBwZWRbdmFsdWVdICE9IG51bGwgPyBzdHJpcHBlZFt2YWx1ZV0gOiBzdHJpcHBlZFtmbGlwcGVkW3ZhbHVlXV07XHJcbiAgICAgICAgaWYgKGVudW1WYWx1ZSA9PSBudWxsKSB7XHJcbiAgICAgICAgICAgIHRocm93IG5ldyBFbnN1cmVFcnJvcihgXHJcbiAgICAgICAgICAgICAgICBcIiR7dmFsdWV9XCIgaXMgbm90IGEgdmFsaWQgdmFsdWUgZm9yICcke2tleX0nLiBZb3UgY2FuIHVzZSBvbmUgb2YgdGhlIGZvbGxvd2luZzpcclxuICAgICAgICAgICAgICAgICAgICAke2dldFZhbHVlczxUPihlbnVtVmFsdWVzKX1cclxuICAgICAgICAgICAgYCk7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIHJldHVybiBlbnVtVmFsdWU7XHJcbiAgICB9KTtcclxufVxyXG5cclxuZnVuY3Rpb24gZmxpcEVudW0gPFQ+IChlbnVtVDogVCk6IHsgW2tleTogc3RyaW5nXTogYW55IH0ge1xyXG4gICAgY29uc3QgZmxpcHBlZCA9IHt9O1xyXG4gICAgT2JqZWN0LmtleXMoZW51bVQpLmZvckVhY2goa2V5ID0+IHtcclxuICAgICAgICBmbGlwcGVkW2tleV0gPSBlbnVtVFtrZXldO1xyXG4gICAgICAgIGZsaXBwZWRbZW51bVRba2V5XV0gPSBrZXk7XHJcbiAgICB9KTtcclxuICAgIHJldHVybiBmbGlwcGVkO1xyXG59XHJcblxyXG5mdW5jdGlvbiBzdHJpcEVudW0gPFQ+IChlbnVtVDogVCk6IHsgW2tleTogc3RyaW5nXTogYW55IH0ge1xyXG4gICAgY29uc3Qgc3RyaXBwZWQgPSB7fTtcclxuICAgIE9iamVjdC5rZXlzKGVudW1UKS5mb3JFYWNoKGtleSA9PiB7XHJcbiAgICAgICAgaWYgKGAke3BhcnNlSW50KGtleSwgMTApfWAgIT09IGtleSkge1xyXG4gICAgICAgICAgICBzdHJpcHBlZFtrZXldID0gZW51bVRba2V5XTtcclxuICAgICAgICB9XHJcbiAgICB9KTtcclxuICAgIHJldHVybiBzdHJpcHBlZDtcclxufVxyXG5cclxuZnVuY3Rpb24gZ2V0VmFsdWVzPFQ+IChlbnVtVDogVCk6IHN0cmluZyB7XHJcbiAgICByZXR1cm4gT2JqZWN0LmtleXMoZW51bVQpXHJcbiAgICAuZmlsdGVyKGtleSA9PiBpc05hTigra2V5KSlcclxuICAgIC5tYXAoa2V5ID0+IGBcIiR7a2V5fVwiYClcclxuICAgIC5qb2luKCcsXFxuICAgICAgICAgICAgICAgICAgICAnKTtcclxufVxyXG4iXX0= |
@@ -17,2 +17,2 @@ /** | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90LW51bGwuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdHJhZGVtZS9lbnN1cmUvIiwic291cmNlcyI6WyJndWFyZHMvbm90LW51bGwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFDQSxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDOUMsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLGdCQUFnQixDQUFDOztBQUV4QyxNQUFNLEtBQU8sU0FBUyxHQUFHLE1BQU0sQ0FBQyxVQUFDLEtBQVUsRUFBRSxHQUFRO0lBQ2pELElBQUksS0FBSyxJQUFJLElBQUksRUFBRTtRQUNmLE1BQU0sSUFBSSxXQUFXLENBQUMsb0JBQ2YsR0FBRyx1REFDVCxDQUFDLENBQUM7S0FDTjtJQUNELE9BQU8sS0FBSyxDQUFDO0FBQ2pCLENBQUMsRUFBRTtJQUNDLE1BQU0sRUFBRSxJQUFJO0NBQ2YsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8vIERlcGVuZGVuY2llczpcbmltcG9ydCB7IEVuc3VyZUVycm9yIH0gZnJvbSAnLi4v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2QsTUFBTSxJQUFJLFdBQVcsQ0FBQyxvQkFDZixHQUFHLGtDQUNULENBQUMsQ0FBQztLQUNOO0lBQ0QsT0FBTyxLQUFLLENBQUM7QUFDakIsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLy8gRGVwZW5kZW5jaWVzOlxyXG5pbXBvcnQgeyBFbnN1cmVFcnJvciB9IGZyb20gJy4uL2Vuc3VyZS1lcnJvcic7XHJcbmltcG9ydCB7IGVuc3VyZSB9IGZyb20gJy4uL2d1YXJkL2d1YXJkJztcclxuXHJcbmV4cG9ydCBjb25zdCBpc051bWJlciA9IGVuc3VyZSgodmFsdWU6IGFueSwga2V5OiBzdHJpbmcpOiBudW1iZXIgPT4ge1xyXG4gICAgdmFsdWUgPSArcGFyc2VGbG9hdCh2YWx1ZSk7XHJcbiAgICBpZiAoaXNOYU4odmFsdWUpKSB7XHJcbiAgICAgICAgdGhyb3cgbmV3IEVuc3VyZUVycm9yKGBcclxuICAgICAgICAgICAgJyR7a2V5fScgbXVzdCBiZSBhIG51bWJlci5cclxuICAgICAgICBgKTtcclxuICAgIH1cclxuICAgIHJldHVybiB2YWx1ZTtcclxufSk7XHJcbiJdfQ== |
@@ -12,2 +12,2 @@ /** | ||
export { isNumber } from './guards/number'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdHJhZGVtZS9lbnN1cmUvIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsb0NBQWMsZ0JBQWdCLENBQUM7QUFFL0Isc0JBQWMsZUFBZSxDQUFDO0FBRTlCLHVCQUFjLGVBQWUsQ0FBQztBQUU5Qix1QkFBYyxlQUFlLENBQUM7QUFDOUIsdUJBQWMsZUFBZSxDQUFDO0FBQzlCLDBCQUFjLG1CQUFtQixDQUFDO0FBQ2xDLHlCQU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W51bGwnO1xyXG5leHBvcnQgKiBmcm9tICcuL2d1YXJkcy9udW1iZXInO1xyXG4iXX0= |
@@ -6,2 +6,2 @@ /** | ||
export { dedent, EnsureError, Value, ensure, isBool, isEnum, isNotNull, isNumber } from './index'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B0cmFkZW1lL2Vuc3VyZS8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLHdGQUFjLFNBQVMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B0cmFkZW1lL2Vuc3VyZS8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLHdGQUFjLFNBQVMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xyXG4iXX0= |
@@ -0,0 +0,0 @@ /** |
@@ -61,2 +61,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdWUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdHJhZGVtZS9lbnN1cmUvIiwic291cmNlcyI6WyJ2YWx1ZS92YWx1ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0lBS00sU0FBUyxHQUFHLFVBQVU7Ozs7O0FBRTVCLE1BQU0sVUFBVSxLQUFLO0lBQUUsZ0JBQWdEO1NBQWhELFVBQWdELEVBQWhELHFCQUF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YXJkc0FycmF5LmZpbHRlcihjID0+IGMuaXNHZXR0ZXIpO1xuICAgIGNvbnN0IHNldHRlcnMgPSBndWFyZHNBcnJheS5maWx0ZXIoYyA9PiAhYy5pc0dldHRlcik7XG5cbiAgICByZXR1cm4gKHRhcmdldDogYW55LCBwcm9wZXJ0eUtleTogc3RyaW5nKSA9PiB7XG4gICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eSh0YXJnZXQsIHByb3BlcnR5S2V5LCB7XG4gICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICBjb25zdCB2YWx1ZSA9IChSZWZsZWN0IGFzIGFueSkuZ2V0TWV0YWRhdGEoYCR7VkFMVUVfS0VZfSR7cHJvcGVydHlLZXl9YCwgdGhpcyk7XG4gICAgICAgICAgICAgICAgZ2V0dGVycy5mb3JFYWNoKGdldHRlciA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGdldHRlci5jYWxsKHRoaXMsIHZhbHVlLCBwcm9wZXJ0eUtleSk7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHZhbHVlO1xuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKHZhbHVlKSB7XG4gICAgICAgICAgICAgICAgbGV0IGNhc3RWYWx1ZSA9IHZhbHVlO1xuXG4gICAgICAgICAgICAgICAgaWYgKGNhc3RWYWx1ZSA9PT0gJ251bGwnKSB7XG4gICAgICAgICAgICAgICAgICAgIGNhc3RWYWx1ZSA9IG51bGw7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgaWYgKGNhc3RWYWx1ZSAhPSBudWxsKSB7XG4gICAgICAgICAgICAgICAgICAgIHNldHRlcnMuZm9yRWFjaChzZXR0ZXIgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgY2FzdFZhbHVlID0gc2V0dGVyLmNhbGwodGhpcywgY2FzdFZhbHVlLCBw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dGVyKGMgPT4gIWMuaXNHZXR0ZXIpO1xyXG5cclxuICAgIHJldHVybiAodGFyZ2V0OiBhbnksIHByb3BlcnR5S2V5OiBzdHJpbmcpID0+IHtcclxuICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkodGFyZ2V0LCBwcm9wZXJ0eUtleSwge1xyXG4gICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHtcclxuICAgICAgICAgICAgICAgIGNvbnN0IHZhbHVlID0gKFJlZmxlY3QgYXMgYW55KS5nZXRNZXRhZGF0YShgJHtWQUxVRV9LRVl9JHtwcm9wZXJ0eUtleX1gLCB0aGlzKTtcclxuICAgICAgICAgICAgICAgIGdldHRlcnMuZm9yRWFjaChnZXR0ZXIgPT4ge1xyXG4gICAgICAgICAgICAgICAgICAgIGdldHRlci5jYWxsKHRoaXMsIHZhbHVlLCBwcm9wZXJ0eUtleSk7XHJcbiAgICAgICAgICAgICAgICB9KTtcclxuICAgICAgICAgICAgICAgIHJldHVybiB2YWx1ZTtcclxuICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgc2V0OiBmdW5jdGlvbiAodmFsdWUpIHtcclxuICAgICAgICAgICAgICAgIGxldCBjYXN0VmFsdWUgPSB2YWx1ZTtcclxuXHJcbiAgICAgICAgICAgICAgICBpZiAoY2FzdFZhbHVlID09PSAnbnVsbCcpIHtcclxuICAgICAgICAgICAgICAgICAgICBjYXN0VmFsdWUgPSBudWxsO1xyXG4gICAgICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgICAgIGlmIChjYXN0VmFsdWUgIT0gbnVsbCkge1xyXG4gICAgICAgICAgICAgICAgICAgIHNldHRlcnMuZm9yRWFjaChzZXR0ZXIgPT4ge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBjYXN0VmFsdWUgPSBzZXR0ZXIuY2FsbCh0aGlzLCBjYXN0VmFsdWUsIHByb3BlcnR5S2V5KTtcclxuICAgICAgICAgICAgICAgICAgICB9KTtcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgIChSZWZsZWN0IGFzIGFueSkuZGVmaW5lTWV0YWRhdGEoYCR7VkFMVUVfS0VZfSR7cHJvcGVydHlLZXl9YCwgY2FzdFZhbHVlLCB0aGlzKTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH0pO1xyXG4gICAgfTtcclxufVxyXG5cclxuZnVuY3Rpb24gZ2V0R3VhcmRzQXJyYXkgKGd1YXJkczogQXJyYXk8R3VhcmQ8YW55PiB8IEFycmF5PEd1YXJkPGFueT4+Pik6IEFycmF5PEd1YXJkPGFueT4+IHtcclxuICAgIC8vIEhhbmRsZSBvbGQgQFZhbHVlKFtndWFyZE9uZSwgZ3VhcmRUd29dKSBzeW50YXg6XHJcbiAgICBjb25zdCBbZmlyc3RHdWFyZF0gPSBndWFyZHM7XHJcbiAgICByZXR1cm4gQXJyYXkuaXNBcnJheShmaXJzdEd1YXJkKSA/IGZpcnN0R3VhcmQgYXMgQXJyYXk8R3VhcmQ8YW55Pj4gOiBndWFyZHMgYXMgQXJyYXk8R3VhcmQ8YW55Pj47XHJcbn1cclxuIl19 |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import { __extends, __read } from 'tslib'; |
export declare type GuardConfig = { | ||
getter?: boolean; | ||
}; |
@@ -0,0 +0,0 @@ import { GuardConfig } from './guard-config'; |
export declare const isBool: import("../guard/guard").Guard<boolean>; |
import { Guard } from '../guard/guard'; | ||
export declare function isEnum<T>(enumValues: T): Guard<T>; |
export declare const isNotNull: import("../guard/guard").Guard<any>; |
export declare const isNumber: import("../guard/guard").Guard<number>; |
@@ -0,0 +0,0 @@ export * from './ensure-error'; |
{ | ||
"name": "@trademe/ensure", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"license": "MIT", | ||
"peerDependencies": { | ||
"@angular/common": "^7.2.1", | ||
"@angular/core": "^7.2.1" | ||
"@angular/common": ">=7.0.0", | ||
"@angular/core": ">=7.0.0" | ||
}, | ||
@@ -9,0 +9,0 @@ "main": "bundles/trademe-ensure.umd.js", |
export * from './index'; |
@@ -0,0 +0,0 @@ /** |
import { Guard } from '../guard/guard'; | ||
export declare function Value(...guards: Array<Guard<any> | Array<Guard<any>>>): PropertyDecorator; |
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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
146386
43
1329
1