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

@ribajs/i18n

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ribajs/i18n - npm Package Compare versions

Comparing version 0.18.6 to 1.0.0

37

package.json
{
"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 @@ }

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