@paroicms/content-loading-plugin 0.9.1 → 0.9.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.
@@ -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 controller_1 = require("./controller");
7
7
  const projectDir = (0, node_path_1.dirname)(__dirname);
8
8
  const packageDir = (0, node_path_1.dirname)(projectDir);
@@ -12,7 +12,7 @@ const plugin = {
12
12
  slug: "content-loading",
13
13
  async siteInit(service) {
14
14
  service.setPublicAssetsDirectory((0, node_path_1.join)(packageDir, "public-front", "dist"));
15
- service.addHeadTag(`<link rel="stylesheet" href="${(0, public_server_lib_1.escapeHtml)(`${service.pluginAssetsUrl}/style.css`)}">`, `<script type="module" src="${(0, public_server_lib_1.escapeHtml)(`${service.pluginAssetsUrl}/public-front-plugin.mjs`)}"></script>`);
15
+ 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>`);
16
16
  service.setPublicApiHandler(async (ctx, req, res, relativePath) => {
17
17
  if (relativePath === "/search") {
18
18
  await (0, controller_1.makeSearch)(ctx, req.query, req, res);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paroicms/content-loading-plugin",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "Content loading plugin for ParoiCMS",
5
5
  "keywords": [
6
6
  "paroicms",