@paroicms/contact-form-plugin 0.17.1 → 0.17.2
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/backend/dist/plugin.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const node_path_1 = require("node:path");
|
|
4
3
|
const data_formatters_lib_1 = require("@paroi/data-formatters-lib");
|
|
5
4
|
const public_server_lib_1 = require("@paroicms/public-server-lib");
|
|
5
|
+
const node_path_1 = require("node:path");
|
|
6
6
|
const contact_form_mail_1 = require("./contact-form-mail");
|
|
7
7
|
const data_format_1 = require("./data-format");
|
|
8
8
|
const projectDir = (0, node_path_1.dirname)(__dirname);
|
|
@@ -18,7 +18,7 @@ const plugin = {
|
|
|
18
18
|
logger: service.logger,
|
|
19
19
|
});
|
|
20
20
|
service.setPublicAssetsDirectory((0, node_path_1.join)(packageDir, "public-front", "dist"));
|
|
21
|
-
service.addHeadTag(`<link rel="stylesheet" href="${(0, public_server_lib_1.escapeHtml)(`${service.pluginAssetsUrl}/
|
|
21
|
+
service.addHeadTag(`<link rel="stylesheet" href="${(0, public_server_lib_1.escapeHtml)(`${service.pluginAssetsUrl}/public-front-plugin.css`)}">`, `<script type="module" src="${(0, public_server_lib_1.escapeHtml)(`${service.pluginAssetsUrl}/public-front-plugin.mjs`)}"></script>`);
|
|
22
22
|
service.setPublicApiHandler(async (service, req, res, relativePath) => {
|
|
23
23
|
if (relativePath !== "") {
|
|
24
24
|
res.status(404).send({ status: 404 });
|
package/package.json
CHANGED
|
File without changes
|