@celo/base
Advanced tools
Comparing version 1.0.0-beta3 to 1.0.0-beta4
@@ -23,5 +23,2 @@ export declare enum CURRENCY_ENUM { | ||
}; | ||
export declare const currencyTranslations: { | ||
[key: string]: any; | ||
}; | ||
export {}; |
"use strict"; | ||
var _a, _b, _c; | ||
var _a, _b; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -42,20 +42,2 @@ var CURRENCY_ENUM; | ||
_b); | ||
var currencyTranslationsENUS = { | ||
CeloDollars: 'Celo Dollars', | ||
CeloDollar: 'Celo Dollar', | ||
Dollar: 'Dollar', | ||
Dollars: 'Dollars', | ||
dollars: 'dollars', | ||
}; | ||
var currencyTranslationsESAR = { | ||
CeloDollars: 'Celo Dólares', | ||
CeloDollar: 'Celo Dólar', | ||
Dollar: 'Dólar', | ||
Dollars: 'Dólares', | ||
dollars: 'dólares', | ||
}; | ||
exports.currencyTranslations = (_c = {}, | ||
_c['en-US'] = currencyTranslationsENUS, | ||
_c['es-419'] = currencyTranslationsESAR, | ||
_c); | ||
//# sourceMappingURL=currencies.js.map |
export declare function appendPath(baseUrl: string, path: string): string; | ||
export declare function normalizeAccents(str: string): string; | ||
export declare const StringBase: { | ||
appendPath: typeof appendPath; | ||
normalizeAccents: typeof normalizeAccents; | ||
}; |
@@ -11,5 +11,11 @@ "use strict"; | ||
exports.appendPath = appendPath; | ||
// https://stackoverflow.com/questions/990904/remove-accents-diacritics-in-a-string-in-javascript | ||
function normalizeAccents(str) { | ||
return str.normalize('NFD').replace(/[\u0300-\u036f]/g, ''); | ||
} | ||
exports.normalizeAccents = normalizeAccents; | ||
exports.StringBase = { | ||
appendPath: appendPath, | ||
normalizeAccents: normalizeAccents, | ||
}; | ||
//# sourceMappingURL=string.js.map |
{ | ||
"name": "@celo/base", | ||
"version": "1.0.0-beta3", | ||
"version": "1.0.0-beta4", | ||
"description": "Celo base common utils, no dependencies", | ||
@@ -13,2 +13,3 @@ "author": "Celo", | ||
"clean": "tsc -b . --clean", | ||
"docs": "typedoc && ts-node ../utils/scripts/linkdocs.ts base", | ||
"test": "jest --runInBand --ci", | ||
@@ -15,0 +16,0 @@ "test:verbose": "jest --verbose", |
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
179903
2737