@sasjs/cli 3.27.2 → 3.27.3
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.
|
@@ -74,7 +74,8 @@ function deployToSasjsWithServicePack(jsonFilePath, target, streamConfig) {
|
|
|
74
74
|
.deployZipFile(zipFilePath, authConfig)
|
|
75
75
|
.catch(function (err) {
|
|
76
76
|
var _a;
|
|
77
|
-
(_a = process.logger) === null || _a === void 0 ? void 0 : _a.error('
|
|
77
|
+
(_a = process.logger) === null || _a === void 0 ? void 0 : _a.error('deployServicePack error', err);
|
|
78
|
+
throw new Error('Deploy service pack error');
|
|
78
79
|
})];
|
|
79
80
|
case 6:
|
|
80
81
|
result = _e.sent();
|
|
@@ -87,7 +88,8 @@ function deployToSasjsWithServicePack(jsonFilePath, target, streamConfig) {
|
|
|
87
88
|
.deploy(payload, target.appLoc, authConfig)
|
|
88
89
|
.catch(function (err) {
|
|
89
90
|
var _a;
|
|
90
|
-
(_a = process.logger) === null || _a === void 0 ? void 0 : _a.error('
|
|
91
|
+
(_a = process.logger) === null || _a === void 0 ? void 0 : _a.error('deployServicePack error', err);
|
|
92
|
+
throw new Error('Deploy service pack error');
|
|
91
93
|
})];
|
|
92
94
|
case 9:
|
|
93
95
|
result = _e.sent();
|
|
@@ -98,6 +100,7 @@ function deployToSasjsWithServicePack(jsonFilePath, target, streamConfig) {
|
|
|
98
100
|
if (result.example) {
|
|
99
101
|
(_b = process.logger) === null || _b === void 0 ? void 0 : _b.info("Payload example:\n".concat(JSON.stringify(result.example, null, 2)));
|
|
100
102
|
}
|
|
103
|
+
throw new Error('Deploy service pack error');
|
|
101
104
|
}
|
|
102
105
|
if ((streamConfig === null || streamConfig === void 0 ? void 0 : streamConfig.streamWeb) && (result === null || result === void 0 ? void 0 : result.streamServiceName)) {
|
|
103
106
|
webAppStreamUrl = "".concat(target.serverUrl, "/AppStream/").concat(result.streamServiceName);
|
|
@@ -104,8 +104,8 @@ function executeDeployScriptSasViya(deployScriptName, target, linesToExecute, lo
|
|
|
104
104
|
case 3:
|
|
105
105
|
_g.sent();
|
|
106
106
|
if (executionResult.completedWithError) {
|
|
107
|
-
(_c = process.logger) === null || _c === void 0 ? void 0 : _c.error("Log is available at ".concat(logFilePath));
|
|
108
|
-
throw new Error(
|
|
107
|
+
(_c = process.logger) === null || _c === void 0 ? void 0 : _c.error("Deployment failed with errors! Log is available at ".concat(logFilePath));
|
|
108
|
+
throw new Error("Deployment failed.");
|
|
109
109
|
}
|
|
110
110
|
(_d = process.logger) === null || _d === void 0 ? void 0 : _d.success("Deployment completed! Log is available at ".concat(logFilePath));
|
|
111
111
|
if (streamConfig === null || streamConfig === void 0 ? void 0 : streamConfig.streamWeb) {
|
package/package.json
CHANGED