@prenta/core 8.20.1 → 8.21.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/CHANGELOG.md +20 -0
- package/dist/api/handler-factory.d.ts.map +1 -1
- package/dist/api/handler-factory.js +20 -5
- package/dist/api/handler-factory.js.map +1 -1
- package/dist/api/routes/redirects.d.ts.map +1 -1
- package/dist/api/routes/redirects.js +17 -3
- package/dist/api/routes/redirects.js.map +1 -1
- package/dist/api/routes/seo-autopilot.d.ts.map +1 -1
- package/dist/api/routes/seo-autopilot.js +24 -4
- package/dist/api/routes/seo-autopilot.js.map +1 -1
- package/dist/diagnostics/env.js +1 -1
- package/dist/diagnostics/env.js.map +1 -1
- package/dist/diagnostics/logger.d.ts.map +1 -1
- package/dist/diagnostics/logger.js +46 -2
- package/dist/diagnostics/logger.js.map +1 -1
- package/dist/graphql/resolvers.d.ts.map +1 -1
- package/dist/graphql/resolvers.js +4 -1
- package/dist/graphql/resolvers.js.map +1 -1
- package/dist/graphql/schema-builder.d.ts +7 -0
- package/dist/graphql/schema-builder.d.ts.map +1 -1
- package/dist/graphql/schema-builder.js +30 -3
- package/dist/graphql/schema-builder.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/next.d.ts.map +1 -1
- package/dist/next.js +7 -2
- package/dist/next.js.map +1 -1
- package/dist/security/index.d.ts +1 -0
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/index.js +1 -0
- package/dist/security/index.js.map +1 -1
- package/dist/security/sanitize-document.d.ts +11 -1
- package/dist/security/sanitize-document.d.ts.map +1 -1
- package/dist/security/sanitize-document.js +10 -11
- package/dist/security/sanitize-document.js.map +1 -1
- package/dist/seo/autopilot-owner.d.ts +25 -0
- package/dist/seo/autopilot-owner.d.ts.map +1 -0
- package/dist/seo/autopilot-owner.js +48 -0
- package/dist/seo/autopilot-owner.js.map +1 -0
- package/dist/storage/auto-wire.d.ts +2 -1
- package/dist/storage/auto-wire.d.ts.map +1 -1
- package/dist/storage/auto-wire.js +6 -3
- package/dist/storage/auto-wire.js.map +1 -1
- package/package.json +1 -1
|
@@ -32,8 +32,9 @@ export function isAutoWireableStorageProvider(provider) {
|
|
|
32
32
|
* throws — storage wiring must not take down the API.
|
|
33
33
|
*
|
|
34
34
|
* `importer` is injectable for tests; production uses a computed dynamic import.
|
|
35
|
+
* `onError` receives whatever the import or the factory threw.
|
|
35
36
|
*/
|
|
36
|
-
export async function autoWireStorageAdapter(provider, importer = defaultImporter) {
|
|
37
|
+
export async function autoWireStorageAdapter(provider, importer = defaultImporter, onError) {
|
|
37
38
|
if (!provider || provider === 'local')
|
|
38
39
|
return false;
|
|
39
40
|
if (getStorageAdapter())
|
|
@@ -52,8 +53,10 @@ export async function autoWireStorageAdapter(provider, importer = defaultImporte
|
|
|
52
53
|
return true;
|
|
53
54
|
}
|
|
54
55
|
}
|
|
55
|
-
catch {
|
|
56
|
-
|
|
56
|
+
catch (error) {
|
|
57
|
+
// Optional peer not installed, or installed but not deployed with this
|
|
58
|
+
// function. The caller warns; hand it the reason so the two are told apart.
|
|
59
|
+
onError?.(error);
|
|
57
60
|
}
|
|
58
61
|
return false;
|
|
59
62
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auto-wire.js","sourceRoot":"","sources":["../../src/storage/auto-wire.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAuB,MAAM,YAAY,CAAA;AAItF,sEAAsE;AACtE,MAAM,iBAAiB,GAAsD;IAC3E,aAAa,EAAE,EAAE,IAAI,EAAE,yBAAyB,EAAE,OAAO,EAAE,QAAQ,EAAE;IACrE,EAAE,EAAE,EAAE,IAAI,EAAE,sBAAsB,EAAE,OAAO,EAAE,KAAK,EAAE;CACrD,CAAA;AAED,MAAM,eAAe,GAAm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