@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
|
@@ -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
|
-
|
|
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: (
|
|
141
|
+
log: (...logArguments) => {
|
|
135
142
|
this.verboseLevel
|
|
136
|
-
? this.cli.write(`[documentHandler.dbLog]: ${JSON.stringify(
|
|
143
|
+
? this.cli.write(`[documentHandler.dbLog]: ${JSON.stringify(logArguments)}`)
|
|
137
144
|
: "";
|
|
138
145
|
},
|
|
139
|
-
info: (
|
|
146
|
+
info: (...logArguments) => {
|
|
140
147
|
this.verboseLevel
|
|
141
|
-
? this.cli.writeWarning(`[documentHandler.dbLog]: ${JSON.stringify(
|
|
148
|
+
? this.cli.writeWarning(`[documentHandler.dbLog]: ${JSON.stringify(logArguments)}`)
|
|
142
149
|
: "";
|
|
143
150
|
},
|
|
144
|
-
error: (
|
|
151
|
+
error: (...logArguments) => {
|
|
145
152
|
this.verboseLevel
|
|
146
|
-
? this.cli.writeError(`[documentHandler.dbLog]: ${JSON.stringify(
|
|
153
|
+
? this.cli.writeError(`[documentHandler.dbLog]: ${JSON.stringify(logArguments)}`)
|
|
147
154
|
: "";
|
|
148
155
|
},
|
|
149
156
|
};
|
package/oclif.manifest.json
CHANGED