@sebgroup/frontend-tools
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -6,4 +6,2 @@ export interface SetItemOptions { | ||
maxAge?: number; | ||
/** Secure cookie. Set the security to `true` if you want it to be encrypted in **HTTPS** connections */ | ||
secure?: boolean; | ||
} | ||
@@ -10,0 +8,0 @@ /** |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=16)}({16:function(e,t,o){"use strict";o.r(t);var n=o(4);o.d(t,"CookieStorage",(function(){return n.a}))},4:function(e,t,o){"use strict";o.d(t,"a",(function(){return n}));var n=function(){function e(){}return Object.defineProperty(e.prototype,"length",{get:function(){return this.keys().length},enumerable:!0,configurable:!0}),e.prototype.getItem=function(e){return e&&decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null},e.prototype.setItem=function(e,t,o){if(void 0===o&&(o={}),!e||/^(?:expires|max\-age|path|domain|secure)$/i.test(e))return!1;var n="",r="",u=o&&o.secure?"; Secure":"";return o&&(o.expires&&o.expires instanceof Date&&(n="; Expires="+o.expires.toUTCString()),o.maxAge&&"number"==typeof o.maxAge&&o.maxAge!==1/0&&(r="; Max-age="+o.maxAge)),document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+n+r+u,this.hasItem(e)},e.prototype.removeItem=function(e){return this.hasItem(e)&&(document.cookie=encodeURIComponent(e)+"=; max-age=-1"),!this.hasItem(e)},e.prototype.hasItem=function(e){return!(!e||/^(?:expires|max\-age|path|domain|secure)$/i.test(e))&&new RegExp("(?:^|;\\s*)"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},e.prototype.clear=function(){for(var e=document.cookie.split(";"),t=0;t<e.length;t++){var o=e[t],n=o.indexOf("="),r=n>-1?o.substr(0,n):o,u=n>-1?o.substr(n+1,o.length):"";document.cookie=r+(u?"=":"")+"; max-age=-1"}},e.prototype.keys=function(){for(var e=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),t=e.length,o=0;o<t;o++)e[o]=decodeURIComponent(e[o]);return e},e.prototype.key=function(e){return this.keys()[e]},e}()}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=16)}({16:function(e,t,o){"use strict";o.r(t);var n=o(4);o.d(t,"CookieStorage",(function(){return n.a}))},4:function(e,t,o){"use strict";o.d(t,"a",(function(){return n}));var n=function(){function e(){}return Object.defineProperty(e.prototype,"length",{get:function(){return this.keys().length},enumerable:!0,configurable:!0}),e.prototype.getItem=function(e){return e&&decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null},e.prototype.setItem=function(e,t,o){if(void 0===o&&(o={}),!e||/^(?:expires|max\-age|path|domain|secure)$/i.test(e))return!1;var n="",r="";return o&&(o.expires&&o.expires instanceof Date&&(n="; Expires="+o.expires.toUTCString()),o.maxAge&&"number"==typeof o.maxAge&&o.maxAge!==1/0&&(r="; Max-age="+o.maxAge)),document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+n+r,this.hasItem(e)},e.prototype.removeItem=function(e){return this.hasItem(e)&&(document.cookie=encodeURIComponent(e)+"=; max-age=-1"),!this.hasItem(e)},e.prototype.hasItem=function(e){return!(!e||/^(?:expires|max\-age|path|domain|secure)$/i.test(e))&&new RegExp("(?:^|;\\s*)"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},e.prototype.clear=function(){for(var e=document.cookie.split(";"),t=0;t<e.length;t++){var o=e[t],n=o.indexOf("="),r=n>-1?o.substr(0,n):o,u=n>-1?o.substr(n+1,o.length):"";document.cookie=r+(u?"=":"")+"; max-age=-1"}},e.prototype.keys=function(){for(var e=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),t=e.length,o=0;o<t;o++)e[o]=decodeURIComponent(e[o]);return e},e.prototype.key=function(e){return this.keys()[e]},e}()}})})); |
@@ -6,2 +6,2 @@ /** | ||
*/ | ||
export declare function deepCopy<T = any>(obj: any, hash?: WeakMap<object, any>): T; | ||
export declare function deepCopy<T = any>(obj: T, hash?: WeakMap<object, any>): T; |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=17)}({17:function(e,t,n){"use strict";n.r(t);var r=n(5);n.d(t,"deepCopy",(function(){return r.a}))},2:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function o(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var u=arguments[t],f=0,c=u.length;f<c;f++,o++)r[o]=u[f];return r}},5:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2);function o(e,t){if(void 0===t&&(t=new WeakMap),Object(e)!==e)return e;if(e instanceof Set)return new Set(e);if(t.has(e))return t.get(e);var n=e instanceof Date?new Date(e.getTime()):e instanceof RegExp?new RegExp(e.source,e.flags):e.constructor?new e.constructor:Object.create(null);return t.set(e,n),e instanceof Map&&Array.from(e,(function(e){var r=e[0],u=e[1];return n.set(r,o(u,t))})),Object.assign.apply(Object,Object(r.b)([n],Object.keys(e).map((function(n){var r;return(r={})[n]=o(e[n],t),r}))))}}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=17)}({17:function(e,t,n){"use strict";n.r(t);var r=n(5);n.d(t,"deepCopy",(function(){return r.a}))},2:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function o(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var u=arguments[t],f=0,c=u.length;f<c;f++,o++)r[o]=u[f];return r}},5:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2);function o(e,t){if(void 0===t&&(t=new WeakMap),Object(e)!==e)return e;if(e instanceof Set)return new Set(e);if(t.has(e))return t.get(e);var n=Object.create(null);return e instanceof Date?n=new Date(e.getTime()):e instanceof RegExp?n=new RegExp(e.source,e.flags):e.constructor&&(n=new e.constructor),t.set(e,n),e instanceof Map&&Array.from(e,(function(e){var r=e[0],u=e[1];return n.set(r,o(u,t))})),Object.assign.apply(Object,Object(r.b)([n],Object.keys(e).map((function(n){var r;return(r={})[n]=o(e[n],t),r}))))}}})})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("moment")):"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t(require("moment")):e["@sebgroup/frontend-tools"]=t(e[void 0])}(window,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=33)}({0:function(t,n){t.exports=e},1:function(e,t,n){"use strict";function r(e){return e instanceof Date||(e=new Date(e)),e.setHours(0,0,0,0),e}n.d(t,"a",(function(){return r}))},2:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function o(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)r[o]=a[i];return r}},3:function(e,t,n){"use strict";function r(e){return null==e||!(e instanceof Date)&&(!(e instanceof Function)&&(e instanceof Object&&!(e instanceof Array)?Object.keys(e).length<1:e.length<1))}n.d(t,"a",(function(){return r}))},33:function(e,t,n){"use strict";n.r(t);var r=n(2),o=n(0),a=n.n(o),i=n(3),u=n(6),s=n(7),c=n(5),l=n(1),f=n(8),d=function(e,t){this.value=null,this.specs={},this.validations=[],this.name=e,this.value=t,this.specs={},this.validations=[]},p=function(){function e(e){if(this.formObject=new Map,this.formObjectErrors={},this.customValidators=[],!Object(i.a)(e)&&"object"==typeof e){var t=Object(c.a)(e);for(var n in this.originalFormObject=t,t)this.formObject.set(n,new d(n,t[n]))}}return e.prototype.addValidation=function(e,t,n){var o=this;return e&&e instanceof Array&&t&&"string"==typeof t&&this.isValidType(t)&&e.length&&e.map((function(e){o.formObject.has(e)&&(o.formObject.get(e).validations.push(t),Object(i.a)(n)||(o.formObject.get(e).specs=Object(r.a)(Object(r.a)({},o.formObject.get(e).specs),n)))})),this},e.prototype.addCustomValidation=function(e,t,n){return e&&e instanceof Array&&e.length&&t&&t instanceof Array&&t.length&&n&&n instanceof Function&&this.customValidators.push({fields:e,errorFields:t,validator:n}),this},e.prototype.getErrors=function(){return this.formObjectErrors},e.prototype.getError=function(e){return this.formObjectErrors[e]},e.prototype.validate=function(){var e=this;return this.formObject.forEach((function(t){if(t.validations.length){var n=void 0,r=0;do{n=e.validateField(t.value,t.validations[r],t.specs),Object(i.a)(n)||(e.formObjectErrors[t.name]=n),r++}while(r<t.validations.length&&!n)}})),this.customValidators.length&&this.customValidators.map((function(t){var n=t.validator(e.originalFormObject);t.errorFields.map((function(t){e.formObject.has(t)&&!e.getError(t)&&n&&(e.formObjectErrors[t]=n)}))})),this},e.prototype.validateField=function(e,t,n){var r=null;switch(t){case"required":return Object(i.a)(e)?{errorCode:"empty"}:null;case"isDate":return e instanceof Date?null:{errorCode:"invalidDate"};case"noWhitespace":return e&&""===e.trim()?{errorCode:"isWhitespace"}:null;case"dateRange":return e instanceof Date?(n.minDate&&(r=a()(Object(l.a)(e)).isBefore(Object(l.a)(n.minDate))?{errorCode:"beforeMinDate",specs:{minDate:n.minDate}}:null),!r&&n.maxDate&&(r=a()(Object(l.a)(e)).isAfter(Object(l.a)(n.maxDate))?{errorCode:"afterMaxDate",specs:{maxDate:n.maxDate}}:null),r):{errorCode:"invalidDate"};case"textLength":return"string"==typeof e?(n.minLength&&(r=e.length<n.minLength?{errorCode:"lessThanMinLength",specs:{minLength:n.minLength}}:null),!r&&n.maxLength&&(r=e.length>n.maxLength?{errorCode:"moreThanMaxLength",specs:{maxLength:n.maxLength}}:null),r):{errorCode:"invalidInput"};case"valueRange":return"number"==typeof e?(n.minValue&&(r=e<n.minValue?{errorCode:"lessThanMinValue",specs:{minValue:n.minValue}}:null),!r&&n.maxValue&&(r=e>n.maxValue?{errorCode:"moreThanMaxValue",specs:{maxValue:n.maxValue}}:null),r):{errorCode:"invalidInput"};case"validEmail":return Object(s.a)(e)?null:{errorCode:"invalidEmail"};case"strongPassword":return Object(f.a)(e)?null:{errorCode:"weakPassword"};case"isPhoneNumber":return Object(u.a)(e)?null:{errorCode:"invalidPhoneNumber"}}},e.prototype.isValidType=function(e){return{required:!0,isDate:!0,noWhitespace:!0,dateRange:!0,textLength:!0,valueRange:!0,validEmail:!0,strongPassword:!0,isPhoneNumber:!0}.hasOwnProperty(e)},e}();n.d(t,"FormValidator",(function(){return p}))},5:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2);function o(e,t){if(void 0===t&&(t=new WeakMap),Object(e)!==e)return e;if(e instanceof Set)return new Set(e);if(t.has(e))return t.get(e);var n=e instanceof Date?new Date(e.getTime()):e instanceof RegExp?new RegExp(e.source,e.flags):e.constructor?new e.constructor:Object.create(null);return t.set(e,n),e instanceof Map&&Array.from(e,(function(e){var r=e[0],a=e[1];return n.set(r,o(a,t))})),Object.assign.apply(Object,Object(r.b)([n],Object.keys(e).map((function(n){var r;return(r={})[n]=o(e[n],t),r}))))}},6:function(e,t,n){"use strict";function r(e){return new RegExp(/^(0)?([0-9]{7,13})$/g).test(String(e))}n.d(t,"a",(function(){return r}))},7:function(e,t,n){"use strict";function r(e){return new RegExp(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/).test(e)}n.d(t,"a",(function(){return r}))},8:function(e,t,n){"use strict";function r(e){return/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-_]).{8,}$/.test(e)}n.d(t,"a",(function(){return r}))}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("moment")):"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t(require("moment")):e["@sebgroup/frontend-tools"]=t(e[void 0])}(window,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=33)}({0:function(t,n){t.exports=e},1:function(e,t,n){"use strict";function r(e){return e instanceof Date||(e=new Date(e)),e.setHours(0,0,0,0),e}n.d(t,"a",(function(){return r}))},2:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function o(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)r[o]=a[i];return r}},3:function(e,t,n){"use strict";function r(e){return null==e||!(e instanceof Date)&&(!(e instanceof Function)&&(e instanceof Object&&!(e instanceof Array)?Object.keys(e).length<1:e.length<1))}n.d(t,"a",(function(){return r}))},33:function(e,t,n){"use strict";n.r(t);var r=n(2),o=n(0),a=n.n(o),i=n(3),u=n(6),s=n(7),c=n(5),l=n(1),f=n(8),d=function(e,t){this.value=null,this.specs={},this.validations=[],this.name=e,this.value=t,this.specs={},this.validations=[]},p=function(){function e(e){if(this.formObject=new Map,this.formObjectErrors={},this.customValidators=[],!Object(i.a)(e)&&"object"==typeof e){var t=Object(c.a)(e);for(var n in this.originalFormObject=t,t)this.formObject.set(n,new d(n,t[n]))}}return e.prototype.addValidation=function(e,t,n){var o=this;return e&&e instanceof Array&&t&&"string"==typeof t&&this.isValidType(t)&&e.length&&e.map((function(e){o.formObject.has(e)&&(o.formObject.get(e).validations.push(t),Object(i.a)(n)||(o.formObject.get(e).specs=Object(r.a)(Object(r.a)({},o.formObject.get(e).specs),n)))})),this},e.prototype.addCustomValidation=function(e,t,n){return e&&e instanceof Array&&e.length&&t&&t instanceof Array&&t.length&&n&&n instanceof Function&&this.customValidators.push({fields:e,errorFields:t,validator:n}),this},e.prototype.getErrors=function(){return this.formObjectErrors},e.prototype.getError=function(e){return this.formObjectErrors[e]},e.prototype.validate=function(){var e=this;return this.formObject.forEach((function(t){if(t.validations.length){var n=void 0,r=0;do{n=e.validateField(t.value,t.validations[r],t.specs),Object(i.a)(n)||(e.formObjectErrors[t.name]=n),r++}while(r<t.validations.length&&!n)}})),this.customValidators.length&&this.customValidators.map((function(t){var n=t.validator(e.originalFormObject);t.errorFields.map((function(t){e.formObject.has(t)&&!e.getError(t)&&n&&(e.formObjectErrors[t]=n)}))})),this},e.prototype.validateField=function(e,t,n){var r=null;switch(t){case"required":return Object(i.a)(e)?{errorCode:"empty"}:null;case"isDate":return e instanceof Date?null:{errorCode:"invalidDate"};case"noWhitespace":return e&&""===e.trim()?{errorCode:"isWhitespace"}:null;case"dateRange":return e instanceof Date?(n.minDate&&(r=a()(Object(l.a)(e)).isBefore(Object(l.a)(n.minDate))?{errorCode:"beforeMinDate",specs:{minDate:n.minDate}}:null),!r&&n.maxDate&&(r=a()(Object(l.a)(e)).isAfter(Object(l.a)(n.maxDate))?{errorCode:"afterMaxDate",specs:{maxDate:n.maxDate}}:null),r):{errorCode:"invalidDate"};case"textLength":return"string"==typeof e?(n.minLength&&(r=e.length<n.minLength?{errorCode:"lessThanMinLength",specs:{minLength:n.minLength}}:null),!r&&n.maxLength&&(r=e.length>n.maxLength?{errorCode:"moreThanMaxLength",specs:{maxLength:n.maxLength}}:null),r):{errorCode:"invalidInput"};case"valueRange":return"number"==typeof e?(n.minValue&&(r=e<n.minValue?{errorCode:"lessThanMinValue",specs:{minValue:n.minValue}}:null),!r&&n.maxValue&&(r=e>n.maxValue?{errorCode:"moreThanMaxValue",specs:{maxValue:n.maxValue}}:null),r):{errorCode:"invalidInput"};case"validEmail":return Object(s.a)(e)?null:{errorCode:"invalidEmail"};case"strongPassword":return Object(f.a)(e)?null:{errorCode:"weakPassword"};case"isPhoneNumber":return Object(u.a)(e)?null:{errorCode:"invalidPhoneNumber"}}},e.prototype.isValidType=function(e){return{required:!0,isDate:!0,noWhitespace:!0,dateRange:!0,textLength:!0,valueRange:!0,validEmail:!0,strongPassword:!0,isPhoneNumber:!0}.hasOwnProperty(e)},e}();n.d(t,"FormValidator",(function(){return p}))},5:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2);function o(e,t){if(void 0===t&&(t=new WeakMap),Object(e)!==e)return e;if(e instanceof Set)return new Set(e);if(t.has(e))return t.get(e);var n=Object.create(null);return e instanceof Date?n=new Date(e.getTime()):e instanceof RegExp?n=new RegExp(e.source,e.flags):e.constructor&&(n=new e.constructor),t.set(e,n),e instanceof Map&&Array.from(e,(function(e){var r=e[0],a=e[1];return n.set(r,o(a,t))})),Object.assign.apply(Object,Object(r.b)([n],Object.keys(e).map((function(n){var r;return(r={})[n]=o(e[n],t),r}))))}},6:function(e,t,n){"use strict";function r(e){return new RegExp(/^(0)?([0-9]{7,13})$/g).test(String(e))}n.d(t,"a",(function(){return r}))},7:function(e,t,n){"use strict";function r(e){return new RegExp(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/).test(e)}n.d(t,"a",(function(){return r}))},8:function(e,t,n){"use strict";function r(e){return/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-_]).{8,}$/.test(e)}n.d(t,"a",(function(){return r}))}})})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("moment")):"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t(require("moment")):e["@sebgroup/frontend-tools"]=t(e[void 0])}(window,(function(e){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=41)}({0:function(t,r){t.exports=e},41:function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n);function u(e,t,r,n){switch(o()(e).isValid()||(e=o()().toDate()),r){case"ADD":return o()(e).add(t,n).toDate();case"SUBTRACT":return o()(e).subtract(t,n).toDate();default:return o()().toDate()}}r.d(t,"modifyDate",(function(){return u}))}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("moment")):"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t(require("moment")):e["@sebgroup/frontend-tools"]=t(e[void 0])}(window,(function(e){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=40)}({0:function(t,r){t.exports=e},40:function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n);function u(e,t,r,n){switch(o()(e).isValid()||(e=o()().toDate()),r){case"ADD":return o()(e).add(t,n).toDate();case"SUBTRACT":return o()(e).subtract(t,n).toDate();default:return o()().toDate()}}r.d(t,"modifyDate",(function(){return u}))}})})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=42)}({42:function(e,t,n){"use strict";function r(e){return e+String(1e3*Math.random()+(new Date).getTime())}n.r(t),n.d(t,"randomId",(function(){return r}))}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=41)}({41:function(e,t,n){"use strict";function r(e){return e+String(1e3*Math.random()+(new Date).getTime())}n.r(t),n.d(t,"randomId",(function(){return r}))}})})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=43)}({4:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=function(){function e(){}return Object.defineProperty(e.prototype,"length",{get:function(){return this.keys().length},enumerable:!0,configurable:!0}),e.prototype.getItem=function(e){return e&&decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null},e.prototype.setItem=function(e,t,n){if(void 0===n&&(n={}),!e||/^(?:expires|max\-age|path|domain|secure)$/i.test(e))return!1;var o="",r="",i=n&&n.secure?"; Secure":"";return n&&(n.expires&&n.expires instanceof Date&&(o="; Expires="+n.expires.toUTCString()),n.maxAge&&"number"==typeof n.maxAge&&n.maxAge!==1/0&&(r="; Max-age="+n.maxAge)),document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+o+r+i,this.hasItem(e)},e.prototype.removeItem=function(e){return this.hasItem(e)&&(document.cookie=encodeURIComponent(e)+"=; max-age=-1"),!this.hasItem(e)},e.prototype.hasItem=function(e){return!(!e||/^(?:expires|max\-age|path|domain|secure)$/i.test(e))&&new RegExp("(?:^|;\\s*)"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},e.prototype.clear=function(){for(var e=document.cookie.split(";"),t=0;t<e.length;t++){var n=e[t],o=n.indexOf("="),r=o>-1?n.substr(0,o):n,i=o>-1?n.substr(o+1,n.length):"";document.cookie=r+(i?"=":"")+"; max-age=-1"}},e.prototype.keys=function(){for(var e=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),t=e.length,n=0;n<t;n++)e[n]=decodeURIComponent(e[n]);return e},e.prototype.key=function(e){return this.keys()[e]},e}()},43:function(e,t,n){"use strict";n.r(t);var o=n(4),r=function(){function e(e){switch(void 0===e&&(e="LOCAL"),e){case"LOCAL":this.handler=localStorage;break;case"SESSION":this.handler=sessionStorage;break;case"COOKIE":this.handler=new o.a;break;default:this.handler=localStorage}}return Object.defineProperty(e.prototype,"length",{get:function(){return this.keys.length},enumerable:!0,configurable:!0}),e.prototype.setItem=function(e,t){this.handler.setItem(e,t)},e.prototype.getItem=function(e){return this.handler.getItem(e)},e.prototype.removeItem=function(e){return!!this.handler.getItem(e)&&(this.handler.removeItem(e),!0)},e.prototype.clear=function(){this.handler.clear()},e.prototype.keys=function(){return this.handler.keys?this.handler.keys():Object.keys(this.handler)},e.prototype.key=function(e){return this.keys()[e]},e}();n.d(t,"StorageManagement",(function(){return r}))}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=42)}({4:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=function(){function e(){}return Object.defineProperty(e.prototype,"length",{get:function(){return this.keys().length},enumerable:!0,configurable:!0}),e.prototype.getItem=function(e){return e&&decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null},e.prototype.setItem=function(e,t,n){if(void 0===n&&(n={}),!e||/^(?:expires|max\-age|path|domain|secure)$/i.test(e))return!1;var o="",r="";return n&&(n.expires&&n.expires instanceof Date&&(o="; Expires="+n.expires.toUTCString()),n.maxAge&&"number"==typeof n.maxAge&&n.maxAge!==1/0&&(r="; Max-age="+n.maxAge)),document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+o+r,this.hasItem(e)},e.prototype.removeItem=function(e){return this.hasItem(e)&&(document.cookie=encodeURIComponent(e)+"=; max-age=-1"),!this.hasItem(e)},e.prototype.hasItem=function(e){return!(!e||/^(?:expires|max\-age|path|domain|secure)$/i.test(e))&&new RegExp("(?:^|;\\s*)"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},e.prototype.clear=function(){for(var e=document.cookie.split(";"),t=0;t<e.length;t++){var n=e[t],o=n.indexOf("="),r=o>-1?n.substr(0,o):n,i=o>-1?n.substr(o+1,n.length):"";document.cookie=r+(i?"=":"")+"; max-age=-1"}},e.prototype.keys=function(){for(var e=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),t=e.length,n=0;n<t;n++)e[n]=decodeURIComponent(e[n]);return e},e.prototype.key=function(e){return this.keys()[e]},e}()},42:function(e,t,n){"use strict";n.r(t);var o=n(4),r=function(){function e(e){switch(void 0===e&&(e="LOCAL"),e){case"LOCAL":this.handler=localStorage;break;case"SESSION":this.handler=sessionStorage;break;case"COOKIE":this.handler=new o.a;break;default:this.handler=localStorage}}return Object.defineProperty(e.prototype,"length",{get:function(){return this.keys().length},enumerable:!0,configurable:!0}),e.prototype.setItem=function(e,t){this.handler.setItem(e,t)},e.prototype.getItem=function(e){return this.handler.getItem(e)},e.prototype.removeItem=function(e){return!!this.handler.getItem(e)&&(this.handler.removeItem(e),!0)},e.prototype.clear=function(){this.handler.clear()},e.prototype.keys=function(){return this.handler.keys?this.handler.keys():Object.keys(this.handler)},e.prototype.key=function(e){return this.keys()[e]},e}();n.d(t,"StorageManagement",(function(){return r}))}})})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=44)}({44:function(e,t,n){"use strict";function r(e,t,n){for(var r in void 0===n&&(n="@"),t)e=e.replace(new RegExp(""+n+r+n,"g"),String(t[r]));return e}n.r(t),n.d(t,"stringInsert",(function(){return r}))}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=43)}({43:function(e,t,n){"use strict";function r(e,t,n){for(var r in void 0===n&&(n="@"),t)e=e.replace(new RegExp(""+n+r+n,"g"),String(t[r]));return e}n.r(t),n.d(t,"stringInsert",(function(){return r}))}})})); |
{ | ||
"name": "@sebgroup/frontend-tools", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A set of frontend tools", | ||
@@ -14,6 +14,4 @@ "scripts": { | ||
"test": "npm run clean:test && jest --forceExit --detectOpenHandles", | ||
"coveralls": "cat ./coverage/lcov.info | coveralls", | ||
"commit": "git-cz", | ||
"travis-deploy-once": "travis-deploy-once --pro", | ||
"semantic-release": "semantic-release && npm run build", | ||
"semantic-release": "semantic-release", | ||
"package-lock-sanitizer": "package-lock-sanitizer" | ||
@@ -50,3 +48,2 @@ }, | ||
"copy-webpack-plugin": "^5.1.1", | ||
"coveralls": "^3.0.6", | ||
"cz-conventional-changelog": "^3.0.2", | ||
@@ -61,3 +58,2 @@ "fibers": "^4.0.1", | ||
"semantic-release": "^15.14.0", | ||
"travis-deploy-once": "^5.0.11", | ||
"ts-jest": "^24.1.0", | ||
@@ -64,0 +60,0 @@ "ts-loader": "^6.2.1", |
@@ -0,1 +1,6 @@ | ||
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) | ||
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) | ||
[![Build Status](https://github.com/sebgroup/frontend-tools/workflows/CI/badge.svg)](https://github.com/sebgroup/frontend-tools/actions?query=workflow%3ACI) | ||
[![Coverage Status](https://coveralls.io/repos/github/sebgroup/frontend-tools/badge.svg?branch=master)](https://coveralls.io/github/sebgroup/frontend-tools?branch=master) | ||
# **Frontend tools** | ||
@@ -8,3 +13,3 @@ | ||
```terminal | ||
npm i @sebgroup/frontend-tools | ||
npm install @sebgroup/frontend-tools | ||
``` | ||
@@ -11,0 +16,0 @@ |
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
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
23
39
97334
128
510