Skip to content

Commit 2f9b156

Browse files
committed
npm run all
1 parent b3151e9 commit 2f9b156

File tree

2 files changed

+14
-16
lines changed

2 files changed

+14
-16
lines changed

dist/index.js

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,15 @@ class Audit {
2121
}
2222
run(auditLevel, productionFlag, jsonFlag) {
2323
try {
24+
const auditOptions = ['audit', '--audit-level', auditLevel];
2425
const isWindowsEnvironment = process.platform == "win32";
2526
const cmd = (isWindowsEnvironment) ? 'npm.cmd' : 'npm';
26-
27-
const auditOptions = ['audit', '--audit-level', auditLevel];
2827
if (productionFlag === 'true') {
2928
auditOptions.push('--production');
3029
}
3130
if (jsonFlag === 'true') {
3231
auditOptions.push('--json');
3332
}
34-
3533
const result = child_process_1.spawnSync(cmd, auditOptions, {
3634
encoding: 'utf-8',
3735
maxBuffer: SPAWN_PROCESS_BUFFER_SIZE
@@ -833,8 +831,8 @@ class OidcClient {
833831
const res = yield httpclient
834832
.getJson(id_token_url)
835833
.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
838836
Error Message: ${error.result.message}`);
839837
});
840838
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"]
1311613114
/************************************************************************/
1311713115
/******/ // The module cache
1311813116
/******/ var __webpack_module_cache__ = {};
13119-
/******/
13117+
/******/
1312013118
/******/ // The require function
1312113119
/******/ function __nccwpck_require__(moduleId) {
1312213120
/******/ // Check if module is in cache
@@ -13130,7 +13128,7 @@ module.exports = JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"]
1313013128
/******/ // no module.loaded needed
1313113129
/******/ exports: {}
1313213130
/******/ };
13133-
/******/
13131+
/******/
1313413132
/******/ // Execute the module function
1313513133
/******/ var threw = true;
1313613134
/******/ try {
@@ -13139,23 +13137,23 @@ module.exports = JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"]
1313913137
/******/ } finally {
1314013138
/******/ if(threw) delete __webpack_module_cache__[moduleId];
1314113139
/******/ }
13142-
/******/
13140+
/******/
1314313141
/******/ // Return the exports of the module
1314413142
/******/ return module.exports;
1314513143
/******/ }
13146-
/******/
13144+
/******/
1314713145
/************************************************************************/
1314813146
/******/ /* webpack/runtime/compat */
13149-
/******/
13147+
/******/
1315013148
/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";
13151-
/******/
13149+
/******/
1315213150
/************************************************************************/
13153-
/******/
13151+
/******/
1315413152
/******/ // startup
1315513153
/******/ // Load entry module and return exports
1315613154
/******/ // This entry module is referenced by other modules so it can't be inlined
1315713155
/******/ var __webpack_exports__ = __nccwpck_require__(3109);
1315813156
/******/ module.exports = __webpack_exports__;
13159-
/******/
13157+
/******/
1316013158
/******/ })()
13161-
;
13159+
;

src/audit.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export class Audit {
1515
try {
1616
const auditOptions: Array<string> = ['audit', '--audit-level', auditLevel]
1717

18-
const isWindowsEnvironment: boolean = process.platform == "win32";
19-
const cmd: string = (isWindowsEnvironment) ? 'npm.cmd' : 'npm';
18+
const isWindowsEnvironment: boolean = process.platform == 'win32'
19+
const cmd: string = isWindowsEnvironment ? 'npm.cmd' : 'npm'
2020

2121
if (productionFlag === 'true') {
2222
auditOptions.push('--production')

0 commit comments

Comments
 (0)