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
@@ -1,38 +0,0 @@
1
- {
2
- "name": "should-equal",
3
- "version": "2.0.0",
4
- "description": "Deep comparison of 2 instances for should.js",
5
- "main": "cjs/should-equal.js",
6
- "jsnext:main": "es6/should-equal.js",
7
- "module": "es6/should-equal.js",
8
- "scripts": {
9
- "test": "mocha --ui bdd -R mocha-better-spec-reporter test.js",
10
- "cjs": "rollup --format=cjs --output=cjs/should-equal.js index.js",
11
- "es6": "rollup --format=es --output=es6/should-equal.js index.js",
12
- "build": "npm run cjs && npm run es6",
13
- "prepare": "npm run build",
14
- "pretest": "npm run build"
15
- },
16
- "repository": {
17
- "type": "git",
18
- "url": "https://github.com/shouldjs/equal.git"
19
- },
20
- "keywords": ["should.js", "deep", "equal"],
21
- "author": "Denis Bardadym <bardadymchik@gmail.com>",
22
- "license": "MIT",
23
- "bugs": {
24
- "url": "https://github.com/shouldjs/equal/issues"
25
- },
26
- "homepage": "https://github.com/shouldjs/equal",
27
- "devDependencies": {
28
- "eslint": "^3.0.0",
29
- "eslint-config-shouldjs": "^1.0.2",
30
- "mocha": "^3.5.0",
31
- "mocha-better-spec-reporter": "^3.1.0",
32
- "rollup": "0.34.7"
33
- },
34
- "dependencies": {
35
- "should-type": "^1.4.0"
36
- },
37
- "files": ["cjs/*", "es6/*", "README.md", "LICENSE"]
38
- }
@@ -1,6 +0,0 @@
1
- format
2
- ======
3
-
4
- [![Build Status](https://travis-ci.org/shouldjs/format.svg?branch=master)](https://travis-ci.org/shouldjs/format)
5
-
6
- Module for text inspections for instances
@@ -1,532 +0,0 @@
1
- 'use strict';
2
-
3
- function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
4
-
5
- var t = _interopDefault(require('should-type'));
6
- var shouldTypeAdaptors = require('should-type-adaptors');
7
-
8
- function looksLikeANumber(n) {
9
- return !!n.match(/\d+/);
10
- }
11
-
12
- function keyCompare(a, b) {
13
- var aNum = looksLikeANumber(a);
14
- var bNum = looksLikeANumber(b);
15
- if (aNum && bNum) {
16
- return 1*a - 1*b;
17
- } else if (aNum && !bNum) {
18
- return -1;
19
- } else if (!aNum && bNum) {
20
- return 1;
21
- } else {
22
- return a.localeCompare(b);
23
- }
24
- }
25
-
26
- function genKeysFunc(f) {
27
- return function(value) {
28
- var k = f(value);
29
- k.sort(keyCompare);
30
- return k;
31
- };
32
- }
33
-
34
- function Formatter(opts) {
35
- opts = opts || {};
36
-
37
- this.seen = [];
38
-
39
- var keysFunc;
40
- if (typeof opts.keysFunc === 'function') {
41
- keysFunc = opts.keysFunc;
42
- } else if (opts.keys === false) {
43
- keysFunc = Object.getOwnPropertyNames;
44
- } else {
45
- keysFunc = Object.keys;
46
- }
47
-
48
- this.getKeys = genKeysFunc(keysFunc);
49
-
50
- this.maxLineLength = typeof opts.maxLineLength === 'number' ? opts.maxLineLength : 60;
51
- this.propSep = opts.propSep || ',';
52
-
53
- this.isUTCdate = !!opts.isUTCdate;
54
- }
55
-
56
-
57
-
58
- Formatter.prototype = {
59
- constructor: Formatter,
60
-
61
- format: function(value) {
62
- var tp = t(value);
63
-
64
- if (this.alreadySeen(value)) {
65
- return '[Circular]';
66
- }
67
-
68
- var tries = tp.toTryTypes();
69
- var f = this.defaultFormat;
70
- while (tries.length) {
71
- var toTry = tries.shift();
72
- var name = Formatter.formatterFunctionName(toTry);
73
- if (this[name]) {
74
- f = this[name];
75
- break;
76
- }
77
- }
78
- return f.call(this, value).trim();
79
- },
80
-
81
- defaultFormat: function(obj) {
82
- return String(obj);
83
- },
84
-
85
- alreadySeen: function(value) {
86
- return this.seen.indexOf(value) >= 0;
87
- }
88
-
89
- };
90
-
91
- Formatter.addType = function addType(tp, f) {
92
- Formatter.prototype[Formatter.formatterFunctionName(tp)] = f;
93
- };
94
-
95
- Formatter.formatterFunctionName = function formatterFunctionName(tp) {
96
- return '_format_' + tp.toString('_');
97
- };
98
-
99
- var EOL = '\n';
100
-
101
- function indent(v, indentation) {
102
- return v
103
- .split(EOL)
104
- .map(function(vv) {
105
- return indentation + vv;
106
- })
107
- .join(EOL);
108
- }
109
-
110
- function pad(str, value, filler) {
111
- str = String(str);
112
- var isRight = false;
113
-
114
- if (value < 0) {
115
- isRight = true;
116
- value = -value;
117
- }
118
-
119
- if (str.length < value) {
120
- var padding = new Array(value - str.length + 1).join(filler);
121
- return isRight ? str + padding : padding + str;
122
- } else {
123
- return str;
124
- }
125
- }
126
-
127
- function pad0(str, value) {
128
- return pad(str, value, '0');
129
- }
130
-
131
- var functionNameRE = /^\s*function\s*(\S*)\s*\(/;
132
-
133
- function functionName(f) {
134
- if (f.name) {
135
- return f.name;
136
- }
137
- var matches = f.toString().match(functionNameRE);
138
- if (matches === null) {
139
- // `functionNameRE` doesn't match arrow functions.
140
- return '';
141
- }
142
- var name = matches[1];
143
- return name;
144
- }
145
-
146
- function constructorName(obj) {
147
- while (obj) {
148
- var descriptor = Object.getOwnPropertyDescriptor(obj, 'constructor');
149
- if (descriptor !== undefined && typeof descriptor.value === 'function') {
150
- var name = functionName(descriptor.value);
151
- if (name !== '') {
152
- return name;
153
- }
154
- }
155
-
156
- obj = Object.getPrototypeOf(obj);
157
- }
158
- }
159
-
160
- var INDENT = ' ';
161
-
162
- function addSpaces(str) {
163
- return indent(str, INDENT);
164
- }
165
-
166
- function typeAdaptorForEachFormat(obj, opts) {
167
- opts = opts || {};
168
- var filterKey = opts.filterKey || function() { return true; };
169
-
170
- var formatKey = opts.formatKey || this.format;
171
- var formatValue = opts.formatValue || this.format;
172
-
173
- var keyValueSep = typeof opts.keyValueSep !== 'undefined' ? opts.keyValueSep : ': ';
174
-
175
- this.seen.push(obj);
176
-
177
- var formatLength = 0;
178
- var pairs = [];
179
-
180
- shouldTypeAdaptors.forEach(obj, function(value, key) {
181
- if (!filterKey(key)) {
182
- return;
183
- }
184
-
185
- var formattedKey = formatKey.call(this, key);
186
- var formattedValue = formatValue.call(this, value, key);
187
-
188
- var pair = formattedKey ? (formattedKey + keyValueSep + formattedValue) : formattedValue;
189
-
190
- formatLength += pair.length;
191
- pairs.push(pair);
192
- }, this);
193
-
194
- this.seen.pop();
195
-
196
- (opts.additionalKeys || []).forEach(function(keyValue) {
197
- var pair = keyValue[0] + keyValueSep + this.format(keyValue[1]);
198
- formatLength += pair.length;
199
- pairs.push(pair);
200
- }, this);
201
-
202
- var prefix = opts.prefix || constructorName(obj) || '';
203
- if (prefix.length > 0) {
204
- prefix += ' ';
205
- }
206
-
207
- var lbracket, rbracket;
208
- if (Array.isArray(opts.brackets)) {
209
- lbracket = opts.brackets[0];
210
- rbracket = opts.brackets[1];
211
- } else {
212
- lbracket = '{';
213
- rbracket = '}';
214
- }
215
-
216
- var rootValue = opts.value || '';
217
-
218
- if (pairs.length === 0) {
219
- return rootValue || (prefix + lbracket + rbracket);
220
- }
221
-
222
- if (formatLength <= this.maxLineLength) {
223
- return prefix + lbracket + ' ' + (rootValue ? rootValue + ' ' : '') + pairs.join(this.propSep + ' ') + ' ' + rbracket;
224
- } else {
225
- return prefix + lbracket + '\n' + (rootValue ? ' ' + rootValue + '\n' : '') + pairs.map(addSpaces).join(this.propSep + '\n') + '\n' + rbracket;
226
- }
227
- }
228
-
229
- function formatPlainObjectKey(key) {
230
- return typeof key === 'string' && key.match(/^[a-zA-Z_$][a-zA-Z_$0-9]*$/) ? key : this.format(key);
231
- }
232
-
233
- function getPropertyDescriptor(obj, key) {
234
- var desc;
235
- try {
236
- desc = Object.getOwnPropertyDescriptor(obj, key) || { value: obj[key] };
237
- } catch (e) {
238
- desc = { value: e };
239
- }
240
- return desc;
241
- }
242
-
243
- function formatPlainObjectValue(obj, key) {
244
- var desc = getPropertyDescriptor(obj, key);
245
- if (desc.get && desc.set) {
246
- return '[Getter/Setter]';
247
- }
248
- if (desc.get) {
249
- return '[Getter]';
250
- }
251
- if (desc.set) {
252
- return '[Setter]';
253
- }
254
-
255
- return this.format(desc.value);
256
- }
257
-
258
- function formatPlainObject(obj, opts) {
259
- opts = opts || {};
260
- opts.keyValueSep = ': ';
261
- opts.formatKey = opts.formatKey || formatPlainObjectKey;
262
- opts.formatValue = opts.formatValue || function(value, key) {
263
- return formatPlainObjectValue.call(this, obj, key);
264
- };
265
- return typeAdaptorForEachFormat.call(this, obj, opts);
266
- }
267
-
268
- function formatWrapper1(value) {
269
- return formatPlainObject.call(this, value, {
270
- additionalKeys: [['[[PrimitiveValue]]', value.valueOf()]]
271
- });
272
- }
273
-
274
-
275
- function formatWrapper2(value) {
276
- var realValue = value.valueOf();
277
-
278
- return formatPlainObject.call(this, value, {
279
- filterKey: function(key) {
280
- //skip useless indexed properties
281
- return !(key.match(/\d+/) && parseInt(key, 10) < realValue.length);
282
- },
283
- additionalKeys: [['[[PrimitiveValue]]', realValue]]
284
- });
285
- }
286
-
287
- function formatRegExp(value) {
288
- return formatPlainObject.call(this, value, {
289
- value: String(value)
290
- });
291
- }
292
-
293
- function formatFunction(value) {
294
- return formatPlainObject.call(this, value, {
295
- prefix: 'Function',
296
- additionalKeys: [['name', functionName(value)]]
297
- });
298
- }
299
-
300
- function formatArray(value) {
301
- return formatPlainObject.call(this, value, {
302
- formatKey: function(key) {
303
- if (!key.match(/\d+/)) {
304
- return formatPlainObjectKey.call(this, key);
305
- }
306
- },
307
- brackets: ['[', ']']
308
- });
309
- }
310
-
311
- function formatArguments(value) {
312
- return formatPlainObject.call(this, value, {
313
- formatKey: function(key) {
314
- if (!key.match(/\d+/)) {
315
- return formatPlainObjectKey.call(this, key);
316
- }
317
- },
318
- brackets: ['[', ']'],
319
- prefix: 'Arguments'
320
- });
321
- }
322
-
323
- function _formatDate(value, isUTC) {
324
- var prefix = isUTC ? 'UTC' : '';
325
-
326
- var date = value['get' + prefix + 'FullYear']() +
327
- '-' +
328
- pad0(value['get' + prefix + 'Month']() + 1, 2) +
329
- '-' +
330
- pad0(value['get' + prefix + 'Date'](), 2);
331
-
332
- var time = pad0(value['get' + prefix + 'Hours'](), 2) +
333
- ':' +
334
- pad0(value['get' + prefix + 'Minutes'](), 2) +
335
- ':' +
336
- pad0(value['get' + prefix + 'Seconds'](), 2) +
337
- '.' +
338
- pad0(value['get' + prefix + 'Milliseconds'](), 3);
339
-
340
- var to = value.getTimezoneOffset();
341
- var absTo = Math.abs(to);
342
- var hours = Math.floor(absTo / 60);
343
- var minutes = absTo - hours * 60;
344
- var tzFormat = (to < 0 ? '+' : '-') + pad0(hours, 2) + pad0(minutes, 2);
345
-
346
- return date + ' ' + time + (isUTC ? '' : ' ' + tzFormat);
347
- }
348
-
349
- function formatDate(value) {
350
- return formatPlainObject.call(this, value, { value: _formatDate(value, this.isUTCdate) });
351
- }
352
-
353
- function formatError(value) {
354
- return formatPlainObject.call(this, value, {
355
- prefix: value.name,
356
- additionalKeys: [['message', value.message]]
357
- });
358
- }
359
-
360
- function generateFormatForNumberArray(lengthProp, name, padding) {
361
- return function(value) {
362
- var max = this.byteArrayMaxLength || 50;
363
- var length = value[lengthProp];
364
- var formattedValues = [];
365
- var len = 0;
366
- for (var i = 0; i < max && i < length; i++) {
367
- var b = value[i] || 0;
368
- var v = pad0(b.toString(16), padding);
369
- len += v.length;
370
- formattedValues.push(v);
371
- }
372
- var prefix = value.constructor.name || name || '';
373
- if (prefix) {
374
- prefix += ' ';
375
- }
376
-
377
- if (formattedValues.length === 0) {
378
- return prefix + '[]';
379
- }
380
-
381
- if (len <= this.maxLineLength) {
382
- return prefix + '[ ' + formattedValues.join(this.propSep + ' ') + ' ' + ']';
383
- } else {
384
- return prefix + '[\n' + formattedValues.map(addSpaces).join(this.propSep + '\n') + '\n' + ']';
385
- }
386
- };
387
- }
388
-
389
- function formatMap(obj) {
390
- return typeAdaptorForEachFormat.call(this, obj, {
391
- keyValueSep: ' => '
392
- });
393
- }
394
-
395
- function formatSet(obj) {
396
- return typeAdaptorForEachFormat.call(this, obj, {
397
- keyValueSep: '',
398
- formatKey: function() { return ''; }
399
- });
400
- }
401
-
402
- function genSimdVectorFormat(constructorName, length) {
403
- return function(value) {
404
- var Constructor = value.constructor;
405
- var extractLane = Constructor.extractLane;
406
-
407
- var len = 0;
408
- var props = [];
409
-
410
- for (var i = 0; i < length; i ++) {
411
- var key = this.format(extractLane(value, i));
412
- len += key.length;
413
- props.push(key);
414
- }
415
-
416
- if (len <= this.maxLineLength) {
417
- return constructorName + ' [ ' + props.join(this.propSep + ' ') + ' ]';
418
- } else {
419
- return constructorName + ' [\n' + props.map(addSpaces).join(this.propSep + '\n') + '\n' + ']';
420
- }
421
- };
422
- }
423
-
424
- function defaultFormat(value, opts) {
425
- return new Formatter(opts).format(value);
426
- }
427
-
428
- defaultFormat.Formatter = Formatter;
429
- defaultFormat.addSpaces = addSpaces;
430
- defaultFormat.pad0 = pad0;
431
- defaultFormat.functionName = functionName;
432
- defaultFormat.constructorName = constructorName;
433
- defaultFormat.formatPlainObjectKey = formatPlainObjectKey;
434
- defaultFormat.formatPlainObject = formatPlainObject;
435
- defaultFormat.typeAdaptorForEachFormat = typeAdaptorForEachFormat;
436
- // adding primitive types
437
- Formatter.addType(new t.Type(t.UNDEFINED), function() {
438
- return 'undefined';
439
- });
440
- Formatter.addType(new t.Type(t.NULL), function() {
441
- return 'null';
442
- });
443
- Formatter.addType(new t.Type(t.BOOLEAN), function(value) {
444
- return value ? 'true': 'false';
445
- });
446
- Formatter.addType(new t.Type(t.SYMBOL), function(value) {
447
- return value.toString();
448
- });
449
- Formatter.addType(new t.Type(t.NUMBER), function(value) {
450
- if (value === 0 && 1 / value < 0) {
451
- return '-0';
452
- }
453
- return String(value);
454
- });
455
-
456
- Formatter.addType(new t.Type(t.STRING), function(value) {
457
- return '\'' + JSON.stringify(value).replace(/^"|"$/g, '')
458
- .replace(/'/g, "\\'")
459
- .replace(/\\"/g, '"') + '\'';
460
- });
461
-
462
- Formatter.addType(new t.Type(t.FUNCTION), formatFunction);
463
-
464
- // plain object
465
- Formatter.addType(new t.Type(t.OBJECT), formatPlainObject);
466
-
467
- // type wrappers
468
- Formatter.addType(new t.Type(t.OBJECT, t.NUMBER), formatWrapper1);
469
- Formatter.addType(new t.Type(t.OBJECT, t.BOOLEAN), formatWrapper1);
470
- Formatter.addType(new t.Type(t.OBJECT, t.STRING), formatWrapper2);
471
-
472
- Formatter.addType(new t.Type(t.OBJECT, t.REGEXP), formatRegExp);
473
- Formatter.addType(new t.Type(t.OBJECT, t.ARRAY), formatArray);
474
- Formatter.addType(new t.Type(t.OBJECT, t.ARGUMENTS), formatArguments);
475
- Formatter.addType(new t.Type(t.OBJECT, t.DATE), formatDate);
476
- Formatter.addType(new t.Type(t.OBJECT, t.ERROR), formatError);
477
- Formatter.addType(new t.Type(t.OBJECT, t.SET), formatSet);
478
- Formatter.addType(new t.Type(t.OBJECT, t.MAP), formatMap);
479
- Formatter.addType(new t.Type(t.OBJECT, t.WEAK_MAP), formatMap);
480
- Formatter.addType(new t.Type(t.OBJECT, t.WEAK_SET), formatSet);
481
-
482
- Formatter.addType(new t.Type(t.OBJECT, t.BUFFER), generateFormatForNumberArray('length', 'Buffer', 2));
483
-
484
- Formatter.addType(new t.Type(t.OBJECT, t.ARRAY_BUFFER), generateFormatForNumberArray('byteLength', 'ArrayBuffer', 2));
485
-
486
- Formatter.addType(new t.Type(t.OBJECT, t.TYPED_ARRAY, 'int8'), generateFormatForNumberArray('length', 'Int8Array', 2));
487
- Formatter.addType(new t.Type(t.OBJECT, t.TYPED_ARRAY, 'uint8'), generateFormatForNumberArray('length', 'Uint8Array', 2));
488
- Formatter.addType(new t.Type(t.OBJECT, t.TYPED_ARRAY, 'uint8clamped'), generateFormatForNumberArray('length', 'Uint8ClampedArray', 2));
489
-
490
- Formatter.addType(new t.Type(t.OBJECT, t.TYPED_ARRAY, 'int16'), generateFormatForNumberArray('length', 'Int16Array', 4));
491
- Formatter.addType(new t.Type(t.OBJECT, t.TYPED_ARRAY, 'uint16'), generateFormatForNumberArray('length', 'Uint16Array', 4));
492
-
493
- Formatter.addType(new t.Type(t.OBJECT, t.TYPED_ARRAY, 'int32'), generateFormatForNumberArray('length', 'Int32Array', 8));
494
- Formatter.addType(new t.Type(t.OBJECT, t.TYPED_ARRAY, 'uint32'), generateFormatForNumberArray('length', 'Uint32Array', 8));
495
-
496
- Formatter.addType(new t.Type(t.OBJECT, t.SIMD, 'bool16x8'), genSimdVectorFormat('Bool16x8', 8));
497
- Formatter.addType(new t.Type(t.OBJECT, t.SIMD, 'bool32x4'), genSimdVectorFormat('Bool32x4', 4));
498
- Formatter.addType(new t.Type(t.OBJECT, t.SIMD, 'bool8x16'), genSimdVectorFormat('Bool8x16', 16));
499
- Formatter.addType(new t.Type(t.OBJECT, t.SIMD, 'float32x4'), genSimdVectorFormat('Float32x4', 4));
500
- Formatter.addType(new t.Type(t.OBJECT, t.SIMD, 'int16x8'), genSimdVectorFormat('Int16x8', 8));
501
- Formatter.addType(new t.Type(t.OBJECT, t.SIMD, 'int32x4'), genSimdVectorFormat('Int32x4', 4));
502
- Formatter.addType(new t.Type(t.OBJECT, t.SIMD, 'int8x16'), genSimdVectorFormat('Int8x16', 16));
503
- Formatter.addType(new t.Type(t.OBJECT, t.SIMD, 'uint16x8'), genSimdVectorFormat('Uint16x8', 8));
504
- Formatter.addType(new t.Type(t.OBJECT, t.SIMD, 'uint32x4'), genSimdVectorFormat('Uint32x4', 4));
505
- Formatter.addType(new t.Type(t.OBJECT, t.SIMD, 'uint8x16'), genSimdVectorFormat('Uint8x16', 16));
506
-
507
-
508
- Formatter.addType(new t.Type(t.OBJECT, t.PROMISE), function() {
509
- return '[Promise]';//TODO it could be nice to inspect its state and value
510
- });
511
-
512
- Formatter.addType(new t.Type(t.OBJECT, t.XHR), function() {
513
- return '[XMLHttpRequest]';//TODO it could be nice to inspect its state
514
- });
515
-
516
- Formatter.addType(new t.Type(t.OBJECT, t.HTML_ELEMENT), function(value) {
517
- return value.outerHTML;
518
- });
519
-
520
- Formatter.addType(new t.Type(t.OBJECT, t.HTML_ELEMENT, '#text'), function(value) {
521
- return value.nodeValue;
522
- });
523
-
524
- Formatter.addType(new t.Type(t.OBJECT, t.HTML_ELEMENT, '#document'), function(value) {
525
- return value.documentElement.outerHTML;
526
- });
527
-
528
- Formatter.addType(new t.Type(t.OBJECT, t.HOST), function() {
529
- return '[Host]';
530
- });
531
-
532
- module.exports = defaultFormat;