snyk 1.1124.0 → 1.1125.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.
@@ -2520,10 +2520,10 @@
2520
2520
  },
2521
2521
  {
2522
2522
  "name": "snyk-gradle-plugin",
2523
- "version": "3.26.0",
2523
+ "version": "3.26.1",
2524
2524
  "author": "snyk.io",
2525
2525
  "repository": "https://github.com/snyk/snyk-gradle-plugin",
2526
- "source": "https://registry.npmjs.org/snyk-gradle-plugin/-/snyk-gradle-plugin-3.26.0.tgz",
2526
+ "source": "https://registry.npmjs.org/snyk-gradle-plugin/-/snyk-gradle-plugin-3.26.1.tgz",
2527
2527
  "license": "Apache-2.0",
2528
2528
  "licenseText": "Copyright 2017 Snyk Ltd.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"
2529
2529
  },
@@ -288,11 +288,12 @@ allprojects { Project currProj ->
288
288
  )
289
289
 
290
290
  task snykResolvedDepsJson {
291
-
292
291
  doLast { task ->
293
292
  if (snykDepsConfExecuted) {
294
293
  return
295
294
  }
295
+
296
+ snykDepsConfExecuted = true
296
297
  debugLog('snykResolvedDepsJson task is executing via doLast')
297
298
  // debugLog("onlyProj=$onlyProj; confNameFilter=$confNameFilter; confAttrSpec=$confAttrSpec")
298
299
  // First pass: scan all configurations that match the attribute filter and collect all attributes
@@ -383,7 +384,6 @@ allprojects { Project currProj ->
383
384
  ]
384
385
  def jsonDeps = JsonOutput.toJson(result)
385
386
  println("JSONDEPS $jsonDeps")
386
- snykDepsConfExecuted = true
387
387
  }
388
388
  }
389
389
 
@@ -393,6 +393,8 @@ allprojects { Project currProj ->
393
393
  if (snykDepsConfExecuted) {
394
394
  return
395
395
  }
396
+
397
+ snykDepsConfExecuted = true
396
398
  debugLog('snykNormalizedResolvedDepsJson task is executing via doLast')
397
399
  // debugLog("onlyProj=$onlyProj; confNameFilter=$confNameFilter; confAttrSpec=$confAttrSpec")
398
400
  // First pass: scan all configurations that match the attribute filter and collect all attributes
@@ -485,7 +487,6 @@ allprojects { Project currProj ->
485
487
 
486
488
  def jsonDeps = JsonOutput.toJson(result)
487
489
  println("JSONDEPS $jsonDeps")
488
- snykDepsConfExecuted = true
489
490
  }
490
491
  }
491
492
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snyk",
3
- "version": "1.1124.0",
3
+ "version": "1.1125.0",
4
4
  "description": "snyk library and cli utility",
5
5
  "files": [
6
6
  "*"
@@ -1,10 +1,10 @@
1
- 186d38ac68bb8903ccc47f50e42d1cd352ac6346c1ac1375aa9f9c7643ec7353 docker-mac-signed-bundle.tar.gz
2
- c1a29dbd4362bce0d6469a92949ebbf3dbac2a9a51ae051c7183b8f733196b3e snyk-alpine
3
- 11986648a2ccec5b40ea35f3604cb1d448a57269ca152760f346f6f006374609 snyk-fix.tgz
4
- 61f1fd3bb9b266b26acb226f0b21276a4e35a0174af2eeb32926b4603eab8656 snyk-for-docker-desktop-darwin-arm64.tar.gz
5
- 65b4921545e8fb285ee9dd8a27263daaa45972bf693eb3a620f0f09e869c5d6c snyk-for-docker-desktop-darwin-x64.tar.gz
6
- 0b79dcca8f28cea1d329dccae449253eb1f25fc34046f93c0ab837f4a10f257b snyk-linux-arm64
7
- 280821caef2597ea4ec83235224a62ae5bd59e757c6fed53a600978ed68da108 snyk-linux
8
- addc3240329b6a7038fce4141ca244e83feb1db0e0a6bd03aae1af065b3d3a8e snyk-macos
9
- 01236ed2795d01c52e908bde427e3da526e8a6a59ebee3fc542a606feed9769f snyk-protect.tgz
10
- 772354868df6af753f70c414b77993d40310a596a2d147f457dd5a6d23ea5c36 snyk-win.exe
1
+ 90c8fee3ed2420f450033d32da64721ae71a3950598d726791fa1f009031822b docker-mac-signed-bundle.tar.gz
2
+ 32c1de5d93832bb1c358b5d84324de7816dc062b2f0cf3f982f9dbaf74cd508d snyk-alpine
3
+ 20b20fa932b765a9c0d10f81a997004353315796b762e1a96de0167878367741 snyk-fix.tgz
4
+ 598854c766f236367126c433f07cd8a9ca3c67b2492e7e0857a79f37d294833b snyk-for-docker-desktop-darwin-arm64.tar.gz
5
+ d0d547b7525f417ef08f3606cc77116dfa83d93ad55ecfb99561d49c98defd46 snyk-for-docker-desktop-darwin-x64.tar.gz
6
+ e8b2f9ca643be344ea1287fe756ba0e3f56de0ba1d80166250b73c1858079dc3 snyk-linux-arm64
7
+ ba77ec97b630122e9b8fa4b1f2f88641b87ba1adcbdc8312a6697296930cbe7c snyk-linux
8
+ 8a3fd4af006baf7441ee9b91564d79d63b1f7d0fa4de13426d62c911ca21973b snyk-macos
9
+ 2f62429366f0518b48dfdc8d760de6dad0ab7653f929e95e3f6a3758ed9a00c9 snyk-protect.tgz
10
+ f4171b7812a46aa444ecbe45acf4d38480a663396d622931aa89ecb1274d7fd1 snyk-win.exe
@@ -1 +1 @@
1
- 1.1124.0
1
+ 1.1125.0
@@ -42,8 +42,16 @@ describe('Basic acceptance test', () => {
42
42
  'node ' + bootstrapScript + ' exec',
43
43
  { shell: true },
44
44
  );
45
- console.debug(resultBootstrap.stdout.toString());
46
- console.error(resultBootstrap.stderr.toString());
45
+
46
+ if (resultBootstrap.status != 0) {
47
+ console.debug(resultBootstrap.stdout.toString());
48
+ console.error(resultBootstrap.stderr.toString());
49
+ }
50
+
51
+ // The binary wrapper should not output anything to stdout
52
+ // as it will conflict with stdout from the CLI leading to incidents
53
+ expect(resultBootstrap.stdout.toString()).toEqual('');
54
+
47
55
  expect(resultBootstrap.status).toEqual(0);
48
56
  expect(fs.existsSync(executable)).toBeTruthy();
49
57
 
@@ -94,9 +102,14 @@ describe('Basic acceptance test', () => {
94
102
 
95
103
  expect(fs.existsSync(executable)).toBeTruthy();
96
104
  expect(resultIndex.status).toEqual(0);
105
+ // The binary wrapper should not output anything to stdout
106
+ // Assert the only stdout is from the CLI --version flag
97
107
  expect(
98
- resultIndex.stdout.toString().includes(cliVersionForTesting),
99
- ).toBeTruthy();
108
+ resultIndex.stdout
109
+ .toString()
110
+ .split(' ')[0]
111
+ .trim(),
112
+ ).toEqual(cliVersionForTesting);
100
113
 
101
114
  fs.unlinkSync(executable);
102
115
  });
@@ -197,8 +210,11 @@ describe('Basic acceptance test', () => {
197
210
  'node ' + bootstrapScript + ' exec',
198
211
  { shell: true, env: { ...process.env } },
199
212
  );
200
- console.debug(resultBootstrap.stdout.toString());
201
- console.error(resultBootstrap.stderr.toString());
213
+
214
+ if (resultBootstrap.status != 0) {
215
+ console.debug(resultBootstrap.stdout.toString());
216
+ console.error(resultBootstrap.stderr.toString());
217
+ }
202
218
 
203
219
  const expectedErrorMessage = 'ECONNREFUSED';
204
220
  const expectedError = resultBootstrap.stderr
@@ -1,10 +1,10 @@
1
- 186d38ac68bb8903ccc47f50e42d1cd352ac6346c1ac1375aa9f9c7643ec7353 docker-mac-signed-bundle.tar.gz
2
- c1a29dbd4362bce0d6469a92949ebbf3dbac2a9a51ae051c7183b8f733196b3e snyk-alpine
3
- 11986648a2ccec5b40ea35f3604cb1d448a57269ca152760f346f6f006374609 snyk-fix.tgz
4
- 61f1fd3bb9b266b26acb226f0b21276a4e35a0174af2eeb32926b4603eab8656 snyk-for-docker-desktop-darwin-arm64.tar.gz
5
- 65b4921545e8fb285ee9dd8a27263daaa45972bf693eb3a620f0f09e869c5d6c snyk-for-docker-desktop-darwin-x64.tar.gz
6
- 0b79dcca8f28cea1d329dccae449253eb1f25fc34046f93c0ab837f4a10f257b snyk-linux-arm64
7
- 280821caef2597ea4ec83235224a62ae5bd59e757c6fed53a600978ed68da108 snyk-linux
8
- addc3240329b6a7038fce4141ca244e83feb1db0e0a6bd03aae1af065b3d3a8e snyk-macos
9
- 01236ed2795d01c52e908bde427e3da526e8a6a59ebee3fc542a606feed9769f snyk-protect.tgz
10
- 772354868df6af753f70c414b77993d40310a596a2d147f457dd5a6d23ea5c36 snyk-win.exe
1
+ 90c8fee3ed2420f450033d32da64721ae71a3950598d726791fa1f009031822b docker-mac-signed-bundle.tar.gz
2
+ 32c1de5d93832bb1c358b5d84324de7816dc062b2f0cf3f982f9dbaf74cd508d snyk-alpine
3
+ 20b20fa932b765a9c0d10f81a997004353315796b762e1a96de0167878367741 snyk-fix.tgz
4
+ 598854c766f236367126c433f07cd8a9ca3c67b2492e7e0857a79f37d294833b snyk-for-docker-desktop-darwin-arm64.tar.gz
5
+ d0d547b7525f417ef08f3606cc77116dfa83d93ad55ecfb99561d49c98defd46 snyk-for-docker-desktop-darwin-x64.tar.gz
6
+ e8b2f9ca643be344ea1287fe756ba0e3f56de0ba1d80166250b73c1858079dc3 snyk-linux-arm64
7
+ ba77ec97b630122e9b8fa4b1f2f88641b87ba1adcbdc8312a6697296930cbe7c snyk-linux
8
+ 8a3fd4af006baf7441ee9b91564d79d63b1f7d0fa4de13426d62c911ca21973b snyk-macos
9
+ 2f62429366f0518b48dfdc8d760de6dad0ab7653f929e95e3f6a3758ed9a00c9 snyk-protect.tgz
10
+ f4171b7812a46aa444ecbe45acf4d38480a663396d622931aa89ecb1274d7fd1 snyk-win.exe
@@ -1 +1 @@
1
- 1.1124.0
1
+ 1.1125.0