@saasicat/nest 0.22.1 → 0.23.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/dist/_entries.cjs CHANGED
@@ -14878,6 +14878,9 @@ StaticEntitlementService = _ts_decorate84([
14878
14878
  ])
14879
14879
  ], StaticEntitlementService);
14880
14880
 
14881
+ // src/platform/saas-platform.module.ts
14882
+ var import_core11 = require("@nestjs/core");
14883
+
14881
14884
  // src/platform/feature-guard-coverage.check.ts
14882
14885
  var import_common75 = require("@nestjs/common");
14883
14886
  var import_core7 = require("@nestjs/core");
@@ -15800,6 +15803,7 @@ var SaasPlatformModule = class _SaasPlatformModule {
15800
15803
  lightweightExports.push(PLAN_RESOLVER_PORT_TOKEN, StaticEntitlementService, StaticFeatureGuard, EnforceQuotaInterceptor, QUOTA_PROVIDERS_TOKEN);
15801
15804
  if (options.globalFeatureGuard === false) {
15802
15805
  lightweightProviders.push(FeatureGuardCoverageCheck);
15806
+ imports.push(import_core11.DiscoveryModule);
15803
15807
  }
15804
15808
  } else {
15805
15809
  PLATFORM_LOGGER.warn("No plan resolver configured \u2014 @RequireFeature and @EnforceQuota are INERT. The platform registered neither StaticFeatureGuard nor EnforceQuotaInterceptor, so every annotated route serves unlicensed traffic and every quota is unlimited. Set one of: adapters.planResolver, defaultPlanId, or tenantBilling.");
@@ -898,6 +898,7 @@ __name(buildTenantManifestController, "buildTenantManifestController");
898
898
  import { Logger as Logger2, Module as Module2 } from "@nestjs/common";
899
899
  import { APP_GUARD, APP_INTERCEPTOR } from "@nestjs/core";
900
900
  import { assertPersistenceCapabilities } from "@saasicat/types";
901
+ import { DiscoveryModule as NestDiscoveryModule } from "@nestjs/core";
901
902
  function _ts_decorate10(decorators, target, key, desc) {
902
903
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
903
904
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -1372,6 +1373,7 @@ var SaasPlatformModule = class _SaasPlatformModule {
1372
1373
  lightweightExports.push(PLAN_RESOLVER_PORT_TOKEN, StaticEntitlementService, StaticFeatureGuard, EnforceQuotaInterceptor, QUOTA_PROVIDERS_TOKEN);
1373
1374
  if (options.globalFeatureGuard === false) {
1374
1375
  lightweightProviders.push(FeatureGuardCoverageCheck);
1376
+ imports.push(NestDiscoveryModule);
1375
1377
  }
1376
1378
  } else {
1377
1379
  PLATFORM_LOGGER.warn("No plan resolver configured \u2014 @RequireFeature and @EnforceQuota are INERT. The platform registered neither StaticFeatureGuard nor EnforceQuotaInterceptor, so every annotated route serves unlicensed traffic and every quota is unlimited. Set one of: adapters.planResolver, defaultPlanId, or tenantBilling.");
package/dist/index.js CHANGED
@@ -70,7 +70,7 @@ import {
70
70
  SetupController,
71
71
  SetupModule,
72
72
  SetupService
73
- } from "./chunk-LPCUHZWC.js";
73
+ } from "./chunk-RPZKPFWI.js";
74
74
  import {
75
75
  CreatePromoCodeDto,
76
76
  PreviewPromoCodeDto,
@@ -17,7 +17,7 @@ import {
17
17
  SubscriptionPlanResolver,
18
18
  TenantManifestService,
19
19
  buildTenantManifestController
20
- } from "../chunk-LPCUHZWC.js";
20
+ } from "../chunk-RPZKPFWI.js";
21
21
  import {
22
22
  PromoCodeRateLimitGuard
23
23
  } from "../chunk-4O6R6ARQ.js";
@@ -5,7 +5,7 @@ import {
5
5
  StaticEntitlementService,
6
6
  StaticFeatureGuard,
7
7
  StaticPlanResolver
8
- } from "../chunk-LPCUHZWC.js";
8
+ } from "../chunk-RPZKPFWI.js";
9
9
  import "../chunk-4O6R6ARQ.js";
10
10
  import "../chunk-SN5UOC43.js";
11
11
  import "../chunk-A7FHAN2I.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saasicat/nest",
3
- "version": "0.22.1",
3
+ "version": "0.23.0",
4
4
  "description": "NestJS implementation of SaaSiCat: capability discovery, catalog packaging, contracts, entitlement enforcement, billing and admin APIs.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -137,8 +137,8 @@
137
137
  "js-yaml": "^4.3.1",
138
138
  "otplib": "^13.4.1",
139
139
  "qrcode": "^1.5.4",
140
- "@saasicat/spec": "^0.22.1",
141
- "@saasicat/types": "^0.22.1"
140
+ "@saasicat/spec": "^0.23.0",
141
+ "@saasicat/types": "^0.23.0"
142
142
  },
143
143
  "peerDependencies": {
144
144
  "@nestjs/common": "^11.0.0",