Socket
Socket
Sign inDemoInstall

vue-i18n

Package Overview
Dependencies
Maintainers
1
Versions
353
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-i18n - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

coverage/PhantomJS 1.9.8 (Mac OS X)/base.css

2

bower.json

@@ -5,3 +5,3 @@ {

"description": "Internationalization plugin of Vue.js",
"version": "1.1.0",
"version": "1.1.1",
"homepage": "https://github.com/kazupon/vue-i18n",

@@ -8,0 +8,0 @@ "authors": [

{
"name": "vue-i18n",
"repo": "kazupon/vue-i18n",
"version": "1.1.0",
"version": "1.1.1",
"description": "Internationalization plugin of Vue.js",

@@ -6,0 +6,0 @@ "license": "MIT",

/**
* vue-i18n v1.1.0
* vue-i18n v1.1.1
* (c) 2015 kazuya kawaguchi

@@ -20,10 +20,10 @@ * Released under the MIT License.

/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/
/******/ // Create a new module (and put it into the cache)

@@ -35,23 +35,23 @@ /******/ var module = installedModules[moduleId] = {

/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports

@@ -91,2 +91,13 @@ /******/ return __webpack_require__(0);

function getVal (path, key, lang, args) {
var value = key
try {
var val = path.get(locales[lang], key)
value = (args ? format(val, args) : val) || key
} catch (e) {
value = key
}
return value
}
// `$t` method (for Vue 0.11.4 later)

@@ -117,4 +128,3 @@ try {

var val = path.get(locales[language], key)
return (args ? format(val, args) : val) || key
return getVal(path, key, language, args)
}

@@ -228,1 +238,2 @@ } catch (e) {

});
;
/**
* vue-i18n v1.1.0
* vue-i18n v1.1.1
* (c) 2015 kazuya kawaguchi

@@ -7,2 +7,2 @@ * Released under the MIT License.

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):"object"==typeof exports?exports["vue-i18n"]=e():t["vue-i18n"]=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){function n(t,e){e=e||{};var r=e.lang||"en",n=e.locales||e.resources||{};try{var s=t.parsers.path,u=t.util;t.prototype.$t=function(t){if(!t)return"";var e=null,a=r;2===arguments.length?u.isObject(arguments[1])||u.isArray(arguments[1])?e=arguments[1]:"string"==typeof arguments[1]&&(a=arguments[1]):3===arguments.length&&("string"==typeof arguments[1]&&(a=arguments[1]),(u.isObject(arguments[2])||u.isArray(arguments[2]))&&(e=arguments[2]));var i=s.get(n[a],t);return(e?o(i,e):i)||t}}catch(a){t.utils.warn("not support $t in this Vue version")}t.t=function(t){var e=t||"",o=n[r];if(t&&o)for(var s=t.split("."),u=0;u<s.length;u++){if(o=o[s[u]],!o){e=t;break}e=o}return e},t.directive("t",{isLiteral:!0,bind:function(){1===this.el.nodeType&&(this.el.textContent=t.t(this.expression))}})}var o=r(1);t.exports=n},function(t){function e(t){var e;return e=2===arguments.length&&"object"==typeof arguments[1]?arguments[1]:r.call(arguments,1),e&&e.hasOwnProperty||(e={}),t.replace(n,function(r,n,o){var s;return"{"===t[o-1]&&"}"===t[o+r.length]?n:(s=e.hasOwnProperty(n)?e[n]:null,null===s||void 0===s?"":s)})}var r=Array.prototype.slice,n=/\{([0-9a-zA-Z]+)\}/g;t.exports=e}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):"object"==typeof exports?exports["vue-i18n"]=e():t["vue-i18n"]=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){function n(t,e){function r(t,e,r,n){var u=e;try{var a=t.get(s[r],e);u=(n?o(a,n):a)||e}catch(i){u=e}return u}e=e||{};var n=e.lang||"en",s=e.locales||e.resources||{};try{var u=t.parsers.path,a=t.util;t.prototype.$t=function(t){if(!t)return"";var e=null,o=n;return 2===arguments.length?a.isObject(arguments[1])||a.isArray(arguments[1])?e=arguments[1]:"string"==typeof arguments[1]&&(o=arguments[1]):3===arguments.length&&("string"==typeof arguments[1]&&(o=arguments[1]),(a.isObject(arguments[2])||a.isArray(arguments[2]))&&(e=arguments[2])),r(u,t,o,e)}}catch(i){t.utils.warn("not support $t in this Vue version")}t.t=function(t){var e=t||"",r=s[n];if(t&&r)for(var o=t.split("."),u=0;u<o.length;u++){if(r=r[o[u]],!r){e=t;break}e=r}return e},t.directive("t",{isLiteral:!0,bind:function(){1===this.el.nodeType&&(this.el.textContent=t.t(this.expression))}})}var o=r(1);t.exports=n},function(t,e,r){function n(t){var e;return e=2===arguments.length&&"object"==typeof arguments[1]?arguments[1]:o.call(arguments,1),e&&e.hasOwnProperty||(e={}),t.replace(s,function(r,n,o){var s;return"{"===t[o-1]&&"}"===t[o+r.length]?n:(s=e.hasOwnProperty(n)?e[n]:null,null===s||void 0===s?"":s)})}var o=Array.prototype.slice,s=/\{([0-9a-zA-Z]+)\}/g;t.exports=n}])});

@@ -25,4 +25,6 @@ var Vue = require('vue')

// create instance
new Vue({
var vm = new Vue({
el: '#test-i18n'
})
vm.$t('hello.foo')

@@ -0,1 +1,5 @@

# v1.1.1 / 2015-04-21
* Fix unit test error
# v1.1.0 / 2015-01-10

@@ -2,0 +6,0 @@

@@ -27,2 +27,13 @@ /**

function getVal (path, key, lang, args) {
var value = key
try {
var val = path.get(locales[lang], key)
value = (args ? format(val, args) : val) || key
} catch (e) {
value = key
}
return value
}
// `$t` method (for Vue 0.11.4 later)

@@ -53,4 +64,3 @@ try {

var val = path.get(locales[language], key)
return (args ? format(val, args) : val) || key
return getVal(path, key, language, args)
}

@@ -57,0 +67,0 @@ } catch (e) {

{
"name": "vue-i18n",
"version": "1.1.0",
"version": "1.1.1",
"description": "Internationalization plugin of Vue.js",

@@ -28,8 +28,5 @@ "main": "index.js",

"jshint": "^2.5.0",
"mocha": "^1.18.2",
"vue": "~0.11.4",
"webpack": "^1.4.13",
"karma": "^0.12.24",
"karma-chrome-launcher": "^0.1.5",
"karma-commonjs": "0.0.12",
"karma-commonjs": "^0.0.12",
"karma-coverage": "^0.2.6",

@@ -43,4 +40,8 @@ "karma-coveralls": "^0.1.4",

"karma-sauce-launcher": "^0.2.10",
"nightmare": "^1.6.5"
"mocha": "^1.18.2",
"nightmare": "^1.6.5",
"semi": "^3.1.1",
"vue": "~0.11.4",
"webpack": "^1.4.13"
}
}

@@ -5,4 +5,4 @@ /**

var pathResolve = require('path').resolve;
var urlFormat = require('url').format;
var pathResolve = require('path').resolve
var urlFormat = require('url').format

@@ -9,0 +9,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

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