Comparing version 2.1.0 to 2.1.1
@@ -807,2 +807,13 @@ /** | ||
export { type CamelCase, type CamelKeys, type CharAt, type Concat, type ConstantCase, type ConstantKeys, type DeepCamelKeys, type DeepConstantKeys, type DeepDelimiterKeys, type DeepKebabKeys, type DeepPascalKeys, type DeepSnakeKeys, type DelimiterCase, type DelimiterKeys, type EndsWith, type Includes, type IsDigit, type IsLetter, type IsLower, type IsSeparator, type IsSpecial, type IsUpper, type Join, type KebabCase, type KebabKeys, type Length, type PadEnd, type PadStart, type PascalCase, type PascalKeys, type Repeat, type Replace, type ReplaceAll, type Reverse, type Slice, type SnakeCase, type SnakeKeys, type Split, type StartsWith, type TitleCase, type Trim, type TrimEnd, type TrimStart, type Truncate, type Words, camelCase, camelKeys, capitalize, charAt, concat, constantCase, constantKeys, deepCamelKeys, deepConstantKeys, deepDelimiterKeys, deepKebabKeys, deepPascalKeys, deepSnakeKeys, delimiterCase, delimiterKeys, endsWith, includes, join, kebabCase, kebabKeys, length, lowerCase, padEnd, padStart, pascalCase, pascalKeys, repeat, replace, replaceAll, reverse, slice, snakeCase, snakeKeys, split, startsWith, titleCase, toCamelCase, toConstantCase, toDelimiterCase, toKebabCase, toLowerCase, toPascalCase, toSnakeCase, toTitleCase, toUpperCase, trim, trimEnd, trimStart, truncate, uncapitalize, upperCase, words }; | ||
/** | ||
* This function is used to transform the keys of an object deeply. | ||
* It will only be transformed at runtime, so it's not type safe. | ||
* @param obj the object to transform. | ||
* @param transform the function to transform the keys from string to string. | ||
* @returns the transformed object. | ||
* @example deepTransformKeys({ 'foo-bar': { 'fizz-buzz': true } }, camelCase) | ||
* // { fooBar: { fizzBuzz: true } } | ||
*/ | ||
declare function deepTransformKeys<T>(obj: T, transform: (s: string) => string): T; | ||
export { type CamelCase, type CamelKeys, type CharAt, type Concat, type ConstantCase, type ConstantKeys, type DeepCamelKeys, type DeepConstantKeys, type DeepDelimiterKeys, type DeepKebabKeys, type DeepPascalKeys, type DeepSnakeKeys, type DelimiterCase, type DelimiterKeys, type EndsWith, type Includes, type IsDigit, type IsLetter, type IsLower, type IsSeparator, type IsSpecial, type IsUpper, type Join, type KebabCase, type KebabKeys, type Length, type PadEnd, type PadStart, type PascalCase, type PascalKeys, type Repeat, type Replace, type ReplaceAll, type Reverse, type Slice, type SnakeCase, type SnakeKeys, type Split, type StartsWith, type TitleCase, type Trim, type TrimEnd, type TrimStart, type Truncate, type Words, camelCase, camelKeys, capitalize, charAt, concat, constantCase, constantKeys, deepCamelKeys, deepConstantKeys, deepDelimiterKeys, deepKebabKeys, deepPascalKeys, deepSnakeKeys, deepTransformKeys, delimiterCase, delimiterKeys, endsWith, includes, join, kebabCase, kebabKeys, length, lowerCase, padEnd, padStart, pascalCase, pascalKeys, repeat, replace, replaceAll, reverse, slice, snakeCase, snakeKeys, split, startsWith, titleCase, toCamelCase, toConstantCase, toDelimiterCase, toKebabCase, toLowerCase, toPascalCase, toSnakeCase, toTitleCase, toUpperCase, trim, trimEnd, trimStart, truncate, uncapitalize, upperCase, words }; |
@@ -325,2 +325,3 @@ 'use strict'; | ||
exports.deepSnakeKeys = deepSnakeKeys; | ||
exports.deepTransformKeys = deepTransformKeys; | ||
exports.delimiterCase = delimiterCase; | ||
@@ -327,0 +328,0 @@ exports.delimiterKeys = delimiterKeys; |
{ | ||
"name": "string-ts", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Strongly-typed string functions.", | ||
@@ -20,7 +20,7 @@ "main": "./dist/index.js", | ||
"@typescript-eslint/eslint-plugin": "latest", | ||
"@vitest/coverage-v8": "^1.4.0", | ||
"@vitest/coverage-v8": "^1.5.2", | ||
"eslint": "latest", | ||
"prettier": "latest", | ||
"tsup": "latest", | ||
"typescript": "^5.4.2", | ||
"typescript": "^5.4.5", | ||
"vitest": "latest" | ||
@@ -27,0 +27,0 @@ }, |
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
125857
1355