@patch-adams/core 1.5.0 → 1.5.1
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/cli.cjs +10 -10
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +10 -10
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +10 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -5087,8 +5087,8 @@ function generateSkinCssLoader(options) {
|
|
|
5087
5087
|
function buildSkinCssOptions(config) {
|
|
5088
5088
|
if (!config.skin) return null;
|
|
5089
5089
|
return {
|
|
5090
|
-
remoteUrl: `${config.remoteDomain}/skin/${config.skin}.css`,
|
|
5091
|
-
localPath: `skin/${config.skin}.css`,
|
|
5090
|
+
remoteUrl: `${config.remoteDomain}/skin/${config.skin}/style.css`,
|
|
5091
|
+
localPath: `skin/${config.skin}/style.css`,
|
|
5092
5092
|
timeout: config.cssAfter.timeout
|
|
5093
5093
|
// reuse cssAfter timeout
|
|
5094
5094
|
};
|
|
@@ -5188,8 +5188,8 @@ function generateSkinJsLoader(options) {
|
|
|
5188
5188
|
function buildSkinJsOptions(config) {
|
|
5189
5189
|
if (!config.skin) return null;
|
|
5190
5190
|
return {
|
|
5191
|
-
remoteUrl: `${config.remoteDomain}/skin/${config.skin}.js`,
|
|
5192
|
-
localPath: `skin/${config.skin}.js`,
|
|
5191
|
+
remoteUrl: `${config.remoteDomain}/skin/${config.skin}/script.js`,
|
|
5192
|
+
localPath: `skin/${config.skin}/script.js`,
|
|
5193
5193
|
timeout: config.jsAfter.timeout
|
|
5194
5194
|
// reuse jsAfter timeout
|
|
5195
5195
|
};
|
|
@@ -6154,13 +6154,13 @@ var Patcher = class {
|
|
|
6154
6154
|
);
|
|
6155
6155
|
}
|
|
6156
6156
|
if (this.config.skin) {
|
|
6157
|
-
const skinCssUrl = `${remoteDomain}/skin/${this.config.skin}.css`;
|
|
6157
|
+
const skinCssUrl = `${remoteDomain}/skin/${this.config.skin}/style.css`;
|
|
6158
6158
|
fetchPromises.push(
|
|
6159
6159
|
this.fetchFile(skinCssUrl).then((content) => {
|
|
6160
6160
|
fetched.skinCss = content;
|
|
6161
6161
|
})
|
|
6162
6162
|
);
|
|
6163
|
-
const skinJsUrl = `${remoteDomain}/skin/${this.config.skin}.js`;
|
|
6163
|
+
const skinJsUrl = `${remoteDomain}/skin/${this.config.skin}/script.js`;
|
|
6164
6164
|
fetchPromises.push(
|
|
6165
6165
|
this.fetchFile(skinJsUrl).then((content) => {
|
|
6166
6166
|
fetched.skinJs = content;
|
|
@@ -6388,9 +6388,9 @@ var Patcher = class {
|
|
|
6388
6388
|
buildManifestPaths(addedFiles) {
|
|
6389
6389
|
const paths = {};
|
|
6390
6390
|
for (const filePath of addedFiles) {
|
|
6391
|
-
if (this.config.skin && filePath.endsWith(`skin/${this.config.skin}.css`)) {
|
|
6391
|
+
if (this.config.skin && filePath.endsWith(`skin/${this.config.skin}/style.css`)) {
|
|
6392
6392
|
paths.skinCss = filePath;
|
|
6393
|
-
} else if (this.config.skin && filePath.endsWith(`skin/${this.config.skin}.js`)) {
|
|
6393
|
+
} else if (this.config.skin && filePath.endsWith(`skin/${this.config.skin}/script.js`)) {
|
|
6394
6394
|
paths.skinJs = filePath;
|
|
6395
6395
|
} else if (filePath.endsWith(this.config.cssBefore.filename)) {
|
|
6396
6396
|
paths.cssBefore = filePath;
|
|
@@ -6477,14 +6477,14 @@ var Patcher = class {
|
|
|
6477
6477
|
if (fetched.jsAfter) console.log(`[Patcher] Using fetched content for ${path}`);
|
|
6478
6478
|
}
|
|
6479
6479
|
if (this.config.skin) {
|
|
6480
|
-
const skinCssPath = `${basePath}skin/${this.config.skin}.css`;
|
|
6480
|
+
const skinCssPath = `${basePath}skin/${this.config.skin}/style.css`;
|
|
6481
6481
|
const skinCssContent = fetched.skinCss ?? `/* PA-Patcher: Skin CSS (${this.config.skin}) */
|
|
6482
6482
|
`;
|
|
6483
6483
|
zip.addFile(skinCssPath, Buffer.from(skinCssContent, "utf-8"));
|
|
6484
6484
|
added.push(skinCssPath);
|
|
6485
6485
|
if (fetched.skinCss) console.log(`[Patcher] Using fetched skin CSS for ${skinCssPath}`);
|
|
6486
6486
|
else console.log(`[Patcher] Added placeholder skin CSS: ${skinCssPath}`);
|
|
6487
|
-
const skinJsPath = `${basePath}skin/${this.config.skin}.js`;
|
|
6487
|
+
const skinJsPath = `${basePath}skin/${this.config.skin}/script.js`;
|
|
6488
6488
|
const skinJsContent = fetched.skinJs ?? `// PA-Patcher: Skin JS (${this.config.skin})
|
|
6489
6489
|
`;
|
|
6490
6490
|
zip.addFile(skinJsPath, Buffer.from(skinJsContent, "utf-8"));
|