@pnpm/exe 11.0.0-beta.0 → 11.0.0-beta.2

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.
Files changed (200) hide show
  1. package/dist/node_modules/@gar/promise-retry/lib/index.js +28 -0
  2. package/dist/node_modules/@gar/promise-retry/package.json +48 -0
  3. package/dist/node_modules/@npmcli/agent/package.json +7 -7
  4. package/dist/node_modules/@npmcli/fs/package.json +4 -4
  5. package/dist/node_modules/abbrev/package.json +11 -15
  6. package/dist/node_modules/cacache/package.json +10 -11
  7. package/dist/node_modules/glob/dist/commonjs/glob.js +2 -1
  8. package/dist/node_modules/glob/dist/commonjs/index.min.js +4 -0
  9. package/dist/node_modules/glob/dist/commonjs/pattern.js +4 -0
  10. package/dist/node_modules/glob/dist/esm/glob.js +2 -1
  11. package/dist/node_modules/glob/dist/esm/index.min.js +4 -0
  12. package/dist/node_modules/glob/dist/esm/pattern.js +4 -0
  13. package/dist/node_modules/glob/package.json +38 -37
  14. package/dist/node_modules/graceful-fs/graceful-fs.js +1 -1
  15. package/dist/node_modules/iconv-lite/encodings/dbcs-codec.js +460 -525
  16. package/dist/node_modules/iconv-lite/encodings/dbcs-data.js +179 -182
  17. package/dist/node_modules/iconv-lite/encodings/index.js +15 -15
  18. package/dist/node_modules/iconv-lite/encodings/internal.js +168 -148
  19. package/dist/node_modules/iconv-lite/encodings/sbcs-codec.js +55 -52
  20. package/dist/node_modules/iconv-lite/encodings/sbcs-data.js +174 -175
  21. package/dist/node_modules/iconv-lite/encodings/utf16.js +121 -131
  22. package/dist/node_modules/iconv-lite/encodings/utf32.js +226 -238
  23. package/dist/node_modules/iconv-lite/encodings/utf7.js +208 -215
  24. package/dist/node_modules/iconv-lite/lib/bom-handling.js +30 -34
  25. package/dist/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
  26. package/dist/node_modules/iconv-lite/lib/index.js +125 -123
  27. package/dist/node_modules/iconv-lite/lib/streams.js +92 -96
  28. package/dist/node_modules/iconv-lite/package.json +34 -8
  29. package/dist/node_modules/isexe/package.json +65 -18
  30. package/dist/node_modules/lru-cache/dist/commonjs/index.js +134 -85
  31. package/dist/node_modules/lru-cache/dist/commonjs/index.min.js +1 -1
  32. package/dist/node_modules/lru-cache/dist/esm/index.js +134 -85
  33. package/dist/node_modules/lru-cache/dist/esm/index.min.js +1 -1
  34. package/dist/node_modules/lru-cache/package.json +18 -41
  35. package/dist/node_modules/make-fetch-happen/lib/remote.js +1 -1
  36. package/dist/node_modules/make-fetch-happen/package.json +10 -10
  37. package/dist/node_modules/minipass-fetch/lib/body.js +25 -15
  38. package/dist/node_modules/minipass-fetch/package.json +7 -7
  39. package/dist/node_modules/minipass-sized/dist/commonjs/index.js +69 -0
  40. package/dist/node_modules/minipass-sized/dist/esm/index.js +64 -0
  41. package/dist/node_modules/minipass-sized/package.json +39 -9
  42. package/dist/node_modules/node-gyp/.release-please-manifest.json +1 -1
  43. package/dist/node_modules/node-gyp/bin/node-gyp.js +7 -0
  44. package/dist/node_modules/node-gyp/gyp/.release-please-manifest.json +1 -1
  45. package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +3 -3
  46. package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +26 -1
  47. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +1 -1
  48. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +3 -4
  49. package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +1 -1
  50. package/dist/node_modules/node-gyp/gyp/pyproject.toml +1 -1
  51. package/dist/node_modules/node-gyp/lib/build.js +2 -2
  52. package/dist/node_modules/node-gyp/lib/find-python.js +2 -8
  53. package/dist/node_modules/node-gyp/lib/find-visualstudio.js +11 -5
  54. package/dist/node_modules/node-gyp/lib/install.js +1 -1
  55. package/dist/node_modules/node-gyp/lib/process-release.js +3 -3
  56. package/dist/node_modules/node-gyp/package.json +13 -13
  57. package/dist/node_modules/nopt/package.json +5 -5
  58. package/dist/node_modules/proc-log/lib/index.js +10 -5
  59. package/dist/node_modules/proc-log/package.json +5 -5
  60. package/dist/node_modules/retry/lib/retry.js +2 -2
  61. package/dist/node_modules/retry/lib/retry_operation.js +10 -6
  62. package/dist/node_modules/retry/package.json +6 -2
  63. package/dist/node_modules/ssri/lib/index.js +33 -63
  64. package/dist/node_modules/ssri/package.json +17 -17
  65. package/dist/node_modules/unique-filename/package.json +5 -5
  66. package/dist/node_modules/unique-slug/package.json +4 -4
  67. package/dist/node_modules/which/package.json +29 -20
  68. package/dist/pnpm.mjs +63969 -54688
  69. package/dist/worker.js +601 -2162
  70. package/package.json +8 -8
  71. package/dist/node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.js +0 -16
  72. package/dist/node_modules/@isaacs/cliui/dist/commonjs/ansi-styles/index.js +0 -170
  73. package/dist/node_modules/@isaacs/cliui/dist/commonjs/eastasianwidth/index.js +0 -307
  74. package/dist/node_modules/@isaacs/cliui/dist/commonjs/emoji-regex/index.js +0 -7
  75. package/dist/node_modules/@isaacs/cliui/dist/commonjs/index.js +0 -322
  76. package/dist/node_modules/@isaacs/cliui/dist/commonjs/index.min.js +0 -12
  77. package/dist/node_modules/@isaacs/cliui/dist/commonjs/string-width/index.js +0 -49
  78. package/dist/node_modules/@isaacs/cliui/dist/commonjs/strip-ansi/index.js +0 -8
  79. package/dist/node_modules/@isaacs/cliui/dist/commonjs/wrap-ansi/index.js +0 -176
  80. package/dist/node_modules/@isaacs/cliui/dist/esm/ansi-regex/index.js +0 -12
  81. package/dist/node_modules/@isaacs/cliui/dist/esm/ansi-styles/index.js +0 -167
  82. package/dist/node_modules/@isaacs/cliui/dist/esm/eastasianwidth/index.js +0 -299
  83. package/dist/node_modules/@isaacs/cliui/dist/esm/emoji-regex/index.js +0 -3
  84. package/dist/node_modules/@isaacs/cliui/dist/esm/index.js +0 -317
  85. package/dist/node_modules/@isaacs/cliui/dist/esm/index.min.js +0 -12
  86. package/dist/node_modules/@isaacs/cliui/dist/esm/string-width/index.js +0 -46
  87. package/dist/node_modules/@isaacs/cliui/dist/esm/strip-ansi/index.js +0 -4
  88. package/dist/node_modules/@isaacs/cliui/dist/esm/wrap-ansi/index.js +0 -172
  89. package/dist/node_modules/@isaacs/cliui/package.json +0 -163
  90. package/dist/node_modules/cross-spawn/LICENSE +0 -21
  91. package/dist/node_modules/cross-spawn/index.js +0 -39
  92. package/dist/node_modules/cross-spawn/lib/enoent.js +0 -59
  93. package/dist/node_modules/cross-spawn/lib/parse.js +0 -91
  94. package/dist/node_modules/cross-spawn/lib/util/escape.js +0 -47
  95. package/dist/node_modules/cross-spawn/lib/util/readShebang.js +0 -23
  96. package/dist/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -52
  97. package/dist/node_modules/cross-spawn/package.json +0 -73
  98. package/dist/node_modules/encoding/.prettierrc.js +0 -8
  99. package/dist/node_modules/encoding/LICENSE +0 -16
  100. package/dist/node_modules/encoding/lib/encoding.js +0 -83
  101. package/dist/node_modules/encoding/package.json +0 -18
  102. package/dist/node_modules/err-code/.eslintrc.json +0 -7
  103. package/dist/node_modules/err-code/bower.json +0 -30
  104. package/dist/node_modules/err-code/index.js +0 -47
  105. package/dist/node_modules/err-code/index.umd.js +0 -51
  106. package/dist/node_modules/err-code/package.json +0 -34
  107. package/dist/node_modules/foreground-child/LICENSE +0 -15
  108. package/dist/node_modules/foreground-child/dist/commonjs/all-signals.js +0 -58
  109. package/dist/node_modules/foreground-child/dist/commonjs/index.js +0 -123
  110. package/dist/node_modules/foreground-child/dist/commonjs/proxy-signals.js +0 -38
  111. package/dist/node_modules/foreground-child/dist/commonjs/watchdog.js +0 -50
  112. package/dist/node_modules/foreground-child/dist/esm/all-signals.js +0 -52
  113. package/dist/node_modules/foreground-child/dist/esm/index.js +0 -115
  114. package/dist/node_modules/foreground-child/dist/esm/proxy-signals.js +0 -34
  115. package/dist/node_modules/foreground-child/dist/esm/watchdog.js +0 -46
  116. package/dist/node_modules/foreground-child/package.json +0 -106
  117. package/dist/node_modules/glob/dist/esm/bin.d.mts +0 -3
  118. package/dist/node_modules/glob/dist/esm/bin.mjs +0 -346
  119. package/dist/node_modules/iconv-lite/.github/dependabot.yml +0 -11
  120. package/dist/node_modules/iconv-lite/.idea/codeStyles/Project.xml +0 -47
  121. package/dist/node_modules/iconv-lite/.idea/codeStyles/codeStyleConfig.xml +0 -5
  122. package/dist/node_modules/iconv-lite/.idea/iconv-lite.iml +0 -12
  123. package/dist/node_modules/iconv-lite/.idea/inspectionProfiles/Project_Default.xml +0 -6
  124. package/dist/node_modules/iconv-lite/.idea/modules.xml +0 -8
  125. package/dist/node_modules/iconv-lite/.idea/vcs.xml +0 -6
  126. package/dist/node_modules/isexe/LICENSE +0 -15
  127. package/dist/node_modules/isexe/index.js +0 -57
  128. package/dist/node_modules/isexe/mode.js +0 -41
  129. package/dist/node_modules/isexe/windows.js +0 -42
  130. package/dist/node_modules/jackspeak/dist/commonjs/index.js +0 -944
  131. package/dist/node_modules/jackspeak/dist/commonjs/index.min.js +0 -33
  132. package/dist/node_modules/jackspeak/dist/commonjs/package.json +0 -3
  133. package/dist/node_modules/jackspeak/dist/esm/index.js +0 -936
  134. package/dist/node_modules/jackspeak/dist/esm/index.min.js +0 -33
  135. package/dist/node_modules/jackspeak/dist/esm/package.json +0 -3
  136. package/dist/node_modules/jackspeak/package.json +0 -115
  137. package/dist/node_modules/lru-cache/LICENSE +0 -15
  138. package/dist/node_modules/minipass-sized/index.js +0 -67
  139. package/dist/node_modules/minipass-sized/node_modules/minipass/LICENSE +0 -15
  140. package/dist/node_modules/minipass-sized/node_modules/minipass/index.js +0 -649
  141. package/dist/node_modules/minipass-sized/node_modules/minipass/package.json +0 -56
  142. package/dist/node_modules/minipass-sized/package-lock.json +0 -3464
  143. package/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/package.json +0 -3
  144. package/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/package.json +0 -3
  145. package/dist/node_modules/node-gyp/node_modules/isexe/package.json +0 -78
  146. package/dist/node_modules/node-gyp/node_modules/which/LICENSE +0 -15
  147. package/dist/node_modules/node-gyp/node_modules/which/package.json +0 -52
  148. package/dist/node_modules/package-json-from-dist/dist/commonjs/index.js +0 -134
  149. package/dist/node_modules/package-json-from-dist/dist/commonjs/package.json +0 -3
  150. package/dist/node_modules/package-json-from-dist/dist/esm/index.js +0 -129
  151. package/dist/node_modules/package-json-from-dist/dist/esm/package.json +0 -3
  152. package/dist/node_modules/package-json-from-dist/package.json +0 -68
  153. package/dist/node_modules/path-key/index.js +0 -16
  154. package/dist/node_modules/path-key/license +0 -9
  155. package/dist/node_modules/path-key/package.json +0 -39
  156. package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.js +0 -1589
  157. package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.min.js +0 -2
  158. package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/package.json +0 -3
  159. package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js +0 -1585
  160. package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.min.js +0 -2
  161. package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/esm/package.json +0 -3
  162. package/dist/node_modules/path-scurry/node_modules/lru-cache/package.json +0 -101
  163. package/dist/node_modules/promise-retry/index.js +0 -52
  164. package/dist/node_modules/promise-retry/package.json +0 -37
  165. package/dist/node_modules/retry/equation.gif +0 -0
  166. package/dist/node_modules/shebang-command/index.js +0 -19
  167. package/dist/node_modules/shebang-command/license +0 -9
  168. package/dist/node_modules/shebang-command/package.json +0 -34
  169. package/dist/node_modules/shebang-regex/index.js +0 -2
  170. package/dist/node_modules/shebang-regex/license +0 -9
  171. package/dist/node_modules/shebang-regex/package.json +0 -35
  172. package/dist/node_modules/signal-exit/LICENSE.txt +0 -16
  173. package/dist/node_modules/signal-exit/dist/cjs/browser.js +0 -10
  174. package/dist/node_modules/signal-exit/dist/cjs/index.js +0 -279
  175. package/dist/node_modules/signal-exit/dist/cjs/package.json +0 -3
  176. package/dist/node_modules/signal-exit/dist/cjs/signals.js +0 -42
  177. package/dist/node_modules/signal-exit/dist/mjs/browser.js +0 -4
  178. package/dist/node_modules/signal-exit/dist/mjs/index.js +0 -275
  179. package/dist/node_modules/signal-exit/dist/mjs/package.json +0 -3
  180. package/dist/node_modules/signal-exit/dist/mjs/signals.js +0 -39
  181. package/dist/node_modules/signal-exit/package.json +0 -106
  182. package/dist/node_modules/which/bin/node-which +0 -52
  183. package/dist/node_modules/which/which.js +0 -125
  184. /package/dist/node_modules/{promise-retry → @gar/promise-retry}/LICENSE +0 -0
  185. /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/commonjs/index.js +0 -0
  186. /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/commonjs/index.min.js +0 -0
  187. /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/commonjs/options.js +0 -0
  188. /package/dist/node_modules/{@isaacs/cliui → isexe}/dist/commonjs/package.json +0 -0
  189. /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/commonjs/posix.js +0 -0
  190. /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/commonjs/win32.js +0 -0
  191. /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/esm/index.js +0 -0
  192. /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/esm/index.min.js +0 -0
  193. /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/esm/options.js +0 -0
  194. /package/dist/node_modules/{@isaacs/cliui → isexe}/dist/esm/package.json +0 -0
  195. /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/esm/posix.js +0 -0
  196. /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/esm/win32.js +0 -0
  197. /package/dist/node_modules/{foreground-child → minipass-sized}/dist/commonjs/package.json +0 -0
  198. /package/dist/node_modules/{foreground-child → minipass-sized}/dist/esm/package.json +0 -0
  199. /package/dist/node_modules/{node-gyp/node_modules/which → which}/bin/which.js +0 -0
  200. /package/dist/node_modules/{node-gyp/node_modules/which → which}/lib/index.js +0 -0
@@ -1,163 +0,0 @@
1
- {
2
- "name": "@isaacs/cliui",
3
- "version": "9.0.0",
4
- "description": "easily create complex multi-column command-line-interfaces",
5
- "type": "module",
6
- "main": "./dist/commonjs/index.js",
7
- "module": "./dist/esm/index.js",
8
- "types": "./dist/commonjs/index.d.ts",
9
- "exports": {
10
- "./package.json": "./package.json",
11
- ".": {
12
- "import": {
13
- "types": "./dist/esm/index.d.ts",
14
- "default": "./dist/esm/index.js"
15
- },
16
- "require": {
17
- "types": "./dist/commonjs/index.d.ts",
18
- "default": "./dist/commonjs/index.js"
19
- }
20
- },
21
- "./ansi-regex": {
22
- "import": {
23
- "types": "./dist/esm/ansi-regex/index.d.ts",
24
- "default": "./dist/esm/ansi-regex/index.js"
25
- },
26
- "require": {
27
- "types": "./dist/commonjs/ansi-regex/index.d.ts",
28
- "default": "./dist/commonjs/ansi-regex/index.js"
29
- }
30
- },
31
- "./ansi-styles": {
32
- "import": {
33
- "types": "./dist/esm/ansi-styles/index.d.ts",
34
- "default": "./dist/esm/ansi-styles/index.js"
35
- },
36
- "require": {
37
- "types": "./dist/commonjs/ansi-styles/index.d.ts",
38
- "default": "./dist/commonjs/ansi-styles/index.js"
39
- }
40
- },
41
- "./eastasianwidth": {
42
- "import": {
43
- "types": "./dist/esm/eastasianwidth/index.d.ts",
44
- "default": "./dist/esm/eastasianwidth/index.js"
45
- },
46
- "require": {
47
- "types": "./dist/commonjs/eastasianwidth/index.d.ts",
48
- "default": "./dist/commonjs/eastasianwidth/index.js"
49
- }
50
- },
51
- "./emoji-regex": {
52
- "import": {
53
- "types": "./dist/esm/emoji-regex/index.d.ts",
54
- "default": "./dist/esm/emoji-regex/index.js"
55
- },
56
- "require": {
57
- "types": "./dist/commonjs/emoji-regex/index.d.ts",
58
- "default": "./dist/commonjs/emoji-regex/index.js"
59
- }
60
- },
61
- "./string-width": {
62
- "import": {
63
- "types": "./dist/esm/string-width/index.d.ts",
64
- "default": "./dist/esm/string-width/index.js"
65
- },
66
- "require": {
67
- "types": "./dist/commonjs/string-width/index.d.ts",
68
- "default": "./dist/commonjs/string-width/index.js"
69
- }
70
- },
71
- "./strip-ansi": {
72
- "import": {
73
- "types": "./dist/esm/strip-ansi/index.d.ts",
74
- "default": "./dist/esm/strip-ansi/index.js"
75
- },
76
- "require": {
77
- "types": "./dist/commonjs/strip-ansi/index.d.ts",
78
- "default": "./dist/commonjs/strip-ansi/index.js"
79
- }
80
- },
81
- "./wrap-ansi": {
82
- "import": {
83
- "types": "./dist/esm/wrap-ansi/index.d.ts",
84
- "default": "./dist/esm/wrap-ansi/index.js"
85
- },
86
- "require": {
87
- "types": "./dist/commonjs/wrap-ansi/index.d.ts",
88
- "default": "./dist/commonjs/wrap-ansi/index.js"
89
- }
90
- },
91
- "./min": {
92
- "import": {
93
- "types": "./dist/esm/index.d.ts",
94
- "default": "./dist/esm/index.min.js"
95
- },
96
- "require": {
97
- "types": "./dist/commonjs/index.d.ts",
98
- "default": "./dist/commonjs/index.min.js"
99
- }
100
- }
101
- },
102
- "scripts": {
103
- "preversion": "npm test",
104
- "postversion": "npm publish",
105
- "prepublishOnly": "git push origin --follow-tags",
106
- "prepare": "tshy && bash build.sh",
107
- "pretest": "npm run prepare",
108
- "presnap": "npm run prepare",
109
- "test": "tap",
110
- "snap": "tap",
111
- "format": "prettier --write . --log-level warn",
112
- "typedoc": "typedoc"
113
- },
114
- "repository": "git+ssh://git@github.com:isaacs/cliui",
115
- "keywords": [
116
- "cli",
117
- "command-line",
118
- "layout",
119
- "design",
120
- "console",
121
- "wrap",
122
- "table"
123
- ],
124
- "license": "BlueOak-1.0.0",
125
- "devDependencies": {
126
- "@types/node": "^25.2.1",
127
- "esbuild": "^0.27.2",
128
- "prettier": "^3.8.1",
129
- "tap": "^21.5.0",
130
- "tshy": "^3.1.0",
131
- "typedoc": "^0.28.16"
132
- },
133
- "files": [
134
- "dist"
135
- ],
136
- "engines": {
137
- "node": ">=18"
138
- },
139
- "tshy": {
140
- "selfLink": false,
141
- "exports": {
142
- "./package.json": "./package.json",
143
- ".": "./src/index.ts",
144
- "./ansi-regex": "./src/ansi-regex/index.ts",
145
- "./ansi-styles": "./src/ansi-styles/index.ts",
146
- "./eastasianwidth": "./src/eastasianwidth/index.ts",
147
- "./emoji-regex": "./src/emoji-regex/index.ts",
148
- "./string-width": "./src/string-width/index.ts",
149
- "./strip-ansi": "./src/strip-ansi/index.ts",
150
- "./wrap-ansi": "./src/wrap-ansi/index.ts",
151
- "./min": {
152
- "import": {
153
- "types": "./dist/esm/index.d.ts",
154
- "default": "./dist/esm/index.min.js"
155
- },
156
- "require": {
157
- "types": "./dist/commonjs/index.d.ts",
158
- "default": "./dist/commonjs/index.min.js"
159
- }
160
- }
161
- }
162
- }
163
- }
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2018 Made With MOXY Lda <hello@moxy.studio>
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
@@ -1,39 +0,0 @@
1
- 'use strict';
2
-
3
- const cp = require('child_process');
4
- const parse = require('./lib/parse');
5
- const enoent = require('./lib/enoent');
6
-
7
- function spawn(command, args, options) {
8
- // Parse the arguments
9
- const parsed = parse(command, args, options);
10
-
11
- // Spawn the child process
12
- const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
13
-
14
- // Hook into child process "exit" event to emit an error if the command
15
- // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16
16
- enoent.hookChildProcess(spawned, parsed);
17
-
18
- return spawned;
19
- }
20
-
21
- function spawnSync(command, args, options) {
22
- // Parse the arguments
23
- const parsed = parse(command, args, options);
24
-
25
- // Spawn the child process
26
- const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
27
-
28
- // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16
29
- result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
30
-
31
- return result;
32
- }
33
-
34
- module.exports = spawn;
35
- module.exports.spawn = spawn;
36
- module.exports.sync = spawnSync;
37
-
38
- module.exports._parse = parse;
39
- module.exports._enoent = enoent;
@@ -1,59 +0,0 @@
1
- 'use strict';
2
-
3
- const isWin = process.platform === 'win32';
4
-
5
- function notFoundError(original, syscall) {
6
- return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
7
- code: 'ENOENT',
8
- errno: 'ENOENT',
9
- syscall: `${syscall} ${original.command}`,
10
- path: original.command,
11
- spawnargs: original.args,
12
- });
13
- }
14
-
15
- function hookChildProcess(cp, parsed) {
16
- if (!isWin) {
17
- return;
18
- }
19
-
20
- const originalEmit = cp.emit;
21
-
22
- cp.emit = function (name, arg1) {
23
- // If emitting "exit" event and exit code is 1, we need to check if
24
- // the command exists and emit an "error" instead
25
- // See https://github.com/IndigoUnited/node-cross-spawn/issues/16
26
- if (name === 'exit') {
27
- const err = verifyENOENT(arg1, parsed);
28
-
29
- if (err) {
30
- return originalEmit.call(cp, 'error', err);
31
- }
32
- }
33
-
34
- return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params
35
- };
36
- }
37
-
38
- function verifyENOENT(status, parsed) {
39
- if (isWin && status === 1 && !parsed.file) {
40
- return notFoundError(parsed.original, 'spawn');
41
- }
42
-
43
- return null;
44
- }
45
-
46
- function verifyENOENTSync(status, parsed) {
47
- if (isWin && status === 1 && !parsed.file) {
48
- return notFoundError(parsed.original, 'spawnSync');
49
- }
50
-
51
- return null;
52
- }
53
-
54
- module.exports = {
55
- hookChildProcess,
56
- verifyENOENT,
57
- verifyENOENTSync,
58
- notFoundError,
59
- };
@@ -1,91 +0,0 @@
1
- 'use strict';
2
-
3
- const path = require('path');
4
- const resolveCommand = require('./util/resolveCommand');
5
- const escape = require('./util/escape');
6
- const readShebang = require('./util/readShebang');
7
-
8
- const isWin = process.platform === 'win32';
9
- const isExecutableRegExp = /\.(?:com|exe)$/i;
10
- const isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
11
-
12
- function detectShebang(parsed) {
13
- parsed.file = resolveCommand(parsed);
14
-
15
- const shebang = parsed.file && readShebang(parsed.file);
16
-
17
- if (shebang) {
18
- parsed.args.unshift(parsed.file);
19
- parsed.command = shebang;
20
-
21
- return resolveCommand(parsed);
22
- }
23
-
24
- return parsed.file;
25
- }
26
-
27
- function parseNonShell(parsed) {
28
- if (!isWin) {
29
- return parsed;
30
- }
31
-
32
- // Detect & add support for shebangs
33
- const commandFile = detectShebang(parsed);
34
-
35
- // We don't need a shell if the command filename is an executable
36
- const needsShell = !isExecutableRegExp.test(commandFile);
37
-
38
- // If a shell is required, use cmd.exe and take care of escaping everything correctly
39
- // Note that `forceShell` is an hidden option used only in tests
40
- if (parsed.options.forceShell || needsShell) {
41
- // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`
42
- // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument
43
- // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,
44
- // we need to double escape them
45
- const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
46
-
47
- // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\bar)
48
- // This is necessary otherwise it will always fail with ENOENT in those cases
49
- parsed.command = path.normalize(parsed.command);
50
-
51
- // Escape command & arguments
52
- parsed.command = escape.command(parsed.command);
53
- parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
54
-
55
- const shellCommand = [parsed.command].concat(parsed.args).join(' ');
56
-
57
- parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`];
58
- parsed.command = process.env.comspec || 'cmd.exe';
59
- parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped
60
- }
61
-
62
- return parsed;
63
- }
64
-
65
- function parse(command, args, options) {
66
- // Normalize arguments, similar to nodejs
67
- if (args && !Array.isArray(args)) {
68
- options = args;
69
- args = null;
70
- }
71
-
72
- args = args ? args.slice(0) : []; // Clone array to avoid changing the original
73
- options = Object.assign({}, options); // Clone object to avoid changing the original
74
-
75
- // Build our parsed object
76
- const parsed = {
77
- command,
78
- args,
79
- options,
80
- file: undefined,
81
- original: {
82
- command,
83
- args,
84
- },
85
- };
86
-
87
- // Delegate further parsing to shell or non-shell
88
- return options.shell ? parsed : parseNonShell(parsed);
89
- }
90
-
91
- module.exports = parse;
@@ -1,47 +0,0 @@
1
- 'use strict';
2
-
3
- // See http://www.robvanderwoude.com/escapechars.php
4
- const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
5
-
6
- function escapeCommand(arg) {
7
- // Escape meta chars
8
- arg = arg.replace(metaCharsRegExp, '^$1');
9
-
10
- return arg;
11
- }
12
-
13
- function escapeArgument(arg, doubleEscapeMetaChars) {
14
- // Convert to string
15
- arg = `${arg}`;
16
-
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
20
-
21
- // Sequence of backslashes followed by a double quote:
22
- // double up all the backslashes and escape the double quote
23
- arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"');
24
-
25
- // Sequence of backslashes followed by the end of the string
26
- // (which will become a double quote later):
27
- // double up all the backslashes
28
- arg = arg.replace(/(?=(\\+?)?)\1$/, '$1$1');
29
-
30
- // All other backslashes occur literally
31
-
32
- // Quote the whole thing:
33
- arg = `"${arg}"`;
34
-
35
- // Escape meta chars
36
- arg = arg.replace(metaCharsRegExp, '^$1');
37
-
38
- // Double escape meta chars if necessary
39
- if (doubleEscapeMetaChars) {
40
- arg = arg.replace(metaCharsRegExp, '^$1');
41
- }
42
-
43
- return arg;
44
- }
45
-
46
- module.exports.command = escapeCommand;
47
- module.exports.argument = escapeArgument;
@@ -1,23 +0,0 @@
1
- 'use strict';
2
-
3
- const fs = require('fs');
4
- const shebangCommand = require('shebang-command');
5
-
6
- function readShebang(command) {
7
- // Read the first 150 bytes from the file
8
- const size = 150;
9
- const buffer = Buffer.alloc(size);
10
-
11
- let fd;
12
-
13
- try {
14
- fd = fs.openSync(command, 'r');
15
- fs.readSync(fd, buffer, 0, size, 0);
16
- fs.closeSync(fd);
17
- } catch (e) { /* Empty */ }
18
-
19
- // Attempt to extract shebang (null is returned if not a shebang)
20
- return shebangCommand(buffer.toString());
21
- }
22
-
23
- module.exports = readShebang;
@@ -1,52 +0,0 @@
1
- 'use strict';
2
-
3
- const path = require('path');
4
- const which = require('which');
5
- const getPathKey = require('path-key');
6
-
7
- function resolveCommandAttempt(parsed, withoutPathExt) {
8
- const env = parsed.options.env || process.env;
9
- const cwd = process.cwd();
10
- const hasCustomCwd = parsed.options.cwd != null;
11
- // Worker threads do not have process.chdir()
12
- const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;
13
-
14
- // If a custom `cwd` was specified, we need to change the process cwd
15
- // because `which` will do stat calls but does not support a custom cwd
16
- if (shouldSwitchCwd) {
17
- try {
18
- process.chdir(parsed.options.cwd);
19
- } catch (err) {
20
- /* Empty */
21
- }
22
- }
23
-
24
- let resolved;
25
-
26
- try {
27
- resolved = which.sync(parsed.command, {
28
- path: env[getPathKey({ env })],
29
- pathExt: withoutPathExt ? path.delimiter : undefined,
30
- });
31
- } catch (e) {
32
- /* Empty */
33
- } finally {
34
- if (shouldSwitchCwd) {
35
- process.chdir(cwd);
36
- }
37
- }
38
-
39
- // If we successfully resolved, ensure that an absolute path is returned
40
- // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it
41
- if (resolved) {
42
- resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);
43
- }
44
-
45
- return resolved;
46
- }
47
-
48
- function resolveCommand(parsed) {
49
- return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
50
- }
51
-
52
- module.exports = resolveCommand;
@@ -1,73 +0,0 @@
1
- {
2
- "name": "cross-spawn",
3
- "version": "7.0.6",
4
- "description": "Cross platform child_process#spawn and child_process#spawnSync",
5
- "keywords": [
6
- "spawn",
7
- "spawnSync",
8
- "windows",
9
- "cross-platform",
10
- "path-ext",
11
- "shebang",
12
- "cmd",
13
- "execute"
14
- ],
15
- "author": "André Cruz <andre@moxy.studio>",
16
- "homepage": "https://github.com/moxystudio/node-cross-spawn",
17
- "repository": {
18
- "type": "git",
19
- "url": "git@github.com:moxystudio/node-cross-spawn.git"
20
- },
21
- "license": "MIT",
22
- "main": "index.js",
23
- "files": [
24
- "lib"
25
- ],
26
- "scripts": {
27
- "lint": "eslint .",
28
- "test": "jest --env node --coverage",
29
- "prerelease": "npm t && npm run lint",
30
- "release": "standard-version",
31
- "postrelease": "git push --follow-tags origin HEAD && npm publish"
32
- },
33
- "husky": {
34
- "hooks": {
35
- "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
36
- "pre-commit": "lint-staged"
37
- }
38
- },
39
- "lint-staged": {
40
- "*.js": [
41
- "eslint --fix",
42
- "git add"
43
- ]
44
- },
45
- "commitlint": {
46
- "extends": [
47
- "@commitlint/config-conventional"
48
- ]
49
- },
50
- "dependencies": {
51
- "path-key": "^3.1.0",
52
- "shebang-command": "^2.0.0",
53
- "which": "^2.0.1"
54
- },
55
- "devDependencies": {
56
- "@commitlint/cli": "^8.1.0",
57
- "@commitlint/config-conventional": "^8.1.0",
58
- "babel-core": "^6.26.3",
59
- "babel-jest": "^24.9.0",
60
- "babel-preset-moxy": "^3.1.0",
61
- "eslint": "^5.16.0",
62
- "eslint-config-moxy": "^7.1.0",
63
- "husky": "^3.0.5",
64
- "jest": "^24.9.0",
65
- "lint-staged": "^9.2.5",
66
- "mkdirp": "^0.5.1",
67
- "rimraf": "^3.0.0",
68
- "standard-version": "^9.5.0"
69
- },
70
- "engines": {
71
- "node": ">= 8"
72
- }
73
- }
@@ -1,8 +0,0 @@
1
- module.exports = {
2
- printWidth: 160,
3
- tabWidth: 4,
4
- singleQuote: true,
5
- endOfLine: 'lf',
6
- trailingComma: 'none',
7
- arrowParens: 'avoid'
8
- };
@@ -1,16 +0,0 @@
1
- Copyright (c) 2012-2014 Andris Reinman
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy
4
- of this software and associated documentation files (the "Software"), to deal
5
- in the Software without restriction, including without limitation the rights
6
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- copies of the Software, and to permit persons to whom the Software is
8
- furnished to do so, subject to the following conditions:
9
-
10
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
11
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
12
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
13
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
14
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
15
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
- SOFTWARE.
@@ -1,83 +0,0 @@
1
- 'use strict';
2
-
3
- var iconvLite = require('iconv-lite');
4
-
5
- // Expose to the world
6
- module.exports.convert = convert;
7
-
8
- /**
9
- * Convert encoding of an UTF-8 string or a buffer
10
- *
11
- * @param {String|Buffer} str String to be converted
12
- * @param {String} to Encoding to be converted to
13
- * @param {String} [from='UTF-8'] Encoding to be converted from
14
- * @return {Buffer} Encoded string
15
- */
16
- function convert(str, to, from) {
17
- from = checkEncoding(from || 'UTF-8');
18
- to = checkEncoding(to || 'UTF-8');
19
- str = str || '';
20
-
21
- var result;
22
-
23
- if (from !== 'UTF-8' && typeof str === 'string') {
24
- str = Buffer.from(str, 'binary');
25
- }
26
-
27
- if (from === to) {
28
- if (typeof str === 'string') {
29
- result = Buffer.from(str);
30
- } else {
31
- result = str;
32
- }
33
- } else {
34
- try {
35
- result = convertIconvLite(str, to, from);
36
- } catch (E) {
37
- console.error(E);
38
- result = str;
39
- }
40
- }
41
-
42
- if (typeof result === 'string') {
43
- result = Buffer.from(result, 'utf-8');
44
- }
45
-
46
- return result;
47
- }
48
-
49
- /**
50
- * Convert encoding of astring with iconv-lite
51
- *
52
- * @param {String|Buffer} str String to be converted
53
- * @param {String} to Encoding to be converted to
54
- * @param {String} [from='UTF-8'] Encoding to be converted from
55
- * @return {Buffer} Encoded string
56
- */
57
- function convertIconvLite(str, to, from) {
58
- if (to === 'UTF-8') {
59
- return iconvLite.decode(str, from);
60
- } else if (from === 'UTF-8') {
61
- return iconvLite.encode(str, to);
62
- } else {
63
- return iconvLite.encode(iconvLite.decode(str, from), to);
64
- }
65
- }
66
-
67
- /**
68
- * Converts charset name if needed
69
- *
70
- * @param {String} name Character set
71
- * @return {String} Character set name
72
- */
73
- function checkEncoding(name) {
74
- return (name || '')
75
- .toString()
76
- .trim()
77
- .replace(/^latin[\-_]?(\d+)$/i, 'ISO-8859-$1')
78
- .replace(/^win(?:dows)?[\-_]?(\d+)$/i, 'WINDOWS-$1')
79
- .replace(/^utf[\-_]?(\d+)$/i, 'UTF-$1')
80
- .replace(/^ks_c_5601\-1987$/i, 'CP949')
81
- .replace(/^us[\-_]?ascii$/i, 'ASCII')
82
- .toUpperCase();
83
- }