@ghentcdh/crouton-api 0.0.1-alpha.26 → 0.0.1-alpha.28
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/index.cjs +8 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +26 -19
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -47,6 +47,10 @@ __export(index_exports, {
|
|
|
47
47
|
});
|
|
48
48
|
module.exports = __toCommonJS(index_exports);
|
|
49
49
|
|
|
50
|
+
// ../../node_modules/.pnpm/tsup@8.5.1_@microsoft+api-extractor@7.58.8_@types+node@26.0.1__@swc+core@1.15.43_@swc+h_ec0dcc88aa461a763e37ec5746d3e7df/node_modules/tsup/assets/cjs_shims.js
|
|
51
|
+
var getImportMetaUrl = /* @__PURE__ */ __name(() => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.tagName.toUpperCase() === "SCRIPT" ? document.currentScript.src : new URL("main.js", document.baseURI).href, "getImportMetaUrl");
|
|
52
|
+
var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
53
|
+
|
|
50
54
|
// src/lib/crouton-api.module.ts
|
|
51
55
|
var import_common12 = require("@nestjs/common");
|
|
52
56
|
var import_core = require("@nestjs/core");
|
|
@@ -742,7 +746,7 @@ var SidebarGroupSchema2 = import_zod13.default.object({
|
|
|
742
746
|
/** Human-readable heading shown in the sidebar. Defaults to a title-cased version of the slug. */
|
|
743
747
|
label: import_zod13.default.string().optional(),
|
|
744
748
|
/** Controls the order of this group among top-level sidebar items. */
|
|
745
|
-
position: import_zod13.default.
|
|
749
|
+
position: import_zod13.default.number().optional()
|
|
746
750
|
});
|
|
747
751
|
var SidebarSchema = import_zod13.default.object({
|
|
748
752
|
hide: import_zod13.default.boolean().default(false),
|
|
@@ -931,7 +935,7 @@ var CroutonConfigSchema = import_zod17.z.object({
|
|
|
931
935
|
*/
|
|
932
936
|
schemaExportName: import_zod17.z.string().default("{Model}WithRelationsSchema"),
|
|
933
937
|
/** Path to the shared enum registry, relative to project root. Default `crouton.enums.json`. */
|
|
934
|
-
enumsFile: import_zod17.z.string().default("
|
|
938
|
+
enumsFile: import_zod17.z.string().default("crouton.enums.json"),
|
|
935
939
|
/** Optional overrides of the default visibility ruleset. */
|
|
936
940
|
rules: RulesetSchema.default(RulesetSchema.parse({})),
|
|
937
941
|
/**
|
|
@@ -1254,8 +1258,7 @@ var isTableProcedureAction = /* @__PURE__ */ __name((action) => action.type !==
|
|
|
1254
1258
|
var import_node_fs = require("fs");
|
|
1255
1259
|
var import_node_module = require("module");
|
|
1256
1260
|
var import_node_path2 = require("path");
|
|
1257
|
-
var
|
|
1258
|
-
var _require = (0, import_node_module.createRequire)(import_meta.url ?? __filename);
|
|
1261
|
+
var _require = (0, import_node_module.createRequire)(importMetaUrl ?? __filename);
|
|
1259
1262
|
var findModule = /* @__PURE__ */ __name((dir, name) => {
|
|
1260
1263
|
for (const ext of [
|
|
1261
1264
|
".ts",
|
|
@@ -4297,6 +4300,7 @@ var loadSubResourceHooks = /* @__PURE__ */ __name(async (subResources, basePath)
|
|
|
4297
4300
|
var import_node_fs6 = require("fs");
|
|
4298
4301
|
var import_node_path9 = require("path");
|
|
4299
4302
|
var loadResourceConfigsFromDir = /* @__PURE__ */ __name(async (dirPath, baseUrl, enumsFile) => {
|
|
4303
|
+
if (!(0, import_node_fs6.existsSync)(dirPath)) return [];
|
|
4300
4304
|
const enums = loadEnumRegistry(dirPath, enumsFile);
|
|
4301
4305
|
const entries = (0, import_node_fs6.readdirSync)(dirPath, {
|
|
4302
4306
|
withFileTypes: true
|