snyk 1.1233.0 → 1.1234.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/dist/cli/index.js +20 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/lib/config/index.d.ts +1 -0
- package/dist/lib/organization.d.ts +1 -0
- package/help/cli-commands/iac-test.md +6 -6
- package/help/cli-commands/sbom.md +8 -0
- package/package.json +1 -1
- package/src/generated/sha256sums.txt +8 -8
- package/src/generated/version +1 -1
- package/wrapper_dist/generated/sha256sums.txt +8 -8
- package/wrapper_dist/generated/version +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -40003,6 +40003,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
40003
40003
|
const snykConfig = __webpack_require__(8658);
|
|
40004
40004
|
const user_config_1 = __webpack_require__(28137);
|
|
40005
40005
|
const api_url_1 = __webpack_require__(37381);
|
|
40006
|
+
const organization_1 = __webpack_require__(28450);
|
|
40006
40007
|
const DEFAULT_TIMEOUT = 5 * 60; // in seconds
|
|
40007
40008
|
// TODO: fix the types!
|
|
40008
40009
|
const config = snykConfig.loadConfig(__dirname + '/../..');
|
|
@@ -40022,6 +40023,7 @@ const org = user_config_1.config.get('org');
|
|
|
40022
40023
|
if (!config.org && org) {
|
|
40023
40024
|
config.org = org;
|
|
40024
40025
|
}
|
|
40026
|
+
config.orgId = organization_1.getOrganizationID();
|
|
40025
40027
|
// client request timeout
|
|
40026
40028
|
// to change, set this config key to the desired value in seconds
|
|
40027
40029
|
// invalid (non-numeric) value will fallback to the default
|
|
@@ -41412,6 +41414,24 @@ MetricsCollector.NETWORK_TIME = new TimerMetric('network_time', 'timer', 'Total
|
|
|
41412
41414
|
MetricsCollector.CPU_TIME = new SyntheticMetric('cpu_time', 'synthetic', 'Time spent on things other than network requests');
|
|
41413
41415
|
|
|
41414
41416
|
|
|
41417
|
+
/***/ }),
|
|
41418
|
+
|
|
41419
|
+
/***/ 28450:
|
|
41420
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
41421
|
+
|
|
41422
|
+
"use strict";
|
|
41423
|
+
|
|
41424
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
41425
|
+
exports.getOrganizationID = void 0;
|
|
41426
|
+
function getOrganizationID() {
|
|
41427
|
+
if (process.env.SNYK_INTERNAL_ORGID != undefined) {
|
|
41428
|
+
return process.env.SNYK_INTERNAL_ORGID;
|
|
41429
|
+
}
|
|
41430
|
+
return '';
|
|
41431
|
+
}
|
|
41432
|
+
exports.getOrganizationID = getOrganizationID;
|
|
41433
|
+
|
|
41434
|
+
|
|
41415
41435
|
/***/ }),
|
|
41416
41436
|
|
|
41417
41437
|
/***/ 53847:
|