New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

factorial-i18n

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

factorial-i18n - npm Package Compare versions

Comparing version

to
0.0.3

flow-typed/npm/flow-copy-source_vx.x.x.js

6

__tests__/index.spec.js

@@ -85,8 +85,2 @@ import I18n from '../src'

it('throws if the path is not translated in other locales', () => {
expect(() => {
i18n.t('not_translated')
}).toThrowError()
})
describe('when it has a interpolation', () => {

@@ -93,0 +87,0 @@ it('throws if the variable is not found', () => {

# Changelog
## `0.0.3`
Relaxed a bit the other locale warning.
Also added a default locale.
## `0.0.2`

@@ -4,0 +9,0 @@

2

coverage/coverage-final.json

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

{"/Users/pauramonrevilla/Sites/factorial-i18n/src/index.js": {"path":"/Users/pauramonrevilla/Sites/factorial-i18n/src/index.js","statementMap":{"0":{"start":{"line":16,"column":4},"end":{"line":16,"column":36}},"1":{"start":{"line":17,"column":4},"end":{"line":17,"column":44}},"2":{"start":{"line":18,"column":4},"end":{"line":18,"column":22}},"3":{"start":{"line":22,"column":4},"end":{"line":22,"column":24}},"4":{"start":{"line":24,"column":4},"end":{"line":27,"column":5}},"5":{"start":{"line":25,"column":6},"end":{"line":25,"column":56}},"6":{"start":{"line":26,"column":6},"end":{"line":26,"column":28}},"7":{"start":{"line":34,"column":4},"end":{"line":34,"column":41}},"8":{"start":{"line":41,"column":19},"end":{"line":41,"column":64}},"9":{"start":{"line":43,"column":4},"end":{"line":50,"column":5}},"10":{"start":{"line":45,"column":6},"end":{"line":49,"column":8}},"11":{"start":{"line":46,"column":8},"end":{"line":46,"column":60}},"12":{"start":{"line":46,"column":54},"end":{"line":46,"column":60}},"13":{"start":{"line":48,"column":8},"end":{"line":48,"column":78}},"14":{"start":{"line":52,"column":4},"end":{"line":52,"column":17}},"15":{"start":{"line":65,"column":18},"end":{"line":65,"column":35}},"16":{"start":{"line":66,"column":4},"end":{"line":68,"column":5}},"17":{"start":{"line":67,"column":6},"end":{"line":67,"column":51}},"18":{"start":{"line":69,"column":18},"end":{"line":69,"column":33}},"19":{"start":{"line":71,"column":4},"end":{"line":78,"column":6}},"20":{"start":{"line":72,"column":6},"end":{"line":76,"column":7}},"21":{"start":{"line":73,"column":8},"end":{"line":75,"column":9}},"22":{"start":{"line":77,"column":6},"end":{"line":77,"column":42}},"23":{"start":{"line":90,"column":16},"end":{"line":90,"column":26}},"24":{"start":{"line":92,"column":4},"end":{"line":94,"column":5}},"25":{"start":{"line":93,"column":6},"end":{"line":93,"column":57}},"26":{"start":{"line":96,"column":17},"end":{"line":96,"column":41}},"27":{"start":{"line":97,"column":23},"end":{"line":97,"column":40}},"28":{"start":{"line":99,"column":4},"end":{"line":99,"column":35}},"29":{"start":{"line":111,"column":20},"end":{"line":111,"column":41}},"30":{"start":{"line":112,"column":4},"end":{"line":112,"column":32}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":15,"column":2},"end":{"line":15,"column":3}},"loc":{"start":{"line":15,"column":70},"end":{"line":19,"column":3}},"line":15},"1":{"name":"(anonymous_1)","decl":{"start":{"line":21,"column":2},"end":{"line":21,"column":3}},"loc":{"start":{"line":21,"column":35},"end":{"line":28,"column":3}},"line":21},"2":{"name":"(anonymous_2)","decl":{"start":{"line":33,"column":2},"end":{"line":33,"column":3}},"loc":{"start":{"line":33,"column":56},"end":{"line":35,"column":3}},"line":33},"3":{"name":"(anonymous_3)","decl":{"start":{"line":40,"column":2},"end":{"line":40,"column":3}},"loc":{"start":{"line":40,"column":40},"end":{"line":53,"column":3}},"line":40},"4":{"name":"(anonymous_4)","decl":{"start":{"line":45,"column":36},"end":{"line":45,"column":37}},"loc":{"start":{"line":45,"column":46},"end":{"line":49,"column":7}},"line":45},"5":{"name":"(anonymous_5)","decl":{"start":{"line":64,"column":2},"end":{"line":64,"column":3}},"loc":{"start":{"line":64,"column":60},"end":{"line":79,"column":3}},"line":64},"6":{"name":"(anonymous_6)","decl":{"start":{"line":71,"column":32},"end":{"line":71,"column":33}},"loc":{"start":{"line":71,"column":50},"end":{"line":78,"column":5}},"line":71},"7":{"name":"(anonymous_7)","decl":{"start":{"line":89,"column":2},"end":{"line":89,"column":3}},"loc":{"start":{"line":89,"column":60},"end":{"line":100,"column":3}},"line":89},"8":{"name":"(anonymous_8)","decl":{"start":{"line":110,"column":2},"end":{"line":110,"column":3}},"loc":{"start":{"line":110,"column":79},"end":{"line":113,"column":3}},"line":110}},"branchMap":{"0":{"loc":{"start":{"line":24,"column":4},"end":{"line":27,"column":5}},"type":"if","locations":[{"start":{"line":24,"column":4},"end":{"line":27,"column":5}},{"start":{"line":24,"column":4},"end":{"line":27,"column":5}}],"line":24},"1":{"loc":{"start":{"line":43,"column":4},"end":{"line":50,"column":5}},"type":"if","locations":[{"start":{"line":43,"column":4},"end":{"line":50,"column":5}},{"start":{"line":43,"column":4},"end":{"line":50,"column":5}}],"line":43},"2":{"loc":{"start":{"line":46,"column":8},"end":{"line":46,"column":60}},"type":"if","locations":[{"start":{"line":46,"column":8},"end":{"line":46,"column":60}},{"start":{"line":46,"column":8},"end":{"line":46,"column":60}}],"line":46},"3":{"loc":{"start":{"line":66,"column":4},"end":{"line":68,"column":5}},"type":"if","locations":[{"start":{"line":66,"column":4},"end":{"line":68,"column":5}},{"start":{"line":66,"column":4},"end":{"line":68,"column":5}}],"line":66},"4":{"loc":{"start":{"line":72,"column":6},"end":{"line":76,"column":7}},"type":"if","locations":[{"start":{"line":72,"column":6},"end":{"line":76,"column":7}},{"start":{"line":72,"column":6},"end":{"line":76,"column":7}}],"line":72},"5":{"loc":{"start":{"line":92,"column":4},"end":{"line":94,"column":5}},"type":"if","locations":[{"start":{"line":92,"column":4},"end":{"line":94,"column":5}},{"start":{"line":92,"column":4},"end":{"line":94,"column":5}}],"line":92}},"s":{"0":13,"1":13,"2":13,"3":11,"4":11,"5":6,"6":6,"7":2,"8":15,"9":15,"10":15,"11":29,"12":27,"13":2,"14":13,"15":15,"16":13,"17":1,"18":12,"19":12,"20":8,"21":1,"22":7,"23":8,"24":7,"25":1,"26":6,"27":6,"28":6,"29":2,"30":2},"f":{"0":13,"1":11,"2":2,"3":15,"4":29,"5":15,"6":8,"7":8,"8":2},"b":{"0":[6,5],"1":[15,0],"2":[27,2],"3":[1,12],"4":[1,7],"5":[1,6]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"90af50520293dff20f00ec9ee1a2a544aa720c6a"}
{"/Users/pauramonrevilla/Sites/factorial-i18n/src/index.js": {"path":"/Users/pauramonrevilla/Sites/factorial-i18n/src/index.js","statementMap":{"0":{"start":{"line":10,"column":23},"end":{"line":10,"column":27}},"1":{"start":{"line":18,"column":4},"end":{"line":18,"column":36}},"2":{"start":{"line":19,"column":4},"end":{"line":19,"column":44}},"3":{"start":{"line":20,"column":4},"end":{"line":20,"column":22}},"4":{"start":{"line":24,"column":4},"end":{"line":24,"column":24}},"5":{"start":{"line":26,"column":4},"end":{"line":29,"column":5}},"6":{"start":{"line":27,"column":6},"end":{"line":27,"column":56}},"7":{"start":{"line":28,"column":6},"end":{"line":28,"column":28}},"8":{"start":{"line":36,"column":4},"end":{"line":36,"column":41}},"9":{"start":{"line":43,"column":19},"end":{"line":44,"column":54}},"10":{"start":{"line":46,"column":4},"end":{"line":53,"column":5}},"11":{"start":{"line":48,"column":6},"end":{"line":52,"column":8}},"12":{"start":{"line":49,"column":8},"end":{"line":49,"column":60}},"13":{"start":{"line":49,"column":54},"end":{"line":49,"column":60}},"14":{"start":{"line":51,"column":8},"end":{"line":51,"column":75}},"15":{"start":{"line":55,"column":4},"end":{"line":55,"column":17}},"16":{"start":{"line":68,"column":18},"end":{"line":68,"column":35}},"17":{"start":{"line":69,"column":4},"end":{"line":71,"column":5}},"18":{"start":{"line":70,"column":6},"end":{"line":70,"column":51}},"19":{"start":{"line":72,"column":18},"end":{"line":72,"column":33}},"20":{"start":{"line":74,"column":4},"end":{"line":81,"column":6}},"21":{"start":{"line":75,"column":6},"end":{"line":79,"column":7}},"22":{"start":{"line":76,"column":8},"end":{"line":78,"column":9}},"23":{"start":{"line":80,"column":6},"end":{"line":80,"column":42}},"24":{"start":{"line":93,"column":16},"end":{"line":93,"column":26}},"25":{"start":{"line":95,"column":4},"end":{"line":97,"column":5}},"26":{"start":{"line":96,"column":6},"end":{"line":96,"column":57}},"27":{"start":{"line":99,"column":17},"end":{"line":99,"column":41}},"28":{"start":{"line":100,"column":23},"end":{"line":100,"column":40}},"29":{"start":{"line":102,"column":4},"end":{"line":102,"column":35}},"30":{"start":{"line":114,"column":20},"end":{"line":114,"column":41}},"31":{"start":{"line":115,"column":4},"end":{"line":115,"column":32}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":17,"column":2},"end":{"line":17,"column":3}},"loc":{"start":{"line":17,"column":70},"end":{"line":21,"column":3}},"line":17},"1":{"name":"(anonymous_1)","decl":{"start":{"line":23,"column":2},"end":{"line":23,"column":3}},"loc":{"start":{"line":23,"column":35},"end":{"line":30,"column":3}},"line":23},"2":{"name":"(anonymous_2)","decl":{"start":{"line":35,"column":2},"end":{"line":35,"column":3}},"loc":{"start":{"line":35,"column":56},"end":{"line":37,"column":3}},"line":35},"3":{"name":"(anonymous_3)","decl":{"start":{"line":42,"column":2},"end":{"line":42,"column":3}},"loc":{"start":{"line":42,"column":40},"end":{"line":56,"column":3}},"line":42},"4":{"name":"(anonymous_4)","decl":{"start":{"line":48,"column":36},"end":{"line":48,"column":37}},"loc":{"start":{"line":48,"column":46},"end":{"line":52,"column":7}},"line":48},"5":{"name":"(anonymous_5)","decl":{"start":{"line":67,"column":2},"end":{"line":67,"column":3}},"loc":{"start":{"line":67,"column":60},"end":{"line":82,"column":3}},"line":67},"6":{"name":"(anonymous_6)","decl":{"start":{"line":74,"column":32},"end":{"line":74,"column":33}},"loc":{"start":{"line":74,"column":50},"end":{"line":81,"column":5}},"line":74},"7":{"name":"(anonymous_7)","decl":{"start":{"line":92,"column":2},"end":{"line":92,"column":3}},"loc":{"start":{"line":92,"column":60},"end":{"line":103,"column":3}},"line":92},"8":{"name":"(anonymous_8)","decl":{"start":{"line":113,"column":2},"end":{"line":113,"column":3}},"loc":{"start":{"line":113,"column":79},"end":{"line":116,"column":3}},"line":113}},"branchMap":{"0":{"loc":{"start":{"line":26,"column":4},"end":{"line":29,"column":5}},"type":"if","locations":[{"start":{"line":26,"column":4},"end":{"line":29,"column":5}},{"start":{"line":26,"column":4},"end":{"line":29,"column":5}}],"line":26},"1":{"loc":{"start":{"line":43,"column":19},"end":{"line":44,"column":54}},"type":"binary-expr","locations":[{"start":{"line":43,"column":19},"end":{"line":43,"column":64}},{"start":{"line":44,"column":6},"end":{"line":44,"column":54}}],"line":43},"2":{"loc":{"start":{"line":46,"column":4},"end":{"line":53,"column":5}},"type":"if","locations":[{"start":{"line":46,"column":4},"end":{"line":53,"column":5}},{"start":{"line":46,"column":4},"end":{"line":53,"column":5}}],"line":46},"3":{"loc":{"start":{"line":49,"column":8},"end":{"line":49,"column":60}},"type":"if","locations":[{"start":{"line":49,"column":8},"end":{"line":49,"column":60}},{"start":{"line":49,"column":8},"end":{"line":49,"column":60}}],"line":49},"4":{"loc":{"start":{"line":69,"column":4},"end":{"line":71,"column":5}},"type":"if","locations":[{"start":{"line":69,"column":4},"end":{"line":71,"column":5}},{"start":{"line":69,"column":4},"end":{"line":71,"column":5}}],"line":69},"5":{"loc":{"start":{"line":75,"column":6},"end":{"line":79,"column":7}},"type":"if","locations":[{"start":{"line":75,"column":6},"end":{"line":79,"column":7}},{"start":{"line":75,"column":6},"end":{"line":79,"column":7}}],"line":75},"6":{"loc":{"start":{"line":95,"column":4},"end":{"line":97,"column":5}},"type":"if","locations":[{"start":{"line":95,"column":4},"end":{"line":97,"column":5}},{"start":{"line":95,"column":4},"end":{"line":97,"column":5}}],"line":95}},"s":{"0":1,"1":12,"2":12,"3":12,"4":10,"5":10,"6":5,"7":5,"8":2,"9":14,"10":14,"11":14,"12":28,"13":26,"14":2,"15":14,"16":14,"17":14,"18":2,"19":12,"20":12,"21":8,"22":1,"23":7,"24":8,"25":7,"26":1,"27":6,"28":6,"29":6,"30":2,"31":2},"f":{"0":12,"1":10,"2":2,"3":14,"4":28,"5":14,"6":8,"7":8,"8":2},"b":{"0":[5,5],"1":[14,1],"2":[14,0],"3":[26,2],"4":[2,12],"5":[1,7],"6":[1,6]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"848b3337ec3d81d1a8f19104c84167dfde9da373"}
,"/Users/pauramonrevilla/Sites/factorial-i18n/src/numeralLanguages.js": {"path":"/Users/pauramonrevilla/Sites/factorial-i18n/src/numeralLanguages.js","statementMap":{"0":{"start":{"line":20,"column":16},"end":{"line":20,"column":27}},"1":{"start":{"line":22,"column":6},"end":{"line":26,"column":78}}},"fnMap":{},"branchMap":{"0":{"loc":{"start":{"line":22,"column":13},"end":{"line":26,"column":78}},"type":"cond-expr","locations":[{"start":{"line":23,"column":10},"end":{"line":23,"column":14}},{"start":{"line":24,"column":10},"end":{"line":26,"column":78}}],"line":22},"1":{"loc":{"start":{"line":22,"column":13},"end":{"line":22,"column":31}},"type":"binary-expr","locations":[{"start":{"line":22,"column":13},"end":{"line":22,"column":20}},{"start":{"line":22,"column":24},"end":{"line":22,"column":31}}],"line":22},"2":{"loc":{"start":{"line":24,"column":10},"end":{"line":26,"column":78}},"type":"cond-expr","locations":[{"start":{"line":25,"column":12},"end":{"line":25,"column":16}},{"start":{"line":26,"column":12},"end":{"line":26,"column":78}}],"line":24},"3":{"loc":{"start":{"line":26,"column":12},"end":{"line":26,"column":78}},"type":"cond-expr","locations":[{"start":{"line":26,"column":33},"end":{"line":26,"column":37}},{"start":{"line":26,"column":40},"end":{"line":26,"column":78}}],"line":26},"4":{"loc":{"start":{"line":26,"column":12},"end":{"line":26,"column":30}},"type":"binary-expr","locations":[{"start":{"line":26,"column":12},"end":{"line":26,"column":19}},{"start":{"line":26,"column":23},"end":{"line":26,"column":30}}],"line":26},"5":{"loc":{"start":{"line":26,"column":40},"end":{"line":26,"column":78}},"type":"cond-expr","locations":[{"start":{"line":26,"column":50},"end":{"line":26,"column":54}},{"start":{"line":26,"column":57},"end":{"line":26,"column":78}}],"line":26},"6":{"loc":{"start":{"line":26,"column":57},"end":{"line":26,"column":78}},"type":"cond-expr","locations":[{"start":{"line":26,"column":67},"end":{"line":26,"column":71}},{"start":{"line":26,"column":74},"end":{"line":26,"column":78}}],"line":26}},"s":{"0":0,"1":0},"f":{},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"1b5cf8a42b8d3e0caebf7ef68366cdb0bc76a155"}
}

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

// flow-typed signature: 14fa8268165aaa802442727c9b0d7323
// flow-typed version: <<STUB>>/babel-cli_v^6.23.0/flow_v0.41.0
// flow-typed signature: 25c5e9a036a3e199649f88360d74aba9
// flow-typed version: <<STUB>>/babel-cli_v^6.24.1/flow_v0.47.0

@@ -11,4 +11,4 @@ /**

*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed

@@ -15,0 +15,0 @@ */

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

// flow-typed signature: fd778a43cab56666e05692c3482e3207
// flow-typed version: <<STUB>>/babel-core_v^6.23.1/flow_v0.41.0
// flow-typed signature: 1b58921499b6cbc0376741954a8eb5fa
// flow-typed version: <<STUB>>/babel-core_v^6.25.0/flow_v0.47.0

@@ -11,4 +11,4 @@ /**

*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed

@@ -15,0 +15,0 @@ */

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

// flow-typed signature: 22e5660f6ace1e8a35df70bd5fa9b751
// flow-typed version: <<STUB>>/babel-eslint_v^7.1.1/flow_v0.41.0
// flow-typed signature: 3f39e881bf0b4e83c4715f3d9c1be3f9
// flow-typed version: <<STUB>>/babel-eslint_v^7.2.3/flow_v0.47.0

@@ -11,4 +11,4 @@ /**

*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed

@@ -30,2 +30,6 @@ */

declare module 'babel-eslint/babylon-to-espree/convertComments' {
declare module.exports: any;
}
declare module 'babel-eslint/babylon-to-espree/convertTemplateType' {

@@ -55,2 +59,5 @@ declare module.exports: any;

}
declare module 'babel-eslint/babylon-to-espree/convertComments.js' {
declare module.exports: $Exports<'babel-eslint/babylon-to-espree/convertComments'>;
}
declare module 'babel-eslint/babylon-to-espree/convertTemplateType.js' {

@@ -57,0 +64,0 @@ declare module.exports: $Exports<'babel-eslint/babylon-to-espree/convertTemplateType'>;

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

// flow-typed signature: e29f857cbe719bd33494c101d3b55cd1
// flow-typed version: <<STUB>>/babel-jest_v^19.0.0/flow_v0.41.0
// flow-typed signature: c5f56507f22abc799fee64c0abfe30c0
// flow-typed version: <<STUB>>/babel-jest_v^20.0.3/flow_v0.47.0

@@ -11,4 +11,4 @@ /**

*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed

@@ -15,0 +15,0 @@ */

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

// flow-typed signature: 76a02125146cb48c4078050ec70abf62
// flow-typed version: <<STUB>>/babel-plugin-transform-flow-strip-types_v^6.22.0/flow_v0.41.0
// flow-typed signature: bbcb803d9f49929318cc761b809a9cf8
// flow-typed version: <<STUB>>/babel-plugin-transform-flow-strip-types_v^6.22.0/flow_v0.47.0

@@ -11,4 +11,4 @@ /**

*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed

@@ -15,0 +15,0 @@ */

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

// flow-typed signature: 6eb623682ef5eb10a84973a4658255b1
// flow-typed version: <<STUB>>/babel-preset-es2015_v^6.22.0/flow_v0.41.0
// flow-typed signature: 61e55149effe794ae5a90da469a75e3b
// flow-typed version: <<STUB>>/babel-preset-es2015_v^6.24.1/flow_v0.47.0

@@ -11,4 +11,4 @@ /**

*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed

@@ -15,0 +15,0 @@ */

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

// flow-typed signature: 45cdf5fce1f463f67849a6c316586249
// flow-typed version: <<STUB>>/babel-preset-stage-1_v^6.22.0/flow_v0.41.0
// flow-typed signature: 274779e294c57c91b5b4dc21f5195c50
// flow-typed version: <<STUB>>/babel-preset-stage-1_v^6.24.1/flow_v0.47.0

@@ -11,4 +11,4 @@ /**

*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed

@@ -15,0 +15,0 @@ */

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

// flow-typed signature: ff18a262d91ed65ceea0f7e9dff4202a
// flow-typed version: <<STUB>>/babel-register_v^6.23.0/flow_v0.41.0
// flow-typed signature: 0524ed784c1156dabf603b666391c296
// flow-typed version: <<STUB>>/babel-register_v^6.24.1/flow_v0.47.0

@@ -11,4 +11,4 @@ /**

*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed

@@ -15,0 +15,0 @@ */

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

// flow-typed signature: 7eb4bd351d236c9bbefad6862a91fe8d
// flow-typed version: <<STUB>>/eslint-config-standard_v^7.1.0/flow_v0.41.0
// flow-typed signature: 3155a65c0f61774b1a9a041463d47539
// flow-typed version: <<STUB>>/eslint-config-standard_v^10.2.1/flow_v0.47.0

@@ -11,4 +11,4 @@ /**

*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed

@@ -15,0 +15,0 @@ */

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

// flow-typed signature: cbb05cd070538fe74a0a1962e9ccb630
// flow-typed version: <<STUB>>/eslint-plugin-flowtype_v2.30.3/flow_v0.41.0
// flow-typed signature: 786932e77739214796af421bef559a89
// flow-typed version: <<STUB>>/eslint-plugin-flowtype_v2.34.0/flow_v0.47.0

@@ -11,4 +11,4 @@ /**

*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed

@@ -58,2 +58,6 @@ */

declare module 'eslint-plugin-flowtype/dist/rules/noTypesMissingFileAnnotation' {
declare module.exports: any;
}
declare module 'eslint-plugin-flowtype/dist/rules/noWeakTypes' {

@@ -220,2 +224,5 @@ declare module.exports: any;

}
declare module 'eslint-plugin-flowtype/dist/rules/noTypesMissingFileAnnotation.js' {
declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noTypesMissingFileAnnotation'>;
}
declare module 'eslint-plugin-flowtype/dist/rules/noWeakTypes.js' {

@@ -222,0 +229,0 @@ declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noWeakTypes'>;

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

// flow-typed signature: 4cfe4ed9672a8800e1fb4e3ff3538781
// flow-typed version: <<STUB>>/eslint-plugin-import_v^2.2.0/flow_v0.41.0
// flow-typed signature: 9eb967c73a45d2b171be28455df24670
// flow-typed version: <<STUB>>/eslint-plugin-import_v^2.3.0/flow_v0.47.0

@@ -11,4 +11,4 @@ /**

*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed

@@ -118,2 +118,6 @@ */

declare module 'eslint-plugin-import/lib/rules/no-anonymous-default-export' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/rules/no-commonjs' {

@@ -269,2 +273,5 @@ declare module.exports: any;

}
declare module 'eslint-plugin-import/lib/rules/no-anonymous-default-export.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-anonymous-default-export'>;
}
declare module 'eslint-plugin-import/lib/rules/no-commonjs.js' {

@@ -271,0 +278,0 @@ declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-commonjs'>;

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

// flow-typed signature: 89ee5e5a5790f7da50527cb6798a79e0
// flow-typed version: <<STUB>>/eslint-plugin-node_v^4.2.1/flow_v0.41.0
// flow-typed signature: 5d5a3e6cb5840e70a1504b0be6965ed7
// flow-typed version: <<STUB>>/eslint-plugin-node_v^5.0.0/flow_v0.47.0

@@ -11,4 +11,4 @@ /**

*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed

@@ -26,2 +26,10 @@ */

*/
declare module 'eslint-plugin-node/lib/index' {
declare module.exports: any;
}
declare module 'eslint-plugin-node/lib/rules' {
declare module.exports: any;
}
declare module 'eslint-plugin-node/lib/rules/exports-style' {

@@ -35,2 +43,10 @@ declare module.exports: any;

declare module 'eslint-plugin-node/lib/rules/no-extraneous-import' {
declare module.exports: any;
}
declare module 'eslint-plugin-node/lib/rules/no-extraneous-require' {
declare module.exports: any;
}
declare module 'eslint-plugin-node/lib/rules/no-hide-core-modules' {

@@ -80,2 +96,6 @@ declare module.exports: any;

declare module 'eslint-plugin-node/lib/util/check-extraneous' {
declare module.exports: any;
}
declare module 'eslint-plugin-node/lib/util/check-publish' {

@@ -138,7 +158,7 @@ declare module.exports: any;

// Filename aliases
declare module 'eslint-plugin-node/index' {
declare module.exports: $Exports<'eslint-plugin-node'>;
declare module 'eslint-plugin-node/lib/index.js' {
declare module.exports: $Exports<'eslint-plugin-node/lib/index'>;
}
declare module 'eslint-plugin-node/index.js' {
declare module.exports: $Exports<'eslint-plugin-node'>;
declare module 'eslint-plugin-node/lib/rules.js' {
declare module.exports: $Exports<'eslint-plugin-node/lib/rules'>;
}

@@ -151,2 +171,8 @@ declare module 'eslint-plugin-node/lib/rules/exports-style.js' {

}
declare module 'eslint-plugin-node/lib/rules/no-extraneous-import.js' {
declare module.exports: $Exports<'eslint-plugin-node/lib/rules/no-extraneous-import'>;
}
declare module 'eslint-plugin-node/lib/rules/no-extraneous-require.js' {
declare module.exports: $Exports<'eslint-plugin-node/lib/rules/no-extraneous-require'>;
}
declare module 'eslint-plugin-node/lib/rules/no-hide-core-modules.js' {

@@ -185,2 +211,5 @@ declare module.exports: $Exports<'eslint-plugin-node/lib/rules/no-hide-core-modules'>;

}
declare module 'eslint-plugin-node/lib/util/check-extraneous.js' {
declare module.exports: $Exports<'eslint-plugin-node/lib/util/check-extraneous'>;
}
declare module 'eslint-plugin-node/lib/util/check-publish.js' {

@@ -187,0 +216,0 @@ declare module.exports: $Exports<'eslint-plugin-node/lib/util/check-publish'>;

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

// flow-typed signature: 8926b9a9877d2445baa486ff6e88f350
// flow-typed version: <<STUB>>/eslint-plugin-promise_v^3.5.0/flow_v0.41.0
// flow-typed signature: 71ae9c14620a347c9c5ca32d7ca7f1c9
// flow-typed version: <<STUB>>/eslint-plugin-promise_v^3.5.0/flow_v0.47.0

@@ -11,4 +11,4 @@ /**

*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed

@@ -15,0 +15,0 @@ */

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

// flow-typed signature: 42ec1d98ab206726b2e0908003c13139
// flow-typed version: <<STUB>>/eslint-plugin-standard_v^2.1.1/flow_v0.41.0
// flow-typed signature: 0d5ef564e95dd030b34a6d7e9bdc161f
// flow-typed version: <<STUB>>/eslint-plugin-standard_v^3.0.1/flow_v0.47.0

@@ -11,4 +11,4 @@ /**

*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed

@@ -15,0 +15,0 @@ */

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

// flow-typed signature: 78dae8071af35cd03d9d90192a5461d9
// flow-typed version: e26b789976/lodash_v4.x.x/flow_>=v0.38.x
// flow-typed signature: b611e91eea833723f66a55f458ee8e27
// flow-typed version: 13ceae43c9/lodash_v4.x.x/flow_>=v0.47.x

@@ -52,5 +52,6 @@ declare module 'lodash' {

declare type _ValueOnlyIteratee<T> = (value: T) => mixed;
declare type ValueOnlyIteratee<T> = _ValueOnlyIteratee<T>|string;
declare type _Iteratee<T> = (item: T, index: number, array: ?Array<T>) => mixed;
declare type Iteratee<T> = _Iteratee<T>|Object|string;
declare type Iteratee2<T, U> = ((item: T, index: number, array: ?Array<T>) => U)|Object|string;
declare type FlatMapIteratee<T, U> = ((item: T, index: number, array: ?Array<T>) => Array<U>)|Object|string;

@@ -73,3 +74,3 @@ declare type Comparator<T> = (item: T, item2: T) => bool;

difference<T>(array: ?Array<T>, values?: Array<T>): Array<T>;
differenceBy<T>(array: ?Array<T>, values: Array<T>, iteratee: Iteratee<T>): T[];
differenceBy<T>(array: ?Array<T>, values: Array<T>, iteratee: ValueOnlyIteratee<T>): T[];
differenceWith<T>(array: T[], values: T[], comparator?: Comparator<T>): T[];

@@ -94,6 +95,6 @@ drop<T>(array: ?Array<T>, n?: number): Array<T>;

//Workaround until (...parameter: T, parameter2: U) works
intersectionBy<T>(a1: Array<T>, iteratee?: Iteratee<T>): Array<T>;
intersectionBy<T>(a1: Array<T>, a2: Array<T>, iteratee?: Iteratee<T>): Array<T>;
intersectionBy<T>(a1: Array<T>, a2: Array<T>, a3: Array<T>, iteratee?: Iteratee<T>): Array<T>;
intersectionBy<T>(a1: Array<T>, a2: Array<T>, a3: Array<T>, a4: Array<T>, iteratee?: Iteratee<T>): Array<T>;
intersectionBy<T>(a1: Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>;
intersectionBy<T>(a1: Array<T>, a2: Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>;
intersectionBy<T>(a1: Array<T>, a2: Array<T>, a3: Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>;
intersectionBy<T>(a1: Array<T>, a2: Array<T>, a3: Array<T>, a4: Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>;
//Workaround until (...parameter: T, parameter2: U) works

@@ -110,3 +111,3 @@ intersectionWith<T>(a1: Array<T>, comparator: Comparator<T>): Array<T>;

pullAll<T>(array: ?Array<T>, values: Array<T>): Array<T>;
pullAllBy<T>(array: ?Array<T>, values: Array<T>, iteratee?: Iteratee<T>): Array<T>;
pullAllBy<T>(array: ?Array<T>, values: Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>;
pullAllWith<T>(array?: T[], values: T[], comparator?: Function): T[];

@@ -119,6 +120,6 @@ pullAt<T>(array: ?Array<T>, ...indexed?: Array<number>): Array<T>;

sortedIndex<T>(array: ?Array<T>, value: T): number;
sortedIndexBy<T>(array: ?Array<T>, value: T, iteratee?: Iteratee<T>): number;
sortedIndexBy<T>(array: ?Array<T>, value: T, iteratee?: ValueOnlyIteratee<T>): number;
sortedIndexOf<T>(array: ?Array<T>, value: T): number;
sortedLastIndex<T>(array: ?Array<T>, value: T): number;
sortedLastIndexBy<T>(array: ?Array<T>, value: T, iteratee?: Iteratee<T>): number;
sortedLastIndexBy<T>(array: ?Array<T>, value: T, iteratee?: ValueOnlyIteratee<T>): number;
sortedLastIndexOf<T>(array: ?Array<T>, value: T): number;

@@ -134,6 +135,6 @@ sortedUniq<T>(array: ?Array<T>): Array<T>;

//Workaround until (...parameter: T, parameter2: U) works
unionBy<T>(a1: Array<T>, iteratee?: Iteratee<T>): Array<T>;
unionBy<T>(a1: Array<T>, a2: Array<T>, iteratee?: Iteratee<T>): Array<T>;
unionBy<T>(a1: Array<T>, a2: Array<T>, a3: Array<T>, iteratee?: Iteratee<T>): Array<T>;
unionBy<T>(a1: Array<T>, a2: Array<T>, a3: Array<T>, a4: Array<T>, iteratee?: Iteratee<T>): Array<T>;
unionBy<T>(a1: Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>;
unionBy<T>(a1: Array<T>, a2: Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>;
unionBy<T>(a1: Array<T>, a2: Array<T>, a3: Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>;
unionBy<T>(a1: Array<T>, a2: Array<T>, a3: Array<T>, a4: Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>;
//Workaround until (...parameter: T, parameter2: U) works

@@ -145,3 +146,3 @@ unionWith<T>(a1: Array<T>, comparator?: Comparator<T>): Array<T>;

uniq<T>(array: ?Array<T>): Array<T>;
uniqBy<T>(array: ?Array<T>, iteratee?: Iteratee<T>): Array<T>;
uniqBy<T>(array: ?Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>;
uniqWith<T>(array: ?Array<T>, comparator?: Comparator<T>): Array<T>;

@@ -153,6 +154,6 @@ unzip<T>(array: ?Array<T>): Array<T>;

//Workaround until (...parameter: T, parameter2: U) works
xorBy<T>(a1: Array<T>, iteratee?: Iteratee<T>): Array<T>;
xorBy<T>(a1: Array<T>, a2: Array<T>, iteratee?: Iteratee<T>): Array<T>;
xorBy<T>(a1: Array<T>, a2: Array<T>, a3: Array<T>, iteratee?: Iteratee<T>): Array<T>;
xorBy<T>(a1: Array<T>, a2: Array<T>, a3: Array<T>, a4: Array<T>, iteratee?: Iteratee<T>): Array<T>;
xorBy<T>(a1: Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>;
xorBy<T>(a1: Array<T>, a2: Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>;
xorBy<T>(a1: Array<T>, a2: Array<T>, a3: Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>;
xorBy<T>(a1: Array<T>, a2: Array<T>, a3: Array<T>, a4: Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>;
//Workaround until (...parameter: T, parameter2: U) works

@@ -177,4 +178,4 @@ xorWith<T>(a1: Array<T>, comparator?: Comparator<T>): Array<T>;

// Collection
countBy<T>(array: ?Array<T>, iteratee?: Iteratee<T>): Object;
countBy<T: Object>(object: T, iteratee?: OIteratee<T>): Object;
countBy<T>(array: ?Array<T>, iteratee?: ValueOnlyIteratee<T>): Object;
countBy<T: Object>(object: T, iteratee?: ValueOnlyIteratee<T>): Object;
// alias of _.forEach

@@ -190,5 +191,5 @@ each<T>(array: ?Array<T>, iteratee?: Iteratee<T>): Array<T>;

filter<A, T: {[id: string]: A}>(object: T, predicate?: OPredicate<A, T>): Array<A>;
find<T>(array: ?Array<T>, predicate?: Predicate<T>): T;
find<T>(array: ?Array<T>, predicate?: Predicate<T>): T|void;
find<V, A, T: {[id: string]: A}>(object: T, predicate?: OPredicate<A, T>): V;
findLast<T>(array: ?Array<T>, predicate?: Predicate<T>): T;
findLast<T>(array: ?Array<T>, predicate?: Predicate<T>): T|void;
findLast<V, A, T: {[id: string]: A}>(object: T, predicate?: OPredicate<A, T>): V;

@@ -205,4 +206,4 @@ flatMap<T, U>(array: ?Array<T>, iteratee?: FlatMapIteratee<T, U>): Array<U>;

forEachRight<T: Object>(object: T, iteratee?: OIteratee<T>): T;
groupBy<T>(array: ?Array<T>, iteratee?: Iteratee<T>): Object;
groupBy<T: Object>(object: T, iteratee?: OIteratee<T>): Object;
groupBy<V, T>(array: ?Array<T>, iteratee?: ValueOnlyIteratee<T>): {[key: V]: ?Array<T>};
groupBy<V, A, T: {[id: string]: A}>(object: T, iteratee?: ValueOnlyIteratee<A>): {[key: V]: ?Array<A>};
includes<T>(array: ?Array<T>, value: T, fromIndex?: number): bool;

@@ -213,4 +214,4 @@ includes<T: Object>(object: T, value: any, fromIndex?: number): bool;

invokeMap<T: Object>(object: T, path: ((value: any) => Array<string>|string)|Array<string>|string, ...args?: Array<any>): Array<any>;
keyBy<T, V>(array: ?Array<T>, iteratee?: Iteratee2<T, V>): {[key: V]: ?T};
keyBy<V, T: Object>(object: T, iteratee?: OIteratee<T>): Object;
keyBy<T, V>(array: ?Array<T>, iteratee?: ValueOnlyIteratee<T>): {[key: V]: ?T};
keyBy<V, A, I, T: {[id: I]: A}>(object: T, iteratee?: ValueOnlyIteratee<A>): {[key: V]: ?A};
map<T, U>(array: ?Array<T>, iteratee?: MapIterator<T, U>): Array<U>;

@@ -397,3 +398,3 @@ map<V, T: Object, U>(object: ?T, iteratee?: OMapIterator<V, T, U>): Array<U>;

functionsIn(object?: ?Object): Array<string>;
get(object?: ?Object, path?: ?Array<string>|string, defaultValue?: any): any;
get(object?: ?Object|?Array<any>, path?: ?Array<string>|string, defaultValue?: any): any;
has(object?: ?Object, path?: ?Array<string>|string): bool;

@@ -494,3 +495,3 @@ hasIn(object?: ?Object, path?: ?Array<string>|string): bool;

noConflict(): Lodash;
noop(): void;
noop(...args: Array<mixed>): void;
nthArg(n?: number): Function;

@@ -497,0 +498,0 @@ over(...iteratees: Array<Function>): Function;

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

// flow-typed signature: a69f4801d27e8c65d980f0986e133a22
// flow-typed version: <<STUB>>/prettier-standard_v^1.0.6/flow_v0.41.0
// flow-typed signature: 0a3a32ecd614b69c7332942721bb75a8
// flow-typed version: <<STUB>>/prettier-standard_v^5.0.0/flow_v0.47.0

@@ -11,4 +11,4 @@ /**

*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed

@@ -15,0 +15,0 @@ */

@@ -29,2 +29,4 @@ 'use strict';

var DEFAULT_LOCALE = 'en';
var I18n = function () {

@@ -69,3 +71,3 @@ function I18n(translations, supportedLocales) {

var result = _lodash2.default.at(this.translations[this.locale], path)[0];
var result = _lodash2.default.at(this.translations[this.locale], path)[0] || _lodash2.default.at(this.translations[DEFAULT_LOCALE], path)[0];

@@ -77,3 +79,3 @@ if (process.env.NODE_ENV === 'development') {

throw new Error('Key not found "' + path + '" with the locale "' + locale + '"');
console.warn('Key not found "' + path + '" with the locale "' + locale + '"');
});

@@ -80,0 +82,0 @@ }

{
"name": "factorial-i18n",
"version": "0.0.2",
"version": "0.0.3",
"description": "Factorial i18n library",

@@ -5,0 +5,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet