@rvoh/psychic 2.0.0 → 2.0.1
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/cjs/src/generate/helpers/generateResourceControllerSpecContent.js +1 -1
- package/dist/cjs/src/package-exports/utils.js +0 -2
- package/dist/esm/src/generate/helpers/generateResourceControllerSpecContent.js +1 -1
- package/dist/esm/src/package-exports/utils.js +0 -2
- package/dist/types/src/package-exports/utils.d.ts +0 -11
- package/package.json +5 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DreamApp } from '@rvoh/dream';
|
|
2
2
|
import { camelize, capitalize, compact, uniq } from '@rvoh/dream/utils';
|
|
3
|
+
import pluralize from 'pluralize-esm';
|
|
3
4
|
import addImportSuffix from '../../helpers/path/addImportSuffix.js';
|
|
4
|
-
import { pluralize } from '../../package-exports/utils.js';
|
|
5
5
|
export default function generateResourceControllerSpecContent(options) {
|
|
6
6
|
const { path, pathParams } = extractPathArgsFromResourcefulPath(options.route);
|
|
7
7
|
const modelConfig = createModelConfiguration(options);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DreamApp } from '@rvoh/dream';
|
|
2
2
|
import { camelize, capitalize, compact, uniq } from '@rvoh/dream/utils';
|
|
3
|
+
import pluralize from 'pluralize-esm';
|
|
3
4
|
import addImportSuffix from '../../helpers/path/addImportSuffix.js';
|
|
4
|
-
import { pluralize } from '../../package-exports/utils.js';
|
|
5
5
|
export default function generateResourceControllerSpecContent(options) {
|
|
6
6
|
const { path, pathParams } = extractPathArgsFromResourcefulPath(options.route);
|
|
7
7
|
const modelConfig = createModelConfiguration(options);
|
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
export declare const pluralize: {
|
|
2
|
-
(word: string, count?: number, inclusive?: boolean): string;
|
|
3
|
-
plural(word: string): string;
|
|
4
|
-
singular(word: string): string;
|
|
5
|
-
addPluralRule(rule: import("pluralize-esm").Rule, replacement: string): void;
|
|
6
|
-
addSingularRule(rule: import("pluralize-esm").Rule, replacement: string): void;
|
|
7
|
-
addIrregularRule(single: string, plural: string): void;
|
|
8
|
-
addUncountableRule(rule: import("pluralize-esm").Rule): void;
|
|
9
|
-
isPlural(word: string): boolean;
|
|
10
|
-
isSingular(word: string): boolean;
|
|
11
|
-
};
|
|
12
1
|
export { default as colorize } from '../cli/helpers/colorize.js';
|
|
13
2
|
export { default as cookieMaxAgeFromCookieOpts } from '../helpers/cookieMaxAgeFromCookieOpts.js';
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@rvoh/psychic",
|
|
4
4
|
"description": "Typescript web framework",
|
|
5
|
-
"version": "2.0.
|
|
5
|
+
"version": "2.0.1",
|
|
6
6
|
"author": "RVOHealth",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"yoctocolors": "^2.1.1"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
|
-
"@rvoh/dream": "^2.0.
|
|
81
|
+
"@rvoh/dream": "^2.0.1",
|
|
82
82
|
"@types/express": "^5.0.1",
|
|
83
83
|
"commander": "^12.1.0",
|
|
84
84
|
"express": "^5.1.0",
|
|
@@ -87,9 +87,9 @@
|
|
|
87
87
|
"devDependencies": {
|
|
88
88
|
"@eslint/js": "^9.19.0",
|
|
89
89
|
"@jest-mock/express": "^3.0.0",
|
|
90
|
-
"@rvoh/dream": "^2.0.
|
|
91
|
-
"@rvoh/dream-spec-helpers": "^
|
|
92
|
-
"@rvoh/psychic-spec-helpers": "^
|
|
90
|
+
"@rvoh/dream": "^2.0.1",
|
|
91
|
+
"@rvoh/dream-spec-helpers": "^2.0.0",
|
|
92
|
+
"@rvoh/psychic-spec-helpers": "^2.0.0",
|
|
93
93
|
"@types/express": "^5.0.1",
|
|
94
94
|
"@types/express-session": "^1.18.2",
|
|
95
95
|
"@types/node": "^22.17.1",
|