c2cciutils 1.4.22.dev7__py3-none-any.whl → 1.4.22.dev9__py3-none-any.whl

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.
@@ -24,7 +24,7 @@ function hookChildProcess(cp, parsed) {
24
24
  // the command exists and emit an "error" instead
25
25
  // See https://github.com/IndigoUnited/node-cross-spawn/issues/16
26
26
  if (name === 'exit') {
27
- const err = verifyENOENT(arg1, parsed, 'spawn');
27
+ const err = verifyENOENT(arg1, parsed);
28
28
 
29
29
  if (err) {
30
30
  return originalEmit.call(cp, 'error', err);
@@ -15,15 +15,17 @@ function escapeArgument(arg, doubleEscapeMetaChars) {
15
15
  arg = `${arg}`;
16
16
 
17
17
  // Algorithm below is based on https://qntm.org/cmd
18
+ // It's slightly altered to disable JS backtracking to avoid hanging on specially crafted input
19
+ // Please see https://github.com/moxystudio/node-cross-spawn/pull/160 for more information
18
20
 
19
21
  // Sequence of backslashes followed by a double quote:
20
22
  // double up all the backslashes and escape the double quote
21
- arg = arg.replace(/(\\*)"/g, '$1$1\\"');
23
+ arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"');
22
24
 
23
25
  // Sequence of backslashes followed by the end of the string
24
26
  // (which will become a double quote later):
25
27
  // double up all the backslashes
26
- arg = arg.replace(/(\\*)$/, '$1$1');
28
+ arg = arg.replace(/(?=(\\+?)?)\1$/, '$1$1');
27
29
 
28
30
  // All other backslashes occur literally
29
31
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cross-spawn",
3
- "version": "7.0.3",
3
+ "version": "7.0.6",
4
4
  "description": "Cross platform child_process#spawn and child_process#spawnSync",
5
5
  "keywords": [
6
6
  "spawn",
@@ -65,7 +65,7 @@
65
65
  "lint-staged": "^9.2.5",
66
66
  "mkdirp": "^0.5.1",
67
67
  "rimraf": "^3.0.0",
68
- "standard-version": "^7.0.0"
68
+ "standard-version": "^9.5.0"
69
69
  },
70
70
  "engines": {
71
71
  "node": ">= 8"
@@ -59,9 +59,10 @@
59
59
  }
60
60
  },
61
61
  "node_modules/cross-spawn": {
62
- "version": "7.0.3",
63
- "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
64
- "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
62
+ "version": "7.0.6",
63
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
64
+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
65
+ "license": "MIT",
65
66
  "dependencies": {
66
67
  "path-key": "^3.1.0",
67
68
  "shebang-command": "^2.0.0",
@@ -348,9 +349,9 @@
348
349
  }
349
350
  },
350
351
  "cross-spawn": {
351
- "version": "7.0.3",
352
- "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
353
- "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
352
+ "version": "7.0.6",
353
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
354
+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
354
355
  "requires": {
355
356
  "path-key": "^3.1.0",
356
357
  "shebang-command": "^2.0.0",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: c2cciutils
3
- Version: 1.4.22.dev7
3
+ Version: 1.4.22.dev9
4
4
  Summary: Common utilities for Camptocamp CI
5
5
  Home-page: https://github.com/camptocamp/c2cciutils
6
6
  License: FreeBSD
@@ -68,12 +68,12 @@ c2cciutils/node_modules/chevrotain/lib/src/utils/utils.js,sha256=OcudJ8UWRPuKceu
68
68
  c2cciutils/node_modules/chevrotain/lib/src/version.js,sha256=NOCNZkns0C0qz36f4ERo_3eyi1gBkJ-eOHUKhE8q02Y,338
69
69
  c2cciutils/node_modules/chevrotain/package.json,sha256=FbsBSyd0R9UeRJbLag8pWjkpD0I65QmmHD-RTip1ijM,5754
70
70
  c2cciutils/node_modules/cross-spawn/index.js,sha256=uOAcsYuofuGw5esusc5suyWivdIp-eCGcfihDtfjrTU,1192
71
- c2cciutils/node_modules/cross-spawn/lib/enoent.js,sha256=Dv85gcL4W_q2hcjxBLyRD3gvo1R_yWpiqjLvP2TKbfQ,1480
71
+ c2cciutils/node_modules/cross-spawn/lib/enoent.js,sha256=D5qrXHCJkc8B0_2lVzGMRgCkYHETh0LuhZYkT3_XPvU,1471
72
72
  c2cciutils/node_modules/cross-spawn/lib/parse.js,sha256=CmdgE2WjrkE2U8jJ08a_8iAoYeHri10ov0bUgSpEZeo,3065
73
- c2cciutils/node_modules/cross-spawn/lib/util/escape.js,sha256=p7dUSy-MNVEGdLnRs3k9VSAPwe-mW2CZ8ZMqKVCndqE,1172
73
+ c2cciutils/node_modules/cross-spawn/lib/util/escape.js,sha256=XWGygp4OeRKHTh5mQUZVTQzQL9VSSr9OpZqHnw_DBnU,1383
74
74
  c2cciutils/node_modules/cross-spawn/lib/util/readShebang.js,sha256=sFunMuFn_Pmk_WfrtKXCjMpHEqNjdsCw8uTh035_GNI,549
75
75
  c2cciutils/node_modules/cross-spawn/lib/util/resolveCommand.js,sha256=5SX-c5q6Ac9e7mRz30Sc3ak99iZu_6jq4Pz7mk5sXeY,1557
76
- c2cciutils/node_modules/cross-spawn/package.json,sha256=jj53OHsO_fIiNP2NVgmLuQoLbwoAuKmTwZFnSOcByKY,1655
76
+ c2cciutils/node_modules/cross-spawn/package.json,sha256=LhBs2bSuTjTq01IYNxoNThctpyUVpPj5fWmi4f497oI,1655
77
77
  c2cciutils/node_modules/define-lazy-prop/index.js,sha256=QsAaekg17mEIkuNFYUHQVvOZEyo5G7awtL-GVVEx_dw,404
78
78
  c2cciutils/node_modules/define-lazy-prop/package.json,sha256=h24GMtueMwmBA-3AEjoyXcUc44y7ZDpyxSqQCWY3XFI,755
79
79
  c2cciutils/node_modules/globalyzer/package.json,sha256=mps889tFSlEM4hHGsGOqMQtgmmnl0WmHDxjkRx4k9ek,521
@@ -592,7 +592,7 @@ c2cciutils/node_modules/tslib/tslib.es6.js,sha256=QzGggjqONgfcwCkPu-O7kEgEnkK3am
592
592
  c2cciutils/node_modules/tslib/tslib.js,sha256=zzWfvDVNG8CHF4BKlPONmLb7ye_lNNPjVWWSsoVByv4,15490
593
593
  c2cciutils/node_modules/which/package.json,sha256=QwEAOe1eifcYaWC-aCs8tc2lq2zfsGy_1PCBzw57QmA,1043
594
594
  c2cciutils/node_modules/which/which.js,sha256=doReH-eFEmf7fucrGPLZFpltMwFQ4x5I9GV6eem0a1s,3163
595
- c2cciutils/package-lock.json,sha256=i2fdBbgrKwegQwORLzguRrgIPwh0QC319PiNA-V-uEY,20068
595
+ c2cciutils/package-lock.json,sha256=d3jk4nnTb_PZur8AtZUdoME0_KZtlXu-xiYEgSObavE,20092
596
596
  c2cciutils/package.json,sha256=pXuypsju0LT0JAZPzEs-qR8fpv4lFPRBjzOwXjr1eNU,232
597
597
  c2cciutils/pr_checks.py,sha256=aWGaJPFSPIb5uEDPyYS5z-tQ1q0LzpZ78t3He0H8IV8,10157
598
598
  c2cciutils/prettier.js,sha256=PR96NT85pxZx_wPcfKa6B7_z_Gw_Yp4SCRX8cL_GfLU,588
@@ -618,8 +618,8 @@ c2cciutils/scripts/pr_checks.py,sha256=asZVohDyk0yGeCDVH2G36qaUPVwtvepSpwAipZPr6
618
618
  c2cciutils/scripts/publish.py,sha256=me22IthKtJZKvtKvAdX8FK71x95JGiP2aoNWSxZfnC8,15557
619
619
  c2cciutils/scripts/trigger_image_update.py,sha256=yYa0BLn-LGrQ1GXlvI5ok8qbV-yCJ12UObS857SuXcc,2804
620
620
  c2cciutils/security.py,sha256=k5piTZf6HWIPEAf63vbE06vZKJ62CSS7e_6WXHf4o7Q,1517
621
- c2cciutils-1.4.22.dev7.dist-info/LICENSE.txt,sha256=xzZIs3aVXHWtejClONn_gcvmoim54G9K8gl_8gNFTLI,1668
622
- c2cciutils-1.4.22.dev7.dist-info/METADATA,sha256=QAyIkmVToc4lJCu4_ZWi6dMi5lS2_nr_aZPN63tnwQ0,17277
623
- c2cciutils-1.4.22.dev7.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
624
- c2cciutils-1.4.22.dev7.dist-info/entry_points.txt,sha256=HahcOZlCfYF4B95pG1CRD_noaFmhDzEoN5YqxLyucyE,939
625
- c2cciutils-1.4.22.dev7.dist-info/RECORD,,
621
+ c2cciutils-1.4.22.dev9.dist-info/LICENSE.txt,sha256=xzZIs3aVXHWtejClONn_gcvmoim54G9K8gl_8gNFTLI,1668
622
+ c2cciutils-1.4.22.dev9.dist-info/METADATA,sha256=IEmbF0KotTzToNB93qIpzfs31p1wkfJB7-GNuXTBLa0,17277
623
+ c2cciutils-1.4.22.dev9.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
624
+ c2cciutils-1.4.22.dev9.dist-info/entry_points.txt,sha256=HahcOZlCfYF4B95pG1CRD_noaFmhDzEoN5YqxLyucyE,939
625
+ c2cciutils-1.4.22.dev9.dist-info/RECORD,,