inflekt 0.7.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/case.d.ts +2 -2
- package/case.js +4 -4
- package/esm/case.js +2 -2
- package/esm/exceptions.js +762 -0
- package/esm/index.js +2 -2
- package/esm/pluralize.js +47 -77
- package/esm/rules.js +234 -0
- package/exceptions.d.ts +18 -0
- package/exceptions.js +765 -0
- package/index.d.ts +2 -2
- package/index.js +2 -2
- package/package.json +3 -3
- package/pluralize.js +51 -81
- package/rules.d.ts +40 -0
- package/rules.js +275 -0
package/case.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* This module re-exports them for backward compatibility and adds
|
|
6
6
|
* inflekt-specific helpers (fixCapitalisedPlural, underscore, toScreamingSnake).
|
|
7
7
|
*/
|
|
8
|
-
import { lcFirst,
|
|
9
|
-
export { lcFirst,
|
|
8
|
+
import { lcFirst, toConstantCase, toKebabCase, toPascalCase, toSnakeCase, ucFirst } from 'komoji';
|
|
9
|
+
export { lcFirst, toConstantCase, toKebabCase, toPascalCase, toSnakeCase, ucFirst };
|
|
10
10
|
export declare function toCamelCase(str: string): string;
|
|
11
11
|
/**
|
|
12
12
|
* Fix capitalized plurals that end with a number followed by 'S'
|
package/case.js
CHANGED
|
@@ -7,18 +7,18 @@
|
|
|
7
7
|
* inflekt-specific helpers (fixCapitalisedPlural, underscore, toScreamingSnake).
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
10
|
+
exports.ucFirst = exports.toSnakeCase = exports.toPascalCase = exports.toKebabCase = exports.toConstantCase = exports.lcFirst = void 0;
|
|
11
11
|
exports.toCamelCase = toCamelCase;
|
|
12
12
|
exports.fixCapitalisedPlural = fixCapitalisedPlural;
|
|
13
13
|
exports.underscore = underscore;
|
|
14
14
|
exports.toScreamingSnake = toScreamingSnake;
|
|
15
15
|
const komoji_1 = require("komoji");
|
|
16
16
|
Object.defineProperty(exports, "lcFirst", { enumerable: true, get: function () { return komoji_1.lcFirst; } });
|
|
17
|
-
Object.defineProperty(exports, "
|
|
17
|
+
Object.defineProperty(exports, "toConstantCase", { enumerable: true, get: function () { return komoji_1.toConstantCase; } });
|
|
18
|
+
Object.defineProperty(exports, "toKebabCase", { enumerable: true, get: function () { return komoji_1.toKebabCase; } });
|
|
18
19
|
Object.defineProperty(exports, "toPascalCase", { enumerable: true, get: function () { return komoji_1.toPascalCase; } });
|
|
19
20
|
Object.defineProperty(exports, "toSnakeCase", { enumerable: true, get: function () { return komoji_1.toSnakeCase; } });
|
|
20
|
-
Object.defineProperty(exports, "
|
|
21
|
-
Object.defineProperty(exports, "toConstantCase", { enumerable: true, get: function () { return komoji_1.toConstantCase; } });
|
|
21
|
+
Object.defineProperty(exports, "ucFirst", { enumerable: true, get: function () { return komoji_1.ucFirst; } });
|
|
22
22
|
// Re-export toCamelCase — komoji's version accepts a second parameter
|
|
23
23
|
// (stripLeadingNonAlphabetChars) so we wrap to keep the simpler inflekt signature
|
|
24
24
|
function toCamelCase(str) {
|
package/esm/case.js
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* This module re-exports them for backward compatibility and adds
|
|
6
6
|
* inflekt-specific helpers (fixCapitalisedPlural, underscore, toScreamingSnake).
|
|
7
7
|
*/
|
|
8
|
-
import { lcFirst,
|
|
8
|
+
import { lcFirst, toCamelCase as _toCamelCase, toConstantCase, toKebabCase, toPascalCase, toSnakeCase, ucFirst, } from 'komoji';
|
|
9
9
|
// Re-export komoji functions directly
|
|
10
|
-
export { lcFirst,
|
|
10
|
+
export { lcFirst, toConstantCase, toKebabCase, toPascalCase, toSnakeCase, ucFirst };
|
|
11
11
|
// Re-export toCamelCase — komoji's version accepts a second parameter
|
|
12
12
|
// (stripLeadingNonAlphabetChars) so we wrap to keep the simpler inflekt signature
|
|
13
13
|
export function toCamelCase(str) {
|