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

@lion/localize

Package Overview
Dependencies
Maintainers
1
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lion/localize - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

## [0.1.3](https://github.com/ing-bank/lion/compare/@lion/localize@0.1.2...@lion/localize@0.1.3) (2019-04-28)
### Bug Fixes
* update storybook/linting; adjust story labels, eslint ignores ([8d96f84](https://github.com/ing-bank/lion/commit/8d96f84))
## [0.1.2](https://github.com/ing-bank/lion/compare/@lion/localize@0.1.1...@lion/localize@0.1.2) (2019-04-27)

@@ -8,0 +19,0 @@

8

package.json
{
"name": "@lion/localize",
"version": "0.1.2",
"version": "0.1.3",
"description": "The localization system helps to manage localization data split into locales and automate its loading",

@@ -34,11 +34,11 @@ "author": "ing-bank",

"@bundled-es-modules/message-format": "6.0.4",
"@lion/core": "^0.1.2"
"@lion/core": "^0.1.3"
},
"devDependencies": {
"@bundled-es-modules/fetch-mock": "^6.5.2",
"@open-wc/storybook": "^0.1.5",
"@open-wc/demoing-storybook": "^0.2.0",
"@open-wc/testing": "^0.11.1",
"sinon": "^7.2.2"
},
"gitHead": "6497db62d375612d691f00120daa0cdb2d899dc5"
"gitHead": "bb1d1448b59f5b6579880a521f0695578d09eb73"
}

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

/* eslint-disable no-underscore-dangle */
export default function isLocalizeESModule(obj) {
return !!(obj && obj.default && typeof obj.default === 'object' && Object.keys(obj).length === 1);
}

@@ -1,3 +0,1 @@

/* eslint-disable no-underscore-dangle, class-methods-use-this */
import MessageFormat from '@bundled-es-modules/message-format/MessageFormat.js';

@@ -27,4 +25,4 @@ import { LionSingleton } from '@lion/core';

// eslint-disable-next-line class-methods-use-this
get locale() {
// eslint-disable-line class-methods-use-this
return document.documentElement.lang;

@@ -172,2 +170,3 @@ }

// eslint-disable-next-line class-methods-use-this
_getLangFromLocale(locale) {

@@ -174,0 +173,0 @@ return locale.substring(0, 2);

@@ -1,3 +0,1 @@

/* eslint-disable no-underscore-dangle */
import { dedupeMixin, until, nothing } from '@lion/core';

@@ -4,0 +2,0 @@ import { localize } from './localize.js';

@@ -1,3 +0,2 @@

/* eslint-disable no-underscore-dangle, class-methods-use-this */
import { storiesOf, html } from '@open-wc/storybook';
import { storiesOf, html } from '@open-wc/demoing-storybook';

@@ -16,3 +15,3 @@ import { html as litHtml } from '@lion/core';

storiesOf('Localize System|localize', module).add('lit component', () => {
storiesOf('Localize System|Localize', module).add('lit component', () => {
class LitHtmlExample extends LocalizeMixin(LionLitElement) {

@@ -191,3 +190,3 @@ static get localizeNamespaces() {

//
// <button @click=${() => action('translate')(localize.msg(keyInput.value))}>
// <button @click=${() => console.log(localize.msg(keyInput.value))}>
// Translate to Action Logger

@@ -199,5 +198,5 @@ // </button>

// <br /><br />
// <button @click=${() => action('localize data')(localize.__storage)}>
// <button @click=${() => console.log(localize.__storage)}>
// Log available Data to Action Logger
// </button>
// `;

@@ -1,2 +0,1 @@

/* eslint-env mocha */
import { expect } from '@open-wc/testing';

@@ -3,0 +2,0 @@ import { localize } from '../src/localize.js';

@@ -1,3 +0,1 @@

/* eslint-env mocha */
/* eslint-disable no-underscore-dangle */
import { expect } from '@open-wc/testing';

@@ -4,0 +2,0 @@

@@ -1,2 +0,1 @@

/* eslint-env mocha */
import { expect } from '@open-wc/testing';

@@ -3,0 +2,0 @@

@@ -1,3 +0,1 @@

/* eslint-env mocha */
/* eslint-disable no-underscore-dangle */
import { expect } from '@open-wc/testing';

@@ -4,0 +2,0 @@

@@ -1,3 +0,1 @@

/* eslint-env mocha */
/* eslint-disable no-underscore-dangle */
import { expect, oneEvent } from '@open-wc/testing';

@@ -4,0 +2,0 @@ import { fetchMock } from '@bundled-es-modules/fetch-mock';

@@ -1,3 +0,1 @@

/* eslint-env mocha */
/* eslint-disable no-underscore-dangle, class-methods-use-this, no-unused-expressions */
import {

@@ -338,3 +336,2 @@ expect,

// eslint-disable-next-line max-len
const tag = defineCE(

@@ -341,0 +338,0 @@ class TestPromise extends LocalizeMixin(LionLitElement) {

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