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 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, ucFirst, toPascalCase, toSnakeCase, toKebabCase, toConstantCase } from 'komoji';
9
- export { lcFirst, ucFirst, toPascalCase, toSnakeCase, toKebabCase, toConstantCase };
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.toConstantCase = exports.toKebabCase = exports.toSnakeCase = exports.toPascalCase = exports.ucFirst = exports.lcFirst = void 0;
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, "ucFirst", { enumerable: true, get: function () { return komoji_1.ucFirst; } });
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, "toKebabCase", { enumerable: true, get: function () { return komoji_1.toKebabCase; } });
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, ucFirst, toCamelCase as _toCamelCase, toPascalCase, toSnakeCase, toKebabCase, toConstantCase, } from 'komoji';
8
+ import { lcFirst, toCamelCase as _toCamelCase, toConstantCase, toKebabCase, toPascalCase, toSnakeCase, ucFirst, } from 'komoji';
9
9
  // Re-export komoji functions directly
10
- export { lcFirst, ucFirst, toPascalCase, toSnakeCase, toKebabCase, toConstantCase };
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) {