@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.cjs
CHANGED
|
@@ -5097,8 +5097,8 @@ function generateSkinCssLoader(options) {
|
|
|
5097
5097
|
function buildSkinCssOptions(config) {
|
|
5098
5098
|
if (!config.skin) return null;
|
|
5099
5099
|
return {
|
|
5100
|
-
remoteUrl: `${config.remoteDomain}/skin/${config.skin}.css`,
|
|
5101
|
-
localPath: `skin/${config.skin}.css`,
|
|
5100
|
+
remoteUrl: `${config.remoteDomain}/skin/${config.skin}/style.css`,
|
|
5101
|
+
localPath: `skin/${config.skin}/style.css`,
|
|
5102
5102
|
timeout: config.cssAfter.timeout
|
|
5103
5103
|
// reuse cssAfter timeout
|
|
5104
5104
|
};
|
|
@@ -5198,8 +5198,8 @@ function generateSkinJsLoader(options) {
|
|
|
5198
5198
|
function buildSkinJsOptions(config) {
|
|
5199
5199
|
if (!config.skin) return null;
|
|
5200
5200
|
return {
|
|
5201
|
-
remoteUrl: `${config.remoteDomain}/skin/${config.skin}.js`,
|
|
5202
|
-
localPath: `skin/${config.skin}.js`,
|
|
5201
|
+
remoteUrl: `${config.remoteDomain}/skin/${config.skin}/script.js`,
|
|
5202
|
+
localPath: `skin/${config.skin}/script.js`,
|
|
5203
5203
|
timeout: config.jsAfter.timeout
|
|
5204
5204
|
// reuse jsAfter timeout
|
|
5205
5205
|
};
|
|
@@ -6164,13 +6164,13 @@ var Patcher = class {
|
|
|
6164
6164
|
);
|
|
6165
6165
|
}
|
|
6166
6166
|
if (this.config.skin) {
|
|
6167
|
-
const skinCssUrl = `${remoteDomain}/skin/${this.config.skin}.css`;
|
|
6167
|
+
const skinCssUrl = `${remoteDomain}/skin/${this.config.skin}/style.css`;
|
|
6168
6168
|
fetchPromises.push(
|
|
6169
6169
|
this.fetchFile(skinCssUrl).then((content) => {
|
|
6170
6170
|
fetched.skinCss = content;
|
|
6171
6171
|
})
|
|
6172
6172
|
);
|
|
6173
|
-
const skinJsUrl = `${remoteDomain}/skin/${this.config.skin}.js`;
|
|
6173
|
+
const skinJsUrl = `${remoteDomain}/skin/${this.config.skin}/script.js`;
|
|
6174
6174
|
fetchPromises.push(
|
|
6175
6175
|
this.fetchFile(skinJsUrl).then((content) => {
|
|
6176
6176
|
fetched.skinJs = content;
|
|
@@ -6398,9 +6398,9 @@ var Patcher = class {
|
|
|
6398
6398
|
buildManifestPaths(addedFiles) {
|
|
6399
6399
|
const paths = {};
|
|
6400
6400
|
for (const filePath of addedFiles) {
|
|
6401
|
-
if (this.config.skin && filePath.endsWith(`skin/${this.config.skin}.css`)) {
|
|
6401
|
+
if (this.config.skin && filePath.endsWith(`skin/${this.config.skin}/style.css`)) {
|
|
6402
6402
|
paths.skinCss = filePath;
|
|
6403
|
-
} else if (this.config.skin && filePath.endsWith(`skin/${this.config.skin}.js`)) {
|
|
6403
|
+
} else if (this.config.skin && filePath.endsWith(`skin/${this.config.skin}/script.js`)) {
|
|
6404
6404
|
paths.skinJs = filePath;
|
|
6405
6405
|
} else if (filePath.endsWith(this.config.cssBefore.filename)) {
|
|
6406
6406
|
paths.cssBefore = filePath;
|
|
@@ -6487,14 +6487,14 @@ var Patcher = class {
|
|
|
6487
6487
|
if (fetched.jsAfter) console.log(`[Patcher] Using fetched content for ${path}`);
|
|
6488
6488
|
}
|
|
6489
6489
|
if (this.config.skin) {
|
|
6490
|
-
const skinCssPath = `${basePath}skin/${this.config.skin}.css`;
|
|
6490
|
+
const skinCssPath = `${basePath}skin/${this.config.skin}/style.css`;
|
|
6491
6491
|
const skinCssContent = fetched.skinCss ?? `/* PA-Patcher: Skin CSS (${this.config.skin}) */
|
|
6492
6492
|
`;
|
|
6493
6493
|
zip.addFile(skinCssPath, Buffer.from(skinCssContent, "utf-8"));
|
|
6494
6494
|
added.push(skinCssPath);
|
|
6495
6495
|
if (fetched.skinCss) console.log(`[Patcher] Using fetched skin CSS for ${skinCssPath}`);
|
|
6496
6496
|
else console.log(`[Patcher] Added placeholder skin CSS: ${skinCssPath}`);
|
|
6497
|
-
const skinJsPath = `${basePath}skin/${this.config.skin}.js`;
|
|
6497
|
+
const skinJsPath = `${basePath}skin/${this.config.skin}/script.js`;
|
|
6498
6498
|
const skinJsContent = fetched.skinJs ?? `// PA-Patcher: Skin JS (${this.config.skin})
|
|
6499
6499
|
`;
|
|
6500
6500
|
zip.addFile(skinJsPath, Buffer.from(skinJsContent, "utf-8"));
|