@c15t/backend 2.0.0-rc.2 → 2.0.0-rc.3
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/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +6 -0
- package/dist/core.cjs +2 -1
- package/dist/core.d.ts.map +1 -1
- package/dist/core.js +2 -1
- package/dist/router.cjs +1 -1
- package/dist/router.js +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/core.ts +1 -0
- package/src/version.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -5,12 +5,12 @@ $ genversion --esm --semi src/version.ts
|
|
|
5
5
|
Rslib v0.18.3
|
|
6
6
|
|
|
7
7
|
info build started...
|
|
8
|
-
ready built in [1m0.
|
|
9
|
-
ready built in [1m0.
|
|
10
|
-
start generating declaration files... [2m(cjs)[22m
|
|
8
|
+
ready built in [1m0.40[22m s[2m (esm)[22m
|
|
9
|
+
ready built in [1m0.41[22m s[2m (cjs)[22m
|
|
11
10
|
start generating declaration files... [2m(esm)[22m
|
|
12
|
-
|
|
13
|
-
ready declaration files generated in [1m6.
|
|
11
|
+
start generating declaration files... [2m(cjs)[22m
|
|
12
|
+
ready declaration files generated in [1m6.66[22m s [2m(esm)[22m
|
|
13
|
+
ready declaration files generated in [1m6.72[22m s [2m(cjs)[22m
|
|
14
14
|
|
|
15
15
|
[34mFile (esm) Size [39m
|
|
16
16
|
[2mdist/db/[22m[36madapters.js[39m 0.00 kB
|
|
@@ -27,7 +27,7 @@ ready declaration files generated in [1m6.33[22m s [2m(cjs)[22m
|
|
|
27
27
|
[2mdist/[22m[36mrouter.js[39m 54.8 kB
|
|
28
28
|
[2mdist/[22m[36mcore.js[39m 98.6 kB
|
|
29
29
|
|
|
30
|
-
[35mTotal:[39m 183.
|
|
30
|
+
[35mTotal:[39m 183.4 kB
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
[34mFile (cjs) Size [39m
|
|
@@ -43,7 +43,7 @@ ready declaration files generated in [1m6.33[22m s [2m(cjs)[22m
|
|
|
43
43
|
[2mdist/db/[22m[36mschema.cjs[39m 19.0 kB
|
|
44
44
|
[2mdist/[22m[36mcache.cjs[39m 20.0 kB
|
|
45
45
|
[2mdist/[22m[36mrouter.cjs[39m 58.9 kB
|
|
46
|
-
[2mdist/[22m[36mcore.cjs[39m 119.
|
|
46
|
+
[2mdist/[22m[36mcore.cjs[39m 119.2 kB
|
|
47
47
|
|
|
48
48
|
[35mTotal:[39m 228.8 kB
|
|
49
49
|
|
package/CHANGELOG.md
CHANGED
package/dist/core.cjs
CHANGED
|
@@ -568,7 +568,7 @@ var __webpack_exports__ = {};
|
|
|
568
568
|
}
|
|
569
569
|
return null;
|
|
570
570
|
}
|
|
571
|
-
const version_version = '2.0.0-rc.
|
|
571
|
+
const version_version = '2.0.0-rc.3';
|
|
572
572
|
function extractErrorMessage(error) {
|
|
573
573
|
if (error instanceof AggregateError && error.errors?.length > 0) {
|
|
574
574
|
const inner = error.errors.map((e)=>e instanceof Error ? e.message : String(e)).join('; ');
|
|
@@ -2681,6 +2681,7 @@ Use for health checks, load balancer probes, and debugging. Performs a lightweig
|
|
|
2681
2681
|
app.route('/subjects', createSubjectRoutes());
|
|
2682
2682
|
app.route('/consents', createConsentRoutes());
|
|
2683
2683
|
app.route('/status', createStatusRoute());
|
|
2684
|
+
app.route('/', createStatusRoute());
|
|
2684
2685
|
app.onError((err, c)=>{
|
|
2685
2686
|
const ctx = c.get('c15tContext');
|
|
2686
2687
|
const log = ctx?.logger || logger;
|
package/dist/core.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAQ5B,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAgBxD;;GAEG;AACH,MAAM,M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;;;;;;GAOG;AACH,MAAM,WAAW,YAAY;IAC5B;;;;;;;;;;;;;;;OAeG;IACH,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAEjD;;OAEG;IACH,OAAO,EAAE,WAAW,CAAC;IAErB;;OAEG;IACH,QAAQ,EAAE,WAAW,CAAC;IAEtB;;OAEG;IACH,GAAG,EAAE,OAAO,CAAC;IAEb;;;;OAIG;IACH,cAAc,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAEvD;;;;OAIG;IACH,SAAS,EAAE,MAAM,MAAM,CAAC;CACxB;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,SAAS,WAAW,KAAG,YAqQnD,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
|
package/dist/core.js
CHANGED
|
@@ -136,7 +136,7 @@ function createCORSOptions(trustedOrigins) {
|
|
|
136
136
|
]
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
|
-
const version_version = '2.0.0-rc.
|
|
139
|
+
const version_version = '2.0.0-rc.3';
|
|
140
140
|
const config_createOpenAPIConfig = (options)=>({
|
|
141
141
|
enabled: options.advanced?.openapi?.enabled !== false,
|
|
142
142
|
specPath: '/spec.json',
|
|
@@ -2613,6 +2613,7 @@ const c15tInstance = (options)=>{
|
|
|
2613
2613
|
app.route('/subjects', createSubjectRoutes());
|
|
2614
2614
|
app.route('/consents', createConsentRoutes());
|
|
2615
2615
|
app.route('/status', createStatusRoute());
|
|
2616
|
+
app.route('/', createStatusRoute());
|
|
2616
2617
|
app.onError((err, c)=>{
|
|
2617
2618
|
const ctx = c.get('c15tContext');
|
|
2618
2619
|
const log = ctx?.logger || logger;
|
package/dist/router.cjs
CHANGED
|
@@ -890,7 +890,7 @@ Use for geo-targeted consent banners and regional compliance.`,
|
|
|
890
890
|
});
|
|
891
891
|
return app;
|
|
892
892
|
};
|
|
893
|
-
const version_version = '2.0.0-rc.
|
|
893
|
+
const version_version = '2.0.0-rc.3';
|
|
894
894
|
function getHeaders(headers) {
|
|
895
895
|
if (!headers) return {
|
|
896
896
|
countryCode: null,
|
package/dist/router.js
CHANGED
|
@@ -14,7 +14,7 @@ function extractErrorMessage(error) {
|
|
|
14
14
|
if (error instanceof Error) return error.message || error.name;
|
|
15
15
|
return String(error);
|
|
16
16
|
}
|
|
17
|
-
const version_version = '2.0.0-rc.
|
|
17
|
+
const version_version = '2.0.0-rc.3';
|
|
18
18
|
let cachedConfig = null;
|
|
19
19
|
let cachedDefaultAttributes = {};
|
|
20
20
|
function create_telemetry_options_isTelemetryEnabled(options) {
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "2.0.0-rc.
|
|
1
|
+
export declare const version = "2.0.0-rc.3";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c15t/backend",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.3",
|
|
4
4
|
"description": "Consent policy engine and API for c15t. Powers the cookie banner, consent manager, and preferences centre. Webhooks, audit logs, storage adapters. Self host or use consent.io",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"consent",
|
package/src/core.ts
CHANGED
|
@@ -245,6 +245,7 @@ export const c15tInstance = (options: C15TOptions): C15TInstance => {
|
|
|
245
245
|
app.route('/subjects', createSubjectRoutes());
|
|
246
246
|
app.route('/consents', createConsentRoutes());
|
|
247
247
|
app.route('/status', createStatusRoute());
|
|
248
|
+
app.route('/', createStatusRoute());
|
|
248
249
|
|
|
249
250
|
// Global error handler
|
|
250
251
|
app.onError((err, c) => {
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '2.0.0-rc.
|
|
2
|
+
export const version = '2.0.0-rc.3';
|