@@ -21,17 +21,15 @@ class Audit {
21
21
}
22
22
run(auditLevel, productionFlag, jsonFlag) {
23
23
try {
24
+ const auditOptions = ['audit', '--audit-level', auditLevel];
24
25
const isWindowsEnvironment = process.platform == "win32";
25
26
const cmd = (isWindowsEnvironment) ? 'npm.cmd' : 'npm';
26
-
27
- const auditOptions = ['audit', '--audit-level', auditLevel];
28
27
if (productionFlag === 'true') {
29
28
auditOptions.push('--production');
30
29
}
31
30
if (jsonFlag === 'true') {
32
31
auditOptions.push('--json');
33
32
}
34
-
35
33
const result = child_process_1.spawnSync(cmd, auditOptions, {
36
34
encoding: 'utf-8',
37
35
maxBuffer: SPAWN_PROCESS_BUFFER_SIZE
@@ -833,8 +831,8 @@ class OidcClient {
833
831
const res = yield httpclient
834
832
.getJson(id_token_url)
835
833
.catch(error => {
836
- throw new Error(`Failed to get ID Token. \n
837
- Error Code : ${error.statusCode}\n
834
+ throw new Error(`Failed to get ID Token. \n
835
+ Error Code : ${error.statusCode}\n
838
836
Error Message: ${error.result.message}`);
839
837
});
840
838
const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
@@ -13116,7 +13114,7 @@ module.exports = JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"]
13116
13114
/************************************************************************/
13117
13115
/******/ // The module cache
13118
13116
/******/ var __webpack_module_cache__ = {};
13119
- /******/
13117
+ /******/
13120
13118
/******/ // The require function
13121
13119
/******/ function __nccwpck_require__(moduleId) {
13122
13120
/******/ // Check if module is in cache
@@ -13130,7 +13128,7 @@ module.exports = JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"]
13130
13128
/******/ // no module.loaded needed
13131
13129
/******/ exports: {}
13132
13130
/******/ };
13133
- /******/
13131
+ /******/
13134
13132
/******/ // Execute the module function
13135
13133
/******/ var threw = true;
13136
13134
/******/ try {
@@ -13139,23 +13137,23 @@ module.exports = JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"]
13139
13137
/******/ } finally {
13140
13138
/******/ if(threw) delete __webpack_module_cache__[moduleId];
13141
13139
/******/ }
13142
- /******/
13140
+ /******/
13143
13141
/******/ // Return the exports of the module
13144
13142
/******/ return module.exports;
13145
13143
/******/ }
13146
- /******/
13144
+ /******/
13147
13145
/************************************************************************/
13148
13146
/******/ /* webpack/runtime/compat */
13149
- /******/
13147
+ /******/
13150
13148
/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";
13151
- /******/
13149
+ /******/
13152
13150
/************************************************************************/
13153
- /******/
13151
+ /******/
13154
13152
/******/ // startup
13155
13153
/******/ // Load entry module and return exports
13156
13154
/******/ // This entry module is referenced by other modules so it can't be inlined
13157
13155
/******/ var __webpack_exports__ = __nccwpck_require__(3109);
13158
13156
/******/ module.exports = __webpack_exports__;
13159
- /******/
13157
+ /******/
13160
13158
/******/ })()
13161
- ;
13159
+ ;
0 commit comments