@speedkit/cli 2.51.0 → 2.52.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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [2.52.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.51.0...v2.52.0) (2024-08-09)
2
+
3
+
4
+ ### Features
5
+
6
+ * **onboarding:** disable deploymentDetection in localMode ([b6faa9f](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/b6faa9f0bbe0a44784d929689b1fec01a25dcde2))
7
+
1
8
  # [2.51.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.50.0...v2.51.0) (2024-08-09)
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.51.0 linux-x64 node-v20.16.0
24
+ @speedkit/cli/2.52.0 linux-x64 node-v20.16.0
25
25
  $ sk --help [COMMAND]
26
26
  USAGE
27
27
  $ sk COMMAND
@@ -18,6 +18,7 @@ export declare class DocumentHandlerServer {
18
18
  private getTransformFunctionWrapper;
19
19
  buildDocumentHandler(): Promise<void>;
20
20
  private createDocumentHandlerConfigFile;
21
+ private deactivateReleaseAndDeploymentDetection;
21
22
  private getDocumentHandler;
22
23
  private getDynamicFetcher;
23
24
  private getDynamicFetcherConfig;
@@ -90,7 +90,14 @@ class DocumentHandlerServer {
90
90
  this.cli.writeSuccess("rebuild documentHandler");
91
91
  }
92
92
  async createDocumentHandlerConfigFile() {
93
- return this.getDocumentHandlerConfig().replace("export const post", "const post");
93
+ const config = this.getDocumentHandlerConfig().replace("export const post", "const post");
94
+ return this.deactivateReleaseAndDeploymentDetection(config);
95
+ }
96
+ deactivateReleaseAndDeploymentDetection(documentHandlerConfig) {
97
+ return documentHandlerConfig.replace("const documentHandler =", (selected) => {
98
+ return (`config["executeDeploymentDetection"] = false;config["executeReleaseDetection"] = false;\n` +
99
+ selected);
100
+ });
94
101
  }
95
102
  async getDocumentHandler() {
96
103
  return this.files
@@ -131,19 +138,19 @@ class DocumentHandlerServer {
131
138
  }
132
139
  async createDataBaseMock() {
133
140
  const vmConsole = {
134
- log: (context) => {
141
+ log: (...logArguments) => {
135
142
  this.verboseLevel
136
- ? this.cli.write(`[documentHandler.dbLog]: ${JSON.stringify(context)}`)
143
+ ? this.cli.write(`[documentHandler.dbLog]: ${JSON.stringify(logArguments)}`)
137
144
  : "";
138
145
  },
139
- info: (context) => {
146
+ info: (...logArguments) => {
140
147
  this.verboseLevel
141
- ? this.cli.writeWarning(`[documentHandler.dbLog]: ${JSON.stringify(context)}`)
148
+ ? this.cli.writeWarning(`[documentHandler.dbLog]: ${JSON.stringify(logArguments)}`)
142
149
  : "";
143
150
  },
144
- error: (context) => {
151
+ error: (...logArguments) => {
145
152
  this.verboseLevel
146
- ? this.cli.writeError(`[documentHandler.dbLog]: ${JSON.stringify(context)}`)
153
+ ? this.cli.writeError(`[documentHandler.dbLog]: ${JSON.stringify(logArguments)}`)
147
154
  : "";
148
155
  },
149
156
  };
@@ -712,5 +712,5 @@
712
712
  ]
713
713
  }
714
714
  },
715
- "version": "2.51.0"
715
+ "version": "2.52.0"
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.51.0",
4
+ "version": "2.52.0",
5
5
  "author": {
6
6
  "name": "Baqend.com",
7
7
  "email": "info@baqend.com"