@vee-validate/i18n
Advanced tools
Comparing version 4.0.0-alpha.3 to 4.0.0-alpha.4
@@ -6,2 +6,10 @@ # Change Log | ||
# [4.0.0-alpha.4](https://github.com/logaretm/vee-validate/compare/@vee-validate/i18n@4.0.0-alpha.3...@vee-validate/i18n@4.0.0-alpha.4) (2020-07-27) | ||
**Note:** Version bump only for package @vee-validate/i18n | ||
# [4.0.0-alpha.3](https://github.com/logaretm/vee-validate/compare/@vee-validate/i18n@4.0.0-alpha.2...@vee-validate/i18n@4.0.0-alpha.3) (2020-07-23) | ||
@@ -8,0 +16,0 @@ |
@@ -9,3 +9,3 @@ /** | ||
typeof define === 'function' && define.amd ? define(['exports'], factory) : | ||
(global = global || self, factory(global.VeeValidateI18n = {})); | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.VeeValidateI18n = {})); | ||
}(this, (function (exports) { 'use strict'; | ||
@@ -12,0 +12,0 @@ |
@@ -6,2 +6,2 @@ /** | ||
*/ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).VeeValidateI18n={})}(this,(function(e){"use strict";function n(e,o){return Object.keys(o).forEach(t=>{if(null!==(i=o[t])&&i&&"object"==typeof i&&!Array.isArray(i))return e[t]||(e[t]={}),void n(e[t],o[t]);var i;e[t]=o[t]}),e}class o{constructor(e,n){this.container={},this.locale=e,this.merge(n)}resolve(e){return this.format(this.locale,e)}format(e,n){var o,t,i,l,r,s,c,a;let d;const{field:u,rule:f,form:v}=n;d=(null===(i=null===(t=null===(o=this.container[e])||void 0===o?void 0:o.fields)||void 0===t?void 0:t[u])||void 0===i?void 0:i[f.name])||(null===(r=null===(l=this.container[e])||void 0===l?void 0:l.messages)||void 0===r?void 0:r[f.name]),d||(d=u+" is not valid");const m=null!==(a=null===(c=null===(s=this.container[e])||void 0===s?void 0:s.names)||void 0===c?void 0:c[u])&&void 0!==a?a:u;return"function"==typeof d?d(n):(h=d,p=Object.assign(Object.assign({},v),{field:m}),h.replace(/{([^}]+)}/g,(function(e,n){return n in p?p[n]:`{${n}}`})));var h,p}merge(e){n(this.container,e)}}let t;e.localize=function(e,n){t||(t=new o("en",{}));const i=e=>t.resolve(e);return"string"==typeof e?(t.locale=e,n&&t.merge({[e]:n}),i):(t.merge(e),i)},e.setLocale=function(e){t.locale=e},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).VeeValidateI18n={})}(this,(function(e){"use strict";function n(e,o){return Object.keys(o).forEach(i=>{if(null!==(t=o[i])&&t&&"object"==typeof t&&!Array.isArray(t))return e[i]||(e[i]={}),void n(e[i],o[i]);var t;e[i]=o[i]}),e}class o{constructor(e,n){this.container={},this.locale=e,this.merge(n)}resolve(e){return this.format(this.locale,e)}format(e,n){var o,i,t,l,r,s,a,c;let d;const{field:u,rule:f,form:v}=n;d=(null===(t=null===(i=null===(o=this.container[e])||void 0===o?void 0:o.fields)||void 0===i?void 0:i[u])||void 0===t?void 0:t[f.name])||(null===(r=null===(l=this.container[e])||void 0===l?void 0:l.messages)||void 0===r?void 0:r[f.name]),d||(d=u+" is not valid");const h=null!==(c=null===(a=null===(s=this.container[e])||void 0===s?void 0:s.names)||void 0===a?void 0:a[u])&&void 0!==c?c:u;return"function"==typeof d?d(n):(m=d,p=Object.assign(Object.assign({},v),{field:h}),m.replace(/{([^}]+)}/g,(function(e,n){return n in p?p[n]:`{${n}}`})));var m,p}merge(e){n(this.container,e)}}let i;e.localize=function(e,n){i||(i=new o("en",{}));const t=e=>i.resolve(e);return"string"==typeof e?(i.locale=e,n&&i.merge({[e]:n}),t):(i.merge(e),t)},e.setLocale=function(e){i.locale=e},Object.defineProperty(e,"__esModule",{value:!0})})); |
{ | ||
"name": "@vee-validate/i18n", | ||
"version": "4.0.0-alpha.3", | ||
"version": "4.0.0-alpha.4", | ||
"description": "Localization module for VeeValidate", | ||
@@ -12,2 +12,3 @@ "author": "Abdelrahman Awad <logaretm1@gmail.com>", | ||
"types": "dist/vee-validate-i18n.d.ts", | ||
"sideEffects": false, | ||
"files": [ | ||
@@ -27,3 +28,4 @@ "dist/*.js", | ||
"url": "https://github.com/logaretm/vee-validate/issues" | ||
} | ||
}, | ||
"gitHead": "ce1719b0cb5f6ef5c5cd72f5befd01a601dd715f" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
99168
56
0