@tolgee/core
Advanced tools
Comparing version 1.0.0-alpha.36 to 1.0.0-alpha.37
@@ -89,3 +89,13 @@ "use strict"; | ||
}; | ||
this.escapeParam = function (string) { return string.replace(/[,:\\]/gs, "\\$&"); }; | ||
this.escapeParam = function (param) { | ||
if (typeof param === "string") { | ||
return param.replace(/[,:\\]/gs, "\\$&"); | ||
} | ||
if (typeof param === "number" || typeof param === "bigint") { | ||
return param.toString(); | ||
} | ||
console.warn(param); | ||
console.warn("Unsupported value type of above param. Consider converting to string."); | ||
return param; | ||
}; | ||
} | ||
@@ -92,0 +102,0 @@ TextService_1 = TextService; |
@@ -124,6 +124,6 @@ "use strict"; | ||
_a.sent(); | ||
this.eventService.LANGUAGE_LOADED.emit(lang); | ||
_a.label = 2; | ||
case 2: | ||
this.fetchPromises[lang] = undefined; | ||
this.eventService.LANGUAGE_LOADED.emit(lang); | ||
return [2 /*return*/]; | ||
@@ -130,0 +130,0 @@ } |
@@ -25,3 +25,3 @@ export interface TolgeeTextInputElement extends HTMLElement { | ||
export declare type TranslationParams = { | ||
[key: string]: string; | ||
[key: string]: string | number | bigint; | ||
}; | ||
@@ -28,0 +28,0 @@ export declare type KeyAndParams = { |
{ | ||
"name": "@tolgee/core", | ||
"version": "1.0.0-alpha.36", | ||
"version": "1.0.0-alpha.37", | ||
"description": "Library providing ability to translate messages directly in context of developed application.", | ||
@@ -38,12 +38,2 @@ "main": "dist/tolgee.umd.js", | ||
"devDependencies": { | ||
"@babel/cli": "^7.11.6", | ||
"@babel/core": "^7.11.6", | ||
"@babel/plugin-proposal-class-properties": "^7.10.4", | ||
"@babel/plugin-proposal-decorators": "^7.10.5", | ||
"@babel/plugin-proposal-numeric-separator": "^7.10.4", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.11.0", | ||
"@babel/plugin-transform-async-to-generator": "^7.10.4", | ||
"@babel/preset-env": "^7.11.5", | ||
"@babel/preset-react": "^7.10.4", | ||
"@babel/preset-typescript": "^7.10.4", | ||
"@testing-library/dom": "^7.24.5", | ||
@@ -54,5 +44,2 @@ "@testing-library/jest-dom": "^5.11.4", | ||
"@types/node": "^14.14.22", | ||
"babel-loader": "^8.1.0", | ||
"babel-plugin-import": "^1.13.1", | ||
"babel-plugin-transform-typescript-metadata": "^0.3.1", | ||
"clsx": "^1.1.1", | ||
@@ -80,3 +67,3 @@ "copy-webpack-plugin": "^7.0.0", | ||
}, | ||
"gitHead": "47c34bb8db0a1058a5b611bac08556193123678f", | ||
"gitHead": "81b33f71af85d49108c52ddbad28da980d91e4d0", | ||
"publishConfig": { | ||
@@ -83,0 +70,0 @@ "access": "public" |
Sorry, the diff of this file is too big to display
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
Sorry, the diff of this file is too big to display
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
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
2043131
26
4659