@xemahq/biome-database-nest 0.6.4 → 0.6.5

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.
@@ -1,2 +1,2 @@
1
- export declare function unwrapPlatformResponseEnvelope<T>(payload: unknown, context: string): T;
1
+ export { unwrapPlatformResponseEnvelope } from '@xemahq/platform-common';
2
2
  //# sourceMappingURL=response-envelope.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"response-envelope.d.ts","sourceRoot":"","sources":["../../src/lib/response-envelope.ts"],"names":[],"mappings":"AAwCA,wBAAgB,8BAA8B,CAAC,CAAC,EAC9C,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,MAAM,GACd,CAAC,CAaH"}
1
+ {"version":3,"file":"response-envelope.d.ts","sourceRoot":"","sources":["../../src/lib/response-envelope.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC"}
@@ -1,26 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.unwrapPlatformResponseEnvelope = unwrapPlatformResponseEnvelope;
4
- function describePayload(payload) {
5
- if (payload === null) {
6
- return 'null';
7
- }
8
- if (Array.isArray(payload)) {
9
- return 'a bare array';
10
- }
11
- if (typeof payload === 'object') {
12
- return `an object with keys [${Object.keys(payload).join(', ')}]`;
13
- }
14
- return `a bare ${typeof payload}`;
15
- }
16
- function unwrapPlatformResponseEnvelope(payload, context) {
17
- if (payload === null ||
18
- typeof payload !== 'object' ||
19
- !('data' in payload)) {
20
- throw new Error(`${context}: response is not a platform envelope — expected an object with a 'data' property, ` +
21
- `received ${describePayload(payload)}. The peer either is not a Xema platform service or is ` +
22
- `missing the global ResponseEnvelopeInterceptor.`);
23
- }
24
- return payload.data;
25
- }
3
+ exports.unwrapPlatformResponseEnvelope = void 0;
4
+ var platform_common_1 = require("@xemahq/platform-common");
5
+ Object.defineProperty(exports, "unwrapPlatformResponseEnvelope", { enumerable: true, get: function () { return platform_common_1.unwrapPlatformResponseEnvelope; } });
26
6
  //# sourceMappingURL=response-envelope.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"response-envelope.js","sourceRoot":"","sources":["../../src/lib/response-envelope.ts"],"names":[],"mappings":";;AAwCA,wEAgBC;AAvCD,SAAS,eAAe,CAAC,OAAgB;IACvC,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QACrB,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;QAC3B,OAAO,cAAc,CAAC;IACxB,CAAC;IACD,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;QAChC,OAAO,wBAAwB,MAAM,CAAC,IAAI,CACxC,OAAkC,CACnC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;IAClB,CAAC;IACD,OAAO,UAAU,OAAO,OAAO,EAAE,CAAC;AACpC,CAAC;AAUD,SAAgB,8BAA8B,CAC5C,OAAgB,EAChB,OAAe;IAEf,IACE,OAAO,KAAK,IAAI;QAChB,OAAO,OAAO,KAAK,QAAQ;QAC3B,CAAC,CAAC,MAAM,IAAK,OAAmC,CAAC,EACjD,CAAC;QACD,MAAM,IAAI,KAAK,CACb,GAAG,OAAO,qFAAqF;YAC7F,YAAY,eAAe,CAAC,OAAO,CAAC,yDAAyD;YAC7F,iDAAiD,CACpD,CAAC;IACJ,CAAC;IACD,OAAQ,OAAuB,CAAC,IAAI,CAAC;AACvC,CAAC"}
1
+ {"version":3,"file":"response-envelope.js","sourceRoot":"","sources":["../../src/lib/response-envelope.ts"],"names":[],"mappings":";;;AAcA,2DAAyE;AAAhE,iIAAA,8BAA8B,OAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xemahq/biome-database-nest",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
4
4
  "description": "Layer 1 SDK that centralizes ALL database concerns for Xema biome services. Provides the single correct construction of a schema-qualified Prisma driver-adapter (the second-arg `{ schema }` that makes `@prisma/adapter-pg` qualify `biome_<id>.<table>` instead of `public.<table>`), the per-biome schema-naming convention, env/control-plane config resolution, and a boot-time bootstrap that creates the schema and runs migrations. Biomes carry zero DB boilerplate.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Neuralchowder Inc. <developer@xema.dev> (https://xema.dev)",
@@ -49,7 +49,7 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@xemahq/migration-runner-prisma": "^0.1.2",
52
- "@xemahq/platform-common": "^0.5.1",
52
+ "@xemahq/platform-common": "^0.5.3",
53
53
  "pg": "8.16.3"
54
54
  },
55
55
  "exports": {