Comparing version 1.1.22 to 1.1.23
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var warning = require("warning"); | ||
var defaultLocale = 'ru-ru'; | ||
@@ -35,2 +36,3 @@ var Intl = (function () { | ||
} | ||
warning(result !== null, "Empty string for category " + category + " and key " + key + "."); | ||
return result; | ||
@@ -43,2 +45,3 @@ }; | ||
} | ||
warning(result !== null, "Empty string for category " + category + " and key " + key + "."); | ||
return result; | ||
@@ -45,0 +48,0 @@ }; |
{ | ||
"name": "onix-core", | ||
"version": "1.1.22", | ||
"version": "1.1.23", | ||
"description": "Onix library core", | ||
@@ -29,4 +29,5 @@ "main": "built/index.js", | ||
"typescript": "^2.4.2", | ||
"warning": "^3.0.0", | ||
"webpack": "^2.7.0" | ||
} | ||
} |
@@ -0,1 +1,3 @@ | ||
import * as warning from 'warning'; | ||
declare type Locales = 'ru-ru' | 'en-us'; | ||
@@ -56,2 +58,6 @@ declare type StringsCallback = (key: string) => string; | ||
warning(result !== null, | ||
`Empty string for category ${category} and key ${key}.` | ||
); | ||
return result; | ||
@@ -66,2 +72,6 @@ }; | ||
warning(result !== null, | ||
`Empty string for category ${category} and key ${key}.` | ||
); | ||
return result; | ||
@@ -68,0 +78,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
1514653
21608
6