@ribajs/i18n
Advanced tools
Comparing version 0.18.6 to 1.0.0
{ | ||
"name": "@ribajs/i18n", | ||
"description": "Internationalization extension for Riba.js", | ||
"version": "0.18.6", | ||
"version": "1.0.0", | ||
"author": "Pascal Garber <pascal@jumplink.eu>", | ||
@@ -28,25 +28,20 @@ "url": "https://github.com/ribajs/riba/tree/master/packages/i18n", | ||
"devDependencies": { | ||
"@babel/cli": "^7.2.0", | ||
"@babel/core": "^7.2.2", | ||
"@babel/plugin-proposal-class-properties": "^7.2.1", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.2.0", | ||
"@babel/plugin-transform-runtime": "^7.2.0", | ||
"@babel/preset-env": "^7.2.0", | ||
"@babel/preset-typescript": "^7.1.0", | ||
"@types/jquery": "^3.3.29", | ||
"babel-loader": "^8.0.5", | ||
"@babel/cli": "^7.4.4", | ||
"@babel/core": "^7.4.5", | ||
"@babel/plugin-proposal-class-properties": "^7.4.4", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.4.4", | ||
"@babel/plugin-transform-runtime": "^7.4.4", | ||
"@babel/preset-env": "^7.4.5", | ||
"@babel/preset-typescript": "^7.3.3", | ||
"@types/jquery": "^3.3.30", | ||
"babel-loader": "^8.0.6", | ||
"babel-plugin-array-includes": "^2.0.3", | ||
"harp": "^0.27.0", | ||
"mocha": "^5.2.0", | ||
"mocha-chrome": "^1.1.0", | ||
"should": "^13.2.3", | ||
"sinon": "^6.3.5", | ||
"tslint": "^5.12.0", | ||
"typescript": "^3.2.2", | ||
"webpack": "^4.28.3", | ||
"webpack-cli": "^3.2.0" | ||
"tslint": "^5.18.0", | ||
"typescript": "^3.5.2", | ||
"webpack": "^4.35.0", | ||
"webpack-cli": "^3.3.5" | ||
}, | ||
"dependencies": { | ||
"@babel/runtime-corejs2": "^7.2.0", | ||
"@ribajs/core": "^0.18.4" | ||
"@babel/runtime-corejs2": "^7.4.5", | ||
"@ribajs/core": "^1.0.0" | ||
}, | ||
@@ -53,0 +48,0 @@ "bugs": { |
@@ -1,2 +0,2 @@ | ||
import { Utils, ITwoWayBinder, BinderWrapper, JQuery as $ } from '@ribajs/core'; | ||
import { Utils, IBinder, BinderWrapper, JQuery as $ } from '@ribajs/core'; | ||
import { ALocalesService } from '../../services/locales-base.service'; | ||
@@ -17,5 +17,5 @@ | ||
*/ | ||
export const i18nStarBinderWrapper: BinderWrapper = (localesService: ALocalesService) => { | ||
const name = 'i18n-*'; | ||
const binder: ITwoWayBinder<string> = { | ||
export const i18nStarBinderWrapper: BinderWrapper<string> = (localesService: ALocalesService) => { | ||
return { | ||
name: 'i18n-*', | ||
block: false, | ||
@@ -197,7 +197,2 @@ priority: 0, | ||
}; | ||
return { | ||
binder, | ||
name, | ||
}; | ||
}; |
import { | ||
RibaComponent, | ||
AbstractRibaComponent, | ||
JQuery, | ||
Debug, | ||
Binder, | ||
IBinder, | ||
View, | ||
@@ -18,3 +18,3 @@ } from '@ribajs/core'; | ||
export abstract class AI18nSwitcherComponent extends RibaComponent { | ||
export abstract class AI18nSwitcherComponent extends AbstractRibaComponent { | ||
@@ -42,3 +42,3 @@ protected abstract localesService: ALocalesService; | ||
*/ | ||
public switch(langcode: ILangcode, context: Binder<any>, event: Event) { | ||
public switch(langcode: ILangcode, context: IBinder<any>, event: Event) { | ||
event.preventDefault(); | ||
@@ -57,3 +57,3 @@ event.stopPropagation(); | ||
*/ | ||
public toggle(context: Binder<any>, event: Event) { | ||
public toggle(context: IBinder<any>, event: Event) { | ||
event.preventDefault(); | ||
@@ -60,0 +60,0 @@ event.stopPropagation(); |
@@ -10,3 +10,3 @@ import { Debug } from '@ribajs/core'; | ||
public static getInstance(id: string) { | ||
public static getInstance(id: string = 'main') { | ||
return LocalesStaticService.instances[id]; | ||
@@ -13,0 +13,0 @@ } |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
14
0
29474
19
801
+ Added@ribajs/core@1.9.0(transitive)
+ Added@ribajs/utils@1.9.0(transitive)
- Removed@ribajs/core@0.18.6(transitive)
- Removed@types/core-js@2.5.8(transitive)
- Removed@types/debug@0.0.30(transitive)
- Removeddebug@3.2.7(transitive)
- Removedjquery@3.7.1(transitive)
- Removedms@2.1.3(transitive)
Updated@ribajs/core@^1.0.0