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

@vee-validate/i18n

Package Overview
Dependencies
Maintainers
1
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vee-validate/i18n - npm Package Compare versions

Comparing version 4.0.0-alpha.3 to 4.0.0-alpha.4

LICENSE

8

CHANGELOG.md

@@ -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 @@

2

dist/vee-validate-i18n.js

@@ -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"
}
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