@celo/base
Advanced tools
Comparing version 1.0.0-dev to 1.0.0
@@ -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-dev", | ||
"version": "1.0.0", | ||
"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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
179897
2737
1