@paroicms/public-server-lib 0.14.0 → 0.15.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/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -19,4 +19,5 @@ __exportStar(require("./obfuscate.helper"), exports);
|
|
|
19
19
|
__exportStar(require("./server-image-cache-engine.helper"), exports);
|
|
20
20
|
__exportStar(require("./simple-i18n"), exports);
|
|
21
21
|
__exportStar(require("./url.helpers"), exports);
|
|
22
|
+
__exportStar(require("./vite-config.helper"), exports);
|
|
22
23
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,8DAA4C;AAC5C,qDAAmC;AACnC,qEAAmD;AACnD,gDAA8B;AAC9B,gDAA8B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,8DAA4C;AAC5C,qDAAmC;AACnC,qEAAmD;AACnD,gDAA8B;AAC9B,gDAA8B;AAC9B,uDAAqC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getSolidJsVersion(pluginPath: string): string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getSolidJsVersion = getSolidJsVersion;
|
|
4
|
+
const node_fs_1 = require("node:fs");
|
|
5
|
+
const node_path_1 = require("node:path");
|
|
6
|
+
function getSolidJsVersion(pluginPath) {
|
|
7
|
+
const packageJsonPath = (0, node_path_1.resolve)(pluginPath, "package.json");
|
|
8
|
+
const packageJson = JSON.parse((0, node_fs_1.readFileSync)(packageJsonPath, "utf-8"));
|
|
9
|
+
const version = packageJson.devDependencies["solid-js"];
|
|
10
|
+
console.log("version", version);
|
|
11
|
+
if (!version)
|
|
12
|
+
throw new Error("missing 'solid-js' dependency");
|
|
13
|
+
if (!version.match(/^[0-9]+\.[0-9]+\.[0-9]+$/)) {
|
|
14
|
+
throw new Error(`invalid solid-js version: "${version}" (please use an exact x.x.x version)`);
|
|
15
|
+
}
|
|
16
|
+
return version;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=vite-config.helper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vite-config.helper.js","sourceRoot":"","sources":["../src/vite-config.helper.ts"],"names":[],"mappings":";;AAGA,8CAUC;AAbD,qCAAuC;AACvC,yCAAoC;AAEpC,SAAgB,iBAAiB,CAAC,UAAkB;IAClD,MAAM,eAAe,GAAG,IAAA,mBAAO,EAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IAC5D,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAA,sBAAY,EAAC,eAAe,EAAE,OAAO,CAAC,CAAC,CAAC;IACvE,MAAM,OAAO,GAAG,WAAW,CAAC,eAAe,CAAC,UAAU,CAAuB,CAAC;IAC9E,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAChC,IAAI,CAAC,OAAO;QAAE,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;IAC/D,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,0BAA0B,CAAC,EAAE,CAAC;QAC/C,MAAM,IAAI,KAAK,CAAC,8BAA8B,OAAO,uCAAuC,CAAC,CAAC;IAChG,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
package/package.json
CHANGED
|
@@ -71,7 +71,7 @@ export interface BackendPluginService {
|
|
|
71
71
|
logger: AppLog;
|
|
72
72
|
validateRecaptchaResponse: (gRecaptchaResponse: string | undefined) => Promise<boolean>;
|
|
73
73
|
sendMail: ({ subject, html, replyTo, to }: MailData) => Promise<void>;
|
|
74
|
-
executeHook(hookName: string, params
|
|
74
|
+
executeHook<T = unknown>(hookName: string, params?: any): T[];
|
|
75
75
|
pluginConf: PluginConf;
|
|
76
76
|
pluginAssetsUrl: string;
|
|
77
77
|
}
|