@entifix/next-shell 0.23.4 → 0.23.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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-proxy-route.d.ts","sourceRoot":"","sources":["../../../src/lib/config/service-proxy-route.ts"],"names":[],"mappings":"AAMA,KAAK,MAAM,GAAG;IAAE,MAAM,EAAE,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC;AAEtD,MAAM,WAAW,wBAAwB;IACvC,4DAA4D;IAC5D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC9B;
|
|
1
|
+
{"version":3,"file":"service-proxy-route.d.ts","sourceRoot":"","sources":["../../../src/lib/config/service-proxy-route.ts"],"names":[],"mappings":"AAMA,KAAK,MAAM,GAAG;IAAE,MAAM,EAAE,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC;AAEtD,MAAM,WAAW,wBAAwB;IACvC,4DAA4D;IAC5D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC9B;AAiFD,eAAO,MAAM,uBAAuB,GAAI,0BAGrC,wBAAwB,eAEd,OAAO,cACJ,MAAM,KACjB,OAAO,CAAC,QAAQ,CAkEpB,CAAC"}
|
|
@@ -40,15 +40,21 @@ import { problemResponse } from './problem-response.js';
|
|
|
40
40
|
* carrying them onto a response this function reconstructs is how a proxy
|
|
41
41
|
* serves a truncated payload. Beside the cache validators: `retry-after`,
|
|
42
42
|
* which says when an overloaded service wants to be asked again; `location`,
|
|
43
|
-
* which a `202` points its tracker at;
|
|
44
|
-
* failure toast can name the trace a service logged its side under
|
|
43
|
+
* which a `202` points its tracker at; `traceparent`, so the browser's
|
|
44
|
+
* failure toast can name the trace a service logged its side under; and the
|
|
45
|
+
* three a file served as bytes is kept harmless by — `content-disposition`,
|
|
46
|
+
* `content-security-policy` and `x-content-type-options`
|
|
47
|
+
* ([ADR 0020](../../../../../../docs/adr/0020-endpoints-are-descriptors-and-the-shell-builds-an-httpapi.md)).
|
|
45
48
|
*/ const PASSED_RESPONSE_HEADERS = [
|
|
46
49
|
'etag',
|
|
47
50
|
'cache-control',
|
|
48
51
|
'vary',
|
|
49
52
|
'retry-after',
|
|
50
53
|
'location',
|
|
51
|
-
'traceparent'
|
|
54
|
+
'traceparent',
|
|
55
|
+
'content-disposition',
|
|
56
|
+
'content-security-policy',
|
|
57
|
+
'x-content-type-options'
|
|
52
58
|
];
|
|
53
59
|
/**
|
|
54
60
|
* Request headers forwarded to the service, beside the bearer it gets from
|
|
@@ -72,18 +78,21 @@ const passThrough = (upstream)=>{
|
|
|
72
78
|
};
|
|
73
79
|
export const createServiceProxyRoute = ({ baseUrl, pathPrefix })=>{
|
|
74
80
|
const forward = async (request, { params })=>{
|
|
75
|
-
var _upstream_headers_get;
|
|
81
|
+
var _request_headers_get, _upstream_headers_get;
|
|
76
82
|
const { path } = await params;
|
|
77
83
|
const search = new URL(request.url).search;
|
|
84
|
+
// The caller's own media type: a binary body is declared by it, and a
|
|
85
|
+
// JSON one is the default when the caller named none.
|
|
78
86
|
const headers = _extends({
|
|
79
|
-
'content-type': 'application/json'
|
|
87
|
+
'content-type': (_request_headers_get = request.headers.get('content-type')) != null ? _request_headers_get : 'application/json'
|
|
80
88
|
}, bearerHeader(await sessionToken()));
|
|
81
89
|
for (const name of FORWARDED_REQUEST_HEADERS){
|
|
82
90
|
const value = request.headers.get(name);
|
|
83
91
|
if (value !== null) headers[name] = value;
|
|
84
92
|
}
|
|
85
93
|
const hasBody = request.method !== 'GET' && request.method !== 'DELETE';
|
|
86
|
-
|
|
94
|
+
// Bytes, not text: a decoded-and-re-encoded file is a different file.
|
|
95
|
+
const body = hasBody ? await request.arrayBuffer() : undefined;
|
|
87
96
|
// Only the connection is caught. A service that answers — with anything,
|
|
88
97
|
// a `500` included — is passed through below exactly as it answered.
|
|
89
98
|
const upstream = await fetch(`${baseUrl}/api/${[
|
|
@@ -118,11 +127,11 @@ export const createServiceProxyRoute = ({ baseUrl, pathPrefix })=>{
|
|
|
118
127
|
// 204s and empty bodies must not be given a body. The upstream's content
|
|
119
128
|
// type is kept, never re-typed: a problem body re-typed as plain JSON is
|
|
120
129
|
// one the browser can no longer recognise as a failure it can decode.
|
|
121
|
-
const
|
|
122
|
-
return
|
|
130
|
+
const bytes = await upstream.arrayBuffer();
|
|
131
|
+
return bytes.byteLength === 0 ? new NextResponse(null, {
|
|
123
132
|
status: upstream.status,
|
|
124
133
|
headers: passed
|
|
125
|
-
}) : new NextResponse(
|
|
134
|
+
}) : new NextResponse(bytes, {
|
|
126
135
|
status: upstream.status,
|
|
127
136
|
headers: _extends({}, passed, {
|
|
128
137
|
'content-type': (_upstream_headers_get = upstream.headers.get('content-type')) != null ? _upstream_headers_get : 'application/json'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/lib/config/service-proxy-route.ts"],"sourcesContent":["import { DEADLINE_HEADER, UpstreamUnavailable } from '@entifix/core';\nimport { NextResponse } from 'next/server';\n\nimport { bearerHeader, sessionToken } from '../session/bearer.js';\nimport { problemResponse } from './problem-response.js';\n\ntype Params = { params: Promise<{ path: string[] }> };\n\nexport interface ServiceProxyRouteOptions {\n /** Where the service listens, without the `/api` suffix. */\n readonly baseUrl: string;\n /**\n * A segment to put back in front of the forwarded path.\n *\n * ⚠️ **Needed when the proxy's namespace *is* the upstream's route name.**\n * `/api/stock/stock-item` forwards to `/api/stock-item` because `stock` names\n * the service and `stock-item` names the entity — two different words. But\n * where the namespace and the route are the same word — `/api/realtime/flow`\n * served by a service whose own route is `/api/realtime/flow` — stripping it\n * strips half the address, and every probe stays green while the route\n * 404s.\n */\n readonly pathPrefix?: string;\n}\n\n/**\n * Builds a same-origin proxy for one backend service, mounted as a catch-all\n * route handler — e.g. `app/api/admin/[...path]/route.ts`.\n *\n * The browser can never call `:310N` directly: `entifix_at` is httpOnly and\n * same-origin, so a cross-origin request carries no cookie and a guarded route\n * answers `401`. Host-scoping the cookie does not help — that governs which host\n * *stores* it, not which cross-origin requests send it. Routing through the app's\n * own origin makes the cookie automatic and needs no CORS, which is the same\n * reason the credential routes are shaped this way.\n *\n * The cookie is forwarded upstream as a bearer token. **This proxy grants\n * nothing** — the service still verifies the token and applies its own\n * the endpoint's `guard`. It only carries.\n *\n * It also carries the **caching contract** in both directions, which it did not\n * always: rebuilding every response as a fresh body dropped `ETag`,\n * `Cache-Control` and `Vary`, and forwarded no `If-None-Match`. The effect was\n * invisible and entirely wasteful — `GET /api/<entity>/$metadata` computes and\n * hashes a permission-filtered document per request, and a validator that never\n * reaches the service means it can never answer `304`. Worse, `Vary` is a\n * *correctness* header here: the document differs per caller, and one stripped\n * of `Vary: Cookie, Authorization` may be cached and served to a different\n * principal.\n *\n * A factory, because a host mounts one of these per backend it talks to, and\n * back-office-app now talks to two: marketplace-admin-service for the catalog a\n * vendor authors, marketplace-service for the platform vocabulary it is\n * classified in.\n */\n/**\n * Response headers that must survive the rebuild.\n *\n * Deliberately a short allow-list rather than copying every header: the\n * upstream's `content-length` and `content-encoding` describe *its* body, and\n * carrying them onto a response this function reconstructs is how a proxy\n * serves a truncated payload. Beside the cache validators: `retry-after`,\n * which says when an overloaded service wants to be asked again; `location`,\n * which a `202` points its tracker at; and `traceparent`, so the browser's\n * failure toast can name the trace a service logged its side under.\n */\nconst PASSED_RESPONSE_HEADERS = [\n 'etag',\n 'cache-control',\n 'vary',\n 'retry-after',\n 'location',\n 'traceparent',\n] as const;\n\n/**\n * Request headers forwarded to the service, beside the bearer it gets from\n * the session: the validator, so `$metadata` can answer `304`; the\n * idempotency key, so a retried write is recognised; the trace, so one\n * request is one trace across the hop; and the caller's remaining budget\n * ([ADR 0014](../../../../../../docs/adr/0014-retry-once-at-the-layer-above-under-a-budget.md)).\n */\nconst FORWARDED_REQUEST_HEADERS = [\n 'if-none-match',\n 'idempotency-key',\n 'traceparent',\n DEADLINE_HEADER,\n] as const;\n\nconst passThrough = (upstream: Response): Record<string, string> => {\n const headers: Record<string, string> = {};\n for (const name of PASSED_RESPONSE_HEADERS) {\n const value = upstream.headers.get(name);\n if (value !== null) headers[name] = value;\n }\n return headers;\n};\n\nexport const createServiceProxyRoute = ({\n baseUrl,\n pathPrefix,\n}: ServiceProxyRouteOptions) => {\n const forward = async (\n request: Request,\n { params }: Params,\n ): Promise<Response> => {\n const { path } = await params;\n const search = new URL(request.url).search;\n\n const headers: Record<string, string> = {\n 'content-type': 'application/json',\n ...bearerHeader(await sessionToken()),\n };\n\n for (const name of FORWARDED_REQUEST_HEADERS) {\n const value = request.headers.get(name);\n if (value !== null) headers[name] = value;\n }\n\n const hasBody = request.method !== 'GET' && request.method !== 'DELETE';\n const body = hasBody ? await request.text() : undefined;\n // Only the connection is caught. A service that answers — with anything,\n // a `500` included — is passed through below exactly as it answered.\n const upstream = await fetch(\n `${baseUrl}/api/${[pathPrefix, ...path].filter(Boolean).join('/')}${search}`,\n { method: request.method, headers, body, cache: 'no-store' },\n ).catch(() => undefined);\n\n // `502`, never the `500` an unhandled rejection becomes: the host did\n // nothing wrong, and a `500` sends whoever reads it looking for a bug in\n // the app rather than for a process that is not running.\n if (upstream === undefined) {\n return problemResponse(\n new UpstreamUnavailable(\n pathPrefix === undefined ? {} : { upstream: pathPrefix },\n ),\n {\n status: 502,\n },\n );\n }\n\n const passed = passThrough(upstream);\n\n // A `304` carries no body by definition, and neither does a `204`. Running\n // either through a body read is not merely wasteful — a `304` reconstructed\n // with a body is no longer a `304`.\n if (upstream.status === 304) {\n return new NextResponse(null, { status: 304, headers: passed });\n }\n\n // 204s and empty bodies must not be given a body. The upstream's content\n // type is kept, never re-typed: a problem body re-typed as plain JSON is\n // one the browser can no longer recognise as a failure it can decode.\n const text = await upstream.text();\n return text === ''\n ? new NextResponse(null, { status: upstream.status, headers: passed })\n : new NextResponse(text, {\n status: upstream.status,\n headers: {\n ...passed,\n 'content-type':\n upstream.headers.get('content-type') ?? 'application/json',\n },\n });\n };\n\n return forward;\n};\n"],"names":["DEADLINE_HEADER","UpstreamUnavailable","NextResponse","bearerHeader","sessionToken","problemResponse","PASSED_RESPONSE_HEADERS","FORWARDED_REQUEST_HEADERS","passThrough","upstream","headers","name","value","get","createServiceProxyRoute","baseUrl","pathPrefix","forward","request","params","path","search","URL","url","hasBody","method","body","text","undefined","fetch","filter","Boolean","join","cache","catch","status","passed"],"mappings":";AAAA,SAASA,eAAe,EAAEC,mBAAmB,QAAQ,gBAAgB;AACrE,SAASC,YAAY,QAAQ,cAAc;AAE3C,SAASC,YAAY,EAAEC,YAAY,QAAQ,uBAAuB;AAClE,SAASC,eAAe,QAAQ,wBAAwB;AAqBxD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BC,GACD;;;;;;;;;;CAUC,GACD,MAAMC,0BAA0B;IAC9B;IACA;IACA;IACA;IACA;IACA;CACD;AAED;;;;;;CAMC,GACD,MAAMC,4BAA4B;IAChC;IACA;IACA;IACAP;CACD;AAED,MAAMQ,cAAc,CAACC;IACnB,MAAMC,UAAkC,CAAC;IACzC,KAAK,MAAMC,QAAQL,wBAAyB;QAC1C,MAAMM,QAAQH,SAASC,OAAO,CAACG,GAAG,CAACF;QACnC,IAAIC,UAAU,MAAMF,OAAO,CAACC,KAAK,GAAGC;IACtC;IACA,OAAOF;AACT;AAEA,OAAO,MAAMI,0BAA0B,CAAC,EACtCC,OAAO,EACPC,UAAU,EACe;IACzB,MAAMC,UAAU,OACdC,SACA,EAAEC,MAAM,EAAU;YA0DRV;QAxDV,MAAM,EAAEW,IAAI,EAAE,GAAG,MAAMD;QACvB,MAAME,SAAS,IAAIC,IAAIJ,QAAQK,GAAG,E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B,SAAS,aACJ0B;gBACH,cAAc,GACZ3B,wBAAAA,SAASC,OAAO,CAACG,GAAG,CAAC,2BAArBJ,wBAAwC;;QAE9C;IACN;IAEA,OAAOQ;AACT,EAAE"}
|
|
1
|
+
{"version":3,"sources":["../../../src/lib/config/service-proxy-route.ts"],"sourcesContent":["import { DEADLINE_HEADER, UpstreamUnavailable } from '@entifix/core';\nimport { NextResponse } from 'next/server';\n\nimport { bearerHeader, sessionToken } from '../session/bearer.js';\nimport { problemResponse } from './problem-response.js';\n\ntype Params = { params: Promise<{ path: string[] }> };\n\nexport interface ServiceProxyRouteOptions {\n /** Where the service listens, without the `/api` suffix. */\n readonly baseUrl: string;\n /**\n * A segment to put back in front of the forwarded path.\n *\n * ⚠️ **Needed when the proxy's namespace *is* the upstream's route name.**\n * `/api/stock/stock-item` forwards to `/api/stock-item` because `stock` names\n * the service and `stock-item` names the entity — two different words. But\n * where the namespace and the route are the same word — `/api/realtime/flow`\n * served by a service whose own route is `/api/realtime/flow` — stripping it\n * strips half the address, and every probe stays green while the route\n * 404s.\n */\n readonly pathPrefix?: string;\n}\n\n/**\n * Builds a same-origin proxy for one backend service, mounted as a catch-all\n * route handler — e.g. `app/api/admin/[...path]/route.ts`.\n *\n * The browser can never call `:310N` directly: `entifix_at` is httpOnly and\n * same-origin, so a cross-origin request carries no cookie and a guarded route\n * answers `401`. Host-scoping the cookie does not help — that governs which host\n * *stores* it, not which cross-origin requests send it. Routing through the app's\n * own origin makes the cookie automatic and needs no CORS, which is the same\n * reason the credential routes are shaped this way.\n *\n * The cookie is forwarded upstream as a bearer token. **This proxy grants\n * nothing** — the service still verifies the token and applies its own\n * the endpoint's `guard`. It only carries.\n *\n * It also carries the **caching contract** in both directions, which it did not\n * always: rebuilding every response as a fresh body dropped `ETag`,\n * `Cache-Control` and `Vary`, and forwarded no `If-None-Match`. The effect was\n * invisible and entirely wasteful — `GET /api/<entity>/$metadata` computes and\n * hashes a permission-filtered document per request, and a validator that never\n * reaches the service means it can never answer `304`. Worse, `Vary` is a\n * *correctness* header here: the document differs per caller, and one stripped\n * of `Vary: Cookie, Authorization` may be cached and served to a different\n * principal.\n *\n * A factory, because a host mounts one of these per backend it talks to, and\n * back-office-app now talks to two: marketplace-admin-service for the catalog a\n * vendor authors, marketplace-service for the platform vocabulary it is\n * classified in.\n */\n/**\n * Response headers that must survive the rebuild.\n *\n * Deliberately a short allow-list rather than copying every header: the\n * upstream's `content-length` and `content-encoding` describe *its* body, and\n * carrying them onto a response this function reconstructs is how a proxy\n * serves a truncated payload. Beside the cache validators: `retry-after`,\n * which says when an overloaded service wants to be asked again; `location`,\n * which a `202` points its tracker at; `traceparent`, so the browser's\n * failure toast can name the trace a service logged its side under; and the\n * three a file served as bytes is kept harmless by — `content-disposition`,\n * `content-security-policy` and `x-content-type-options`\n * ([ADR 0020](../../../../../../docs/adr/0020-endpoints-are-descriptors-and-the-shell-builds-an-httpapi.md)).\n */\nconst PASSED_RESPONSE_HEADERS = [\n 'etag',\n 'cache-control',\n 'vary',\n 'retry-after',\n 'location',\n 'traceparent',\n 'content-disposition',\n 'content-security-policy',\n 'x-content-type-options',\n] as const;\n\n/**\n * Request headers forwarded to the service, beside the bearer it gets from\n * the session: the validator, so `$metadata` can answer `304`; the\n * idempotency key, so a retried write is recognised; the trace, so one\n * request is one trace across the hop; and the caller's remaining budget\n * ([ADR 0014](../../../../../../docs/adr/0014-retry-once-at-the-layer-above-under-a-budget.md)).\n */\nconst FORWARDED_REQUEST_HEADERS = [\n 'if-none-match',\n 'idempotency-key',\n 'traceparent',\n DEADLINE_HEADER,\n] as const;\n\nconst passThrough = (upstream: Response): Record<string, string> => {\n const headers: Record<string, string> = {};\n for (const name of PASSED_RESPONSE_HEADERS) {\n const value = upstream.headers.get(name);\n if (value !== null) headers[name] = value;\n }\n return headers;\n};\n\nexport const createServiceProxyRoute = ({\n baseUrl,\n pathPrefix,\n}: ServiceProxyRouteOptions) => {\n const forward = async (\n request: Request,\n { params }: Params,\n ): Promise<Response> => {\n const { path } = await params;\n const search = new URL(request.url).search;\n\n // The caller's own media type: a binary body is declared by it, and a\n // JSON one is the default when the caller named none.\n const headers: Record<string, string> = {\n 'content-type': request.headers.get('content-type') ?? 'application/json',\n ...bearerHeader(await sessionToken()),\n };\n\n for (const name of FORWARDED_REQUEST_HEADERS) {\n const value = request.headers.get(name);\n if (value !== null) headers[name] = value;\n }\n\n const hasBody = request.method !== 'GET' && request.method !== 'DELETE';\n // Bytes, not text: a decoded-and-re-encoded file is a different file.\n const body = hasBody ? await request.arrayBuffer() : undefined;\n // Only the connection is caught. A service that answers — with anything,\n // a `500` included — is passed through below exactly as it answered.\n const upstream = await fetch(\n `${baseUrl}/api/${[pathPrefix, ...path].filter(Boolean).join('/')}${search}`,\n { method: request.method, headers, body, cache: 'no-store' },\n ).catch(() => undefined);\n\n // `502`, never the `500` an unhandled rejection becomes: the host did\n // nothing wrong, and a `500` sends whoever reads it looking for a bug in\n // the app rather than for a process that is not running.\n if (upstream === undefined) {\n return problemResponse(\n new UpstreamUnavailable(\n pathPrefix === undefined ? {} : { upstream: pathPrefix },\n ),\n {\n status: 502,\n },\n );\n }\n\n const passed = passThrough(upstream);\n\n // A `304` carries no body by definition, and neither does a `204`. Running\n // either through a body read is not merely wasteful — a `304` reconstructed\n // with a body is no longer a `304`.\n if (upstream.status === 304) {\n return new NextResponse(null, { status: 304, headers: passed });\n }\n\n // 204s and empty bodies must not be given a body. The upstream's content\n // type is kept, never re-typed: a problem body re-typed as plain JSON is\n // one the browser can no longer recognise as a failure it can decode.\n const bytes = await upstream.arrayBuffer();\n return bytes.byteLength === 0\n ? new NextResponse(null, { status: upstream.status, headers: passed })\n : new NextResponse(bytes, {\n status: upstream.status,\n headers: {\n ...passed,\n 'content-type':\n upstream.headers.get('content-type') ?? 'application/json',\n },\n });\n };\n\n return forward;\n};\n"],"names":["DEADLINE_HEADER","UpstreamUnavailable","NextResponse","bearerHeader","sessionToken","problemResponse","PASSED_RESPONSE_HEADERS","FORWARDED_REQUEST_HEADERS","passThrough","upstream","headers","name","value","get","createServiceProxyRoute","baseUrl","pathPrefix","forward","request","params","path","search","URL","url","hasBody","method","body","arrayBuffer","undefined","fetch","filter","Boolean","join","cache","catch","status","passed","bytes","byteLength"],"mappings":";AAAA,SAASA,eAAe,EAAEC,mBAAmB,QAAQ,gBAAgB;AACrE,SAASC,YAAY,QAAQ,cAAc;AAE3C,SAASC,YAAY,EAAEC,YAAY,QAAQ,uBAAuB;AAClE,SAASC,eAAe,QAAQ,wBAAwB;AAqBxD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BC,GACD;;;;;;;;;;;;;CAaC,GACD,MAAMC,0BAA0B;IAC9B;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;CACD;AAED;;;;;;CAMC,GACD,MAAMC,4BAA4B;IAChC;IACA;IACA;IACAP;CACD;AAED,MAAMQ,cAAc,CAACC;IACnB,MAAMC,UAAkC,CAAC;IACzC,KAAK,MAAMC,QAAQL,wBAAyB;QAC1C,MAAMM,QAAQH,SAASC,OAAO,CAACG,GAAG,CAACF;QACnC,IAAIC,UAAU,MAAMF,OAAO,CAACC,KAAK,GAAGC;IACtC;IACA,OAAOF;AACT;AAEA,OAAO,MAAMI,0BAA0B,CAAC,EACtCC,OAAO,EACPC,UAAU,EACe;IACzB,MAAMC,UAAU,OACdC,SACA,EAAEC,MAAM,EAAU;YAQAD,sBAqDRT;QA3DV,MAAM,EAAEW,IAAI,EAAE,GAAG,MAAMD;QACvB,MAAME,SAAS,IAAIC,IAAIJ,QAAQK,GAAG,EAAEF,MAAM;QAE1C,sEAAsE;QACtE,sDAAsD;QACtD,MAAMX,UAAkC;YACtC,cAAc,GAAEQ,uBAAAA,QAAQR,OAAO,CAACG,GAAG,CAAC,2BAApBK,uBAAuC;WACpDf,aAAa,MAAMC;QAGxB,KAAK,MAAMO,QAAQJ,0BAA2B;YAC5C,MAAMK,QAAQM,QAAQR,OAAO,CAACG,GAAG,CAACF;YAClC,IA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package.json
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
-
"version": "0.23.
|
|
24
|
+
"version": "0.23.5",
|
|
25
25
|
"description": "Next.js application shell: back-office chrome, workspace tabs, CRUD screens derived from entity metadata, and session and proxy routes.",
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"repository": {
|
|
@@ -57,17 +57,17 @@
|
|
|
57
57
|
"react": "19.3.1",
|
|
58
58
|
"react-dom": "19.3.1",
|
|
59
59
|
"zustand": "^5.1.0",
|
|
60
|
-
"@entifix/testing-unit": "0.23.
|
|
60
|
+
"@entifix/testing-unit": "0.23.5"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"idb": "^8.0.4",
|
|
64
|
-
"@entifix/
|
|
65
|
-
"@entifix/
|
|
66
|
-
"@entifix/
|
|
67
|
-
"@entifix/
|
|
68
|
-
"@entifix/
|
|
69
|
-
"@entifix/
|
|
70
|
-
"@entifix/
|
|
64
|
+
"@entifix/business": "0.23.5",
|
|
65
|
+
"@entifix/core": "0.23.5",
|
|
66
|
+
"@entifix/i18n": "0.23.5",
|
|
67
|
+
"@entifix/react-controls": "0.23.5",
|
|
68
|
+
"@entifix/authz": "0.23.5",
|
|
69
|
+
"@entifix/react-integration": "0.23.5",
|
|
70
|
+
"@entifix/transactions": "0.23.5"
|
|
71
71
|
},
|
|
72
72
|
"files": [
|
|
73
73
|
"dist",
|