epuber-stylus-source 0.54.8 → 0.56.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (465) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +3 -1
  3. data/Rakefile +1 -1
  4. data/VERSION +1 -1
  5. data/vendor/{History.md → Changelog.md} +50 -0
  6. data/vendor/Readme.md +37 -23
  7. data/vendor/bin/stylus +1 -2
  8. data/vendor/lib/convert/css.js +1 -1
  9. data/vendor/lib/functions/acos.js +20 -0
  10. data/vendor/lib/functions/asin.js +21 -0
  11. data/vendor/lib/functions/atan.js +21 -0
  12. data/vendor/lib/functions/convert-angle.js +19 -0
  13. data/vendor/lib/functions/index.js +3 -0
  14. data/vendor/lib/functions/url.js +5 -5
  15. data/vendor/lib/lexer.js +1 -1
  16. data/vendor/lib/middleware.js +1 -2
  17. data/vendor/lib/visitor/compiler.js +2 -2
  18. data/vendor/lib/visitor/deps-resolver.js +3 -0
  19. data/vendor/node_modules/{cliui/node_modules/ansi-regex → ansi-regex}/index.d.ts +0 -0
  20. data/vendor/node_modules/ansi-regex/index.js +4 -4
  21. data/vendor/node_modules/ansi-regex/package.json +53 -51
  22. data/vendor/node_modules/ansi-regex/readme.md +35 -3
  23. data/vendor/node_modules/assertion-error/History.md +24 -0
  24. data/vendor/node_modules/{mkdirp/LICENSE → assertion-error/README.md} +22 -2
  25. data/vendor/node_modules/assertion-error/index.d.ts +11 -0
  26. data/vendor/node_modules/assertion-error/index.js +116 -0
  27. data/vendor/node_modules/assertion-error/package.json +29 -0
  28. data/vendor/node_modules/camelcase/index.d.ts +5 -3
  29. data/vendor/node_modules/camelcase/index.js +40 -18
  30. data/vendor/node_modules/camelcase/package.json +1 -1
  31. data/vendor/node_modules/camelcase/readme.md +21 -5
  32. data/vendor/node_modules/chai/CODEOWNERS +1 -0
  33. data/vendor/node_modules/chai/CODE_OF_CONDUCT.md +58 -0
  34. data/vendor/node_modules/chai/CONTRIBUTING.md +218 -0
  35. data/vendor/node_modules/chai/History.md +1059 -0
  36. data/vendor/node_modules/{should-type-adaptors → chai}/LICENSE +1 -1
  37. data/vendor/node_modules/chai/README.md +212 -0
  38. data/vendor/node_modules/chai/ReleaseNotes.md +737 -0
  39. data/vendor/node_modules/chai/bower.json +26 -0
  40. data/vendor/node_modules/chai/chai.js +11464 -0
  41. data/vendor/node_modules/chai/index.js +1 -0
  42. data/vendor/node_modules/chai/index.mjs +14 -0
  43. data/vendor/node_modules/chai/karma.conf.js +34 -0
  44. data/vendor/node_modules/chai/karma.sauce.js +41 -0
  45. data/vendor/node_modules/chai/lib/chai/assertion.js +175 -0
  46. data/vendor/node_modules/chai/lib/chai/config.js +94 -0
  47. data/vendor/node_modules/chai/lib/chai/core/assertions.js +3853 -0
  48. data/vendor/node_modules/chai/lib/chai/interface/assert.js +3113 -0
  49. data/vendor/node_modules/chai/lib/chai/interface/expect.js +47 -0
  50. data/vendor/node_modules/chai/lib/chai/interface/should.js +219 -0
  51. data/vendor/node_modules/chai/lib/chai/utils/addChainableMethod.js +152 -0
  52. data/vendor/node_modules/chai/lib/chai/utils/addLengthGuard.js +60 -0
  53. data/vendor/node_modules/chai/lib/chai/utils/addMethod.js +68 -0
  54. data/vendor/node_modules/chai/lib/chai/utils/addProperty.js +72 -0
  55. data/vendor/node_modules/chai/lib/chai/utils/compareByInspect.js +31 -0
  56. data/vendor/node_modules/chai/lib/chai/utils/expectTypes.js +51 -0
  57. data/vendor/node_modules/chai/lib/chai/utils/flag.js +33 -0
  58. data/vendor/node_modules/chai/lib/chai/utils/getActual.js +20 -0
  59. data/vendor/node_modules/chai/lib/chai/utils/getEnumerableProperties.js +26 -0
  60. data/vendor/node_modules/chai/lib/chai/utils/getMessage.js +50 -0
  61. data/vendor/node_modules/chai/lib/chai/utils/getOperator.js +55 -0
  62. data/vendor/node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js +29 -0
  63. data/vendor/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js +27 -0
  64. data/vendor/node_modules/chai/lib/chai/utils/getProperties.js +36 -0
  65. data/vendor/node_modules/chai/lib/chai/utils/index.js +178 -0
  66. data/vendor/node_modules/chai/lib/chai/utils/inspect.js +33 -0
  67. data/vendor/node_modules/chai/lib/chai/utils/isNaN.js +26 -0
  68. data/vendor/node_modules/chai/lib/chai/utils/isProxyEnabled.js +24 -0
  69. data/vendor/node_modules/chai/lib/chai/utils/objDisplay.js +50 -0
  70. data/vendor/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js +69 -0
  71. data/vendor/node_modules/chai/lib/chai/utils/overwriteMethod.js +92 -0
  72. data/vendor/node_modules/chai/lib/chai/utils/overwriteProperty.js +92 -0
  73. data/vendor/node_modules/chai/lib/chai/utils/proxify.js +147 -0
  74. data/vendor/node_modules/chai/lib/chai/utils/test.js +28 -0
  75. data/vendor/node_modules/chai/lib/chai/utils/transferFlags.js +45 -0
  76. data/vendor/node_modules/chai/lib/chai.js +92 -0
  77. data/vendor/node_modules/chai/package.json +63 -0
  78. data/vendor/node_modules/chai/register-assert.js +1 -0
  79. data/vendor/node_modules/chai/register-expect.js +1 -0
  80. data/vendor/node_modules/chai/register-should.js +1 -0
  81. data/vendor/node_modules/chai/sauce.browsers.js +106 -0
  82. data/vendor/node_modules/chalk/package.json +1 -1
  83. data/vendor/node_modules/chalk/readme.md +7 -1
  84. data/vendor/node_modules/{source-map-url → check-error}/LICENSE +1 -3
  85. data/vendor/node_modules/check-error/README.md +207 -0
  86. data/vendor/node_modules/check-error/check-error.js +176 -0
  87. data/vendor/node_modules/check-error/index.js +172 -0
  88. data/vendor/node_modules/check-error/package.json +85 -0
  89. data/vendor/node_modules/chokidar/README.md +5 -4
  90. data/vendor/node_modules/chokidar/index.js +7 -1
  91. data/vendor/node_modules/chokidar/lib/constants.js +2 -0
  92. data/vendor/node_modules/chokidar/lib/fsevents-handler.js +2 -1
  93. data/vendor/node_modules/chokidar/lib/nodefs-handler.js +9 -1
  94. data/vendor/node_modules/chokidar/package.json +15 -8
  95. data/vendor/node_modules/chokidar/types/index.d.ts +4 -3
  96. data/vendor/node_modules/css/lib/stringify/source-map-support.js +10 -3
  97. data/vendor/node_modules/css/package.json +8 -9
  98. data/vendor/node_modules/debug/LICENSE +10 -9
  99. data/vendor/node_modules/debug/README.md +116 -3
  100. data/vendor/node_modules/debug/package.json +35 -19
  101. data/vendor/node_modules/debug/src/browser.js +194 -120
  102. data/vendor/node_modules/debug/src/common.js +274 -0
  103. data/vendor/node_modules/debug/src/index.js +4 -4
  104. data/vendor/node_modules/debug/src/node.js +174 -97
  105. data/vendor/node_modules/{resolve-url → deep-eql}/LICENSE +1 -3
  106. data/vendor/node_modules/deep-eql/README.md +116 -0
  107. data/vendor/node_modules/deep-eql/deep-eql.js +833 -0
  108. data/vendor/node_modules/deep-eql/index.js +455 -0
  109. data/vendor/node_modules/deep-eql/package.json +90 -0
  110. data/vendor/node_modules/{urix → get-func-name}/LICENSE +1 -3
  111. data/vendor/node_modules/get-func-name/README.md +123 -0
  112. data/vendor/node_modules/get-func-name/get-func-name.js +48 -0
  113. data/vendor/node_modules/get-func-name/index.js +44 -0
  114. data/vendor/node_modules/get-func-name/package.json +85 -0
  115. data/vendor/node_modules/glob/README.md +3 -0
  116. data/vendor/node_modules/glob/common.js +2 -0
  117. data/vendor/node_modules/glob/glob.js +4 -5
  118. data/vendor/node_modules/glob/package.json +2 -1
  119. data/vendor/node_modules/glob/sync.js +4 -5
  120. data/vendor/node_modules/{cliui/node_modules/is-fullwidth-code-point → is-fullwidth-code-point}/index.d.ts +0 -0
  121. data/vendor/node_modules/is-fullwidth-code-point/index.js +25 -21
  122. data/vendor/node_modules/is-fullwidth-code-point/license +4 -16
  123. data/vendor/node_modules/is-fullwidth-code-point/package.json +40 -43
  124. data/vendor/node_modules/is-fullwidth-code-point/readme.md +6 -6
  125. data/vendor/node_modules/is-glob/README.md +1 -1
  126. data/vendor/node_modules/is-glob/index.js +126 -24
  127. data/vendor/node_modules/is-glob/package.json +2 -2
  128. data/vendor/node_modules/is-unicode-supported/index.d.ts +14 -0
  129. data/vendor/node_modules/is-unicode-supported/index.js +13 -0
  130. data/vendor/node_modules/{cliui/node_modules/string-width → is-unicode-supported}/license +1 -1
  131. data/vendor/node_modules/is-unicode-supported/package.json +41 -0
  132. data/vendor/node_modules/is-unicode-supported/readme.md +35 -0
  133. data/vendor/node_modules/js-yaml/CHANGELOG.md +13 -0
  134. data/vendor/node_modules/js-yaml/README.md +1 -1
  135. data/vendor/node_modules/js-yaml/dist/js-yaml.js +90 -70
  136. data/vendor/node_modules/js-yaml/dist/js-yaml.min.js +2 -2
  137. data/vendor/node_modules/js-yaml/dist/js-yaml.mjs +84 -65
  138. data/vendor/node_modules/js-yaml/index.js +17 -0
  139. data/vendor/node_modules/js-yaml/lib/schema.js +9 -9
  140. data/vendor/node_modules/js-yaml/lib/type.js +1 -0
  141. data/vendor/node_modules/js-yaml/package.json +1 -1
  142. data/vendor/node_modules/jscoverage/node_modules/ms/index.js +152 -0
  143. data/vendor/node_modules/{should-format/LICENSE → jscoverage/node_modules/ms/license.md} +1 -2
  144. data/vendor/node_modules/jscoverage/node_modules/ms/package.json +37 -0
  145. data/vendor/node_modules/jscoverage/node_modules/ms/readme.md +51 -0
  146. data/vendor/node_modules/log-symbols/index.d.ts +2 -2
  147. data/vendor/node_modules/log-symbols/index.js +3 -4
  148. data/vendor/node_modules/log-symbols/package.json +7 -5
  149. data/vendor/node_modules/log-symbols/readme.md +3 -3
  150. data/vendor/node_modules/loupe/CHANGELOG.md +5 -0
  151. data/vendor/node_modules/{cliui/node_modules/strip-ansi/license → loupe/LICENSE} +2 -2
  152. data/vendor/node_modules/loupe/README.md +63 -0
  153. data/vendor/node_modules/loupe/index.js +195 -0
  154. data/vendor/node_modules/loupe/lib/arguments.js +7 -0
  155. data/vendor/node_modules/loupe/lib/array.js +20 -0
  156. data/vendor/node_modules/loupe/lib/bigint.js +7 -0
  157. data/vendor/node_modules/loupe/lib/class.js +18 -0
  158. data/vendor/node_modules/loupe/lib/date.js +8 -0
  159. data/vendor/node_modules/loupe/lib/error.js +34 -0
  160. data/vendor/node_modules/loupe/lib/function.js +10 -0
  161. data/vendor/node_modules/loupe/lib/helpers.js +177 -0
  162. data/vendor/node_modules/loupe/lib/html.js +40 -0
  163. data/vendor/node_modules/loupe/lib/map.js +27 -0
  164. data/vendor/node_modules/loupe/lib/number.js +18 -0
  165. data/vendor/node_modules/loupe/lib/object.js +31 -0
  166. data/vendor/node_modules/loupe/lib/promise.js +16 -0
  167. data/vendor/node_modules/loupe/lib/regexp.js +8 -0
  168. data/vendor/node_modules/loupe/lib/set.js +16 -0
  169. data/vendor/node_modules/loupe/lib/string.js +29 -0
  170. data/vendor/node_modules/loupe/lib/symbol.js +6 -0
  171. data/vendor/node_modules/loupe/lib/typedarray.js +45 -0
  172. data/vendor/node_modules/loupe/loupe.js +852 -0
  173. data/vendor/node_modules/loupe/package.json +141 -0
  174. data/vendor/node_modules/minimatch/README.md +22 -1
  175. data/vendor/node_modules/minimatch/minimatch.js +93 -69
  176. data/vendor/node_modules/minimatch/package.json +6 -3
  177. data/vendor/node_modules/mocha/LICENSE +1 -1
  178. data/vendor/node_modules/mocha/README.md +1 -1
  179. data/vendor/node_modules/mocha/bin/mocha +18 -27
  180. data/vendor/node_modules/mocha/browser-entry.js +27 -20
  181. data/vendor/node_modules/mocha/lib/browser/growl.js +5 -5
  182. data/vendor/node_modules/mocha/lib/browser/parse-query.js +1 -1
  183. data/vendor/node_modules/mocha/lib/browser/progress.js +6 -6
  184. data/vendor/node_modules/mocha/lib/cli/cli.js +3 -2
  185. data/vendor/node_modules/mocha/lib/cli/config.js +7 -12
  186. data/vendor/node_modules/mocha/lib/cli/lookup-files.js +2 -8
  187. data/vendor/node_modules/mocha/lib/cli/node-flags.js +2 -5
  188. data/vendor/node_modules/mocha/lib/cli/one-and-dones.js +1 -2
  189. data/vendor/node_modules/mocha/lib/cli/run-helpers.js +15 -15
  190. data/vendor/node_modules/mocha/lib/cli/run-option-metadata.js +4 -0
  191. data/vendor/node_modules/mocha/lib/cli/run.js +13 -1
  192. data/vendor/node_modules/mocha/lib/cli/watch-run.js +3 -6
  193. data/vendor/node_modules/mocha/lib/context.js +5 -5
  194. data/vendor/node_modules/mocha/lib/errors.js +3 -3
  195. data/vendor/node_modules/mocha/lib/hook.js +9 -3
  196. data/vendor/node_modules/mocha/lib/interfaces/bdd.js +23 -20
  197. data/vendor/node_modules/mocha/lib/interfaces/common.js +7 -7
  198. data/vendor/node_modules/mocha/lib/interfaces/exports.js +1 -1
  199. data/vendor/node_modules/mocha/lib/interfaces/qunit.js +7 -7
  200. data/vendor/node_modules/mocha/lib/interfaces/tdd.js +9 -9
  201. data/vendor/node_modules/mocha/lib/mocha.js +105 -99
  202. data/vendor/node_modules/mocha/lib/nodejs/buffered-worker-pool.js +17 -1
  203. data/vendor/node_modules/mocha/lib/nodejs/esm-utils.js +124 -0
  204. data/vendor/node_modules/mocha/lib/reporters/base.js +49 -35
  205. data/vendor/node_modules/mocha/lib/reporters/doc.js +4 -4
  206. data/vendor/node_modules/mocha/lib/reporters/dot.js +5 -5
  207. data/vendor/node_modules/mocha/lib/reporters/html.js +12 -12
  208. data/vendor/node_modules/mocha/lib/reporters/json-stream.js +4 -4
  209. data/vendor/node_modules/mocha/lib/reporters/json.js +35 -10
  210. data/vendor/node_modules/mocha/lib/reporters/landing.js +5 -5
  211. data/vendor/node_modules/mocha/lib/reporters/list.js +5 -5
  212. data/vendor/node_modules/mocha/lib/reporters/markdown.js +5 -5
  213. data/vendor/node_modules/mocha/lib/reporters/min.js +1 -1
  214. data/vendor/node_modules/mocha/lib/reporters/nyan.js +16 -16
  215. data/vendor/node_modules/mocha/lib/reporters/progress.js +3 -3
  216. data/vendor/node_modules/mocha/lib/reporters/spec.js +6 -6
  217. data/vendor/node_modules/mocha/lib/reporters/tap.js +17 -17
  218. data/vendor/node_modules/mocha/lib/reporters/xunit.js +9 -9
  219. data/vendor/node_modules/mocha/lib/runnable.js +21 -21
  220. data/vendor/node_modules/mocha/lib/runner.js +63 -61
  221. data/vendor/node_modules/mocha/lib/stats-collector.js +7 -7
  222. data/vendor/node_modules/mocha/lib/suite.js +46 -75
  223. data/vendor/node_modules/mocha/lib/test.js +5 -5
  224. data/vendor/node_modules/mocha/lib/utils.js +19 -114
  225. data/vendor/node_modules/mocha/mocha-es2018.js +19794 -0
  226. data/vendor/node_modules/mocha/mocha.js +8059 -6920
  227. data/vendor/node_modules/mocha/mocha.js.map +1 -1
  228. data/vendor/node_modules/mocha/node_modules/debug/LICENSE +10 -9
  229. data/vendor/node_modules/mocha/node_modules/debug/README.md +24 -1
  230. data/vendor/node_modules/mocha/node_modules/debug/package.json +6 -6
  231. data/vendor/node_modules/mocha/node_modules/debug/src/common.js +15 -2
  232. data/vendor/node_modules/{semver → mocha/node_modules/minimatch}/LICENSE +1 -1
  233. data/vendor/node_modules/mocha/node_modules/minimatch/README.md +230 -0
  234. data/vendor/node_modules/mocha/node_modules/minimatch/minimatch.js +908 -0
  235. data/vendor/node_modules/mocha/node_modules/minimatch/package.json +31 -0
  236. data/vendor/node_modules/mocha/package.json +66 -65
  237. data/vendor/node_modules/ms/index.js +29 -19
  238. data/vendor/node_modules/ms/package.json +6 -6
  239. data/vendor/node_modules/ms/readme.md +18 -9
  240. data/vendor/node_modules/nanoid/README.md +9 -473
  241. data/vendor/node_modules/nanoid/async/index.browser.cjs +34 -0
  242. data/vendor/node_modules/nanoid/async/index.browser.js +7 -43
  243. data/vendor/node_modules/nanoid/async/index.cjs +5 -41
  244. data/vendor/node_modules/nanoid/async/index.d.ts +7 -7
  245. data/vendor/node_modules/nanoid/async/index.js +5 -41
  246. data/vendor/node_modules/nanoid/async/index.native.js +5 -36
  247. data/vendor/node_modules/nanoid/async/package.json +2 -1
  248. data/vendor/node_modules/nanoid/bin/nanoid.cjs +52 -2
  249. data/vendor/node_modules/nanoid/index.browser.cjs +37 -0
  250. data/vendor/node_modules/nanoid/index.browser.js +5 -73
  251. data/vendor/node_modules/nanoid/index.cjs +14 -49
  252. data/vendor/node_modules/nanoid/index.d.ts +9 -6
  253. data/vendor/node_modules/nanoid/index.js +14 -49
  254. data/vendor/node_modules/nanoid/non-secure/index.cjs +3 -12
  255. data/vendor/node_modules/nanoid/non-secure/index.d.ts +8 -5
  256. data/vendor/node_modules/nanoid/non-secure/index.js +3 -12
  257. data/vendor/node_modules/nanoid/package.json +14 -10
  258. data/vendor/node_modules/nanoid/url-alphabet/index.cjs +1 -4
  259. data/vendor/node_modules/nanoid/url-alphabet/index.js +1 -4
  260. data/vendor/node_modules/pathval/CHANGELOG.md +18 -0
  261. data/vendor/node_modules/pathval/LICENSE +16 -0
  262. data/vendor/node_modules/pathval/README.md +147 -0
  263. data/vendor/node_modules/pathval/index.js +301 -0
  264. data/vendor/node_modules/pathval/package.json +80 -0
  265. data/vendor/node_modules/pathval/pathval.js +1 -0
  266. data/vendor/node_modules/picomatch/CHANGELOG.md +16 -0
  267. data/vendor/node_modules/picomatch/README.md +34 -17
  268. data/vendor/node_modules/picomatch/lib/parse.js +19 -6
  269. data/vendor/node_modules/picomatch/lib/picomatch.js +34 -31
  270. data/vendor/node_modules/picomatch/lib/scan.js +8 -2
  271. data/vendor/node_modules/picomatch/package.json +1 -1
  272. data/vendor/node_modules/readdirp/index.js +11 -6
  273. data/vendor/node_modules/readdirp/package.json +1 -1
  274. data/vendor/node_modules/serialize-javascript/README.md +2 -4
  275. data/vendor/node_modules/serialize-javascript/index.js +11 -2
  276. data/vendor/node_modules/serialize-javascript/package.json +2 -2
  277. data/vendor/node_modules/source-map-resolve/LICENSE +1 -1
  278. data/vendor/node_modules/source-map-resolve/changelog.md +6 -0
  279. data/vendor/node_modules/source-map-resolve/{lib/source-map-resolve-node.js → index.js} +48 -13
  280. data/vendor/node_modules/source-map-resolve/package.json +7 -14
  281. data/vendor/node_modules/source-map-resolve/readme.md +1 -39
  282. data/vendor/node_modules/{cliui/node_modules/string-width → string-width}/index.d.ts +0 -0
  283. data/vendor/node_modules/string-width/index.js +16 -5
  284. data/vendor/node_modules/string-width/package.json +11 -10
  285. data/vendor/node_modules/string-width/readme.md +15 -7
  286. data/vendor/node_modules/{cliui/node_modules/strip-ansi → strip-ansi}/index.d.ts +0 -0
  287. data/vendor/node_modules/strip-ansi/index.js +1 -1
  288. data/vendor/node_modules/strip-ansi/package.json +52 -50
  289. data/vendor/node_modules/strip-ansi/readme.md +12 -5
  290. data/vendor/node_modules/{fsevents → type-detect}/LICENSE +1 -4
  291. data/vendor/node_modules/type-detect/README.md +228 -0
  292. data/vendor/node_modules/type-detect/index.js +378 -0
  293. data/vendor/node_modules/type-detect/package.json +1 -0
  294. data/vendor/node_modules/type-detect/type-detect.js +388 -0
  295. data/vendor/node_modules/workerpool/HISTORY.md +42 -0
  296. data/vendor/node_modules/workerpool/README.md +11 -1
  297. data/vendor/node_modules/workerpool/dist/worker.js +9 -42
  298. data/vendor/node_modules/workerpool/dist/worker.js.map +1 -1
  299. data/vendor/node_modules/workerpool/dist/workerpool.js +117 -74
  300. data/vendor/node_modules/workerpool/dist/workerpool.js.map +1 -1
  301. data/vendor/node_modules/workerpool/dist/workerpool.min.js +1 -1
  302. data/vendor/node_modules/workerpool/dist/workerpool.min.js.LICENSE.txt +3 -3
  303. data/vendor/node_modules/workerpool/dist/workerpool.min.js.map +1 -1
  304. data/vendor/node_modules/workerpool/package.json +11 -11
  305. data/vendor/node_modules/workerpool/src/Pool.js +29 -4
  306. data/vendor/node_modules/workerpool/src/WorkerHandler.js +17 -4
  307. data/vendor/node_modules/workerpool/src/generated/embeddedWorker.js +1 -1
  308. data/vendor/node_modules/workerpool/src/header.js +1 -1
  309. data/vendor/node_modules/workerpool/src/types.js +2 -1
  310. data/vendor/package-lock.json +401 -664
  311. data/vendor/package.json +7 -9
  312. metadata +139 -175
  313. data/vendor/node_modules/cliui/node_modules/ansi-regex/index.js +0 -10
  314. data/vendor/node_modules/cliui/node_modules/ansi-regex/license +0 -9
  315. data/vendor/node_modules/cliui/node_modules/ansi-regex/package.json +0 -55
  316. data/vendor/node_modules/cliui/node_modules/ansi-regex/readme.md +0 -78
  317. data/vendor/node_modules/cliui/node_modules/is-fullwidth-code-point/index.js +0 -50
  318. data/vendor/node_modules/cliui/node_modules/is-fullwidth-code-point/license +0 -9
  319. data/vendor/node_modules/cliui/node_modules/is-fullwidth-code-point/package.json +0 -42
  320. data/vendor/node_modules/cliui/node_modules/is-fullwidth-code-point/readme.md +0 -39
  321. data/vendor/node_modules/cliui/node_modules/string-width/index.js +0 -47
  322. data/vendor/node_modules/cliui/node_modules/string-width/package.json +0 -56
  323. data/vendor/node_modules/cliui/node_modules/string-width/readme.md +0 -50
  324. data/vendor/node_modules/cliui/node_modules/strip-ansi/index.js +0 -4
  325. data/vendor/node_modules/cliui/node_modules/strip-ansi/package.json +0 -54
  326. data/vendor/node_modules/cliui/node_modules/strip-ansi/readme.md +0 -46
  327. data/vendor/node_modules/css-parse/Readme.md +0 -15
  328. data/vendor/node_modules/css-parse/index.js +0 -1
  329. data/vendor/node_modules/css-parse/package.json +0 -23
  330. data/vendor/node_modules/debug/CHANGELOG.md +0 -395
  331. data/vendor/node_modules/debug/Makefile +0 -58
  332. data/vendor/node_modules/debug/karma.conf.js +0 -70
  333. data/vendor/node_modules/debug/node.js +0 -1
  334. data/vendor/node_modules/debug/src/debug.js +0 -225
  335. data/vendor/node_modules/fsevents/README.md +0 -83
  336. data/vendor/node_modules/fsevents/fsevents.d.ts +0 -46
  337. data/vendor/node_modules/fsevents/fsevents.js +0 -82
  338. data/vendor/node_modules/fsevents/fsevents.node +0 -0
  339. data/vendor/node_modules/fsevents/package.json +0 -62
  340. data/vendor/node_modules/glob/changelog.md +0 -67
  341. data/vendor/node_modules/mkdirp/CHANGELOG.md +0 -15
  342. data/vendor/node_modules/mkdirp/bin/cmd.js +0 -68
  343. data/vendor/node_modules/mkdirp/index.js +0 -31
  344. data/vendor/node_modules/mkdirp/lib/find-made.js +0 -29
  345. data/vendor/node_modules/mkdirp/lib/mkdirp-manual.js +0 -64
  346. data/vendor/node_modules/mkdirp/lib/mkdirp-native.js +0 -39
  347. data/vendor/node_modules/mkdirp/lib/opts-arg.js +0 -23
  348. data/vendor/node_modules/mkdirp/lib/path-arg.js +0 -29
  349. data/vendor/node_modules/mkdirp/lib/use-native.js +0 -10
  350. data/vendor/node_modules/mkdirp/package.json +0 -44
  351. data/vendor/node_modules/mkdirp/readme.markdown +0 -266
  352. data/vendor/node_modules/mocha/CHANGELOG.md +0 -931
  353. data/vendor/node_modules/mocha/lib/esm-utils.js +0 -58
  354. data/vendor/node_modules/mocha/node_modules/glob/LICENSE +0 -21
  355. data/vendor/node_modules/mocha/node_modules/glob/README.md +0 -375
  356. data/vendor/node_modules/mocha/node_modules/glob/changelog.md +0 -67
  357. data/vendor/node_modules/mocha/node_modules/glob/common.js +0 -240
  358. data/vendor/node_modules/mocha/node_modules/glob/glob.js +0 -790
  359. data/vendor/node_modules/mocha/node_modules/glob/package.json +0 -46
  360. data/vendor/node_modules/mocha/node_modules/glob/sync.js +0 -486
  361. data/vendor/node_modules/nanoid/CHANGELOG.md +0 -241
  362. data/vendor/node_modules/nanoid/index.dev.js +0 -105
  363. data/vendor/node_modules/nanoid/index.prod.js +0 -105
  364. data/vendor/node_modules/resolve-url/bower.json +0 -15
  365. data/vendor/node_modules/resolve-url/changelog.md +0 -15
  366. data/vendor/node_modules/resolve-url/component.json +0 -15
  367. data/vendor/node_modules/resolve-url/package.json +0 -34
  368. data/vendor/node_modules/resolve-url/readme.md +0 -83
  369. data/vendor/node_modules/resolve-url/resolve-url.js +0 -47
  370. data/vendor/node_modules/resolve-url/test/resolve-url.js +0 -70
  371. data/vendor/node_modules/semver/CHANGELOG.md +0 -70
  372. data/vendor/node_modules/semver/README.md +0 -443
  373. data/vendor/node_modules/semver/bin/semver.js +0 -174
  374. data/vendor/node_modules/semver/package.json +0 -28
  375. data/vendor/node_modules/semver/range.bnf +0 -16
  376. data/vendor/node_modules/semver/semver.js +0 -1596
  377. data/vendor/node_modules/should/CONTRIBUTING.md +0 -14
  378. data/vendor/node_modules/should/History.md +0 -554
  379. data/vendor/node_modules/should/LICENSE +0 -20
  380. data/vendor/node_modules/should/Readme.md +0 -223
  381. data/vendor/node_modules/should/as-function.js +0 -2935
  382. data/vendor/node_modules/should/cjs/should.js +0 -2962
  383. data/vendor/node_modules/should/es6/should.js +0 -2958
  384. data/vendor/node_modules/should/package.json +0 -51
  385. data/vendor/node_modules/should/should.d.ts +0 -243
  386. data/vendor/node_modules/should/should.js +0 -4371
  387. data/vendor/node_modules/should-equal/LICENSE +0 -21
  388. data/vendor/node_modules/should-equal/README.md +0 -24
  389. data/vendor/node_modules/should-equal/cjs/should-equal.js +0 -333
  390. data/vendor/node_modules/should-equal/es6/should-equal.js +0 -329
  391. data/vendor/node_modules/should-equal/package.json +0 -38
  392. data/vendor/node_modules/should-format/README.md +0 -6
  393. data/vendor/node_modules/should-format/cjs/should-format.js +0 -532
  394. data/vendor/node_modules/should-format/es6/should-format.js +0 -528
  395. data/vendor/node_modules/should-format/package.json +0 -44
  396. data/vendor/node_modules/should-type/LICENSE +0 -22
  397. data/vendor/node_modules/should-type/README.md +0 -4
  398. data/vendor/node_modules/should-type/cjs/should-type.js +0 -263
  399. data/vendor/node_modules/should-type/es6/should-type.js +0 -261
  400. data/vendor/node_modules/should-type/package.json +0 -38
  401. data/vendor/node_modules/should-type-adaptors/README.md +0 -1
  402. data/vendor/node_modules/should-type-adaptors/cjs/should-type-adaptors.js +0 -288
  403. data/vendor/node_modules/should-type-adaptors/es6/should-type-adaptors.js +0 -272
  404. data/vendor/node_modules/should-type-adaptors/package.json +0 -43
  405. data/vendor/node_modules/should-util/LICENSE +0 -21
  406. data/vendor/node_modules/should-util/README.md +0 -2
  407. data/vendor/node_modules/should-util/cjs/should-util.js +0 -50
  408. data/vendor/node_modules/should-util/es6/should-util.js +0 -42
  409. data/vendor/node_modules/should-util/package.json +0 -40
  410. data/vendor/node_modules/source-map-resolve/lib/decode-uri-component.js +0 -8
  411. data/vendor/node_modules/source-map-resolve/lib/resolve-url.js +0 -9
  412. data/vendor/node_modules/source-map-resolve/source-map-resolve.js +0 -348
  413. data/vendor/node_modules/source-map-url/changelog.md +0 -57
  414. data/vendor/node_modules/source-map-url/package.json +0 -39
  415. data/vendor/node_modules/source-map-url/readme.md +0 -97
  416. data/vendor/node_modules/source-map-url/source-map-url.js +0 -57
  417. data/vendor/node_modules/urix/index.js +0 -17
  418. data/vendor/node_modules/urix/package.json +0 -25
  419. data/vendor/node_modules/urix/readme.md +0 -46
  420. data/vendor/node_modules/urix/test/index.js +0 -43
  421. data/vendor/node_modules/wide-align/LICENSE +0 -14
  422. data/vendor/node_modules/wide-align/README.md +0 -47
  423. data/vendor/node_modules/wide-align/align.js +0 -65
  424. data/vendor/node_modules/wide-align/package.json +0 -33
  425. data/vendor/node_modules/wrap-ansi/node_modules/ansi-regex/index.d.ts +0 -37
  426. data/vendor/node_modules/wrap-ansi/node_modules/ansi-regex/index.js +0 -10
  427. data/vendor/node_modules/wrap-ansi/node_modules/ansi-regex/license +0 -9
  428. data/vendor/node_modules/wrap-ansi/node_modules/ansi-regex/package.json +0 -55
  429. data/vendor/node_modules/wrap-ansi/node_modules/ansi-regex/readme.md +0 -78
  430. data/vendor/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
  431. data/vendor/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/index.js +0 -50
  432. data/vendor/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/license +0 -9
  433. data/vendor/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/package.json +0 -42
  434. data/vendor/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/readme.md +0 -39
  435. data/vendor/node_modules/wrap-ansi/node_modules/string-width/index.d.ts +0 -29
  436. data/vendor/node_modules/wrap-ansi/node_modules/string-width/index.js +0 -47
  437. data/vendor/node_modules/wrap-ansi/node_modules/string-width/license +0 -9
  438. data/vendor/node_modules/wrap-ansi/node_modules/string-width/package.json +0 -56
  439. data/vendor/node_modules/wrap-ansi/node_modules/string-width/readme.md +0 -50
  440. data/vendor/node_modules/wrap-ansi/node_modules/strip-ansi/index.d.ts +0 -17
  441. data/vendor/node_modules/wrap-ansi/node_modules/strip-ansi/index.js +0 -4
  442. data/vendor/node_modules/wrap-ansi/node_modules/strip-ansi/license +0 -9
  443. data/vendor/node_modules/wrap-ansi/node_modules/strip-ansi/package.json +0 -54
  444. data/vendor/node_modules/wrap-ansi/node_modules/strip-ansi/readme.md +0 -46
  445. data/vendor/node_modules/yargs/node_modules/ansi-regex/index.d.ts +0 -37
  446. data/vendor/node_modules/yargs/node_modules/ansi-regex/index.js +0 -10
  447. data/vendor/node_modules/yargs/node_modules/ansi-regex/license +0 -9
  448. data/vendor/node_modules/yargs/node_modules/ansi-regex/package.json +0 -55
  449. data/vendor/node_modules/yargs/node_modules/ansi-regex/readme.md +0 -78
  450. data/vendor/node_modules/yargs/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
  451. data/vendor/node_modules/yargs/node_modules/is-fullwidth-code-point/index.js +0 -50
  452. data/vendor/node_modules/yargs/node_modules/is-fullwidth-code-point/license +0 -9
  453. data/vendor/node_modules/yargs/node_modules/is-fullwidth-code-point/package.json +0 -42
  454. data/vendor/node_modules/yargs/node_modules/is-fullwidth-code-point/readme.md +0 -39
  455. data/vendor/node_modules/yargs/node_modules/string-width/index.d.ts +0 -29
  456. data/vendor/node_modules/yargs/node_modules/string-width/index.js +0 -47
  457. data/vendor/node_modules/yargs/node_modules/string-width/license +0 -9
  458. data/vendor/node_modules/yargs/node_modules/string-width/package.json +0 -56
  459. data/vendor/node_modules/yargs/node_modules/string-width/readme.md +0 -50
  460. data/vendor/node_modules/yargs/node_modules/strip-ansi/index.d.ts +0 -17
  461. data/vendor/node_modules/yargs/node_modules/strip-ansi/index.js +0 -4
  462. data/vendor/node_modules/yargs/node_modules/strip-ansi/license +0 -9
  463. data/vendor/node_modules/yargs/node_modules/strip-ansi/package.json +0 -54
  464. data/vendor/node_modules/yargs/node_modules/strip-ansi/readme.md +0 -46
  465. data/vendor/test.js +0 -31
@@ -0,0 +1,85 @@
1
+ {
2
+ "name": "check-error",
3
+ "description": "Error comparison and information related utility for node and the browser",
4
+ "keywords": [
5
+ "check-error",
6
+ "error",
7
+ "chai util"
8
+ ],
9
+ "license": "MIT",
10
+ "author": "Jake Luer <jake@alogicalparadox.com> (http://alogicalparadox.com)",
11
+ "contributors": [
12
+ "David Losert (https://github.com/davelosert)",
13
+ "Keith Cirkel (https://github.com/keithamus)",
14
+ "Miroslav Bajtoš (https://github.com/bajtos)",
15
+ "Lucas Fernandes da Costa (https://github.com/lucasfcosta)"
16
+ ],
17
+ "files": [
18
+ "index.js",
19
+ "check-error.js"
20
+ ],
21
+ "main": "./index.js",
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "git+ssh://git@github.com/chaijs/check-error.git"
25
+ },
26
+ "scripts": {
27
+ "build": "browserify --bare $npm_package_main --standalone checkError -o check-error.js",
28
+ "lint": "eslint --ignore-path .gitignore .",
29
+ "prepublish": "npm run build",
30
+ "semantic-release": "semantic-release pre && npm publish && semantic-release post",
31
+ "pretest": "npm run lint",
32
+ "test": "npm run test:node && npm run test:browser && npm run upload-coverage",
33
+ "test:browser": "karma start --singleRun=true",
34
+ "test:node": "istanbul cover _mocha",
35
+ "upload-coverage": "lcov-result-merger 'coverage/**/lcov.info' | coveralls; exit 0"
36
+ },
37
+ "config": {
38
+ "ghooks": {
39
+ "commit-msg": "validate-commit-msg"
40
+ }
41
+ },
42
+ "eslintConfig": {
43
+ "extends": [
44
+ "strict/es5"
45
+ ],
46
+ "env": {
47
+ "es6": true
48
+ },
49
+ "globals": {
50
+ "HTMLElement": false
51
+ },
52
+ "rules": {
53
+ "complexity": 0,
54
+ "max-statements": 0
55
+ }
56
+ },
57
+ "dependencies": {},
58
+ "devDependencies": {
59
+ "browserify": "^13.0.0",
60
+ "browserify-istanbul": "^1.0.0",
61
+ "coveralls": "2.11.9",
62
+ "eslint": "^2.4.0",
63
+ "eslint-config-strict": "^8.5.0",
64
+ "eslint-plugin-filenames": "^0.2.0",
65
+ "ghooks": "^1.0.1",
66
+ "istanbul": "^0.4.2",
67
+ "karma": "^0.13.22",
68
+ "karma-browserify": "^5.0.2",
69
+ "karma-coverage": "^0.5.5",
70
+ "karma-mocha": "^0.2.2",
71
+ "karma-phantomjs-launcher": "^1.0.0",
72
+ "karma-sauce-launcher": "^0.3.1",
73
+ "lcov-result-merger": "^1.0.2",
74
+ "mocha": "^2.4.5",
75
+ "phantomjs-prebuilt": "^2.1.5",
76
+ "semantic-release": "^4.3.5",
77
+ "simple-assert": "^1.0.0",
78
+ "travis-after-all": "^1.4.4",
79
+ "validate-commit-msg": "^2.3.1"
80
+ },
81
+ "engines": {
82
+ "node": "*"
83
+ },
84
+ "version": "1.0.2"
85
+ }
@@ -13,6 +13,7 @@ Node.js `fs.watch`:
13
13
  * Often reports events twice.
14
14
  * Emits most changes as `rename`.
15
15
  * Does not provide an easy way to recursively watch file trees.
16
+ * Does not support recursive watching on Linux.
16
17
 
17
18
  Node.js `fs.watchFile`:
18
19
 
@@ -46,7 +47,7 @@ On MacOS, chokidar by default uses a native extension exposing the Darwin
46
47
  implementations like `kqueue` available on most \*nix platforms. Chokidar still
47
48
  does have to do some work to normalize the events received that way as well.
48
49
 
49
- On other platforms, the `fs.watch`-based implementation is the default, which
50
+ On most other platforms, the `fs.watch`-based implementation is the default, which
50
51
  avoids polling and keeps CPU usage down. Be advised that chokidar will initiate
51
52
  watchers recursively for everything within scope of the paths that have been
52
53
  specified, so be judicious about not wasting system resources by watching much
@@ -254,8 +255,8 @@ Available events: `add`, `addDir`, `change`, `unlink`, `unlinkDir`, `ready`,
254
255
  Additionally `all` is available which gets emitted with the underlying event
255
256
  name and path for every event other than `ready`, `raw`, and `error`. `raw` is internal, use it carefully.
256
257
  * `.unwatch(path / paths)`: Stop watching files, directories, or glob patterns.
257
- Takes an array of strings or just one string. Use with `await` to ensure bugs don't happen.
258
- * `.close()`: **async** Removes all listeners from watched files. Asynchronous, returns Promise.
258
+ Takes an array of strings or just one string.
259
+ * `.close()`: **async** Removes all listeners from watched files. Asynchronous, returns Promise. Use with `await` to ensure bugs don't happen.
259
260
  * `.getWatched()`: Returns an object representing all the paths on the file
260
261
  system being watched by this `FSWatcher` instance. The object's keys are all the
261
262
  directories (using absolute paths unless the `cwd` option was used), and the
@@ -264,7 +265,7 @@ values are arrays of the names of the items contained in each directory.
264
265
  ## CLI
265
266
 
266
267
  If you need a CLI interface for your file watching, check out
267
- [chokidar-cli](https://github.com/kimmobrunfeldt/chokidar-cli), allowing you to
268
+ [chokidar-cli](https://github.com/open-cli-tools/chokidar-cli), allowing you to
268
269
  execute a command on each change, or get a stdio stream of change events.
269
270
 
270
271
  ## Install Troubleshooting
@@ -48,7 +48,8 @@ const {
48
48
  EMPTY_FN,
49
49
 
50
50
  isWindows,
51
- isMacos
51
+ isMacos,
52
+ isIBMi
52
53
  } = require('./lib/constants');
53
54
 
54
55
  const stat = promisify(fs.stat);
@@ -330,6 +331,11 @@ constructor(_opts) {
330
331
  opts.usePolling = isMacos;
331
332
  }
332
333
 
334
+ // Always default to polling on IBM i because fs.watch() is not available on IBM i.
335
+ if(isIBMi) {
336
+ opts.usePolling = true;
337
+ }
338
+
333
339
  // Global override (useful for end-developers that need to force polling for all
334
340
  // instances of chokidar, regardless of usage/dependency depth)
335
341
  const envPoll = process.env.CHOKIDAR_USEPOLLING;
@@ -2,6 +2,7 @@
2
2
 
3
3
  const {sep} = require('path');
4
4
  const {platform} = process;
5
+ const os = require('os');
5
6
 
6
7
  exports.EV_ALL = 'all';
7
8
  exports.EV_READY = 'ready';
@@ -61,3 +62,4 @@ exports.IDENTITY_FN = val => val;
61
62
  exports.isWindows = platform === 'win32';
62
63
  exports.isMacos = platform === 'darwin';
63
64
  exports.isLinux = platform === 'linux';
65
+ exports.isIBMi = os.type() === 'OS400';
@@ -104,7 +104,8 @@ const createFSEventsInstance = (path, callback) => {
104
104
  * @returns {Function} closer
105
105
  */
106
106
  function setFSEventsListener(path, realPath, listener, rawEmitter) {
107
- let watchPath = sysPath.extname(path) ? sysPath.dirname(path) : path;
107
+ let watchPath = sysPath.extname(realPath) ? sysPath.dirname(realPath) : realPath;
108
+
108
109
  const parentPath = sysPath.dirname(watchPath);
109
110
  let cont = FSEventsWatchers.get(watchPath);
110
111
 
@@ -421,7 +421,15 @@ async _handleSymlink(entry, directory, path, item) {
421
421
  if (!this.fsw.options.followSymlinks) {
422
422
  // watch symlink directly (don't follow) and detect changes
423
423
  this.fsw._incrReadyCount();
424
- const linkPath = await fsrealpath(path);
424
+
425
+ let linkPath;
426
+ try {
427
+ linkPath = await fsrealpath(path);
428
+ } catch (e) {
429
+ this.fsw._emitReady();
430
+ return true;
431
+ }
432
+
425
433
  if (this.fsw.closed) return;
426
434
  if (dir.has(item)) {
427
435
  if (this.fsw._symlinkPaths.get(full) !== linkPath) {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "chokidar",
3
3
  "description": "Minimal and efficient cross-platform file watching library",
4
- "version": "3.5.1",
4
+ "version": "3.5.3",
5
5
  "homepage": "https://github.com/paulmillr/chokidar",
6
6
  "author": "Paul Miller (https://paulmillr.com)",
7
7
  "contributors": [
@@ -13,20 +13,20 @@
13
13
  },
14
14
  "main": "index.js",
15
15
  "dependencies": {
16
- "anymatch": "~3.1.1",
16
+ "anymatch": "~3.1.2",
17
17
  "braces": "~3.0.2",
18
- "glob-parent": "~5.1.0",
18
+ "glob-parent": "~5.1.2",
19
19
  "is-binary-path": "~2.1.0",
20
20
  "is-glob": "~4.0.1",
21
21
  "normalize-path": "~3.0.0",
22
- "readdirp": "~3.5.0"
22
+ "readdirp": "~3.6.0"
23
23
  },
24
24
  "optionalDependencies": {
25
- "fsevents": "~2.3.1"
25
+ "fsevents": "~2.3.2"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^14",
29
- "chai": "^4.2",
29
+ "chai": "^4.3",
30
30
  "dtslint": "^3.3.0",
31
31
  "eslint": "^7.0.0",
32
32
  "mocha": "^7.0.0",
@@ -34,6 +34,7 @@
34
34
  "rimraf": "^3.0.0",
35
35
  "sinon": "^9.0.1",
36
36
  "sinon-chai": "^3.3.0",
37
+ "typescript": "~4.4.3",
37
38
  "upath": "^1.2.0"
38
39
  },
39
40
  "files": [
@@ -52,7 +53,7 @@
52
53
  "scripts": {
53
54
  "dtslint": "dtslint types",
54
55
  "lint": "eslint --report-unused-disable-directives --ignore-path .gitignore .",
55
- "mocha": "mocha --exit --timeout 60000",
56
+ "mocha": "mocha --exit --timeout 90000",
56
57
  "test": "npm run lint && npm run mocha"
57
58
  },
58
59
  "keywords": [
@@ -74,5 +75,11 @@
74
75
  "html",
75
76
  "text"
76
77
  ]
77
- }
78
+ },
79
+ "funding": [
80
+ {
81
+ "type": "individual",
82
+ "url": "https://paulmillr.com/funding/"
83
+ }
84
+ ]
78
85
  }
@@ -4,6 +4,7 @@
4
4
 
5
5
  import * as fs from "fs";
6
6
  import { EventEmitter } from "events";
7
+ import { Matcher } from 'anymatch';
7
8
 
8
9
  export class FSWatcher extends EventEmitter implements fs.FSWatcher {
9
10
  options: WatchOptions;
@@ -17,13 +18,13 @@ export class FSWatcher extends EventEmitter implements fs.FSWatcher {
17
18
  * Add files, directories, or glob patterns for tracking. Takes an array of strings or just one
18
19
  * string.
19
20
  */
20
- add(paths: string | ReadonlyArray<string>): void;
21
+ add(paths: string | ReadonlyArray<string>): this;
21
22
 
22
23
  /**
23
24
  * Stop watching files, directories, or glob patterns. Takes an array of strings or just one
24
25
  * string.
25
26
  */
26
- unwatch(paths: string | ReadonlyArray<string>): void;
27
+ unwatch(paths: string | ReadonlyArray<string>): this;
27
28
 
28
29
  /**
29
30
  * Returns an object representing all the paths on the file system being watched by this
@@ -79,7 +80,7 @@ export interface WatchOptions {
79
80
  * (the path), second time with two arguments (the path and the
80
81
  * [`fs.Stats`](https://nodejs.org/api/fs.html#fs_class_fs_stats) object of that path).
81
82
  */
82
- ignored?: any;
83
+ ignored?: Matcher;
83
84
 
84
85
  /**
85
86
  * If set to `false` then `add`/`addDir` events are also emitted for matching paths while
@@ -6,7 +6,6 @@
6
6
  var SourceMap = require('source-map').SourceMapGenerator;
7
7
  var SourceMapConsumer = require('source-map').SourceMapConsumer;
8
8
  var sourceMapResolve = require('source-map-resolve');
9
- var urix = require('urix');
10
9
  var fs = require('fs');
11
10
  var path = require('path');
12
11
 
@@ -16,6 +15,14 @@ var path = require('path');
16
15
 
17
16
  module.exports = mixin;
18
17
 
18
+ /**
19
+ * Ensure Windows-style paths are formatted properly
20
+ */
21
+
22
+ const makeFriendlyPath = function(aPath) {
23
+ return path.sep === "\\" ? aPath.replace(/\\/g, "/").replace(/^[a-z]:\/?/i, "/") : aPath;
24
+ }
25
+
19
26
  /**
20
27
  * Mixin source map support into `compiler`.
21
28
  *
@@ -56,7 +63,7 @@ exports.updatePosition = function(str) {
56
63
 
57
64
  exports.emit = function(str, pos) {
58
65
  if (pos) {
59
- var sourceFile = urix(pos.source || 'source.css');
66
+ var sourceFile = makeFriendlyPath(pos.source || 'source.css');
60
67
 
61
68
  this.map.addMapping({
62
69
  source: sourceFile,
@@ -107,7 +114,7 @@ exports.applySourceMaps = function() {
107
114
  if (originalMap) {
108
115
  var map = new SourceMapConsumer(originalMap.map);
109
116
  var relativeTo = originalMap.sourcesRelativeTo;
110
- this.map.applySourceMap(map, file, urix(path.dirname(relativeTo)));
117
+ this.map.applySourceMap(map, file, makeFriendlyPath(path.dirname(relativeTo)));
111
118
  }
112
119
  }
113
120
  }, this);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "css",
3
- "version": "2.2.4",
3
+ "version": "3.0.0",
4
4
  "description": "CSS parser / stringifier",
5
5
  "main": "index",
6
6
  "files": [
@@ -9,20 +9,19 @@
9
9
  "Readme.md"
10
10
  ],
11
11
  "dependencies": {
12
- "inherits": "^2.0.3",
12
+ "inherits": "^2.0.4",
13
13
  "source-map": "^0.6.1",
14
- "source-map-resolve": "^0.5.2",
15
- "urix": "^0.1.0"
14
+ "source-map-resolve": "^0.6.0"
16
15
  },
17
16
  "devDependencies": {
18
- "mocha": "^1.21.3",
19
- "should": "^4.0.4",
20
- "matcha": "^0.5.0",
21
- "bytes": "^1.0.0"
17
+ "mocha": "^8.0.1",
18
+ "should": "^13.2.3",
19
+ "matcha": "^0.7.0",
20
+ "bytes": "^3.1.0"
22
21
  },
23
22
  "scripts": {
24
23
  "benchmark": "matcha",
25
- "test": "mocha --require should --reporter spec --bail test/*.js"
24
+ "test": "mocha --require should --reporter spec test/*.js"
26
25
  },
27
26
  "author": "TJ Holowaychuk <tj@vision-media.ca>",
28
27
  "license": "MIT",
@@ -1,19 +1,20 @@
1
1
  (The MIT License)
2
2
 
3
- Copyright (c) 2014 TJ Holowaychuk <tj@vision-media.ca>
3
+ Copyright (c) 2014-2017 TJ Holowaychuk <tj@vision-media.ca>
4
+ Copyright (c) 2018-2021 Josh Junon
4
5
 
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software
6
- and associated documentation files (the 'Software'), to deal in the Software without restriction,
7
- including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software
7
+ and associated documentation files (the 'Software'), to deal in the Software without restriction,
8
+ including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
8
9
  and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
9
10
  subject to the following conditions:
10
11
 
11
- The above copyright notice and this permission notice shall be included in all copies or substantial
12
+ The above copyright notice and this permission notice shall be included in all copies or substantial
12
13
  portions of the Software.
13
14
 
14
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
15
- LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
16
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
17
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
15
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
16
+ LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
18
19
  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19
20
 
@@ -1,5 +1,5 @@
1
1
  # debug
2
- [![Build Status](https://travis-ci.org/visionmedia/debug.svg?branch=master)](https://travis-ci.org/visionmedia/debug) [![Coverage Status](https://coveralls.io/repos/github/visionmedia/debug/badge.svg?branch=master)](https://coveralls.io/github/visionmedia/debug?branch=master) [![Slack](https://visionmedia-community-slackin.now.sh/badge.svg)](https://visionmedia-community-slackin.now.sh/) [![OpenCollective](https://opencollective.com/debug/backers/badge.svg)](#backers)
2
+ [![Build Status](https://travis-ci.org/debug-js/debug.svg?branch=master)](https://travis-ci.org/debug-js/debug) [![Coverage Status](https://coveralls.io/repos/github/debug-js/debug/badge.svg?branch=master)](https://coveralls.io/github/debug-js/debug?branch=master) [![Slack](https://visionmedia-community-slackin.now.sh/badge.svg)](https://visionmedia-community-slackin.now.sh/) [![OpenCollective](https://opencollective.com/debug/backers/badge.svg)](#backers)
3
3
  [![OpenCollective](https://opencollective.com/debug/sponsors/badge.svg)](#sponsors)
4
4
 
5
5
  <img width="647" src="https://user-images.githubusercontent.com/71256/29091486-fa38524c-7c37-11e7-895f-e7ec8e1039b6.png">
@@ -70,7 +70,9 @@ Here are some examples:
70
70
  <img width="647" alt="screen shot 2017-08-08 at 12 53 38 pm" src="https://user-images.githubusercontent.com/71256/29091700-a62a6888-7c38-11e7-800b-db911291ca2b.png">
71
71
  <img width="647" alt="screen shot 2017-08-08 at 12 53 25 pm" src="https://user-images.githubusercontent.com/71256/29091701-a62ea114-7c38-11e7-826a-2692bedca740.png">
72
72
 
73
- #### Windows note
73
+ #### Windows command prompt notes
74
+
75
+ ##### CMD
74
76
 
75
77
  On Windows the environment variable is set using the `set` command.
76
78
 
@@ -78,14 +80,32 @@ On Windows the environment variable is set using the `set` command.
78
80
  set DEBUG=*,-not_this
79
81
  ```
80
82
 
81
- Note that PowerShell uses different syntax to set environment variables.
83
+ Example:
84
+
85
+ ```cmd
86
+ set DEBUG=* & node app.js
87
+ ```
88
+
89
+ ##### PowerShell (VS Code default)
90
+
91
+ PowerShell uses different syntax to set environment variables.
82
92
 
83
93
  ```cmd
84
94
  $env:DEBUG = "*,-not_this"
85
95
  ```
86
96
 
97
+ Example:
98
+
99
+ ```cmd
100
+ $env:DEBUG='app';node app.js
101
+ ```
102
+
87
103
  Then, run the program to be debugged as usual.
88
104
 
105
+ npm script example:
106
+ ```js
107
+ "windowsDebug": "@powershell -Command $env:DEBUG='*';node app.js",
108
+ ```
89
109
 
90
110
  ## Namespace Colors
91
111
 
@@ -221,6 +241,9 @@ setInterval(function(){
221
241
  }, 1200);
222
242
  ```
223
243
 
244
+ In Chromium-based web browsers (e.g. Brave, Chrome, and Electron), the JavaScript console will—by default—only show messages logged by `debug` if the "Verbose" log level is _enabled_.
245
+
246
+ <img width="647" src="https://user-images.githubusercontent.com/7143133/152083257-29034707-c42c-4959-8add-3cee850e6fcf.png">
224
247
 
225
248
  ## Output streams
226
249
 
@@ -248,6 +271,73 @@ error('now goes to stdout via console.info');
248
271
  log('still goes to stdout, but via console.info now');
249
272
  ```
250
273
 
274
+ ## Extend
275
+ You can simply extend debugger
276
+ ```js
277
+ const log = require('debug')('auth');
278
+
279
+ //creates new debug instance with extended namespace
280
+ const logSign = log.extend('sign');
281
+ const logLogin = log.extend('login');
282
+
283
+ log('hello'); // auth hello
284
+ logSign('hello'); //auth:sign hello
285
+ logLogin('hello'); //auth:login hello
286
+ ```
287
+
288
+ ## Set dynamically
289
+
290
+ You can also enable debug dynamically by calling the `enable()` method :
291
+
292
+ ```js
293
+ let debug = require('debug');
294
+
295
+ console.log(1, debug.enabled('test'));
296
+
297
+ debug.enable('test');
298
+ console.log(2, debug.enabled('test'));
299
+
300
+ debug.disable();
301
+ console.log(3, debug.enabled('test'));
302
+
303
+ ```
304
+
305
+ print :
306
+ ```
307
+ 1 false
308
+ 2 true
309
+ 3 false
310
+ ```
311
+
312
+ Usage :
313
+ `enable(namespaces)`
314
+ `namespaces` can include modes separated by a colon and wildcards.
315
+
316
+ Note that calling `enable()` completely overrides previously set DEBUG variable :
317
+
318
+ ```
319
+ $ DEBUG=foo node -e 'var dbg = require("debug"); dbg.enable("bar"); console.log(dbg.enabled("foo"))'
320
+ => false
321
+ ```
322
+
323
+ `disable()`
324
+
325
+ Will disable all namespaces. The functions returns the namespaces currently
326
+ enabled (and skipped). This can be useful if you want to disable debugging
327
+ temporarily without knowing what was enabled to begin with.
328
+
329
+ For example:
330
+
331
+ ```js
332
+ let debug = require('debug');
333
+ debug.enable('foo:*,-foo:bar');
334
+ let namespaces = debug.disable();
335
+ debug.enable(namespaces);
336
+ ```
337
+
338
+ Note: There is no guarantee that the string will be identical to the initial
339
+ enable string, but semantically they will be identical.
340
+
251
341
  ## Checking whether a debug target is enabled
252
342
 
253
343
  After you've created a debug instance, you can determine whether or not it is
@@ -264,12 +354,34 @@ if (debug.enabled) {
264
354
  You can also manually toggle this property to force the debug instance to be
265
355
  enabled or disabled.
266
356
 
357
+ ## Usage in child processes
358
+
359
+ Due to the way `debug` detects if the output is a TTY or not, colors are not shown in child processes when `stderr` is piped. A solution is to pass the `DEBUG_COLORS=1` environment variable to the child process.
360
+ For example:
361
+
362
+ ```javascript
363
+ worker = fork(WORKER_WRAP_PATH, [workerPath], {
364
+ stdio: [
365
+ /* stdin: */ 0,
366
+ /* stdout: */ 'pipe',
367
+ /* stderr: */ 'pipe',
368
+ 'ipc',
369
+ ],
370
+ env: Object.assign({}, process.env, {
371
+ DEBUG_COLORS: 1 // without this settings, colors won't be shown
372
+ }),
373
+ });
374
+
375
+ worker.stderr.pipe(process.stderr, { end: false });
376
+ ```
377
+
267
378
 
268
379
  ## Authors
269
380
 
270
381
  - TJ Holowaychuk
271
382
  - Nathan Rajlich
272
383
  - Andrew Rhyne
384
+ - Josh Junon
273
385
 
274
386
  ## Backers
275
387
 
@@ -347,6 +459,7 @@ Become a sponsor and get your logo on our README on Github with a link to your s
347
459
  (The MIT License)
348
460
 
349
461
  Copyright (c) 2014-2017 TJ Holowaychuk &lt;tj@vision-media.ca&gt;
462
+ Copyright (c) 2018-2021 Josh Junon
350
463
 
351
464
  Permission is hereby granted, free of charge, to any person obtaining
352
465
  a copy of this software and associated documentation files (the
@@ -1,43 +1,59 @@
1
1
  {
2
2
  "name": "debug",
3
- "version": "3.1.0",
3
+ "version": "4.3.4",
4
4
  "repository": {
5
5
  "type": "git",
6
- "url": "git://github.com/visionmedia/debug.git"
6
+ "url": "git://github.com/debug-js/debug.git"
7
7
  },
8
- "description": "small debugging utility",
8
+ "description": "Lightweight debugging utility for Node.js and the browser",
9
9
  "keywords": [
10
10
  "debug",
11
11
  "log",
12
12
  "debugger"
13
13
  ],
14
- "author": "TJ Holowaychuk <tj@vision-media.ca>",
14
+ "files": [
15
+ "src",
16
+ "LICENSE",
17
+ "README.md"
18
+ ],
19
+ "author": "Josh Junon <josh.junon@protonmail.com>",
15
20
  "contributors": [
21
+ "TJ Holowaychuk <tj@vision-media.ca>",
16
22
  "Nathan Rajlich <nathan@tootallnate.net> (http://n8.io)",
17
23
  "Andrew Rhyne <rhyneandrew@gmail.com>"
18
24
  ],
19
25
  "license": "MIT",
26
+ "scripts": {
27
+ "lint": "xo",
28
+ "test": "npm run test:node && npm run test:browser && npm run lint",
29
+ "test:node": "istanbul cover _mocha -- test.js",
30
+ "test:browser": "karma start --single-run",
31
+ "test:coverage": "cat ./coverage/lcov.info | coveralls"
32
+ },
20
33
  "dependencies": {
21
- "ms": "2.0.0"
34
+ "ms": "2.1.2"
22
35
  },
23
36
  "devDependencies": {
24
- "browserify": "14.4.0",
25
- "chai": "^3.5.0",
26
- "concurrently": "^3.1.0",
27
- "coveralls": "^2.11.15",
28
- "eslint": "^3.12.1",
37
+ "brfs": "^2.0.1",
38
+ "browserify": "^16.2.3",
39
+ "coveralls": "^3.0.2",
29
40
  "istanbul": "^0.4.5",
30
- "karma": "^1.3.0",
31
- "karma-chai": "^0.1.0",
41
+ "karma": "^3.1.4",
42
+ "karma-browserify": "^6.0.0",
43
+ "karma-chrome-launcher": "^2.2.0",
32
44
  "karma-mocha": "^1.3.0",
33
- "karma-phantomjs-launcher": "^1.0.2",
34
- "karma-sinon": "^1.0.5",
35
- "mocha": "^3.2.0",
45
+ "mocha": "^5.2.0",
36
46
  "mocha-lcov-reporter": "^1.2.0",
37
- "rimraf": "^2.5.4",
38
- "sinon": "^1.17.6",
39
- "sinon-chai": "^2.8.0"
47
+ "xo": "^0.23.0"
48
+ },
49
+ "peerDependenciesMeta": {
50
+ "supports-color": {
51
+ "optional": true
52
+ }
40
53
  },
41
54
  "main": "./src/index.js",
42
- "browser": "./src/browser.js"
55
+ "browser": "./src/browser.js",
56
+ "engines": {
57
+ "node": ">=6.0"
58
+ }
43
59
  }