mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[improvement] optimize locale (#2725)
This commit is contained in:
parent
ba811b50b0
commit
a08666947f
@ -13,6 +13,7 @@ const join = dir => path.join(root, dir);
|
||||
|
||||
function buildVantEntry() {
|
||||
const uninstallComponents = [
|
||||
'Locale',
|
||||
'Lazyload',
|
||||
'Waterfall'
|
||||
];
|
||||
|
16
package.json
16
package.json
@ -82,7 +82,7 @@
|
||||
"@vue/server-test-utils": "^1.0.0-beta.29",
|
||||
"@vue/test-utils": "^1.0.0-beta.29",
|
||||
"autoprefixer": "^9.4.7",
|
||||
"babel-jest": "^24.0.0",
|
||||
"babel-jest": "^24.1.0",
|
||||
"babel-loader": "^8.0.4",
|
||||
"codecov": "^3.1.0",
|
||||
"cross-env": "^5.2.0",
|
||||
@ -97,7 +97,7 @@
|
||||
"gulp-postcss": "^8.0.0",
|
||||
"html-webpack-plugin": "3.2.0",
|
||||
"husky": "^1.2.1",
|
||||
"jest": "^24.0.0",
|
||||
"jest": "^24.1.0",
|
||||
"jest-serializer-vue": "^2.0.2",
|
||||
"less": "^3.8.1",
|
||||
"less-loader": "^4.1.0",
|
||||
@ -113,18 +113,18 @@
|
||||
"stylelint": "^9.10.1",
|
||||
"stylelint-config-standard": "^18.2.0",
|
||||
"ts-jest": "^23.10.5",
|
||||
"typescript": "^3.2.4",
|
||||
"typescript": "^3.3.3",
|
||||
"uppercamelcase": "^3.0.0",
|
||||
"url-loader": "^1.1.2",
|
||||
"vue": "2.6.2",
|
||||
"vue": "2.6.6",
|
||||
"vue-jest": "4.0.0-beta.1",
|
||||
"vue-loader": "^15.6.2",
|
||||
"vue-router": "^3.0.2",
|
||||
"vue-server-renderer": "^2.6.2",
|
||||
"vue-template-compiler": "2.6.2",
|
||||
"vue-server-renderer": "^2.6.6",
|
||||
"vue-template-compiler": "2.6.6",
|
||||
"vue-template-es2015-compiler": "^1.8.2",
|
||||
"webpack": "^4.29.1",
|
||||
"webpack-cli": "^3.1.2",
|
||||
"webpack": "^4.29.3",
|
||||
"webpack-cli": "^3.2.3",
|
||||
"webpack-serve": "^2.0.3"
|
||||
},
|
||||
"vetur": {
|
||||
|
@ -108,7 +108,6 @@ const components = [
|
||||
Info,
|
||||
List,
|
||||
Loading,
|
||||
Locale,
|
||||
NavBar,
|
||||
NoticeBar,
|
||||
Notify,
|
||||
|
@ -1,33 +0,0 @@
|
||||
/* eslint-disable import/no-mutable-exports */
|
||||
import Vue from 'vue';
|
||||
import deepAssign from '../utils/deep-assign';
|
||||
import defaultMessages from './lang/zh-CN';
|
||||
|
||||
let lang = 'zh-CN';
|
||||
const proto = Vue.prototype;
|
||||
const messages = { [lang]: defaultMessages };
|
||||
|
||||
const locale = {
|
||||
install() {
|
||||
if (proto.$vantLang) {
|
||||
return;
|
||||
}
|
||||
Vue.util.defineReactive(proto, '$vantLang', lang);
|
||||
Vue.util.defineReactive(proto, '$vantMessages', messages);
|
||||
},
|
||||
|
||||
use(newLang, messages) {
|
||||
lang = newLang;
|
||||
proto.$vantLang = lang;
|
||||
this.add({ [lang]: messages });
|
||||
},
|
||||
|
||||
add(messages = {}) {
|
||||
deepAssign(proto.$vantMessages, messages);
|
||||
}
|
||||
};
|
||||
|
||||
locale.install();
|
||||
|
||||
export default locale;
|
||||
export { lang, messages };
|
34
packages/locale/index.ts
Normal file
34
packages/locale/index.ts
Normal file
@ -0,0 +1,34 @@
|
||||
import Vue from 'vue';
|
||||
import deepAssign from '../utils/deep-assign';
|
||||
import defaultMessages from './lang/zh-CN';
|
||||
|
||||
declare module 'vue' {
|
||||
interface VueConstructor {
|
||||
util: {
|
||||
defineReactive(obj: object, key: string, value: any): void;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
const proto = Vue.prototype;
|
||||
const { defineReactive } = Vue.util;
|
||||
|
||||
defineReactive(proto, '$vantLang', 'zh-CN');
|
||||
defineReactive(proto, '$vantMessages', {
|
||||
'zh-CN': defaultMessages
|
||||
});
|
||||
|
||||
export default {
|
||||
messages() {
|
||||
return proto.$vantMessages[proto.$vantLang];
|
||||
},
|
||||
|
||||
use(lang: string, messages?: object) {
|
||||
proto.$vantLang = lang;
|
||||
this.add({ [lang]: messages });
|
||||
},
|
||||
|
||||
add(messages = {}) {
|
||||
deepAssign(proto.$vantMessages, messages);
|
||||
}
|
||||
};
|
@ -1,10 +1,10 @@
|
||||
import { get, camelize } from '..';
|
||||
import { lang, messages } from '../../locale';
|
||||
import locale from '../../locale';
|
||||
|
||||
export default (name: string) => {
|
||||
const prefix = camelize(name) + '.';
|
||||
return (path: string, ...args: any[]): string => {
|
||||
const message = get(messages[lang], prefix + path) || get(messages[lang], path);
|
||||
const message = get(locale.messages(), prefix + path) || get(locale.messages(), path);
|
||||
return typeof message === 'function' ? message(...args) : message;
|
||||
};
|
||||
};
|
||||
|
250
yarn.lock
250
yarn.lock
@ -1569,13 +1569,15 @@ babel-eslint@^10.0.1:
|
||||
eslint-scope "3.7.1"
|
||||
eslint-visitor-keys "^1.0.0"
|
||||
|
||||
babel-jest@^24.0.0:
|
||||
version "24.0.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-24.0.0.tgz#8a0c767f03f4a595fb921afdab13ff126edd00da"
|
||||
integrity sha512-YGKRbZUjoRmNIAyG7x4wYxUyHvHPFpYXj6Mx1A5cslhaQOUgP/+LF3wtFgMuOQkIpjbVNBufmOnVY0QVwB5v9Q==
|
||||
babel-jest@^24.1.0:
|
||||
version "24.1.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-24.1.0.tgz#441e23ef75ded3bd547e300ac3194cef87b55190"
|
||||
integrity sha512-MLcagnVrO9ybQGLEfZUqnOzv36iQzU7Bj4elm39vCukumLVSfoX+tRy3/jW7lUKc7XdpRmB/jech6L/UCsSZjw==
|
||||
dependencies:
|
||||
babel-plugin-istanbul "^5.1.0"
|
||||
babel-preset-jest "^24.0.0"
|
||||
babel-preset-jest "^24.1.0"
|
||||
chalk "^2.4.2"
|
||||
slash "^2.0.0"
|
||||
|
||||
babel-loader@^8.0.4:
|
||||
version "8.0.5"
|
||||
@ -1596,18 +1598,18 @@ babel-plugin-istanbul@^5.1.0:
|
||||
istanbul-lib-instrument "^3.0.0"
|
||||
test-exclude "^5.0.0"
|
||||
|
||||
babel-plugin-jest-hoist@^24.0.0:
|
||||
version "24.0.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-24.0.0.tgz#3adf030b6fd67e4311479a54b24077bdfc226ec9"
|
||||
integrity sha512-ipefE7YWNyRNVaV/MonUb/I5nef53ZRFR74P9meMGmJxqt8s1BJmfhw11YeIMbcjXN4fxtWUaskZZe8yreXE1Q==
|
||||
babel-plugin-jest-hoist@^24.1.0:
|
||||
version "24.1.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-24.1.0.tgz#dfecc491fb15e2668abbd690a697a8fd1411a7f8"
|
||||
integrity sha512-gljYrZz8w1b6fJzKcsfKsipSru2DU2DmQ39aB6nV3xQ0DDv3zpIzKGortA5gknrhNnPN8DweaEgrnZdmbGmhnw==
|
||||
|
||||
babel-preset-jest@^24.0.0:
|
||||
version "24.0.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-24.0.0.tgz#d23782e5e036cff517859640a80960bd628bd82b"
|
||||
integrity sha512-ECMMOLvNDCmsn3geBa3JkwzylcfpThMpAdfreONQm8EmXcs4tXUpXZDQPxiIMg7nMobTuAC2zDGIKrbrBXW2Vg==
|
||||
babel-preset-jest@^24.1.0:
|
||||
version "24.1.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-24.1.0.tgz#83bc564fdcd4903641af65ec63f2f5de6b04132e"
|
||||
integrity sha512-FfNLDxFWsNX9lUmtwY7NheGlANnagvxq8LZdl5PKnVG3umP+S/g0XbVBfwtA4Ai3Ri/IMkWabBz3Tyk9wdspcw==
|
||||
dependencies:
|
||||
"@babel/plugin-syntax-object-rest-spread" "^7.0.0"
|
||||
babel-plugin-jest-hoist "^24.0.0"
|
||||
babel-plugin-jest-hoist "^24.1.0"
|
||||
|
||||
bail@^1.0.0:
|
||||
version "1.0.3"
|
||||
@ -3561,10 +3563,10 @@ expand-tilde@^2.0.0, expand-tilde@^2.0.2:
|
||||
dependencies:
|
||||
homedir-polyfill "^1.0.1"
|
||||
|
||||
expect@^24.0.0:
|
||||
version "24.0.0"
|
||||
resolved "https://registry.yarnpkg.com/expect/-/expect-24.0.0.tgz#71f71d88a4202746fc79849bb4c6498008b5ef03"
|
||||
integrity sha512-qDHRU4lGsme0xjg8dXp/RQhvO9XIo9FWqVo7dTHDPBwzy25JGEHAWFsnpmRYErB50tgi/6euo3ir5e/kF9LUTA==
|
||||
expect@^24.1.0:
|
||||
version "24.1.0"
|
||||
resolved "https://registry.yarnpkg.com/expect/-/expect-24.1.0.tgz#88e73301c4c785cde5f16da130ab407bdaf8c0f2"
|
||||
integrity sha512-lVcAPhaYkQcIyMS+F8RVwzbm1jro20IG8OkvxQ6f1JfqhVZyyudCwYogQ7wnktlf14iF3ii7ArIUO/mqvrW9Gw==
|
||||
dependencies:
|
||||
ansi-styles "^3.2.0"
|
||||
jest-get-type "^24.0.0"
|
||||
@ -4193,11 +4195,6 @@ global-dirs@^0.1.0:
|
||||
dependencies:
|
||||
ini "^1.3.4"
|
||||
|
||||
global-modules-path@^2.3.0:
|
||||
version "2.3.1"
|
||||
resolved "https://registry.yarnpkg.com/global-modules-path/-/global-modules-path-2.3.1.tgz#e541f4c800a1a8514a990477b267ac67525b9931"
|
||||
integrity sha512-y+shkf4InI7mPRHSo2b/k6ix6+NLDtyccYv86whhxrSGX9wjPX1VMITmrDbE1eh7zkzhiWtW2sHklJYoQ62Cxg==
|
||||
|
||||
global-modules@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/global-modules/-/global-modules-1.0.0.tgz#6d770f0eb523ac78164d72b5e71a8877265cc3ea"
|
||||
@ -5384,10 +5381,10 @@ jest-changed-files@^24.0.0:
|
||||
execa "^1.0.0"
|
||||
throat "^4.0.0"
|
||||
|
||||
jest-cli@^24.0.0:
|
||||
version "24.0.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-24.0.0.tgz#691fd4f7bce2574c1865db6844a43b56e60ce2a4"
|
||||
integrity sha512-mElnFipLaGxo1SiQ1CLvuaz3eX07MJc4HcyKrApSJf8xSdY1/EwaHurKwu1g2cDiwIgY8uHj7UcF5OYbtiBOWg==
|
||||
jest-cli@^24.1.0:
|
||||
version "24.1.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-24.1.0.tgz#f7cc98995f36e7210cce3cbb12974cbf60940843"
|
||||
integrity sha512-U/iyWPwOI0T1CIxVLtk/2uviOTJ/OiSWJSe8qt6X1VkbbgP+nrtLJlmT9lPBe4lK78VNFJtrJ7pttcNv/s7yCw==
|
||||
dependencies:
|
||||
ansi-escapes "^3.0.0"
|
||||
chalk "^2.0.1"
|
||||
@ -5401,16 +5398,16 @@ jest-cli@^24.0.0:
|
||||
istanbul-lib-instrument "^3.0.1"
|
||||
istanbul-lib-source-maps "^3.0.1"
|
||||
jest-changed-files "^24.0.0"
|
||||
jest-config "^24.0.0"
|
||||
jest-config "^24.1.0"
|
||||
jest-environment-jsdom "^24.0.0"
|
||||
jest-get-type "^24.0.0"
|
||||
jest-haste-map "^24.0.0"
|
||||
jest-message-util "^24.0.0"
|
||||
jest-regex-util "^24.0.0"
|
||||
jest-resolve-dependencies "^24.0.0"
|
||||
jest-runner "^24.0.0"
|
||||
jest-runtime "^24.0.0"
|
||||
jest-snapshot "^24.0.0"
|
||||
jest-resolve-dependencies "^24.1.0"
|
||||
jest-runner "^24.1.0"
|
||||
jest-runtime "^24.1.0"
|
||||
jest-snapshot "^24.1.0"
|
||||
jest-util "^24.0.0"
|
||||
jest-validate "^24.0.0"
|
||||
jest-watcher "^24.0.0"
|
||||
@ -5428,27 +5425,26 @@ jest-cli@^24.0.0:
|
||||
which "^1.2.12"
|
||||
yargs "^12.0.2"
|
||||
|
||||
jest-config@^24.0.0:
|
||||
version "24.0.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-24.0.0.tgz#878abe03c060c74a0ec30d3cd5dd1897873e030e"
|
||||
integrity sha512-9/soqWL5YSq1ZJtgVJ5YYPCL1f9Mi2lVCp5+OXuYBOaN8DHSFRCSWip0rQ6N+mPTOEIAlCvcUH8zaPOwK4hePg==
|
||||
jest-config@^24.1.0:
|
||||
version "24.1.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-24.1.0.tgz#6ea6881cfdd299bc86cc144ee36d937c97c3850c"
|
||||
integrity sha512-FbbRzRqtFC6eGjG5VwsbW4E5dW3zqJKLWYiZWhB0/4E5fgsMw8GODLbGSrY5t17kKOtCWb/Z7nsIThRoDpuVyg==
|
||||
dependencies:
|
||||
"@babel/core" "^7.1.0"
|
||||
babel-jest "^24.0.0"
|
||||
babel-jest "^24.1.0"
|
||||
chalk "^2.0.1"
|
||||
glob "^7.1.1"
|
||||
jest-environment-jsdom "^24.0.0"
|
||||
jest-environment-node "^24.0.0"
|
||||
jest-get-type "^24.0.0"
|
||||
jest-jasmine2 "^24.0.0"
|
||||
jest-jasmine2 "^24.1.0"
|
||||
jest-regex-util "^24.0.0"
|
||||
jest-resolve "^24.0.0"
|
||||
jest-resolve "^24.1.0"
|
||||
jest-util "^24.0.0"
|
||||
jest-validate "^24.0.0"
|
||||
micromatch "^3.1.10"
|
||||
pretty-format "^24.0.0"
|
||||
realpath-native "^1.0.2"
|
||||
uuid "^3.3.2"
|
||||
|
||||
jest-diff@^24.0.0:
|
||||
version "24.0.0"
|
||||
@ -5513,22 +5509,23 @@ jest-haste-map@^24.0.0:
|
||||
micromatch "^3.1.10"
|
||||
sane "^3.0.0"
|
||||
|
||||
jest-jasmine2@^24.0.0:
|
||||
version "24.0.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-24.0.0.tgz#7d87be9d8b32d34ac5980ad646b7ae7f99e33a19"
|
||||
integrity sha512-q1xEV9KHM0bgfBj3yrkrjRF5kxpNDkWPCwVfSPN1DC+pD6J5wrM9/u2BgzhKhALXiaZUUhJ+f/OcEC0Gwpw90A==
|
||||
jest-jasmine2@^24.1.0:
|
||||
version "24.1.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-24.1.0.tgz#8377324b967037c440f0a549ee0bbd9912055db6"
|
||||
integrity sha512-H+o76SdSNyCh9fM5K8upK45YTo/DiFx5w2YAzblQebSQmukDcoVBVeXynyr7DDnxh+0NTHYRCLwJVf3tC518wg==
|
||||
dependencies:
|
||||
"@babel/traverse" "^7.1.0"
|
||||
chalk "^2.0.1"
|
||||
co "^4.6.0"
|
||||
expect "^24.0.0"
|
||||
expect "^24.1.0"
|
||||
is-generator-fn "^2.0.0"
|
||||
jest-each "^24.0.0"
|
||||
jest-matcher-utils "^24.0.0"
|
||||
jest-message-util "^24.0.0"
|
||||
jest-snapshot "^24.0.0"
|
||||
jest-snapshot "^24.1.0"
|
||||
jest-util "^24.0.0"
|
||||
pretty-format "^24.0.0"
|
||||
throat "^4.0.0"
|
||||
|
||||
jest-leak-detector@^24.0.0:
|
||||
version "24.0.0"
|
||||
@ -5568,46 +5565,47 @@ jest-regex-util@^24.0.0:
|
||||
resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-24.0.0.tgz#4feee8ec4a358f5bee0a654e94eb26163cb9089a"
|
||||
integrity sha512-Jv/uOTCuC+PY7WpJl2mpoI+WbY2ut73qwwO9ByJJNwOCwr1qWhEW2Lyi2S9ZewUdJqeVpEBisdEVZSI+Zxo58Q==
|
||||
|
||||
jest-resolve-dependencies@^24.0.0:
|
||||
version "24.0.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-24.0.0.tgz#86540611d660bdcaab8b87d069247d3832811d94"
|
||||
integrity sha512-CJGS5ME2g5wL16o3Y22ga9p5ntNT5CUYX40/0lYj9ic9jB5YHm/qMKTgbFt9kowEBiMOFpXy15dWtBTEU54+zg==
|
||||
jest-resolve-dependencies@^24.1.0:
|
||||
version "24.1.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-24.1.0.tgz#78f738a2ec59ff4d00751d9da56f176e3f589f6c"
|
||||
integrity sha512-2VwPsjd3kRPu7qe2cpytAgowCObk5AKeizfXuuiwgm1a9sijJDZe8Kh1sFj6FKvSaNEfCPlBVkZEJa2482m/Uw==
|
||||
dependencies:
|
||||
jest-regex-util "^24.0.0"
|
||||
jest-snapshot "^24.0.0"
|
||||
jest-snapshot "^24.1.0"
|
||||
|
||||
jest-resolve@^24.0.0:
|
||||
version "24.0.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-24.0.0.tgz#0206cfe842324f8796b01f706f4075309bf7b405"
|
||||
integrity sha512-uKDGyJqNaBQKox1DJzm27CJobADsIMNgZGusXhtYzl98LKu/fKuokkRsd7EBVgoDA80HKHc3LOPKuYLryMu1vw==
|
||||
jest-resolve@^24.1.0:
|
||||
version "24.1.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-24.1.0.tgz#42ff0169b0ea47bfdbd0c52a0067ca7d022c7688"
|
||||
integrity sha512-TPiAIVp3TG6zAxH28u/6eogbwrvZjBMWroSLBDkwkHKrqxB/RIdwkWDye4uqPlZIXWIaHtifY3L0/eO5Z0f2wg==
|
||||
dependencies:
|
||||
browser-resolve "^1.11.3"
|
||||
chalk "^2.0.1"
|
||||
realpath-native "^1.0.0"
|
||||
|
||||
jest-runner@^24.0.0:
|
||||
version "24.0.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-24.0.0.tgz#00b280d52d23286111a8ed0362ed958283f7f0e3"
|
||||
integrity sha512-XefXm2XimKtwdfi2am4364GfCmLD1tOjiRtDexY65diCXt4Rw23rxj2wiW7p9s8Nh9dzJQNmrheqZ5rzvn762g==
|
||||
jest-runner@^24.1.0:
|
||||
version "24.1.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-24.1.0.tgz#3686a2bb89ce62800da23d7fdc3da2c32792943b"
|
||||
integrity sha512-CDGOkT3AIFl16BLL/OdbtYgYvbAprwJ+ExKuLZmGSCSldwsuU2dEGauqkpvd9nphVdAnJUcP12e/EIlnTX0QXg==
|
||||
dependencies:
|
||||
chalk "^2.4.2"
|
||||
exit "^0.1.2"
|
||||
graceful-fs "^4.1.15"
|
||||
jest-config "^24.0.0"
|
||||
jest-config "^24.1.0"
|
||||
jest-docblock "^24.0.0"
|
||||
jest-haste-map "^24.0.0"
|
||||
jest-jasmine2 "^24.0.0"
|
||||
jest-jasmine2 "^24.1.0"
|
||||
jest-leak-detector "^24.0.0"
|
||||
jest-message-util "^24.0.0"
|
||||
jest-runtime "^24.0.0"
|
||||
jest-runtime "^24.1.0"
|
||||
jest-util "^24.0.0"
|
||||
jest-worker "^24.0.0"
|
||||
source-map-support "^0.5.6"
|
||||
throat "^4.0.0"
|
||||
|
||||
jest-runtime@^24.0.0:
|
||||
version "24.0.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-24.0.0.tgz#bc80756f5458c2c8e4db86f44b687ff692026c13"
|
||||
integrity sha512-UeVoTGiij8upcqfyBlJvImws7IGY+ZWtgVpt1h4VmVbyei39tVGia/20VoP3yvodS6FdjTwBj+JzVNuoh/9UTw==
|
||||
jest-runtime@^24.1.0:
|
||||
version "24.1.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-24.1.0.tgz#7c157a2e776609e8cf552f956a5a19ec9c985214"
|
||||
integrity sha512-59/BY6OCuTXxGeDhEMU7+N33dpMQyXq7MLK07cNSIY/QYt2QZgJ7Tjx+rykBI0skAoigFl0A5tmT8UdwX92YuQ==
|
||||
dependencies:
|
||||
"@babel/core" "^7.1.0"
|
||||
babel-plugin-istanbul "^5.1.0"
|
||||
@ -5617,19 +5615,19 @@ jest-runtime@^24.0.0:
|
||||
fast-json-stable-stringify "^2.0.0"
|
||||
glob "^7.1.3"
|
||||
graceful-fs "^4.1.15"
|
||||
jest-config "^24.0.0"
|
||||
jest-config "^24.1.0"
|
||||
jest-haste-map "^24.0.0"
|
||||
jest-message-util "^24.0.0"
|
||||
jest-regex-util "^24.0.0"
|
||||
jest-resolve "^24.0.0"
|
||||
jest-snapshot "^24.0.0"
|
||||
jest-resolve "^24.1.0"
|
||||
jest-snapshot "^24.1.0"
|
||||
jest-util "^24.0.0"
|
||||
jest-validate "^24.0.0"
|
||||
micromatch "^3.1.10"
|
||||
realpath-native "^1.0.0"
|
||||
slash "^2.0.0"
|
||||
strip-bom "3.0.0"
|
||||
write-file-atomic "^2.4.2"
|
||||
strip-bom "^3.0.0"
|
||||
write-file-atomic "2.4.1"
|
||||
yargs "^12.0.2"
|
||||
|
||||
jest-serializer-vue@^2.0.2:
|
||||
@ -5644,17 +5642,17 @@ jest-serializer@^24.0.0:
|
||||
resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-24.0.0.tgz#522c44a332cdd194d8c0531eb06a1ee5afb4256b"
|
||||
integrity sha512-9FKxQyrFgHtx3ozU+1a8v938ILBE7S8Ko3uiAVjT8Yfi2o91j/fj81jacCQZ/Ihjiff/VsUCXVgQ+iF1XdImOw==
|
||||
|
||||
jest-snapshot@^24.0.0:
|
||||
version "24.0.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-24.0.0.tgz#fb447a753a3271660b3d89d068698014eb14c414"
|
||||
integrity sha512-7OcrckVnfzVYxSGPYl2Sn+HyT30VpDv+FMBFbQxSQ6DV2K9Js6vYT6d4SBPKp6DfDiEL2txNssJBxtlvF+Dymw==
|
||||
jest-snapshot@^24.1.0:
|
||||
version "24.1.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-24.1.0.tgz#85e22f810357aa5994ab61f236617dc2205f2f5b"
|
||||
integrity sha512-th6TDfFqEmXvuViacU1ikD7xFb7lQsPn2rJl7OEmnfIVpnrx3QNY2t3PE88meeg0u/mQ0nkyvmC05PBqO4USFA==
|
||||
dependencies:
|
||||
"@babel/types" "^7.0.0"
|
||||
chalk "^2.0.1"
|
||||
jest-diff "^24.0.0"
|
||||
jest-matcher-utils "^24.0.0"
|
||||
jest-message-util "^24.0.0"
|
||||
jest-resolve "^24.0.0"
|
||||
jest-resolve "^24.1.0"
|
||||
mkdirp "^0.5.1"
|
||||
natural-compare "^1.4.0"
|
||||
pretty-format "^24.0.0"
|
||||
@ -5703,13 +5701,13 @@ jest-worker@^24.0.0:
|
||||
merge-stream "^1.0.1"
|
||||
supports-color "^6.1.0"
|
||||
|
||||
jest@^24.0.0:
|
||||
version "24.0.0"
|
||||
resolved "https://registry.yarnpkg.com/jest/-/jest-24.0.0.tgz#b8e2c8e6274e1092c7f56e57762a1fdc7800201e"
|
||||
integrity sha512-1Z2EblP4BnERbWZGtipGb9zjHDq7nCHgCY7V57F5SYaFRJV4DE1HKoOz+CRC5OrAThN9OVhRlUhTzsTFArg2iQ==
|
||||
jest@^24.1.0:
|
||||
version "24.1.0"
|
||||
resolved "https://registry.yarnpkg.com/jest/-/jest-24.1.0.tgz#b1e1135caefcf2397950ecf7f90e395fde866fd2"
|
||||
integrity sha512-+q91L65kypqklvlRFfXfdzUKyngQLOcwGhXQaLmVHv+d09LkNXuBuGxlofTFW42XMzu3giIcChchTsCNUjQ78A==
|
||||
dependencies:
|
||||
import-local "^2.0.0"
|
||||
jest-cli "^24.0.0"
|
||||
jest-cli "^24.1.0"
|
||||
|
||||
joi@^14.3.1:
|
||||
version "14.3.1"
|
||||
@ -6050,11 +6048,6 @@ liftoff@^2.1.0:
|
||||
rechoir "^0.6.2"
|
||||
resolve "^1.1.7"
|
||||
|
||||
lightercollective@^0.1.0:
|
||||
version "0.1.0"
|
||||
resolved "https://registry.yarnpkg.com/lightercollective/-/lightercollective-0.1.0.tgz#70df102c530dcb8d0ccabfe6175a8d00d5f61300"
|
||||
integrity sha512-J9tg5uraYoQKaWbmrzDDexbG6hHnMcWS1qLYgJSWE+mpA3U5OCSeMUhb+K55otgZJ34oFdR0ECvdIb3xuO5JOQ==
|
||||
|
||||
linkify-it@^2.0.0:
|
||||
version "2.1.0"
|
||||
resolved "https://registry.yarnpkg.com/linkify-it/-/linkify-it-2.1.0.tgz#c4caf38a6cd7ac2212ef3c7d2bde30a91561f9db"
|
||||
@ -8809,14 +8802,6 @@ sax@^1.2.4:
|
||||
resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9"
|
||||
integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==
|
||||
|
||||
schema-utils@^0.4.4:
|
||||
version "0.4.7"
|
||||
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-0.4.7.tgz#ba74f597d2be2ea880131746ee17d0a093c68187"
|
||||
integrity sha512-v/iwU6wvwGK8HbU9yi3/nhGzP0yGSuhQMzL6ySiec1FSrZZDkhm4noOSWzrNFo/jEc+SJY6jRTwuwbSXJPDUnQ==
|
||||
dependencies:
|
||||
ajv "^6.1.0"
|
||||
ajv-keywords "^3.1.0"
|
||||
|
||||
schema-utils@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-1.0.0.tgz#0b79a93204d7b600d4b2850d1f66c2a34951c770"
|
||||
@ -9311,11 +9296,6 @@ strip-ansi@^5.0.0:
|
||||
dependencies:
|
||||
ansi-regex "^4.0.0"
|
||||
|
||||
strip-bom@3.0.0, strip-bom@^3.0.0:
|
||||
version "3.0.0"
|
||||
resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3"
|
||||
integrity sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=
|
||||
|
||||
strip-bom@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-1.0.0.tgz#85b8862f3844b5a6d5ec8467a93598173a36f794"
|
||||
@ -9324,6 +9304,11 @@ strip-bom@^1.0.0:
|
||||
first-chunk-stream "^1.0.0"
|
||||
is-utf8 "^0.2.0"
|
||||
|
||||
strip-bom@^3.0.0:
|
||||
version "3.0.0"
|
||||
resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3"
|
||||
integrity sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=
|
||||
|
||||
strip-eof@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf"
|
||||
@ -9840,11 +9825,16 @@ typescript@^3.0.3:
|
||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.2.2.tgz#fe8101c46aa123f8353523ebdcf5730c2ae493e5"
|
||||
integrity sha512-VCj5UiSyHBjwfYacmDuc/NOk4QQixbE+Wn7MFJuS0nRuPQbof132Pw4u53dm264O8LPc2MVsc7RJNml5szurkg==
|
||||
|
||||
typescript@^3.2.1, typescript@^3.2.4:
|
||||
typescript@^3.2.1:
|
||||
version "3.2.4"
|
||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.2.4.tgz#c585cb952912263d915b462726ce244ba510ef3d"
|
||||
integrity sha512-0RNDbSdEokBeEAkgNbxJ+BLwSManFy9TeXz8uW+48j/xhEXv1ePME60olyzw2XzUqUBNAYFeJadIqAgNqIACwg==
|
||||
|
||||
typescript@^3.3.3:
|
||||
version "3.3.3"
|
||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.3.3.tgz#f1657fc7daa27e1a8930758ace9ae8da31403221"
|
||||
integrity sha512-Y21Xqe54TBVp+VDSNbuDYdGw0BpoR/Q6wo/+35M8PAU0vipahnyduJWirxxdxjsAkS7hue53x2zp8gz7F05u0A==
|
||||
|
||||
uc.micro@^1.0.1, uc.micro@^1.0.5:
|
||||
version "1.0.5"
|
||||
resolved "https://registry.yarnpkg.com/uc.micro/-/uc.micro-1.0.5.tgz#0c65f15f815aa08b560a61ce8b4db7ffc3f45376"
|
||||
@ -10297,10 +10287,10 @@ vue-router@^3.0.2:
|
||||
resolved "https://registry.yarnpkg.com/vue-router/-/vue-router-3.0.2.tgz#dedc67afe6c4e2bc25682c8b1c2a8c0d7c7e56be"
|
||||
integrity sha512-opKtsxjp9eOcFWdp6xLQPLmRGgfM932Tl56U9chYTnoWqKxQ8M20N7AkdEbM5beUh6wICoFGYugAX9vQjyJLFg==
|
||||
|
||||
vue-server-renderer@^2.6.2:
|
||||
version "2.6.2"
|
||||
resolved "https://registry.yarnpkg.com/vue-server-renderer/-/vue-server-renderer-2.6.2.tgz#89faa6d87e94f9333276a4ee9cd39bece97059db"
|
||||
integrity sha512-UAAKbYhcT9WRP7L4aRR/c6e/GXBj5lwR9H8AQ+b/lbwVwMauHyYNdhQzFmLFZfujNAjZK6+mQQVtdMoa2J8Y5g==
|
||||
vue-server-renderer@^2.6.6:
|
||||
version "2.6.6"
|
||||
resolved "https://registry.yarnpkg.com/vue-server-renderer/-/vue-server-renderer-2.6.6.tgz#a2b1174cf1914817147b34789cc1a6baa0672aa1"
|
||||
integrity sha512-dJ4IrIilS3nhxpOrR12+IKGu9Meg8L0t/W/e/UNSXKyh9EkwDqFPK0nZTfGPudXzr9FMQfg2hK6p2RMydPRU2Q==
|
||||
dependencies:
|
||||
chalk "^1.1.3"
|
||||
hash-sum "^1.0.2"
|
||||
@ -10319,10 +10309,10 @@ vue-style-loader@^4.1.0:
|
||||
hash-sum "^1.0.2"
|
||||
loader-utils "^1.0.2"
|
||||
|
||||
vue-template-compiler@2.6.2:
|
||||
version "2.6.2"
|
||||
resolved "https://registry.yarnpkg.com/vue-template-compiler/-/vue-template-compiler-2.6.2.tgz#6230abf7ca92d565b7471c0cc3f54d5b12aa48e7"
|
||||
integrity sha512-2dBKNCtBPdx1TFef7T4zwF8IjOx2xbMNryCtFzneP+XIonJwOtnkq4s1mhKv8W79gXcGINQWtuaxituGAcuSnA==
|
||||
vue-template-compiler@2.6.6:
|
||||
version "2.6.6"
|
||||
resolved "https://registry.yarnpkg.com/vue-template-compiler/-/vue-template-compiler-2.6.6.tgz#a807acbf3d51971d3721d75ecb1b927b517c1a02"
|
||||
integrity sha512-OakxDGyrmMQViCjkakQFbDZlG0NibiOzpLauOfyCUVRQc9yPmTqpiz9nF0VeA+dFkXegetw0E5x65BFhhLXO0A==
|
||||
dependencies:
|
||||
de-indent "^1.0.2"
|
||||
he "^1.1.0"
|
||||
@ -10337,10 +10327,10 @@ vue-template-es2015-compiler@^1.8.2:
|
||||
resolved "https://registry.yarnpkg.com/vue-template-es2015-compiler/-/vue-template-es2015-compiler-1.8.2.tgz#dd73e80ba58bb65dd7a8aa2aeef6089cf6116f2a"
|
||||
integrity sha512-cliV19VHLJqFUYbz/XeWXe5CO6guzwd0yrrqqp0bmjlMP3ZZULY7fu8RTC4+3lmHwo6ESVDHFDsvjB15hcR5IA==
|
||||
|
||||
vue@2.6.2:
|
||||
version "2.6.2"
|
||||
resolved "https://registry.yarnpkg.com/vue/-/vue-2.6.2.tgz#1cc9c9c8f7ba8df45e9b97c284947de78b76301c"
|
||||
integrity sha512-NZAb0H+t3/99g2nygURcEJ+ncvzNLPiEiFI5MGhc1Cjsw5uYprF+Ol7SOd1RXPcmVVzK7jUBl0th2tNgt+VQDg==
|
||||
vue@2.6.6:
|
||||
version "2.6.6"
|
||||
resolved "https://registry.yarnpkg.com/vue/-/vue-2.6.6.tgz#dde41e483c11c46a7bf523909f4f2f816ab60d25"
|
||||
integrity sha512-Y2DdOZD8sxApS+iUlwv1v8U1qN41kq6Kw45lM6nVZKhygeWA49q7VCCXkjXqeDBXgurrKWkYQ9cJeEJwAq0b9Q==
|
||||
|
||||
w3c-hr-time@^1.0.1:
|
||||
version "1.0.1"
|
||||
@ -10378,20 +10368,18 @@ webidl-conversions@^4.0.2:
|
||||
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad"
|
||||
integrity sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==
|
||||
|
||||
webpack-cli@^3.1.2:
|
||||
version "3.2.1"
|
||||
resolved "https://registry.yarnpkg.com/webpack-cli/-/webpack-cli-3.2.1.tgz#779c696c82482491f0803907508db2e276ed3b61"
|
||||
integrity sha512-jeJveHwz/vwpJ3B8bxEL5a/rVKIpRNJDsKggfKnxuYeohNDW4Y/wB9N/XHJA093qZyS0r6mYL+/crLsIol4WKA==
|
||||
webpack-cli@^3.2.3:
|
||||
version "3.2.3"
|
||||
resolved "https://registry.yarnpkg.com/webpack-cli/-/webpack-cli-3.2.3.tgz#13653549adfd8ccd920ad7be1ef868bacc22e346"
|
||||
integrity sha512-Ik3SjV6uJtWIAN5jp5ZuBMWEAaP5E4V78XJ2nI+paFPh8v4HPSwo/myN0r29Xc/6ZKnd2IdrAlpSgNOu2CDQ6Q==
|
||||
dependencies:
|
||||
chalk "^2.4.1"
|
||||
cross-spawn "^6.0.5"
|
||||
enhanced-resolve "^4.1.0"
|
||||
findup-sync "^2.0.0"
|
||||
global-modules "^1.0.0"
|
||||
global-modules-path "^2.3.0"
|
||||
import-local "^2.0.0"
|
||||
interpret "^1.1.0"
|
||||
lightercollective "^0.1.0"
|
||||
loader-utils "^1.1.0"
|
||||
supports-color "^5.5.0"
|
||||
v8-compile-cache "^2.0.2"
|
||||
@ -10484,10 +10472,10 @@ webpack-sources@^1.1.0, webpack-sources@^1.3.0:
|
||||
source-list-map "^2.0.0"
|
||||
source-map "~0.6.1"
|
||||
|
||||
webpack@^4.29.1:
|
||||
version "4.29.1"
|
||||
resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.29.1.tgz#a6533d7bc6a6b1ed188cb029d53d231be777e175"
|
||||
integrity sha512-dY3KyQIVeg6cDPj9G5Bnjy9Pt9SoCpbNWl0RDKHstbd3MWe0dG9ri4RQRpCm43iToy3zoA1IMOpFkJ8Clnc7FQ==
|
||||
webpack@^4.29.3:
|
||||
version "4.29.3"
|
||||
resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.29.3.tgz#e0b406a7b4201ed5e4fb4f84fd7359f9a7db4647"
|
||||
integrity sha512-xPJvFeB+8tUflXFq+OgdpiSnsCD5EANyv56co5q8q8+YtEasn5Sj3kzY44mta+csCIEB0vneSxnuaHkOL2h94A==
|
||||
dependencies:
|
||||
"@webassemblyjs/ast" "1.7.11"
|
||||
"@webassemblyjs/helper-module-context" "1.7.11"
|
||||
@ -10508,7 +10496,7 @@ webpack@^4.29.1:
|
||||
mkdirp "~0.5.0"
|
||||
neo-async "^2.5.0"
|
||||
node-libs-browser "^2.0.0"
|
||||
schema-utils "^0.4.4"
|
||||
schema-utils "^1.0.0"
|
||||
tapable "^1.1.0"
|
||||
terser-webpack-plugin "^1.1.0"
|
||||
watchpack "^1.5.0"
|
||||
@ -10623,19 +10611,19 @@ wrappy@1:
|
||||
resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
|
||||
integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=
|
||||
|
||||
write-file-atomic@^2.0.0:
|
||||
version "2.3.0"
|
||||
resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.3.0.tgz#1ff61575c2e2a4e8e510d6fa4e243cce183999ab"
|
||||
integrity sha512-xuPeK4OdjWqtfi59ylvVL0Yn35SF3zgcAcv7rBPFHVaEapaDr4GdGgm3j7ckTwH9wHL7fGmgfAnb0+THrHb8tA==
|
||||
write-file-atomic@2.4.1:
|
||||
version "2.4.1"
|
||||
resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.4.1.tgz#d0b05463c188ae804396fd5ab2a370062af87529"
|
||||
integrity sha512-TGHFeZEZMnv+gBFRfjAcxL5bPHrsGKtnb4qsFAws7/vlh+QfwAaySIw4AXP9ZskTTh5GWu3FLuJhsWVdiJPGvg==
|
||||
dependencies:
|
||||
graceful-fs "^4.1.11"
|
||||
imurmurhash "^0.1.4"
|
||||
signal-exit "^3.0.2"
|
||||
|
||||
write-file-atomic@^2.4.2:
|
||||
version "2.4.2"
|
||||
resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.4.2.tgz#a7181706dfba17855d221140a9c06e15fcdd87b9"
|
||||
integrity sha512-s0b6vB3xIVRLWywa6X9TOMA7k9zio0TMOsl9ZnDkliA/cfJlpHXAscj0gbHVJiTdIuAYpIyqS5GW91fqm6gG5g==
|
||||
write-file-atomic@^2.0.0:
|
||||
version "2.3.0"
|
||||
resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.3.0.tgz#1ff61575c2e2a4e8e510d6fa4e243cce183999ab"
|
||||
integrity sha512-xuPeK4OdjWqtfi59ylvVL0Yn35SF3zgcAcv7rBPFHVaEapaDr4GdGgm3j7ckTwH9wHL7fGmgfAnb0+THrHb8tA==
|
||||
dependencies:
|
||||
graceful-fs "^4.1.11"
|
||||
imurmurhash "^0.1.4"
|
||||
|
Loading…
x
Reference in New Issue
Block a user