@xeno-js/core 0.1.8 → 0.1.9
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/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4458,6 +4458,8 @@ var init_middleware_module = __esm({
|
|
|
4458
4458
|
}
|
|
4459
4459
|
if (Guards43.isDefined(opts.csrf)) {
|
|
4460
4460
|
const csrf = opts.csrf;
|
|
4461
|
+
const { EdgeCryptoService: EdgeCryptoService2 } = await Promise.resolve().then(() => (init_services(), services_exports));
|
|
4462
|
+
container.addSingleton("CRYPTO_SERVICE", () => new EdgeCryptoService2());
|
|
4461
4463
|
const { CsrfTokenService: CsrfTokenService2 } = await Promise.resolve().then(() => (init_services(), services_exports));
|
|
4462
4464
|
container.addSingleton("CSRF_TOKEN_SERVICE", (c) => {
|
|
4463
4465
|
return new CsrfTokenService2(csrf.secret, c.resolve("CRYPTO_SERVICE"));
|