chore: update deps

This commit is contained in:
Rim
2025-03-29 15:51:03 -04:00
parent e1fab5e7ef
commit a9cac1605b
2120 changed files with 369757 additions and 880 deletions

3
node_modules/no-case/no-case.d.ts generated vendored Normal file
View File

@ -0,0 +1,3 @@
declare function noCase (value: string, locale?: string, replacement?: string): string;
export = noCase;

40
node_modules/no-case/no-case.js generated vendored Normal file
View File

@ -0,0 +1,40 @@
var lowerCase = require('lower-case')
var NON_WORD_REGEXP = require('./vendor/non-word-regexp')
var CAMEL_CASE_REGEXP = require('./vendor/camel-case-regexp')
var CAMEL_CASE_UPPER_REGEXP = require('./vendor/camel-case-upper-regexp')
/**
* Sentence case a string.
*
* @param {string} str
* @param {string} locale
* @param {string} replacement
* @return {string}
*/
module.exports = function (str, locale, replacement) {
if (str == null) {
return ''
}
replacement = typeof replacement !== 'string' ? ' ' : replacement
function replace (match, index, value) {
if (index === 0 || index === (value.length - match.length)) {
return ''
}
return replacement
}
str = String(str)
// Support camel case ("camelCase" -> "camel Case").
.replace(CAMEL_CASE_REGEXP, '$1 $2')
// Support odd camel case ("CAMELCase" -> "CAMEL Case").
.replace(CAMEL_CASE_UPPER_REGEXP, '$1 $2')
// Remove all non-word characters and replace with a single space.
.replace(NON_WORD_REGEXP, replace)
// Lower case the entire string.
return lowerCase(str, locale)
}

56
node_modules/no-case/package.json generated vendored Normal file
View File

@ -0,0 +1,56 @@
{
"name": "no-case",
"version": "2.3.2",
"description": "Remove case from a string",
"main": "no-case.js",
"typings": "no-case.d.ts",
"files": [
"no-case.js",
"no-case.d.ts",
"vendor",
"LICENSE"
],
"scripts": {
"lint": "standard",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- -R spec --bail",
"test": "npm run lint && npm run test-cov",
"build": "node build.js"
},
"standard": {
"ignore": [
"coverage/**"
]
},
"repository": {
"type": "git",
"url": "git://github.com/blakeembrey/no-case.git"
},
"keywords": [
"no",
"case",
"space",
"lower",
"trim"
],
"author": {
"name": "Blake Embrey",
"email": "hello@blakeembrey.com",
"url": "http://blakeembrey.me"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/blakeembrey/no-case/issues"
},
"homepage": "https://github.com/blakeembrey/no-case",
"devDependencies": {
"chai": "^4.0.2",
"istanbul": "^0.4.3",
"jsesc": "^2.2.0",
"mocha": "^3.0.0",
"standard": "^10.0.2",
"xregexp": "^3.1.1"
},
"dependencies": {
"lower-case": "^1.1.1"
}
}

1
node_modules/no-case/vendor/camel-case-regexp.js generated vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
node_modules/no-case/vendor/non-word-regexp.js generated vendored Normal file

File diff suppressed because one or more lines are too long