update node modules
This commit is contained in:
53
node_modules/i18next/CHANGELOG.md
generated
vendored
53
node_modules/i18next/CHANGELOG.md
generated
vendored
@@ -1,3 +1,56 @@
|
||||
### 19.6.2
|
||||
|
||||
- fix interpolation with option skipOnVariables when there are multiple placeholders [1490](https://github.com/i18next/i18next/issues/1490)
|
||||
|
||||
### 19.6.1
|
||||
|
||||
- extend interpolation option skipOnVariables [1488](https://github.com/i18next/i18next/pull/1488)
|
||||
- typescript: Change bindStore to bindI18nStore in ReactOptions type and update default values [1489](https://github.com/i18next/i18next/pull/1489)
|
||||
|
||||
### 19.6.0
|
||||
|
||||
- fix prototype pollution
|
||||
- introduce new interpolation option skipOnVariables [1483](https://github.com/i18next/i18next/pull/1483)
|
||||
|
||||
### 19.5.6
|
||||
|
||||
- fix local usage of nsSeparator option
|
||||
|
||||
### 19.5.5
|
||||
|
||||
- fix: recursion when passing nesting to interpolated [1480](https://github.com/i18next/i18next/pull/1480)
|
||||
|
||||
### 19.5.4
|
||||
|
||||
- typescript fix: getDataByLanguage typings & test [1472](https://github.com/i18next/i18next/pull/1472)
|
||||
- typescript fix: type declarion of exposed EventEmitter#off methods [1460](https://github.com/i18next/i18next/pull/1460)
|
||||
|
||||
### 19.5.3
|
||||
|
||||
- fix Macedonian plural formula [1476](https://github.com/i18next/i18next/pull/1476)
|
||||
|
||||
### 19.5.2
|
||||
|
||||
- fix nesting interpolation with prepended namespace, fixes #1474 [1475](https://github.com/i18next/i18next/pull/1475)
|
||||
|
||||
### 19.5.1
|
||||
|
||||
- getBestMatchFromCodes: use fallbackLng if nothing found, fixes #1470 [1471](https://github.com/i18next/i18next/pull/1471)
|
||||
|
||||
### 19.5.0
|
||||
|
||||
- language detectors can return an array of languages and let i18next figure out best match
|
||||
|
||||
- rename option whitelist to supportedLngs
|
||||
- rename option nonExpicitWhitelist to nonExplicitSupportedLngs
|
||||
- rename function languageUtils.isWhitelisted to languageUtils.isSupportedCode
|
||||
|
||||
This changes are made with temporal backwards compatiblity and will warn your for deprecated usage of old terms to give users and plugin providers some time to adapt their code base.
|
||||
|
||||
The temporal backwards compatiblity will be removed in a follow up major release.
|
||||
|
||||
Learn more about why this change was made [here](https://github.com/i18next/i18next/issues/1466).
|
||||
|
||||
### 19.4.5
|
||||
|
||||
- Add store events to typings [1451](https://github.com/i18next/i18next/pull/1451)
|
||||
|
616
node_modules/i18next/dist/cjs/i18next.js
generated
vendored
616
node_modules/i18next/dist/cjs/i18next.js
generated
vendored
File diff suppressed because it is too large
Load Diff
616
node_modules/i18next/dist/esm/i18next.js
generated
vendored
616
node_modules/i18next/dist/esm/i18next.js
generated
vendored
File diff suppressed because it is too large
Load Diff
689
node_modules/i18next/dist/umd/i18next.js
generated
vendored
689
node_modules/i18next/dist/umd/i18next.js
generated
vendored
File diff suppressed because it is too large
Load Diff
2
node_modules/i18next/dist/umd/i18next.min.js
generated
vendored
2
node_modules/i18next/dist/umd/i18next.min.js
generated
vendored
File diff suppressed because one or more lines are too long
689
node_modules/i18next/i18next.js
generated
vendored
689
node_modules/i18next/i18next.js
generated
vendored
File diff suppressed because it is too large
Load Diff
2
node_modules/i18next/i18next.min.js
generated
vendored
2
node_modules/i18next/i18next.min.js
generated
vendored
File diff suppressed because one or more lines are too long
42
node_modules/i18next/index.d.ts
generated
vendored
42
node_modules/i18next/index.d.ts
generated
vendored
@@ -99,6 +99,12 @@ export interface InterpolationOptions {
|
||||
* @default 1000
|
||||
*/
|
||||
maxReplaces?: number;
|
||||
|
||||
/**
|
||||
* If true, it will skip to interpolate the variables
|
||||
* @default false
|
||||
*/
|
||||
skipOnVariables?: boolean;
|
||||
}
|
||||
|
||||
export interface ReactOptions {
|
||||
@@ -119,14 +125,14 @@ export interface ReactOptions {
|
||||
defaultTransParent?: string;
|
||||
/**
|
||||
* Set which events trigger a re-render, can be set to false or string of events
|
||||
* @default 'languageChanged loaded'
|
||||
* @default 'languageChanged'
|
||||
*/
|
||||
bindI18n?: string | false;
|
||||
/**
|
||||
* Set which events on store trigger a re-render, can be set to false or string of events
|
||||
* @default 'added removed'
|
||||
* @default ''
|
||||
*/
|
||||
bindStore?: string | false;
|
||||
bindI18nStore?: string | false;
|
||||
/**
|
||||
* Set fallback value for Trans components without children
|
||||
* @default undefined
|
||||
@@ -190,16 +196,28 @@ export interface InitOptions {
|
||||
fallbackLng?: false | FallbackLng;
|
||||
|
||||
/**
|
||||
* Array of allowed languages
|
||||
* DEPRECATED use supportedLngs
|
||||
* @default false
|
||||
*/
|
||||
whitelist?: false | string[];
|
||||
|
||||
/**
|
||||
* If true will pass eg. en-US if finding en in whitelist
|
||||
* DEPRECTADED use nonExplicitSupportedLngs
|
||||
* @default false
|
||||
*/
|
||||
nonExplicitWhitelist?: boolean;
|
||||
nonExplicitWhiteliest?: boolean;
|
||||
|
||||
/**
|
||||
* Array of allowed languages
|
||||
* @default false
|
||||
*/
|
||||
supportedLngs?: false | string[];
|
||||
|
||||
/**
|
||||
* If true will pass eg. en-US if finding en in supportedLngs
|
||||
* @default false
|
||||
*/
|
||||
nonExplicitSupportedLngs?: boolean;
|
||||
|
||||
/**
|
||||
* Language codes to lookup, given set language is
|
||||
@@ -688,6 +706,11 @@ export class ResourceStore {
|
||||
* Gets fired when resources got added or removed
|
||||
*/
|
||||
on(event: 'added' | 'removed', callback: (lng: string, ns: string) => void): void;
|
||||
/**
|
||||
* Remove event listener
|
||||
* removes all callback when callback not specified
|
||||
*/
|
||||
off(event: 'added' | 'removed', callback?: (lng: string, ns: string) => void): void;
|
||||
}
|
||||
|
||||
export interface Services {
|
||||
@@ -845,7 +868,7 @@ export interface i18n {
|
||||
/**
|
||||
* Returns a resource data by language.
|
||||
*/
|
||||
getDataByLanguage(lng: string): { translation: { [key: string]: string } };
|
||||
getDataByLanguage(lng: string): { translation: { [key: string]: string } } | undefined;
|
||||
|
||||
/**
|
||||
* Returns a t function that defaults to given language or namespace.
|
||||
@@ -863,7 +886,7 @@ export interface i18n {
|
||||
|
||||
/**
|
||||
* Is set to the current detected or set language.
|
||||
* If you need the primary used language depending on your configuration (whitelist, load) you will prefer using i18next.languages[0].
|
||||
* If you need the primary used language depending on your configuration (supportedLngs, load) you will prefer using i18next.languages[0].
|
||||
*/
|
||||
language: string;
|
||||
|
||||
@@ -961,8 +984,9 @@ export interface i18n {
|
||||
|
||||
/**
|
||||
* Remove event listener
|
||||
* removes all callback when callback not specified
|
||||
*/
|
||||
off(event: string, listener: (...args: any[]) => void): void;
|
||||
off(event: string, listener?: (...args: any[]) => void): void;
|
||||
|
||||
/**
|
||||
* Gets one value by given key.
|
||||
|
27
node_modules/i18next/package.json
generated
vendored
27
node_modules/i18next/package.json
generated
vendored
@@ -1,27 +1,28 @@
|
||||
{
|
||||
"_from": "i18next@^19.4.5",
|
||||
"_id": "i18next@19.4.5",
|
||||
"_from": "i18next@19.6.2",
|
||||
"_id": "i18next@19.6.2",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-aLvSsURoupi3x9IndmV6+m3IGhzLzhYv7Gw+//K3ovdliyGcFRV0I1MuddI0Bk/zR7BG1U+kJOjeHFUcUIdEgg==",
|
||||
"_integrity": "sha512-Zyd/Z32FY+sD+Eg6sLj5DeDSlrIN3WZ4onuOBRGcjDx/rvodsyUZ9TJ2Y+3aD9Vu8MPbiMU2WesIER/rs1ioyw==",
|
||||
"_location": "/i18next",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "i18next@^19.4.5",
|
||||
"raw": "i18next@19.6.2",
|
||||
"name": "i18next",
|
||||
"escapedName": "i18next",
|
||||
"rawSpec": "^19.4.5",
|
||||
"rawSpec": "19.6.2",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^19.4.5"
|
||||
"fetchSpec": "19.6.2"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"#USER",
|
||||
"/",
|
||||
"/i18next-scanner"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/i18next/-/i18next-19.4.5.tgz",
|
||||
"_shasum": "f9ea8bbb48d1ec66bc3436f0bb74a16b11821e11",
|
||||
"_spec": "i18next@^19.4.5",
|
||||
"_resolved": "https://registry.npmjs.org/i18next/-/i18next-19.6.2.tgz",
|
||||
"_shasum": "859aeba46db0c7cdfa8ae3de7c3a5cad3b0cec83",
|
||||
"_spec": "i18next@19.6.2",
|
||||
"_where": "D:\\Projects\\vanillajs-seed",
|
||||
"author": {
|
||||
"name": "Jan Mühlemann",
|
||||
@@ -33,12 +34,12 @@
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.3.1"
|
||||
"@babel/runtime": "^7.10.1"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "i18next internationalization framework",
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.2.2",
|
||||
"@babel/core": "^7.10.1",
|
||||
"@babel/plugin-proposal-async-generator-functions": "^7.2.0",
|
||||
"@babel/plugin-proposal-object-rest-spread": "^7.3.2",
|
||||
"@babel/plugin-transform-modules-commonjs": "^7.2.0",
|
||||
@@ -144,5 +145,5 @@
|
||||
"test:typescript:noninterop": "tslint --project tsconfig.nonEsModuleInterop.json"
|
||||
},
|
||||
"types": "./index.d.ts",
|
||||
"version": "19.4.5"
|
||||
"version": "19.6.2"
|
||||
}
|
||||
|
Reference in New Issue
Block a user