@ciwergrp/nuxid 1.5.7 → 1.5.9

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/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ciwergrp/nuxid",
3
3
  "configKey": "nuxid",
4
- "version": "1.5.7",
4
+ "version": "1.5.9",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -1,3 +1,3 @@
1
- export declare function plural(value: string, count?: number): any;
2
- export declare function singular(value: string): any;
3
- export declare function pluralStudly(value: string, count?: number): any;
1
+ export declare function plural(value: string, count?: number): string;
2
+ export declare function singular(value: string): string;
3
+ export declare function pluralStudly(value: string, count?: number): string;
@@ -1,5 +1,6 @@
1
- import pluralize from "pluralize";
1
+ import pluralizeModule from "pluralize";
2
2
  import { studly } from "./case.js";
3
+ const pluralize = pluralizeModule.default ?? pluralizeModule;
3
4
  export function plural(value, count) {
4
5
  if (typeof count === "number") {
5
6
  return pluralize(value, count);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ciwergrp/nuxid",
3
- "version": "1.5.7",
3
+ "version": "1.5.9",
4
4
  "description": "All-in-one essential modules for Nuxt",
5
5
  "repository": {
6
6
  "type": "git",
@@ -70,6 +70,7 @@
70
70
  "@nuxt/test-utils": "^3.23.0",
71
71
  "@types/lodash-es": "^4.17.12",
72
72
  "@types/node": "^22",
73
+ "@types/pluralize": "^0.0.33",
73
74
  "eslint": "^9.39.2",
74
75
  "nuxt": "^4.2.1",
75
76
  "typescript": "^5.9.3",