@speedkit/cli 2.69.0 → 2.69.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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [2.69.1](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.69.0...v2.69.1) (2024-12-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **axios:** remove unused axios dependency ([40f0238](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/40f023845a800667c284c63a1fafe816c3d42d12))
7
+
1
8
  # [2.69.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.68.0...v2.69.0) (2024-12-11)
2
9
 
3
10
 
package/README.md CHANGED
@@ -21,7 +21,7 @@ $ npm install -g @speedkit/cli
21
21
  $ sk COMMAND
22
22
  running command...
23
23
  $ sk (--version)
24
- @speedkit/cli/2.69.0 linux-x64 node-v20.18.1
24
+ @speedkit/cli/2.69.1 linux-x64 node-v20.18.1
25
25
  $ sk --help [COMMAND]
26
26
  USAGE
27
27
  $ sk COMMAND
@@ -21,7 +21,6 @@ export declare class CustomerConfigService {
21
21
  private compileHandlebarsFiles;
22
22
  private getEnvironmentConfig;
23
23
  private shouldFileBeOverwritten;
24
- private downloadAndSaveFile;
25
24
  private getConfigSettings;
26
25
  logWarnings(configSettings: CustomerConfigSettings): Promise<void>;
27
26
  generateConfig(): Promise<void>;
@@ -5,7 +5,6 @@ const tslib_1 = require("tslib");
5
5
  const fs = tslib_1.__importStar(require("node:fs"));
6
6
  const path = tslib_1.__importStar(require("node:path"));
7
7
  const Handlebars = tslib_1.__importStar(require("handlebars"));
8
- const axios_1 = tslib_1.__importDefault(require("axios"));
9
8
  const cli_1 = require("../cli");
10
9
  const customer_config_service_model_1 = require("./customer-config-service-model");
11
10
  class CustomerConfigService {
@@ -136,30 +135,6 @@ class CustomerConfigService {
136
135
  }
137
136
  return true;
138
137
  }
139
- async downloadAndSaveFile(url, outputFilePath) {
140
- this.cli.startAction(`Adding ${path.basename(outputFilePath)}`);
141
- try {
142
- if (!(await this.shouldFileBeOverwritten(outputFilePath))) {
143
- this.cli.endAction(cli_1.CliActionStatus.SKIPPED);
144
- return;
145
- }
146
- const response = await axios_1.default.get(url, { responseType: "text" });
147
- const date = new Date();
148
- const day = String(date.getDate()).padStart(2, "0");
149
- const month = String(date.getMonth() + 1).padStart(2, "0"); // Months are 0-indexed
150
- const year = date.getFullYear();
151
- const time = date.toLocaleTimeString("de-DE");
152
- const formattedDate = `${day}.${month}.${year}, ${time}`;
153
- // Add timestamp banner to the file
154
- const banner = `/**\n * Downloaded from:\n * ${url}\n * \n * Date: ${formattedDate}\n */\n\n`;
155
- const contentWithBanner = banner + response.data;
156
- fs.writeFileSync(outputFilePath, contentWithBanner);
157
- this.cli.endAction(cli_1.CliActionStatus.COMPLETED);
158
- }
159
- catch {
160
- this.cli.endAction(cli_1.CliActionStatus.FAILED);
161
- }
162
- }
163
138
  async getConfigSettings() {
164
139
  let { production, staging, subRouteScope, includeServiceWorker, activateImageOptimisation, removeLazyLoading, addPreRendering, supportShadowDomInPreRendering, shadowDomCustomElementPrefix, activateRumTracking, useGATracking, useScrapingBee, withGoogleOptimize, activateCfRocketLoaderWorkaround, hasSoftNavigations, isShopify, isShopware, isSalesforce, isPlentymarkets, shopifyId, } = {};
165
140
  this.appName = await this.cli.prompt(`Enter SK App Name:`, {
@@ -712,5 +712,5 @@
712
712
  ]
713
713
  }
714
714
  },
715
- "version": "2.69.0"
715
+ "version": "2.69.1"
716
716
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@speedkit/cli",
3
3
  "description": "Speed Kit CLI",
4
- "version": "2.69.0",
4
+ "version": "2.69.1",
5
5
  "author": {
6
6
  "name": "Baqend.com",
7
7
  "email": "info@baqend.com"
@@ -72,8 +72,7 @@
72
72
  "@oclif/plugin-help": "^6.2.16",
73
73
  "@oclif/plugin-not-found": "^3.2.25",
74
74
  "@oclif/plugin-warn-if-update-available": "^3.1.21",
75
- "axios": "^1.6",
76
- "baqend": "^3.4",
75
+ "baqend": "^4.1.0",
77
76
  "chalk": "^4.1.2",
78
77
  "clipboardy-cjs": "^3.0.0",
79
78
  "css-select": "5.1.0",