lower-case
Advanced tools
Comparing version 2.0.2 to 3.0.0
@@ -7,3 +7,3 @@ "use strict"; | ||
*/ | ||
var SUPPORTED_LOCALE = { | ||
const SUPPORTED_LOCALE = { | ||
tr: { | ||
@@ -41,5 +41,5 @@ regexp: /\u0130|\u0049|\u0049\u0307/g, | ||
function localeLowerCase(str, locale) { | ||
var lang = SUPPORTED_LOCALE[locale.toLowerCase()]; | ||
const lang = SUPPORTED_LOCALE[locale.toLowerCase()]; | ||
if (lang) | ||
return lowerCase(str.replace(lang.regexp, function (m) { return lang.map[m]; })); | ||
return lowerCase(str.replace(lang.regexp, (m) => lang.map[m])); | ||
return lowerCase(str); | ||
@@ -46,0 +46,0 @@ } |
{ | ||
"name": "lower-case", | ||
"version": "2.0.2", | ||
"version": "3.0.0", | ||
"description": "Transforms the string to lower case", | ||
"main": "dist/index.js", | ||
"typings": "dist/index.d.ts", | ||
"module": "dist.es2015/index.js", | ||
"sideEffects": false, | ||
"jsnext:main": "dist.es2015/index.js", | ||
"files": [ | ||
"dist/", | ||
"dist.es2015/", | ||
"LICENSE" | ||
"dist/" | ||
], | ||
"exports": { | ||
".": "./dist/index.js" | ||
}, | ||
"scripts": { | ||
"lint": "tslint \"src/**/*\" --project tsconfig.json", | ||
"build": "rimraf dist/ dist.es2015/ && tsc && tsc -P tsconfig.es2015.json", | ||
"specs": "jest --coverage", | ||
"test": "npm run build && npm run lint && npm run specs", | ||
"size": "size-limit", | ||
"prepare": "npm run build" | ||
"format": "ts-scripts format", | ||
"specs": "ts-scripts specs", | ||
"test": "ts-scripts test", | ||
"build": "ts-scripts build", | ||
"bench": "vitest bench", | ||
"prepublishOnly": "npm run build" | ||
}, | ||
@@ -45,44 +41,5 @@ "repository": { | ||
"homepage": "https://github.com/blakeembrey/change-case/tree/master/packages/lower-case#readme", | ||
"size-limit": [ | ||
{ | ||
"path": "dist/index.js", | ||
"limit": "250 B" | ||
} | ||
], | ||
"jest": { | ||
"roots": [ | ||
"<rootDir>/src/" | ||
], | ||
"transform": { | ||
"\\.tsx?$": "ts-jest" | ||
}, | ||
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$", | ||
"moduleFileExtensions": [ | ||
"ts", | ||
"tsx", | ||
"js", | ||
"jsx", | ||
"json", | ||
"node" | ||
] | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"devDependencies": { | ||
"@size-limit/preset-small-lib": "^2.2.1", | ||
"@types/jest": "^24.0.23", | ||
"@types/node": "^12.12.14", | ||
"jest": "^24.9.0", | ||
"rimraf": "^3.0.0", | ||
"ts-jest": "^24.2.0", | ||
"tslint": "^5.20.1", | ||
"tslint-config-prettier": "^1.18.0", | ||
"tslint-config-standard": "^9.0.0", | ||
"typescript": "^4.1.2" | ||
}, | ||
"dependencies": { | ||
"tslib": "^2.0.3" | ||
}, | ||
"gitHead": "76a21a7f6f2a226521ef6abd345ff309cbd01fb0" | ||
} | ||
} |
# Lower Case | ||
[![NPM version][npm-image]][npm-url] | ||
[![NPM downloads][downloads-image]][downloads-url] | ||
[![Bundle size][bundlephobia-image]][bundlephobia-url] | ||
> Transforms the string to lower case. | ||
@@ -29,8 +25,1 @@ | ||
MIT | ||
[npm-image]: https://img.shields.io/npm/v/lower-case.svg?style=flat | ||
[npm-url]: https://npmjs.org/package/lower-case | ||
[downloads-image]: https://img.shields.io/npm/dm/lower-case.svg?style=flat | ||
[downloads-url]: https://npmjs.org/package/lower-case | ||
[bundlephobia-image]: https://img.shields.io/bundlephobia/minzip/lower-case.svg | ||
[bundlephobia-url]: https://bundlephobia.com/result?p=lower-case |
Sorry, the diff of this file is not supported yet
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
0
0
5083
5
60
1
25
- Removedtslib@^2.0.3
- Removedtslib@2.6.2(transitive)