@oneblink/release-cli 1.2.0-beta.2 → 1.2.0-beta.3

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 (429) hide show
  1. package/node_modules/@yarnpkg/lockfile/README.md +22 -0
  2. package/node_modules/@yarnpkg/lockfile/index.js +10273 -0
  3. package/node_modules/@yarnpkg/lockfile/package.json +19 -0
  4. package/node_modules/ansi-styles/index.js +165 -0
  5. package/node_modules/ansi-styles/license +9 -0
  6. package/node_modules/ansi-styles/package.json +60 -0
  7. package/node_modules/ansi-styles/readme.md +147 -0
  8. package/node_modules/balanced-match/.github/FUNDING.yml +2 -0
  9. package/node_modules/balanced-match/LICENSE.md +21 -0
  10. package/node_modules/balanced-match/README.md +97 -0
  11. package/node_modules/balanced-match/index.js +62 -0
  12. package/node_modules/balanced-match/package.json +52 -0
  13. package/node_modules/brace-expansion/LICENSE +21 -0
  14. package/node_modules/brace-expansion/README.md +129 -0
  15. package/node_modules/brace-expansion/index.js +201 -0
  16. package/node_modules/brace-expansion/package.json +51 -0
  17. package/node_modules/braces/CHANGELOG.md +184 -0
  18. package/node_modules/braces/LICENSE +21 -0
  19. package/node_modules/braces/README.md +593 -0
  20. package/node_modules/braces/index.js +170 -0
  21. package/node_modules/braces/lib/compile.js +57 -0
  22. package/node_modules/braces/lib/constants.js +57 -0
  23. package/node_modules/braces/lib/expand.js +113 -0
  24. package/node_modules/braces/lib/parse.js +333 -0
  25. package/node_modules/braces/lib/stringify.js +32 -0
  26. package/node_modules/braces/lib/utils.js +112 -0
  27. package/node_modules/braces/package.json +81 -0
  28. package/node_modules/chalk/index.js +228 -0
  29. package/node_modules/chalk/index.js.flow +93 -0
  30. package/node_modules/chalk/license +9 -0
  31. package/node_modules/chalk/package.json +75 -0
  32. package/node_modules/chalk/readme.md +314 -0
  33. package/node_modules/chalk/templates.js +128 -0
  34. package/node_modules/chalk/types/index.d.ts +97 -0
  35. package/node_modules/changelog-parser/.DS_Store +0 -0
  36. package/node_modules/changelog-parser/.travis.yml +7 -0
  37. package/node_modules/changelog-parser/CHANGELOG.md +128 -0
  38. package/node_modules/changelog-parser/CONTRIBUTING.md +55 -0
  39. package/node_modules/changelog-parser/LICENSE.md +15 -0
  40. package/node_modules/changelog-parser/README.md +247 -0
  41. package/node_modules/changelog-parser/bin/cli.js +19 -0
  42. package/node_modules/changelog-parser/index.js +201 -0
  43. package/node_modules/changelog-parser/package.json +54 -0
  44. package/node_modules/changelog-parser/test/fixtures/CHANGELOG.md +44 -0
  45. package/node_modules/changelog-parser/test/fixtures/expected.js +113 -0
  46. package/node_modules/changelog-parser/test/fixtures/remove-markdown-expected.js +113 -0
  47. package/node_modules/changelog-parser/test/index.js +105 -0
  48. package/node_modules/ci-info/CHANGELOG.md +78 -0
  49. package/node_modules/ci-info/LICENSE +21 -0
  50. package/node_modules/ci-info/README.md +108 -0
  51. package/node_modules/ci-info/index.js +66 -0
  52. package/node_modules/ci-info/package.json +40 -0
  53. package/node_modules/ci-info/vendors.json +153 -0
  54. package/node_modules/color-convert/CHANGELOG.md +54 -0
  55. package/node_modules/color-convert/LICENSE +21 -0
  56. package/node_modules/color-convert/README.md +68 -0
  57. package/node_modules/color-convert/conversions.js +868 -0
  58. package/node_modules/color-convert/index.js +78 -0
  59. package/node_modules/color-convert/package.json +50 -0
  60. package/node_modules/color-convert/route.js +97 -0
  61. package/node_modules/color-name/.eslintrc.json +43 -0
  62. package/node_modules/color-name/.npmignore +107 -0
  63. package/node_modules/color-name/LICENSE +8 -0
  64. package/node_modules/color-name/README.md +11 -0
  65. package/node_modules/color-name/index.js +152 -0
  66. package/node_modules/color-name/package.json +29 -0
  67. package/node_modules/color-name/test.js +7 -0
  68. package/node_modules/concat-map/.travis.yml +4 -0
  69. package/node_modules/concat-map/LICENSE +18 -0
  70. package/node_modules/concat-map/README.markdown +62 -0
  71. package/node_modules/concat-map/example/map.js +6 -0
  72. package/node_modules/concat-map/index.js +13 -0
  73. package/node_modules/concat-map/package.json +47 -0
  74. package/node_modules/concat-map/test/map.js +39 -0
  75. package/node_modules/escape-string-regexp/index.js +11 -0
  76. package/node_modules/escape-string-regexp/license +21 -0
  77. package/node_modules/escape-string-regexp/package.json +45 -0
  78. package/node_modules/escape-string-regexp/readme.md +27 -0
  79. package/node_modules/fill-range/LICENSE +21 -0
  80. package/node_modules/fill-range/README.md +237 -0
  81. package/node_modules/fill-range/index.js +249 -0
  82. package/node_modules/fill-range/package.json +73 -0
  83. package/node_modules/find-yarn-workspace-root/CHANGELOG.md +53 -0
  84. package/node_modules/find-yarn-workspace-root/LICENSE +201 -0
  85. package/node_modules/find-yarn-workspace-root/README.md +56 -0
  86. package/node_modules/find-yarn-workspace-root/index.d.ts +3 -0
  87. package/node_modules/find-yarn-workspace-root/index.js +53 -0
  88. package/node_modules/find-yarn-workspace-root/package.json +38 -0
  89. package/node_modules/fs-extra/CHANGELOG.md +842 -0
  90. package/node_modules/fs-extra/LICENSE +15 -0
  91. package/node_modules/fs-extra/README.md +261 -0
  92. package/node_modules/fs-extra/lib/copy/copy.js +246 -0
  93. package/node_modules/fs-extra/lib/copy/index.js +6 -0
  94. package/node_modules/fs-extra/lib/copy-sync/copy-sync.js +193 -0
  95. package/node_modules/fs-extra/lib/copy-sync/index.js +5 -0
  96. package/node_modules/fs-extra/lib/empty/index.js +48 -0
  97. package/node_modules/fs-extra/lib/ensure/file.js +49 -0
  98. package/node_modules/fs-extra/lib/ensure/index.js +23 -0
  99. package/node_modules/fs-extra/lib/ensure/link.js +61 -0
  100. package/node_modules/fs-extra/lib/ensure/symlink-paths.js +99 -0
  101. package/node_modules/fs-extra/lib/ensure/symlink-type.js +31 -0
  102. package/node_modules/fs-extra/lib/ensure/symlink.js +63 -0
  103. package/node_modules/fs-extra/lib/fs/index.js +104 -0
  104. package/node_modules/fs-extra/lib/index.js +28 -0
  105. package/node_modules/fs-extra/lib/json/index.js +16 -0
  106. package/node_modules/fs-extra/lib/json/jsonfile.js +12 -0
  107. package/node_modules/fs-extra/lib/json/output-json-sync.js +18 -0
  108. package/node_modules/fs-extra/lib/json/output-json.js +27 -0
  109. package/node_modules/fs-extra/lib/mkdirs/index.js +14 -0
  110. package/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js +54 -0
  111. package/node_modules/fs-extra/lib/mkdirs/mkdirs.js +63 -0
  112. package/node_modules/fs-extra/lib/mkdirs/win32.js +25 -0
  113. package/node_modules/fs-extra/lib/move/index.js +82 -0
  114. package/node_modules/fs-extra/lib/move-sync/index.js +117 -0
  115. package/node_modules/fs-extra/lib/output/index.js +40 -0
  116. package/node_modules/fs-extra/lib/path-exists/index.js +12 -0
  117. package/node_modules/fs-extra/lib/remove/index.js +9 -0
  118. package/node_modules/fs-extra/lib/remove/rimraf.js +314 -0
  119. package/node_modules/fs-extra/lib/util/buffer.js +12 -0
  120. package/node_modules/fs-extra/lib/util/utimes.js +79 -0
  121. package/node_modules/fs-extra/package.json +72 -0
  122. package/node_modules/fs.realpath/LICENSE +43 -0
  123. package/node_modules/fs.realpath/README.md +33 -0
  124. package/node_modules/fs.realpath/index.js +66 -0
  125. package/node_modules/fs.realpath/old.js +303 -0
  126. package/node_modules/fs.realpath/package.json +30 -0
  127. package/node_modules/glob/LICENSE +21 -0
  128. package/node_modules/glob/README.md +375 -0
  129. package/node_modules/glob/changelog.md +67 -0
  130. package/node_modules/glob/common.js +240 -0
  131. package/node_modules/glob/glob.js +790 -0
  132. package/node_modules/glob/package.json +50 -0
  133. package/node_modules/glob/sync.js +486 -0
  134. package/node_modules/graceful-fs/LICENSE +15 -0
  135. package/node_modules/graceful-fs/README.md +133 -0
  136. package/node_modules/graceful-fs/clone.js +23 -0
  137. package/node_modules/graceful-fs/graceful-fs.js +373 -0
  138. package/node_modules/graceful-fs/legacy-streams.js +118 -0
  139. package/node_modules/graceful-fs/package.json +54 -0
  140. package/node_modules/graceful-fs/polyfills.js +346 -0
  141. package/node_modules/has-flag/index.js +8 -0
  142. package/node_modules/has-flag/license +9 -0
  143. package/node_modules/has-flag/package.json +48 -0
  144. package/node_modules/has-flag/readme.md +70 -0
  145. package/node_modules/inflight/LICENSE +15 -0
  146. package/node_modules/inflight/README.md +37 -0
  147. package/node_modules/inflight/inflight.js +54 -0
  148. package/node_modules/inflight/package.json +33 -0
  149. package/node_modules/inherits/LICENSE +16 -0
  150. package/node_modules/inherits/README.md +42 -0
  151. package/node_modules/inherits/inherits.js +9 -0
  152. package/node_modules/inherits/inherits_browser.js +27 -0
  153. package/node_modules/inherits/package.json +33 -0
  154. package/node_modules/is-ci/CHANGELOG.md +14 -0
  155. package/node_modules/is-ci/LICENSE +21 -0
  156. package/node_modules/is-ci/README.md +50 -0
  157. package/node_modules/is-ci/bin.js +4 -0
  158. package/node_modules/is-ci/index.js +3 -0
  159. package/node_modules/is-ci/package.json +42 -0
  160. package/node_modules/is-docker/cli.js +5 -0
  161. package/node_modules/is-docker/index.d.ts +15 -0
  162. package/node_modules/is-docker/index.js +29 -0
  163. package/node_modules/is-docker/license +9 -0
  164. package/node_modules/is-docker/package.json +46 -0
  165. package/node_modules/is-docker/readme.md +27 -0
  166. package/node_modules/is-number/LICENSE +21 -0
  167. package/node_modules/is-number/README.md +187 -0
  168. package/node_modules/is-number/index.js +18 -0
  169. package/node_modules/is-number/package.json +86 -0
  170. package/node_modules/is-wsl/index.d.ts +15 -0
  171. package/node_modules/is-wsl/index.js +31 -0
  172. package/node_modules/is-wsl/license +9 -0
  173. package/node_modules/is-wsl/package.json +49 -0
  174. package/node_modules/is-wsl/readme.md +36 -0
  175. package/node_modules/isexe/.npmignore +2 -0
  176. package/node_modules/isexe/LICENSE +15 -0
  177. package/node_modules/isexe/README.md +51 -0
  178. package/node_modules/isexe/index.js +57 -0
  179. package/node_modules/isexe/mode.js +41 -0
  180. package/node_modules/isexe/package.json +35 -0
  181. package/node_modules/isexe/test/basic.js +221 -0
  182. package/node_modules/isexe/windows.js +42 -0
  183. package/node_modules/jsonfile/CHANGELOG.md +145 -0
  184. package/node_modules/jsonfile/LICENSE +15 -0
  185. package/node_modules/jsonfile/README.md +168 -0
  186. package/node_modules/jsonfile/index.js +134 -0
  187. package/node_modules/jsonfile/package.json +41 -0
  188. package/node_modules/klaw-sync/CHANGELOG.md +73 -0
  189. package/node_modules/klaw-sync/LICENSE +20 -0
  190. package/node_modules/klaw-sync/README.md +164 -0
  191. package/node_modules/klaw-sync/klaw-sync.js +29 -0
  192. package/node_modules/klaw-sync/package.json +51 -0
  193. package/node_modules/line-reader/LICENSE +20 -0
  194. package/node_modules/line-reader/README.md +75 -0
  195. package/node_modules/line-reader/lib/line_reader.js +174 -0
  196. package/node_modules/line-reader/package.json +18 -0
  197. package/node_modules/line-reader/test/data/empty_file.txt +0 -0
  198. package/node_modules/line-reader/test/data/multi_separator_file.txt +2 -0
  199. package/node_modules/line-reader/test/data/multibyte_file.txt +2 -0
  200. package/node_modules/line-reader/test/data/normal_file.txt +6 -0
  201. package/node_modules/line-reader/test/data/one_line_file.txt +1 -0
  202. package/node_modules/line-reader/test/data/separator_file.txt +2 -0
  203. package/node_modules/line-reader/test/data/three_line_file.txt +3 -0
  204. package/node_modules/line-reader/test/line_reader.js +222 -0
  205. package/node_modules/lru-cache/LICENSE +15 -0
  206. package/node_modules/lru-cache/README.md +166 -0
  207. package/node_modules/lru-cache/index.js +334 -0
  208. package/node_modules/lru-cache/package.json +38 -0
  209. package/node_modules/micromatch/CHANGELOG.md +109 -0
  210. package/node_modules/micromatch/LICENSE +21 -0
  211. package/node_modules/micromatch/README.md +1008 -0
  212. package/node_modules/micromatch/index.js +467 -0
  213. package/node_modules/micromatch/package.json +123 -0
  214. package/node_modules/minimatch/LICENSE +15 -0
  215. package/node_modules/minimatch/README.md +209 -0
  216. package/node_modules/minimatch/minimatch.js +923 -0
  217. package/node_modules/minimatch/package.json +34 -0
  218. package/node_modules/minimist/.travis.yml +8 -0
  219. package/node_modules/minimist/LICENSE +18 -0
  220. package/node_modules/minimist/example/parse.js +2 -0
  221. package/node_modules/minimist/index.js +245 -0
  222. package/node_modules/minimist/package.json +49 -0
  223. package/node_modules/minimist/readme.markdown +95 -0
  224. package/node_modules/minimist/test/all_bool.js +32 -0
  225. package/node_modules/minimist/test/bool.js +178 -0
  226. package/node_modules/minimist/test/dash.js +31 -0
  227. package/node_modules/minimist/test/default_bool.js +35 -0
  228. package/node_modules/minimist/test/dotted.js +22 -0
  229. package/node_modules/minimist/test/kv_short.js +16 -0
  230. package/node_modules/minimist/test/long.js +31 -0
  231. package/node_modules/minimist/test/num.js +36 -0
  232. package/node_modules/minimist/test/parse.js +197 -0
  233. package/node_modules/minimist/test/parse_modified.js +9 -0
  234. package/node_modules/minimist/test/proto.js +44 -0
  235. package/node_modules/minimist/test/short.js +67 -0
  236. package/node_modules/minimist/test/stop_early.js +15 -0
  237. package/node_modules/minimist/test/unknown.js +102 -0
  238. package/node_modules/minimist/test/whitespace.js +8 -0
  239. package/node_modules/nice-try/CHANGELOG.md +21 -0
  240. package/node_modules/nice-try/LICENSE +21 -0
  241. package/node_modules/nice-try/README.md +32 -0
  242. package/node_modules/nice-try/package.json +37 -0
  243. package/node_modules/nice-try/src/index.js +12 -0
  244. package/node_modules/once/LICENSE +15 -0
  245. package/node_modules/once/README.md +79 -0
  246. package/node_modules/once/once.js +42 -0
  247. package/node_modules/once/package.json +37 -0
  248. package/node_modules/open/index.d.ts +88 -0
  249. package/node_modules/open/index.js +195 -0
  250. package/node_modules/open/license +9 -0
  251. package/node_modules/open/package.json +64 -0
  252. package/node_modules/open/readme.md +154 -0
  253. package/node_modules/open/xdg-open +1066 -0
  254. package/node_modules/os-tmpdir/index.js +25 -0
  255. package/node_modules/os-tmpdir/license +21 -0
  256. package/node_modules/os-tmpdir/package.json +45 -0
  257. package/node_modules/os-tmpdir/readme.md +32 -0
  258. package/node_modules/patch-package/CHANGELOG.md +389 -0
  259. package/node_modules/patch-package/LICENSE +19 -0
  260. package/node_modules/patch-package/README.md +269 -0
  261. package/node_modules/patch-package/dist/PackageDetails.js +102 -0
  262. package/node_modules/patch-package/dist/PackageDetails.test.js +228 -0
  263. package/node_modules/patch-package/dist/applyPatches.js +261 -0
  264. package/node_modules/patch-package/dist/assertNever.js +8 -0
  265. package/node_modules/patch-package/dist/createIssue.js +83 -0
  266. package/node_modules/patch-package/dist/detectPackageManager.js +64 -0
  267. package/node_modules/patch-package/dist/filterFiles.js +17 -0
  268. package/node_modules/patch-package/dist/getAppRootPath.js +22 -0
  269. package/node_modules/patch-package/dist/getPackageResolution.js +85 -0
  270. package/node_modules/patch-package/dist/getPackageVersion.js +9 -0
  271. package/node_modules/patch-package/dist/index.js +161 -0
  272. package/node_modules/patch-package/dist/makePatch.js +231 -0
  273. package/node_modules/patch-package/dist/makeRegExp.js +28 -0
  274. package/node_modules/patch-package/dist/packageIsDevDependency.js +15 -0
  275. package/node_modules/patch-package/dist/packageIsDevDependency.test.js +32 -0
  276. package/node_modules/patch-package/dist/patch/apply.js +197 -0
  277. package/node_modules/patch-package/dist/patch/parse.js +330 -0
  278. package/node_modules/patch-package/dist/patch/read.js +49 -0
  279. package/node_modules/patch-package/dist/patch/reverse.js +96 -0
  280. package/node_modules/patch-package/dist/patchFs.js +20 -0
  281. package/node_modules/patch-package/dist/path.js +17 -0
  282. package/node_modules/patch-package/dist/resolveRelativeFileDependencies.js +21 -0
  283. package/node_modules/patch-package/dist/resolveRelativeFileDependencies.test.js +22 -0
  284. package/node_modules/patch-package/dist/spawnSafe.js +28 -0
  285. package/node_modules/patch-package/index.js +3 -0
  286. package/node_modules/patch-package/node_modules/cross-spawn/CHANGELOG.md +100 -0
  287. package/node_modules/patch-package/node_modules/cross-spawn/LICENSE +21 -0
  288. package/node_modules/patch-package/node_modules/cross-spawn/README.md +94 -0
  289. package/node_modules/patch-package/node_modules/cross-spawn/index.js +39 -0
  290. package/node_modules/patch-package/node_modules/cross-spawn/lib/enoent.js +59 -0
  291. package/node_modules/patch-package/node_modules/cross-spawn/lib/parse.js +125 -0
  292. package/node_modules/patch-package/node_modules/cross-spawn/lib/util/escape.js +45 -0
  293. package/node_modules/patch-package/node_modules/cross-spawn/lib/util/readShebang.js +32 -0
  294. package/node_modules/patch-package/node_modules/cross-spawn/lib/util/resolveCommand.js +47 -0
  295. package/node_modules/patch-package/node_modules/cross-spawn/package.json +80 -0
  296. package/node_modules/patch-package/node_modules/path-key/index.js +13 -0
  297. package/node_modules/patch-package/node_modules/path-key/license +21 -0
  298. package/node_modules/patch-package/node_modules/path-key/package.json +43 -0
  299. package/node_modules/patch-package/node_modules/path-key/readme.md +51 -0
  300. package/node_modules/patch-package/node_modules/rimraf/LICENSE +15 -0
  301. package/node_modules/patch-package/node_modules/rimraf/README.md +101 -0
  302. package/node_modules/patch-package/node_modules/rimraf/bin.js +50 -0
  303. package/node_modules/patch-package/node_modules/rimraf/package.json +33 -0
  304. package/node_modules/patch-package/node_modules/rimraf/rimraf.js +372 -0
  305. package/node_modules/patch-package/node_modules/semver/CHANGELOG.md +39 -0
  306. package/node_modules/patch-package/node_modules/semver/LICENSE +15 -0
  307. package/node_modules/patch-package/node_modules/semver/README.md +412 -0
  308. package/node_modules/patch-package/node_modules/semver/bin/semver +160 -0
  309. package/node_modules/patch-package/node_modules/semver/package.json +32 -0
  310. package/node_modules/patch-package/node_modules/semver/range.bnf +16 -0
  311. package/node_modules/patch-package/node_modules/semver/semver.js +1483 -0
  312. package/node_modules/patch-package/node_modules/shebang-command/index.js +19 -0
  313. package/node_modules/patch-package/node_modules/shebang-command/license +21 -0
  314. package/node_modules/patch-package/node_modules/shebang-command/package.json +43 -0
  315. package/node_modules/patch-package/node_modules/shebang-command/readme.md +39 -0
  316. package/node_modules/patch-package/node_modules/shebang-regex/index.js +2 -0
  317. package/node_modules/patch-package/node_modules/shebang-regex/license +21 -0
  318. package/node_modules/patch-package/node_modules/shebang-regex/package.json +36 -0
  319. package/node_modules/patch-package/node_modules/shebang-regex/readme.md +29 -0
  320. package/node_modules/patch-package/node_modules/slash/index.js +11 -0
  321. package/node_modules/patch-package/node_modules/slash/license +9 -0
  322. package/node_modules/patch-package/node_modules/slash/package.json +38 -0
  323. package/node_modules/patch-package/node_modules/slash/readme.md +44 -0
  324. package/node_modules/patch-package/node_modules/which/CHANGELOG.md +152 -0
  325. package/node_modules/patch-package/node_modules/which/LICENSE +15 -0
  326. package/node_modules/patch-package/node_modules/which/README.md +51 -0
  327. package/node_modules/patch-package/node_modules/which/bin/which +52 -0
  328. package/node_modules/patch-package/node_modules/which/package.json +34 -0
  329. package/node_modules/patch-package/node_modules/which/which.js +135 -0
  330. package/node_modules/patch-package/package.json +100 -0
  331. package/node_modules/path-is-absolute/index.js +20 -0
  332. package/node_modules/path-is-absolute/license +21 -0
  333. package/node_modules/path-is-absolute/package.json +47 -0
  334. package/node_modules/path-is-absolute/readme.md +59 -0
  335. package/node_modules/picomatch/CHANGELOG.md +120 -0
  336. package/node_modules/picomatch/LICENSE +21 -0
  337. package/node_modules/picomatch/README.md +691 -0
  338. package/node_modules/picomatch/index.js +3 -0
  339. package/node_modules/picomatch/lib/constants.js +179 -0
  340. package/node_modules/picomatch/lib/parse.js +1078 -0
  341. package/node_modules/picomatch/lib/picomatch.js +339 -0
  342. package/node_modules/picomatch/lib/scan.js +385 -0
  343. package/node_modules/picomatch/lib/utils.js +64 -0
  344. package/node_modules/picomatch/package.json +85 -0
  345. package/node_modules/remove-markdown/.npmignore +1 -0
  346. package/node_modules/remove-markdown/LICENSE +21 -0
  347. package/node_modules/remove-markdown/README.md +44 -0
  348. package/node_modules/remove-markdown/index.js +60 -0
  349. package/node_modules/remove-markdown/package.json +31 -0
  350. package/node_modules/remove-markdown/test/remove-markdown.js +139 -0
  351. package/node_modules/semver/CHANGELOG.md +111 -0
  352. package/node_modules/semver/LICENSE +15 -0
  353. package/node_modules/semver/README.md +566 -0
  354. package/node_modules/semver/bin/semver.js +173 -0
  355. package/node_modules/semver/classes/comparator.js +135 -0
  356. package/node_modules/semver/classes/index.js +5 -0
  357. package/node_modules/semver/classes/range.js +510 -0
  358. package/node_modules/semver/classes/semver.js +287 -0
  359. package/node_modules/semver/functions/clean.js +6 -0
  360. package/node_modules/semver/functions/cmp.js +48 -0
  361. package/node_modules/semver/functions/coerce.js +51 -0
  362. package/node_modules/semver/functions/compare-build.js +7 -0
  363. package/node_modules/semver/functions/compare-loose.js +3 -0
  364. package/node_modules/semver/functions/compare.js +5 -0
  365. package/node_modules/semver/functions/diff.js +23 -0
  366. package/node_modules/semver/functions/eq.js +3 -0
  367. package/node_modules/semver/functions/gt.js +3 -0
  368. package/node_modules/semver/functions/gte.js +3 -0
  369. package/node_modules/semver/functions/inc.js +15 -0
  370. package/node_modules/semver/functions/lt.js +3 -0
  371. package/node_modules/semver/functions/lte.js +3 -0
  372. package/node_modules/semver/functions/major.js +3 -0
  373. package/node_modules/semver/functions/minor.js +3 -0
  374. package/node_modules/semver/functions/neq.js +3 -0
  375. package/node_modules/semver/functions/parse.js +33 -0
  376. package/node_modules/semver/functions/patch.js +3 -0
  377. package/node_modules/semver/functions/prerelease.js +6 -0
  378. package/node_modules/semver/functions/rcompare.js +3 -0
  379. package/node_modules/semver/functions/rsort.js +3 -0
  380. package/node_modules/semver/functions/satisfies.js +10 -0
  381. package/node_modules/semver/functions/sort.js +3 -0
  382. package/node_modules/semver/functions/valid.js +6 -0
  383. package/node_modules/semver/index.js +48 -0
  384. package/node_modules/semver/internal/constants.js +17 -0
  385. package/node_modules/semver/internal/debug.js +9 -0
  386. package/node_modules/semver/internal/identifiers.js +23 -0
  387. package/node_modules/semver/internal/parse-options.js +11 -0
  388. package/node_modules/semver/internal/re.js +182 -0
  389. package/node_modules/semver/package.json +45 -0
  390. package/node_modules/semver/preload.js +2 -0
  391. package/node_modules/semver/range.bnf +16 -0
  392. package/node_modules/semver/ranges/gtr.js +4 -0
  393. package/node_modules/semver/ranges/intersects.js +7 -0
  394. package/node_modules/semver/ranges/ltr.js +4 -0
  395. package/node_modules/semver/ranges/max-satisfying.js +25 -0
  396. package/node_modules/semver/ranges/min-satisfying.js +24 -0
  397. package/node_modules/semver/ranges/min-version.js +60 -0
  398. package/node_modules/semver/ranges/outside.js +80 -0
  399. package/node_modules/semver/ranges/simplify.js +44 -0
  400. package/node_modules/semver/ranges/subset.js +222 -0
  401. package/node_modules/semver/ranges/to-comparators.js +8 -0
  402. package/node_modules/semver/ranges/valid.js +11 -0
  403. package/node_modules/supports-color/browser.js +5 -0
  404. package/node_modules/supports-color/index.js +131 -0
  405. package/node_modules/supports-color/license +9 -0
  406. package/node_modules/supports-color/package.json +57 -0
  407. package/node_modules/supports-color/readme.md +66 -0
  408. package/node_modules/tmp/LICENSE +21 -0
  409. package/node_modules/tmp/README.md +314 -0
  410. package/node_modules/tmp/lib/tmp.js +611 -0
  411. package/node_modules/tmp/package.json +42 -0
  412. package/node_modules/to-regex-range/LICENSE +21 -0
  413. package/node_modules/to-regex-range/README.md +305 -0
  414. package/node_modules/to-regex-range/index.js +288 -0
  415. package/node_modules/to-regex-range/package.json +92 -0
  416. package/node_modules/universalify/LICENSE +20 -0
  417. package/node_modules/universalify/README.md +76 -0
  418. package/node_modules/universalify/index.js +25 -0
  419. package/node_modules/universalify/package.json +38 -0
  420. package/node_modules/wrappy/LICENSE +15 -0
  421. package/node_modules/wrappy/README.md +36 -0
  422. package/node_modules/wrappy/package.json +33 -0
  423. package/node_modules/wrappy/wrappy.js +33 -0
  424. package/node_modules/yallist/LICENSE +15 -0
  425. package/node_modules/yallist/README.md +204 -0
  426. package/node_modules/yallist/iterator.js +8 -0
  427. package/node_modules/yallist/package.json +33 -0
  428. package/node_modules/yallist/yallist.js +426 -0
  429. package/package.json +5 -1
@@ -0,0 +1,346 @@
1
+ var constants = require('constants')
2
+
3
+ var origCwd = process.cwd
4
+ var cwd = null
5
+
6
+ var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform
7
+
8
+ process.cwd = function() {
9
+ if (!cwd)
10
+ cwd = origCwd.call(process)
11
+ return cwd
12
+ }
13
+ try {
14
+ process.cwd()
15
+ } catch (er) {}
16
+
17
+ // This check is needed until node.js 12 is required
18
+ if (typeof process.chdir === 'function') {
19
+ var chdir = process.chdir
20
+ process.chdir = function (d) {
21
+ cwd = null
22
+ chdir.call(process, d)
23
+ }
24
+ if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir)
25
+ }
26
+
27
+ module.exports = patch
28
+
29
+ function patch (fs) {
30
+ // (re-)implement some things that are known busted or missing.
31
+
32
+ // lchmod, broken prior to 0.6.2
33
+ // back-port the fix here.
34
+ if (constants.hasOwnProperty('O_SYMLINK') &&
35
+ process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
36
+ patchLchmod(fs)
37
+ }
38
+
39
+ // lutimes implementation, or no-op
40
+ if (!fs.lutimes) {
41
+ patchLutimes(fs)
42
+ }
43
+
44
+ // https://github.com/isaacs/node-graceful-fs/issues/4
45
+ // Chown should not fail on einval or eperm if non-root.
46
+ // It should not fail on enosys ever, as this just indicates
47
+ // that a fs doesn't support the intended operation.
48
+
49
+ fs.chown = chownFix(fs.chown)
50
+ fs.fchown = chownFix(fs.fchown)
51
+ fs.lchown = chownFix(fs.lchown)
52
+
53
+ fs.chmod = chmodFix(fs.chmod)
54
+ fs.fchmod = chmodFix(fs.fchmod)
55
+ fs.lchmod = chmodFix(fs.lchmod)
56
+
57
+ fs.chownSync = chownFixSync(fs.chownSync)
58
+ fs.fchownSync = chownFixSync(fs.fchownSync)
59
+ fs.lchownSync = chownFixSync(fs.lchownSync)
60
+
61
+ fs.chmodSync = chmodFixSync(fs.chmodSync)
62
+ fs.fchmodSync = chmodFixSync(fs.fchmodSync)
63
+ fs.lchmodSync = chmodFixSync(fs.lchmodSync)
64
+
65
+ fs.stat = statFix(fs.stat)
66
+ fs.fstat = statFix(fs.fstat)
67
+ fs.lstat = statFix(fs.lstat)
68
+
69
+ fs.statSync = statFixSync(fs.statSync)
70
+ fs.fstatSync = statFixSync(fs.fstatSync)
71
+ fs.lstatSync = statFixSync(fs.lstatSync)
72
+
73
+ // if lchmod/lchown do not exist, then make them no-ops
74
+ if (!fs.lchmod) {
75
+ fs.lchmod = function (path, mode, cb) {
76
+ if (cb) process.nextTick(cb)
77
+ }
78
+ fs.lchmodSync = function () {}
79
+ }
80
+ if (!fs.lchown) {
81
+ fs.lchown = function (path, uid, gid, cb) {
82
+ if (cb) process.nextTick(cb)
83
+ }
84
+ fs.lchownSync = function () {}
85
+ }
86
+
87
+ // on Windows, A/V software can lock the directory, causing this
88
+ // to fail with an EACCES or EPERM if the directory contains newly
89
+ // created files. Try again on failure, for up to 60 seconds.
90
+
91
+ // Set the timeout this long because some Windows Anti-Virus, such as Parity
92
+ // bit9, may lock files for up to a minute, causing npm package install
93
+ // failures. Also, take care to yield the scheduler. Windows scheduling gives
94
+ // CPU to a busy looping process, which can cause the program causing the lock
95
+ // contention to be starved of CPU by node, so the contention doesn't resolve.
96
+ if (platform === "win32") {
97
+ fs.rename = (function (fs$rename) { return function (from, to, cb) {
98
+ var start = Date.now()
99
+ var backoff = 0;
100
+ fs$rename(from, to, function CB (er) {
101
+ if (er
102
+ && (er.code === "EACCES" || er.code === "EPERM")
103
+ && Date.now() - start < 60000) {
104
+ setTimeout(function() {
105
+ fs.stat(to, function (stater, st) {
106
+ if (stater && stater.code === "ENOENT")
107
+ fs$rename(from, to, CB);
108
+ else
109
+ cb(er)
110
+ })
111
+ }, backoff)
112
+ if (backoff < 100)
113
+ backoff += 10;
114
+ return;
115
+ }
116
+ if (cb) cb(er)
117
+ })
118
+ }})(fs.rename)
119
+ }
120
+
121
+ // if read() returns EAGAIN, then just try it again.
122
+ fs.read = (function (fs$read) {
123
+ function read (fd, buffer, offset, length, position, callback_) {
124
+ var callback
125
+ if (callback_ && typeof callback_ === 'function') {
126
+ var eagCounter = 0
127
+ callback = function (er, _, __) {
128
+ if (er && er.code === 'EAGAIN' && eagCounter < 10) {
129
+ eagCounter ++
130
+ return fs$read.call(fs, fd, buffer, offset, length, position, callback)
131
+ }
132
+ callback_.apply(this, arguments)
133
+ }
134
+ }
135
+ return fs$read.call(fs, fd, buffer, offset, length, position, callback)
136
+ }
137
+
138
+ // This ensures `util.promisify` works as it does for native `fs.read`.
139
+ if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read)
140
+ return read
141
+ })(fs.read)
142
+
143
+ fs.readSync = (function (fs$readSync) { return function (fd, buffer, offset, length, position) {
144
+ var eagCounter = 0
145
+ while (true) {
146
+ try {
147
+ return fs$readSync.call(fs, fd, buffer, offset, length, position)
148
+ } catch (er) {
149
+ if (er.code === 'EAGAIN' && eagCounter < 10) {
150
+ eagCounter ++
151
+ continue
152
+ }
153
+ throw er
154
+ }
155
+ }
156
+ }})(fs.readSync)
157
+
158
+ function patchLchmod (fs) {
159
+ fs.lchmod = function (path, mode, callback) {
160
+ fs.open( path
161
+ , constants.O_WRONLY | constants.O_SYMLINK
162
+ , mode
163
+ , function (err, fd) {
164
+ if (err) {
165
+ if (callback) callback(err)
166
+ return
167
+ }
168
+ // prefer to return the chmod error, if one occurs,
169
+ // but still try to close, and report closing errors if they occur.
170
+ fs.fchmod(fd, mode, function (err) {
171
+ fs.close(fd, function(err2) {
172
+ if (callback) callback(err || err2)
173
+ })
174
+ })
175
+ })
176
+ }
177
+
178
+ fs.lchmodSync = function (path, mode) {
179
+ var fd = fs.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode)
180
+
181
+ // prefer to return the chmod error, if one occurs,
182
+ // but still try to close, and report closing errors if they occur.
183
+ var threw = true
184
+ var ret
185
+ try {
186
+ ret = fs.fchmodSync(fd, mode)
187
+ threw = false
188
+ } finally {
189
+ if (threw) {
190
+ try {
191
+ fs.closeSync(fd)
192
+ } catch (er) {}
193
+ } else {
194
+ fs.closeSync(fd)
195
+ }
196
+ }
197
+ return ret
198
+ }
199
+ }
200
+
201
+ function patchLutimes (fs) {
202
+ if (constants.hasOwnProperty("O_SYMLINK")) {
203
+ fs.lutimes = function (path, at, mt, cb) {
204
+ fs.open(path, constants.O_SYMLINK, function (er, fd) {
205
+ if (er) {
206
+ if (cb) cb(er)
207
+ return
208
+ }
209
+ fs.futimes(fd, at, mt, function (er) {
210
+ fs.close(fd, function (er2) {
211
+ if (cb) cb(er || er2)
212
+ })
213
+ })
214
+ })
215
+ }
216
+
217
+ fs.lutimesSync = function (path, at, mt) {
218
+ var fd = fs.openSync(path, constants.O_SYMLINK)
219
+ var ret
220
+ var threw = true
221
+ try {
222
+ ret = fs.futimesSync(fd, at, mt)
223
+ threw = false
224
+ } finally {
225
+ if (threw) {
226
+ try {
227
+ fs.closeSync(fd)
228
+ } catch (er) {}
229
+ } else {
230
+ fs.closeSync(fd)
231
+ }
232
+ }
233
+ return ret
234
+ }
235
+
236
+ } else {
237
+ fs.lutimes = function (_a, _b, _c, cb) { if (cb) process.nextTick(cb) }
238
+ fs.lutimesSync = function () {}
239
+ }
240
+ }
241
+
242
+ function chmodFix (orig) {
243
+ if (!orig) return orig
244
+ return function (target, mode, cb) {
245
+ return orig.call(fs, target, mode, function (er) {
246
+ if (chownErOk(er)) er = null
247
+ if (cb) cb.apply(this, arguments)
248
+ })
249
+ }
250
+ }
251
+
252
+ function chmodFixSync (orig) {
253
+ if (!orig) return orig
254
+ return function (target, mode) {
255
+ try {
256
+ return orig.call(fs, target, mode)
257
+ } catch (er) {
258
+ if (!chownErOk(er)) throw er
259
+ }
260
+ }
261
+ }
262
+
263
+
264
+ function chownFix (orig) {
265
+ if (!orig) return orig
266
+ return function (target, uid, gid, cb) {
267
+ return orig.call(fs, target, uid, gid, function (er) {
268
+ if (chownErOk(er)) er = null
269
+ if (cb) cb.apply(this, arguments)
270
+ })
271
+ }
272
+ }
273
+
274
+ function chownFixSync (orig) {
275
+ if (!orig) return orig
276
+ return function (target, uid, gid) {
277
+ try {
278
+ return orig.call(fs, target, uid, gid)
279
+ } catch (er) {
280
+ if (!chownErOk(er)) throw er
281
+ }
282
+ }
283
+ }
284
+
285
+ function statFix (orig) {
286
+ if (!orig) return orig
287
+ // Older versions of Node erroneously returned signed integers for
288
+ // uid + gid.
289
+ return function (target, options, cb) {
290
+ if (typeof options === 'function') {
291
+ cb = options
292
+ options = null
293
+ }
294
+ function callback (er, stats) {
295
+ if (stats) {
296
+ if (stats.uid < 0) stats.uid += 0x100000000
297
+ if (stats.gid < 0) stats.gid += 0x100000000
298
+ }
299
+ if (cb) cb.apply(this, arguments)
300
+ }
301
+ return options ? orig.call(fs, target, options, callback)
302
+ : orig.call(fs, target, callback)
303
+ }
304
+ }
305
+
306
+ function statFixSync (orig) {
307
+ if (!orig) return orig
308
+ // Older versions of Node erroneously returned signed integers for
309
+ // uid + gid.
310
+ return function (target, options) {
311
+ var stats = options ? orig.call(fs, target, options)
312
+ : orig.call(fs, target)
313
+ if (stats.uid < 0) stats.uid += 0x100000000
314
+ if (stats.gid < 0) stats.gid += 0x100000000
315
+ return stats;
316
+ }
317
+ }
318
+
319
+ // ENOSYS means that the fs doesn't support the op. Just ignore
320
+ // that, because it doesn't matter.
321
+ //
322
+ // if there's no getuid, or if getuid() is something other
323
+ // than 0, and the error is EINVAL or EPERM, then just ignore
324
+ // it.
325
+ //
326
+ // This specific case is a silent failure in cp, install, tar,
327
+ // and most other unix tools that manage permissions.
328
+ //
329
+ // When running as root, or if other types of errors are
330
+ // encountered, then it's strict.
331
+ function chownErOk (er) {
332
+ if (!er)
333
+ return true
334
+
335
+ if (er.code === "ENOSYS")
336
+ return true
337
+
338
+ var nonroot = !process.getuid || process.getuid() !== 0
339
+ if (nonroot) {
340
+ if (er.code === "EINVAL" || er.code === "EPERM")
341
+ return true
342
+ }
343
+
344
+ return false
345
+ }
346
+ }
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+ module.exports = (flag, argv) => {
3
+ argv = argv || process.argv;
4
+ const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
5
+ const pos = argv.indexOf(prefix + flag);
6
+ const terminatorPos = argv.indexOf('--');
7
+ return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
8
+ };
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "has-flag",
3
+ "version": "3.0.0",
4
+ "description": "Check if argv has a specific flag",
5
+ "license": "MIT",
6
+ "repository": "sindresorhus/has-flag",
7
+ "author": {
8
+ "name": "Sindre Sorhus",
9
+ "email": "sindresorhus@gmail.com",
10
+ "url": "sindresorhus.com"
11
+ },
12
+ "engines": {
13
+ "node": ">=4"
14
+ },
15
+ "scripts": {
16
+ "test": "xo && ava"
17
+ },
18
+ "files": [
19
+ "index.js"
20
+ ],
21
+ "keywords": [
22
+ "has",
23
+ "check",
24
+ "detect",
25
+ "contains",
26
+ "find",
27
+ "flag",
28
+ "cli",
29
+ "command-line",
30
+ "argv",
31
+ "process",
32
+ "arg",
33
+ "args",
34
+ "argument",
35
+ "arguments",
36
+ "getopt",
37
+ "minimist",
38
+ "optimist"
39
+ ],
40
+ "devDependencies": {
41
+ "ava": "*",
42
+ "xo": "*"
43
+ }
44
+
45
+ ,"_resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz"
46
+ ,"_integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0="
47
+ ,"_from": "has-flag@3.0.0"
48
+ }
@@ -0,0 +1,70 @@
1
+ # has-flag [![Build Status](https://travis-ci.org/sindresorhus/has-flag.svg?branch=master)](https://travis-ci.org/sindresorhus/has-flag)
2
+
3
+ > Check if [`argv`](https://nodejs.org/docs/latest/api/process.html#process_process_argv) has a specific flag
4
+
5
+ Correctly stops looking after an `--` argument terminator.
6
+
7
+
8
+ ## Install
9
+
10
+ ```
11
+ $ npm install has-flag
12
+ ```
13
+
14
+
15
+ ## Usage
16
+
17
+ ```js
18
+ // foo.js
19
+ const hasFlag = require('has-flag');
20
+
21
+ hasFlag('unicorn');
22
+ //=> true
23
+
24
+ hasFlag('--unicorn');
25
+ //=> true
26
+
27
+ hasFlag('f');
28
+ //=> true
29
+
30
+ hasFlag('-f');
31
+ //=> true
32
+
33
+ hasFlag('foo=bar');
34
+ //=> true
35
+
36
+ hasFlag('foo');
37
+ //=> false
38
+
39
+ hasFlag('rainbow');
40
+ //=> false
41
+ ```
42
+
43
+ ```
44
+ $ node foo.js -f --unicorn --foo=bar -- --rainbow
45
+ ```
46
+
47
+
48
+ ## API
49
+
50
+ ### hasFlag(flag, [argv])
51
+
52
+ Returns a boolean for whether the flag exists.
53
+
54
+ #### flag
55
+
56
+ Type: `string`
57
+
58
+ CLI flag to look for. The `--` prefix is optional.
59
+
60
+ #### argv
61
+
62
+ Type: `string[]`<br>
63
+ Default: `process.argv`
64
+
65
+ CLI arguments.
66
+
67
+
68
+ ## License
69
+
70
+ MIT © [Sindre Sorhus](https://sindresorhus.com)
@@ -0,0 +1,15 @@
1
+ The ISC License
2
+
3
+ Copyright (c) Isaac Z. Schlueter
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15
+ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -0,0 +1,37 @@
1
+ # inflight
2
+
3
+ Add callbacks to requests in flight to avoid async duplication
4
+
5
+ ## USAGE
6
+
7
+ ```javascript
8
+ var inflight = require('inflight')
9
+
10
+ // some request that does some stuff
11
+ function req(key, callback) {
12
+ // key is any random string. like a url or filename or whatever.
13
+ //
14
+ // will return either a falsey value, indicating that the
15
+ // request for this key is already in flight, or a new callback
16
+ // which when called will call all callbacks passed to inflightk
17
+ // with the same key
18
+ callback = inflight(key, callback)
19
+
20
+ // If we got a falsey value back, then there's already a req going
21
+ if (!callback) return
22
+
23
+ // this is where you'd fetch the url or whatever
24
+ // callback is also once()-ified, so it can safely be assigned
25
+ // to multiple events etc. First call wins.
26
+ setTimeout(function() {
27
+ callback(null, key)
28
+ }, 100)
29
+ }
30
+
31
+ // only assigns a single setTimeout
32
+ // when it dings, all cbs get called
33
+ req('foo', cb1)
34
+ req('foo', cb2)
35
+ req('foo', cb3)
36
+ req('foo', cb4)
37
+ ```
@@ -0,0 +1,54 @@
1
+ var wrappy = require('wrappy')
2
+ var reqs = Object.create(null)
3
+ var once = require('once')
4
+
5
+ module.exports = wrappy(inflight)
6
+
7
+ function inflight (key, cb) {
8
+ if (reqs[key]) {
9
+ reqs[key].push(cb)
10
+ return null
11
+ } else {
12
+ reqs[key] = [cb]
13
+ return makeres(key)
14
+ }
15
+ }
16
+
17
+ function makeres (key) {
18
+ return once(function RES () {
19
+ var cbs = reqs[key]
20
+ var len = cbs.length
21
+ var args = slice(arguments)
22
+
23
+ // XXX It's somewhat ambiguous whether a new callback added in this
24
+ // pass should be queued for later execution if something in the
25
+ // list of callbacks throws, or if it should just be discarded.
26
+ // However, it's such an edge case that it hardly matters, and either
27
+ // choice is likely as surprising as the other.
28
+ // As it happens, we do go ahead and schedule it for later execution.
29
+ try {
30
+ for (var i = 0; i < len; i++) {
31
+ cbs[i].apply(null, args)
32
+ }
33
+ } finally {
34
+ if (cbs.length > len) {
35
+ // added more in the interim.
36
+ // de-zalgo, just in case, but don't call again.
37
+ cbs.splice(0, len)
38
+ process.nextTick(function () {
39
+ RES.apply(null, args)
40
+ })
41
+ } else {
42
+ delete reqs[key]
43
+ }
44
+ }
45
+ })
46
+ }
47
+
48
+ function slice (args) {
49
+ var length = args.length
50
+ var array = []
51
+
52
+ for (var i = 0; i < length; i++) array[i] = args[i]
53
+ return array
54
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "inflight",
3
+ "version": "1.0.6",
4
+ "description": "Add callbacks to requests in flight to avoid async duplication",
5
+ "main": "inflight.js",
6
+ "files": [
7
+ "inflight.js"
8
+ ],
9
+ "dependencies": {
10
+ "once": "^1.3.0",
11
+ "wrappy": "1"
12
+ },
13
+ "devDependencies": {
14
+ "tap": "^7.1.2"
15
+ },
16
+ "scripts": {
17
+ "test": "tap test.js --100"
18
+ },
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://github.com/npm/inflight.git"
22
+ },
23
+ "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
24
+ "bugs": {
25
+ "url": "https://github.com/isaacs/inflight/issues"
26
+ },
27
+ "homepage": "https://github.com/isaacs/inflight",
28
+ "license": "ISC"
29
+
30
+ ,"_resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz"
31
+ ,"_integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk="
32
+ ,"_from": "inflight@1.0.6"
33
+ }
@@ -0,0 +1,16 @@
1
+ The ISC License
2
+
3
+ Copyright (c) Isaac Z. Schlueter
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
11
+ FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
+ PERFORMANCE OF THIS SOFTWARE.
16
+
@@ -0,0 +1,42 @@
1
+ Browser-friendly inheritance fully compatible with standard node.js
2
+ [inherits](http://nodejs.org/api/util.html#util_util_inherits_constructor_superconstructor).
3
+
4
+ This package exports standard `inherits` from node.js `util` module in
5
+ node environment, but also provides alternative browser-friendly
6
+ implementation through [browser
7
+ field](https://gist.github.com/shtylman/4339901). Alternative
8
+ implementation is a literal copy of standard one located in standalone
9
+ module to avoid requiring of `util`. It also has a shim for old
10
+ browsers with no `Object.create` support.
11
+
12
+ While keeping you sure you are using standard `inherits`
13
+ implementation in node.js environment, it allows bundlers such as
14
+ [browserify](https://github.com/substack/node-browserify) to not
15
+ include full `util` package to your client code if all you need is
16
+ just `inherits` function. It worth, because browser shim for `util`
17
+ package is large and `inherits` is often the single function you need
18
+ from it.
19
+
20
+ It's recommended to use this package instead of
21
+ `require('util').inherits` for any code that has chances to be used
22
+ not only in node.js but in browser too.
23
+
24
+ ## usage
25
+
26
+ ```js
27
+ var inherits = require('inherits');
28
+ // then use exactly as the standard one
29
+ ```
30
+
31
+ ## note on version ~1.0
32
+
33
+ Version ~1.0 had completely different motivation and is not compatible
34
+ neither with 2.0 nor with standard node.js `inherits`.
35
+
36
+ If you are using version ~1.0 and planning to switch to ~2.0, be
37
+ careful:
38
+
39
+ * new version uses `super_` instead of `super` for referencing
40
+ superclass
41
+ * new version overwrites current prototype while old one preserves any
42
+ existing fields on it
@@ -0,0 +1,9 @@
1
+ try {
2
+ var util = require('util');
3
+ /* istanbul ignore next */
4
+ if (typeof util.inherits !== 'function') throw '';
5
+ module.exports = util.inherits;
6
+ } catch (e) {
7
+ /* istanbul ignore next */
8
+ module.exports = require('./inherits_browser.js');
9
+ }