c2cciutils 1.3.26.dev13__py3-none-any.whl → 1.3.26.dev16__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"
@@ -58,9 +58,10 @@
58
58
  }
59
59
  },
60
60
  "node_modules/cross-spawn": {
61
- "version": "7.0.3",
62
- "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
63
- "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
61
+ "version": "7.0.6",
62
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
63
+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
64
+ "license": "MIT",
64
65
  "dependencies": {
65
66
  "path-key": "^3.1.0",
66
67
  "shebang-command": "^2.0.0",
@@ -336,9 +337,9 @@
336
337
  }
337
338
  },
338
339
  "cross-spawn": {
339
- "version": "7.0.3",
340
- "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
341
- "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
340
+ "version": "7.0.6",
341
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
342
+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
342
343
  "requires": {
343
344
  "path-key": "^3.1.0",
344
345
  "shebang-command": "^2.0.0",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: c2cciutils
3
- Version: 1.3.26.dev13
3
+ Version: 1.3.26.dev16
4
4
  Summary: Common utilities for Camptocamp CI
5
5
  Home-page: https://github.com/camptocamp/c2cciutils
6
6
  License: FreeBSD
@@ -41,6 +41,7 @@ Requires-Dist: google-auth-httplib2 (>=0.0.0,<1.0.0) ; extra == "publish"
41
41
  Requires-Dist: google-auth-oauthlib (>=0.0.0,<1.0.0) ; extra == "publish"
42
42
  Requires-Dist: idna (>=3.0,<4.0)
43
43
  Requires-Dist: isort (==5.10.1) ; extra == "checks"
44
+ Requires-Dist: jinja2 (>=3.0.0,<4.0.0)
44
45
  Requires-Dist: jsonschema (>=4.0.0,<5.0.0)
45
46
  Requires-Dist: jsonschema-gentypes (>=1.0.0,<2.0.0)
46
47
  Requires-Dist: markdown-table (>=2020.0.0,<2021.0.0)
@@ -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
@@ -159,7 +159,7 @@ c2cciutils/node_modules/tslib/tslib.es6.js,sha256=Hwe4qXSxXPPH0MbDrI_wJ7_8f77Q5j
159
159
  c2cciutils/node_modules/tslib/tslib.js,sha256=cBo6YUWgQgVCnSO0ekj0wzOQTS1jL5-9UDn69Wb42Jw,15458
160
160
  c2cciutils/node_modules/which/package.json,sha256=QwEAOe1eifcYaWC-aCs8tc2lq2zfsGy_1PCBzw57QmA,1043
161
161
  c2cciutils/node_modules/which/which.js,sha256=doReH-eFEmf7fucrGPLZFpltMwFQ4x5I9GV6eem0a1s,3163
162
- c2cciutils/package-lock.json,sha256=bpev96FW47_r75D7u_r9xnz5uGo0uvlTIBFqOnm8qx4,19445
162
+ c2cciutils/package-lock.json,sha256=Mjpn1ECpp4mJFhg2Cii5H_22LOu2RkyLia6e9bb4iKk,19469
163
163
  c2cciutils/package.json,sha256=cBhbDM4iddwmtL0QrzVBUZiCkKXZ2QYS2Rp1geHqAdI,208
164
164
  c2cciutils/pr_checks.py,sha256=ZOL8k14m-YaMpflghQBgNgzjB4ztUWd3ddP7xlPNtKU,9877
165
165
  c2cciutils/prettier.js,sha256=PR96NT85pxZx_wPcfKa6B7_z_Gw_Yp4SCRX8cL_GfLU,588
@@ -185,8 +185,8 @@ c2cciutils/scripts/pr_checks.py,sha256=-Eqcr5QmiSu-HhbqLtrcZYNC9fvmGr81fj1JiCIrb
185
185
  c2cciutils/scripts/publish.py,sha256=bfz4dWSuxXQIgrN53Ag61cpOkXz--XTQ8UQGE_HeXKc,14315
186
186
  c2cciutils/scripts/trigger_image_update.py,sha256=0xf7wyPaVcBItDozyzk_s9VgnOBzdlu4rOG7BS3cbqo,2786
187
187
  c2cciutils/security.py,sha256=k5piTZf6HWIPEAf63vbE06vZKJ62CSS7e_6WXHf4o7Q,1517
188
- c2cciutils-1.3.26.dev13.dist-info/LICENSE.txt,sha256=ayagouK6EHkdDq3pIKG8GNxNRH_Jffl-PbxLIjeaTTY,1663
189
- c2cciutils-1.3.26.dev13.dist-info/METADATA,sha256=uWnMh5VDzye5P3hacGM1baEF2at6VEOoI1VacWlKN9Y,18133
190
- c2cciutils-1.3.26.dev13.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
191
- c2cciutils-1.3.26.dev13.dist-info/entry_points.txt,sha256=HahcOZlCfYF4B95pG1CRD_noaFmhDzEoN5YqxLyucyE,939
192
- c2cciutils-1.3.26.dev13.dist-info/RECORD,,
188
+ c2cciutils-1.3.26.dev16.dist-info/LICENSE.txt,sha256=ayagouK6EHkdDq3pIKG8GNxNRH_Jffl-PbxLIjeaTTY,1663
189
+ c2cciutils-1.3.26.dev16.dist-info/METADATA,sha256=tgAePP_RRvV2N9teUgK4y0yU5yaSOBkRRsT67zlNucQ,18172
190
+ c2cciutils-1.3.26.dev16.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
191
+ c2cciutils-1.3.26.dev16.dist-info/entry_points.txt,sha256=HahcOZlCfYF4B95pG1CRD_noaFmhDzEoN5YqxLyucyE,939
192
+ c2cciutils-1.3.26.dev16.dist-info/RECORD,,