api-farmer 0.0.14 → 0.0.15
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.
|
@@ -22761,6 +22761,7 @@ function transformEntity({ path: path13, method, base }) {
|
|
|
22761
22761
|
if (word.includes("{")) {
|
|
22762
22762
|
return entity;
|
|
22763
22763
|
}
|
|
22764
|
+
word = word.replace(/\.([a-z])/g, (_, p) => p.toUpperCase());
|
|
22764
22765
|
word = pluralize.singular(pascalCase(word));
|
|
22765
22766
|
if (method === "get" && index === words.length - 1) {
|
|
22766
22767
|
word = pluralize.plural(word);
|
package/dist/cli.cjs
CHANGED
|
@@ -102045,6 +102045,7 @@ function transformEntity({ path: path13, method, base }) {
|
|
|
102045
102045
|
if (word.includes("{")) {
|
|
102046
102046
|
return entity;
|
|
102047
102047
|
}
|
|
102048
|
+
word = word.replace(/\.([a-z])/g, (_8, p5) => p5.toUpperCase());
|
|
102048
102049
|
word = import_pluralize.default.singular((0, import_rattail.pascalCase)(word));
|
|
102049
102050
|
if (method === "get" && index === words.length - 1) {
|
|
102050
102051
|
word = import_pluralize.default.plural(word);
|
package/dist/cli.js
CHANGED
|
@@ -9,7 +9,7 @@ import { Command } from "commander";
|
|
|
9
9
|
var program = new Command();
|
|
10
10
|
program.version(getCliVersion());
|
|
11
11
|
program.action(async () => {
|
|
12
|
-
const { generate } = await import("./generate-
|
|
12
|
+
const { generate } = await import("./generate-RJ23AKV7.js");
|
|
13
13
|
return generate();
|
|
14
14
|
});
|
|
15
15
|
program.parse();
|
package/dist/index.cjs
CHANGED
|
@@ -79285,6 +79285,7 @@ function transformEntity({ path: path13, method, base }) {
|
|
|
79285
79285
|
if (word.includes("{")) {
|
|
79286
79286
|
return entity;
|
|
79287
79287
|
}
|
|
79288
|
+
word = word.replace(/\.([a-z])/g, (_8, p5) => p5.toUpperCase());
|
|
79288
79289
|
word = import_pluralize.default.singular((0, import_rattail.pascalCase)(word));
|
|
79289
79290
|
if (method === "get" && index === words.length - 1) {
|
|
79290
79291
|
word = import_pluralize.default.plural(word);
|
package/dist/index.js
CHANGED