traceur-rb 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (410) hide show
  1. checksums.yaml +8 -8
  2. data/README.md +2 -2
  3. data/lib/js/compile.js +7 -15
  4. data/lib/traceur.rb +2 -1
  5. data/lib/traceur/compilation_error.rb +27 -0
  6. data/lib/traceur/compiler.rb +4 -1
  7. data/lib/traceur/configuration.rb +1 -1
  8. data/lib/traceur/node/runner.rb +1 -1
  9. data/lib/traceur/version.rb +1 -1
  10. data/spec/examples/syntax_error.js +3 -0
  11. data/spec/integration/examples_spec.rb +6 -0
  12. data/vendor/node_modules/traceur/LICENSE +202 -0
  13. data/vendor/node_modules/traceur/README.md +5 -5
  14. data/vendor/node_modules/traceur/bin/traceur-runtime.js +1392 -623
  15. data/vendor/node_modules/traceur/bin/traceur.js +24749 -17990
  16. data/vendor/node_modules/traceur/node_modules/.bin/semver +2 -2
  17. data/vendor/node_modules/traceur/node_modules/commander/History.md +222 -0
  18. data/vendor/node_modules/traceur/node_modules/commander/Readme.md +127 -35
  19. data/vendor/node_modules/traceur/node_modules/commander/index.js +261 -93
  20. data/vendor/node_modules/traceur/node_modules/commander/package.json +41 -9
  21. data/vendor/node_modules/traceur/node_modules/glob/LICENSE +15 -0
  22. data/vendor/node_modules/traceur/node_modules/glob/README.md +357 -0
  23. data/vendor/node_modules/traceur/node_modules/glob/common.js +177 -0
  24. data/vendor/node_modules/traceur/node_modules/glob/glob.js +649 -0
  25. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/.eslintrc +17 -0
  26. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/LICENSE +15 -0
  27. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/README.md +37 -0
  28. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/inflight.js +44 -0
  29. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/LICENSE +15 -0
  30. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/README.md +36 -0
  31. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/package.json +34 -0
  32. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/test/basic.js +51 -0
  33. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/wrappy.js +33 -0
  34. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/package.json +61 -0
  35. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/test.js +97 -0
  36. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inherits/LICENSE +16 -0
  37. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inherits/README.md +42 -0
  38. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inherits/inherits.js +1 -0
  39. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inherits/inherits_browser.js +23 -0
  40. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inherits/package.json +33 -0
  41. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inherits/test.js +25 -0
  42. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/.npmignore +1 -0
  43. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/.travis.yml +4 -0
  44. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/LICENSE +23 -0
  45. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/README.md +216 -0
  46. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/benchmark.js +15 -0
  47. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/browser.js +1181 -0
  48. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/minimatch.js +845 -0
  49. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.npmignore +2 -0
  50. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.travis.yml +3 -0
  51. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +121 -0
  52. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/example.js +8 -0
  53. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +191 -0
  54. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore +2 -0
  55. data/vendor/node_modules/traceur/node_modules/{q-io/node_modules/collections → glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/.travis.yml +0 -0
  56. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile +6 -0
  57. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/README.md +80 -0
  58. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js +5 -0
  59. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js +38 -0
  60. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +73 -0
  61. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js +56 -0
  62. data/vendor/node_modules/traceur/node_modules/{q-io/node_modules/url2 → glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/.travis.yml +1 -1
  63. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/LICENSE +18 -0
  64. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/README.markdown +62 -0
  65. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/example/map.js +6 -0
  66. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/index.js +13 -0
  67. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +83 -0
  68. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/test/map.js +39 -0
  69. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +75 -0
  70. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/bash-comparison.js +32 -0
  71. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/bash-results.txt +1075 -0
  72. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/cases.txt +182 -0
  73. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/dollar.js +9 -0
  74. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/empty-option.js +10 -0
  75. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/generate.sh +24 -0
  76. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/negative-increment.js +15 -0
  77. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/nested.js +16 -0
  78. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/order.js +10 -0
  79. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/pad.js +13 -0
  80. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/same-type.js +7 -0
  81. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/sequence.js +50 -0
  82. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/package.json +60 -0
  83. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/test/basic.js +399 -0
  84. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/test/brace-expand.js +45 -0
  85. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/test/defaults.js +274 -0
  86. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/test/extglob-ending-with-state-char.js +8 -0
  87. data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/LICENSE +27 -0
  88. data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/README.md +51 -0
  89. data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/LICENSE +15 -0
  90. data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/README.md +36 -0
  91. data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/package.json +34 -0
  92. data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/test/basic.js +51 -0
  93. data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/wrappy.js +33 -0
  94. data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/once.js +21 -0
  95. data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/package.json +42 -0
  96. data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/test/once.js +23 -0
  97. data/vendor/node_modules/traceur/node_modules/glob/package.json +72 -0
  98. data/vendor/node_modules/traceur/node_modules/glob/sync.js +409 -0
  99. data/vendor/node_modules/traceur/node_modules/rsvp/.release.json +17 -0
  100. data/vendor/node_modules/traceur/node_modules/rsvp/CHANGELOG.md +165 -0
  101. data/vendor/node_modules/traceur/node_modules/rsvp/LICENSE +19 -0
  102. data/vendor/node_modules/traceur/node_modules/rsvp/README.md +364 -0
  103. data/vendor/node_modules/traceur/node_modules/rsvp/dist/rsvp.js +1671 -0
  104. data/vendor/node_modules/traceur/node_modules/rsvp/dist/rsvp.min.js +9 -0
  105. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp.js +66 -0
  106. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp.umd.js +50 -0
  107. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/-internal.js +265 -0
  108. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/all-settled.js +71 -0
  109. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/all.js +15 -0
  110. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/asap.js +109 -0
  111. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/config.js +28 -0
  112. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/defer.js +45 -0
  113. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/enumerator.js +125 -0
  114. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/events.js +201 -0
  115. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/filter.js +120 -0
  116. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/hash-settled.js +124 -0
  117. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/hash.js +94 -0
  118. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/instrument.js +41 -0
  119. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/map.js +99 -0
  120. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/node.js +281 -0
  121. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise-hash.js +51 -0
  122. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise.js +496 -0
  123. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise/all.js +52 -0
  124. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise/race.js +105 -0
  125. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise/reject.js +47 -0
  126. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise/resolve.js +49 -0
  127. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/race.js +15 -0
  128. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/reject.js +16 -0
  129. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/resolve.js +17 -0
  130. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/rethrow.js +46 -0
  131. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/utils.js +39 -0
  132. data/vendor/node_modules/traceur/node_modules/rsvp/package.json +100 -0
  133. data/vendor/node_modules/traceur/node_modules/rsvp/rsvp.js/README.md +9 -0
  134. data/vendor/node_modules/traceur/node_modules/rsvp/rsvp.js/bower.json +22 -0
  135. data/vendor/node_modules/traceur/node_modules/rsvp/rsvp.js/composer.json +18 -0
  136. data/vendor/node_modules/traceur/node_modules/rsvp/rsvp.js/package.json +52 -0
  137. data/vendor/node_modules/traceur/node_modules/rsvp/rsvp.js/rsvp.amd.js +1607 -0
  138. data/vendor/node_modules/traceur/node_modules/rsvp/rsvp.js/rsvp.js +1566 -0
  139. data/vendor/node_modules/traceur/node_modules/rsvp/rsvp.js/rsvp.min.js +26 -0
  140. data/vendor/node_modules/traceur/node_modules/rsvp/vertx.js +1 -0
  141. data/vendor/node_modules/traceur/node_modules/semver/bin/semver +2 -2
  142. data/vendor/node_modules/traceur/node_modules/semver/package.json +4 -3
  143. data/vendor/node_modules/traceur/node_modules/semver/semver.browser.js +7 -0
  144. data/vendor/node_modules/traceur/node_modules/semver/semver.browser.js.gz +0 -0
  145. data/vendor/node_modules/traceur/node_modules/semver/semver.js +7 -0
  146. data/vendor/node_modules/traceur/node_modules/semver/semver.min.js +1 -1
  147. data/vendor/node_modules/traceur/node_modules/semver/semver.min.js.gz +0 -0
  148. data/vendor/node_modules/traceur/node_modules/semver/test/index.js +8 -4
  149. data/vendor/node_modules/traceur/node_modules/semver/test/ltr.js +2 -1
  150. data/vendor/node_modules/traceur/node_modules/source-map-support/.npmignore +1 -0
  151. data/vendor/node_modules/traceur/node_modules/{q-io/node_modules/mime/LICENSE → source-map-support/LICENSE.md} +7 -5
  152. data/vendor/node_modules/traceur/node_modules/source-map-support/README.md +165 -0
  153. data/vendor/node_modules/traceur/node_modules/source-map-support/amd-test/browser-source-map-support.js +89 -0
  154. data/vendor/node_modules/traceur/node_modules/source-map-support/amd-test/index.html +6 -0
  155. data/vendor/node_modules/traceur/node_modules/source-map-support/amd-test/require.js +36 -0
  156. data/vendor/node_modules/traceur/node_modules/source-map-support/amd-test/script.coffee +13 -0
  157. data/vendor/node_modules/traceur/node_modules/source-map-support/amd-test/script.js +24 -0
  158. data/vendor/node_modules/traceur/node_modules/source-map-support/amd-test/script.map +10 -0
  159. data/vendor/node_modules/traceur/node_modules/source-map-support/browser-source-map-support.js +89 -0
  160. data/vendor/node_modules/traceur/node_modules/source-map-support/browser-test/index.html +6 -0
  161. data/vendor/node_modules/traceur/node_modules/source-map-support/browser-test/script.coffee +12 -0
  162. data/vendor/node_modules/traceur/node_modules/source-map-support/browser-test/script.js +25 -0
  163. data/vendor/node_modules/traceur/node_modules/source-map-support/browser-test/script.map +10 -0
  164. data/vendor/node_modules/traceur/node_modules/source-map-support/build.js +69 -0
  165. data/vendor/node_modules/traceur/node_modules/source-map-support/header-test/index.html +6 -0
  166. data/vendor/node_modules/traceur/node_modules/source-map-support/header-test/script.coffee +12 -0
  167. data/vendor/node_modules/traceur/node_modules/source-map-support/header-test/script.js +25 -0
  168. data/vendor/node_modules/traceur/node_modules/source-map-support/header-test/script.map +10 -0
  169. data/vendor/node_modules/traceur/node_modules/source-map-support/header-test/server.js +45 -0
  170. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/.npmignore +2 -0
  171. data/vendor/node_modules/traceur/node_modules/{q-io → source-map-support/node_modules/source-map}/.travis.yml +1 -0
  172. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/CHANGELOG.md +121 -0
  173. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/LICENSE +28 -0
  174. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/Makefile.dryice.js +166 -0
  175. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/README.md +434 -0
  176. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/assert-shim.js +56 -0
  177. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/mini-require.js +152 -0
  178. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/prefix-source-map.jsm +20 -0
  179. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/prefix-utils.jsm +18 -0
  180. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/suffix-browser.js +8 -0
  181. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/suffix-source-map.jsm +6 -0
  182. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/suffix-utils.jsm +21 -0
  183. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/test-prefix.js +8 -0
  184. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/test-suffix.js +3 -0
  185. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map.js +8 -0
  186. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/array-set.js +97 -0
  187. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/base64-vlq.js +144 -0
  188. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/base64.js +42 -0
  189. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/binary-search.js +81 -0
  190. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/source-map-consumer.js +478 -0
  191. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/source-map-generator.js +380 -0
  192. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/source-node.js +371 -0
  193. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/util.js +205 -0
  194. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/LICENSE +58 -0
  195. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/README.md +171 -0
  196. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/amdefine.js +299 -0
  197. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/intercept.js +36 -0
  198. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/package.json +37 -0
  199. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/package.json +142 -0
  200. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/run-tests.js +62 -0
  201. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-api.js +26 -0
  202. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-array-set.js +104 -0
  203. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-base64-vlq.js +24 -0
  204. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-base64.js +35 -0
  205. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-binary-search.js +54 -0
  206. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-dog-fooding.js +72 -0
  207. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-source-map-consumer.js +451 -0
  208. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-source-map-generator.js +417 -0
  209. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-source-node.js +365 -0
  210. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/util.js +161 -0
  211. data/vendor/node_modules/traceur/node_modules/source-map-support/package.json +52 -0
  212. data/vendor/node_modules/traceur/node_modules/source-map-support/source-map-support.js +381 -0
  213. data/vendor/node_modules/traceur/node_modules/source-map-support/test.js +359 -0
  214. data/vendor/node_modules/traceur/package.json +234 -20
  215. data/vendor/node_modules/traceur/src/node/NodeCompiler.js +78 -0
  216. data/vendor/node_modules/traceur/src/node/System.js +32 -5
  217. data/vendor/node_modules/traceur/src/node/api.js +28 -93
  218. data/vendor/node_modules/traceur/src/node/command.js +84 -19
  219. data/vendor/node_modules/traceur/src/node/compileAllJsFilesInDir.js +40 -0
  220. data/vendor/node_modules/traceur/src/node/interpreter.js +11 -8
  221. data/vendor/node_modules/traceur/src/node/recursiveModuleCompile.js +171 -0
  222. data/vendor/node_modules/traceur/src/node/require.js +7 -21
  223. data/vendor/node_modules/traceur/src/node/to-amd-compiler.js +2 -7
  224. data/vendor/node_modules/traceur/src/node/to-closure-compiler.js +28 -0
  225. data/vendor/node_modules/traceur/src/node/to-commonjs-compiler.js +3 -7
  226. data/vendor/node_modules/traceur/src/node/traceur.js +1 -1
  227. metadata +196 -190
  228. data/vendor/node_modules/traceur/node_modules/q-io/.npmignore +0 -1
  229. data/vendor/node_modules/traceur/node_modules/q-io/CHANGES.md +0 -122
  230. data/vendor/node_modules/traceur/node_modules/q-io/LICENSE +0 -19
  231. data/vendor/node_modules/traceur/node_modules/q-io/README.md +0 -928
  232. data/vendor/node_modules/traceur/node_modules/q-io/buffer-stream.js +0 -59
  233. data/vendor/node_modules/traceur/node_modules/q-io/coverage-report.js +0 -44
  234. data/vendor/node_modules/traceur/node_modules/q-io/deprecate.js +0 -51
  235. data/vendor/node_modules/traceur/node_modules/q-io/fs-boot.js +0 -307
  236. data/vendor/node_modules/traceur/node_modules/q-io/fs-common.js +0 -499
  237. data/vendor/node_modules/traceur/node_modules/q-io/fs-mock.js +0 -547
  238. data/vendor/node_modules/traceur/node_modules/q-io/fs-root.js +0 -105
  239. data/vendor/node_modules/traceur/node_modules/q-io/fs.js +0 -355
  240. data/vendor/node_modules/traceur/node_modules/q-io/fs2http.js +0 -65
  241. data/vendor/node_modules/traceur/node_modules/q-io/http-apps.js +0 -152
  242. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/chain.js +0 -24
  243. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/content.js +0 -93
  244. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/cookie.js +0 -154
  245. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/decorators.js +0 -178
  246. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/fs.js +0 -417
  247. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/html.js +0 -58
  248. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/json.js +0 -78
  249. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/negotiate.js +0 -120
  250. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/proxy.js +0 -27
  251. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/redirect.js +0 -209
  252. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/route.js +0 -125
  253. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/status.js +0 -175
  254. data/vendor/node_modules/traceur/node_modules/q-io/http-cookie.js +0 -75
  255. data/vendor/node_modules/traceur/node_modules/q-io/http.js +0 -378
  256. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/.npmignore +0 -11
  257. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/CHANGES.md +0 -78
  258. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/LICENSE.md +0 -21
  259. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/README.md +0 -1285
  260. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/collections.js +0 -22
  261. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/dict.js +0 -142
  262. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/fast-map.js +0 -57
  263. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/fast-set.js +0 -183
  264. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/generic-collection.js +0 -261
  265. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/generic-map.js +0 -186
  266. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/generic-order.js +0 -55
  267. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/generic-set.js +0 -59
  268. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/heap.js +0 -236
  269. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/iterator.js +0 -371
  270. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/list.js +0 -435
  271. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/listen/array-changes.js +0 -247
  272. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/listen/map-changes.js +0 -147
  273. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/listen/property-changes.js +0 -448
  274. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/listen/range-changes.js +0 -139
  275. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/lru-map.js +0 -79
  276. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/lru-set.js +0 -142
  277. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/map.js +0 -60
  278. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/multi-map.js +0 -41
  279. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/node_modules/weak-map/package.json +0 -12
  280. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/node_modules/weak-map/sync +0 -7
  281. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/node_modules/weak-map/sync.patch +0 -48
  282. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/node_modules/weak-map/weak-map.js +0 -590
  283. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/package.json +0 -49
  284. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/set.js +0 -173
  285. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/shim-array.js +0 -274
  286. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/shim-function.js +0 -59
  287. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/shim-object.js +0 -538
  288. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/shim-regexp.js +0 -14
  289. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/shim.js +0 -6
  290. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/sorted-array-map.js +0 -49
  291. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/sorted-array-set.js +0 -51
  292. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/sorted-array.js +0 -269
  293. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/sorted-map.js +0 -61
  294. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/sorted-set.js +0 -736
  295. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/tree-log.js +0 -40
  296. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/weak-map.js +0 -1
  297. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mime/README.md +0 -66
  298. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mime/mime.js +0 -114
  299. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mime/package.json +0 -35
  300. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mime/test.js +0 -84
  301. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mime/types/mime.types +0 -1588
  302. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mime/types/node.types +0 -77
  303. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mimeparse/CHANGES +0 -15
  304. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mimeparse/LICENSE +0 -19
  305. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mimeparse/README +0 -96
  306. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mimeparse/lib/mimeparse.js +0 -166
  307. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mimeparse/package.json +0 -43
  308. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/CONTRIBUTING.md +0 -40
  309. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/LICENSE +0 -19
  310. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/README.md +0 -813
  311. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/benchmark/compare-with-callbacks.js +0 -71
  312. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/benchmark/scenarios.js +0 -36
  313. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/package.json +0 -93
  314. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/q.js +0 -1937
  315. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/queue.js +0 -35
  316. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/.gitmodules +0 -6
  317. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/History.md +0 -36
  318. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/Makefile +0 -7
  319. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/Readme.md +0 -38
  320. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/benchmark.js +0 -32
  321. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/examples.js +0 -39
  322. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/index.js +0 -2
  323. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/lib/querystring.js +0 -123
  324. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/package.json +0 -19
  325. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/.gitmodules +0 -3
  326. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/.npmignore +0 -3
  327. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/History.md +0 -128
  328. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/Makefile +0 -53
  329. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/Readme.md +0 -61
  330. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/bin/expresso +0 -856
  331. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/docs/api.html +0 -1080
  332. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/docs/index.html +0 -377
  333. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/docs/index.md +0 -290
  334. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/docs/layout/foot.html +0 -3
  335. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/docs/layout/head.html +0 -42
  336. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/lib/bar.js +0 -4
  337. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/lib/foo.js +0 -16
  338. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/package.json +0 -12
  339. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/assert.test.js +0 -91
  340. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/async.test.js +0 -12
  341. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/bar.test.js +0 -13
  342. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/foo.test.js +0 -14
  343. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/http.test.js +0 -146
  344. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/serial/async.test.js +0 -39
  345. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/serial/http.test.js +0 -48
  346. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/.gitmodules +0 -3
  347. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/History.md +0 -22
  348. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/Makefile +0 -6
  349. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/Readme.md +0 -248
  350. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/examples/runner.js +0 -53
  351. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/index.js +0 -2
  352. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/lib/eql.js +0 -91
  353. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/lib/should.js +0 -548
  354. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/package.json +0 -8
  355. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/test/should.test.js +0 -358
  356. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/test/querystring.test.js +0 -133
  357. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/url2/.npmignore +0 -3
  358. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/url2/LICENSE.md +0 -20
  359. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/url2/README.md +0 -33
  360. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/url2/package.json +0 -37
  361. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/url2/test/url2-spec.js +0 -125
  362. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/url2/url2.js +0 -151
  363. data/vendor/node_modules/traceur/node_modules/q-io/package.json +0 -51
  364. data/vendor/node_modules/traceur/node_modules/q-io/reader.js +0 -133
  365. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/boot-directory-spec.js +0 -47
  366. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/contains-spec.js +0 -11
  367. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/fixtures/hello.txt +0 -1
  368. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/issues/1-spec.js +0 -33
  369. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/make-tree-spec.js +0 -92
  370. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/append-spec.js +0 -41
  371. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/copy-tree-spec.js +0 -57
  372. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/fixture/hello.txt +0 -1
  373. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/link-spec.js +0 -70
  374. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/make-tree-spec.js +0 -109
  375. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/merge-spec.js +0 -67
  376. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/move-spec.js +0 -219
  377. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/object-spec.js +0 -20
  378. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/range-spec.js +0 -26
  379. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/read-spec.js +0 -40
  380. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/remove-directory-spec.js +0 -37
  381. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/remove-tree-spec.js +0 -39
  382. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/root-spec.js +0 -32
  383. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/stat-spec.js +0 -26
  384. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/symbolic-link-spec.js +0 -86
  385. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/working-directory-spec.js +0 -31
  386. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/write-spec.js +0 -73
  387. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/range-spec.js +0 -23
  388. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/range-spec.txt +0 -1
  389. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/read-spec.js +0 -22
  390. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/relative-spec.js +0 -25
  391. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/reroot-spec.js +0 -45
  392. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/write-spec.js +0 -38
  393. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/cookie-spec.js +0 -52
  394. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/directory-list-spec.js +0 -86
  395. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/fixtures/01234.txt +0 -1
  396. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/fixtures/1234.txt +0 -1
  397. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/fixtures/5678.txt +0 -0
  398. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/fixtures/9012/3456.txt +0 -0
  399. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/hosts-spec.js +0 -49
  400. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/interpret-range-spec.js +0 -47
  401. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/partial-range-spec.js +0 -186
  402. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/proxy-spec.js +0 -82
  403. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/symbolic-link-spec.js +0 -110
  404. data/vendor/node_modules/traceur/node_modules/q-io/spec/http/agent-spec.js +0 -96
  405. data/vendor/node_modules/traceur/node_modules/q-io/spec/http/basic-spec.js +0 -96
  406. data/vendor/node_modules/traceur/node_modules/q-io/spec/lib/jasmine-promise.js +0 -42
  407. data/vendor/node_modules/traceur/node_modules/q-io/writer.js +0 -111
  408. data/vendor/node_modules/traceur/src/node/compile-single-file.js +0 -69
  409. data/vendor/node_modules/traceur/src/node/compiler.js +0 -116
  410. data/vendor/node_modules/traceur/src/node/inline-module.js +0 -149
@@ -0,0 +1,26 @@
1
+ /*!
2
+ * @overview RSVP - a tiny implementation of Promises/A+.
3
+ * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors
4
+ * @license Licensed under MIT license
5
+ * See https://raw.githubusercontent.com/tildeio/rsvp.js/master/LICENSE
6
+ * @version 3.0.15
7
+ */
8
+
9
+ (function(){function O(a,b){if(a&&"object"===typeof a&&a.constructor===this)return a;var c=new this(s,b);q(c,a);return c}function z(a,b,c){1===F.push({name:a,t:{key:b.v,id:b.n,G:a,detail:b.b,B:c&&c.n,label:b.q,timeStamp:P(),error:f["instrument-with-stack"]?Error(b.q):null}})&&da()}function Q(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return-1}function I(a){var b=a.r;b||(b=a.r={});return b}function R(a,b){if("onerror"===a)f.on("error",b);else if(2===arguments.length)f[a]=b;else return f[a]}
10
+ function A(a){return"function"===typeof a}function S(){}function da(){setTimeout(function(){for(var a,b=0;b<F.length;b++){a=F[b];var c=a.t;c.H=c.key+c.id;c.F=c.key+c.B;c.error&&(c.stack=c.error.stack);f.trigger(a.name,a.t)}F.length=0},50)}function s(){}function ea(a,b,c,d){try{a.call(b,c,d)}catch(e){return e}}function fa(a,b,c){f.async(function(a){var e=!1,g=ea(c,b,function(c){e||(e=!0,b!==c?q(a,c):n(a,c))},function(b){e||(e=!0,m(a,b))});!e&&g&&(e=!0,m(a,g))},a)}function ga(a,b){1===b.a?n(a,b.b):
11
+ 2===b.a?(b.d=null,m(a,b.b)):G(b,void 0,function(c){b!==c?q(a,c):n(a,c)},function(b){m(a,b)})}function q(a,b){if(a===b)n(a,b);else if("function"===typeof b||"object"===typeof b&&null!==b)if(b.constructor===a.constructor)ga(a,b);else{var c;try{c=b.then}catch(d){H.error=d,c=H}c===H?m(a,H.error):void 0===c?n(a,b):A(c)?fa(a,b,c):n(a,b)}else n(a,b)}function ha(a){a.d&&a.d(a.b);J(a)}function n(a,b){void 0===a.a&&(a.b=b,a.a=1,0===a.i.length?f.g&&z("fulfilled",a):f.async(J,a))}function m(a,b){void 0===a.a&&
12
+ (a.a=2,a.b=b,f.async(ha,a))}function G(a,b,c,d){var e=a.i,g=e.length;a.d=null;e[g]=b;e[g+1]=c;e[g+2]=d;0===g&&a.a&&f.async(J,a)}function J(a){var b=a.i,c=a.a;f.g&&z(1===c?"fulfilled":"rejected",a);if(0!==b.length){for(var d,e,g=a.b,h=0;h<b.length;h+=3)d=b[h],e=b[h+c],d?T(c,d,e,g):e(g);a.i.length=0}}function U(){this.error=null}function T(a,b,c,d){var e=A(c),g,h,f,l;if(e){try{g=c(d)}catch(k){K.error=k,g=K}g===K?(l=!0,h=g.error,g=null):f=!0;if(b===g){m(b,new TypeError("A promises callback cannot return that same promise."));
13
+ return}}else g=d,f=!0;void 0===b.a&&(e&&f?q(b,g):l?m(b,h):1===a?n(b,g):2===a&&m(b,g))}function ia(a,b){var c=!1;try{b(function(b){c||(c=!0,q(a,b))},function(b){c||(c=!0,m(a,b))})}catch(d){m(a,d)}}function V(a,b,c){return 1===a?{state:"fulfilled",value:c}:{state:"rejected",reason:c}}function k(a,b,c,d){this.w=a;this.c=new a(s,d);this.u=c;this.s(b)?(this.p=b,this.e=this.length=b.length,this.o(),0===this.length?n(this.c,this.b):(this.length=this.length||0,this.m(),0===this.e&&n(this.c,this.b))):m(this.c,
14
+ this.j())}function r(a,b){this.n=ja++;this.q=b;this.b=this.a=void 0;this.i=[];f.g&&z("created",this);if(s!==a){if(!A(a))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof r))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");ia(this,a)}}function W(){this.value=void 0}function X(a,b,c){try{a.apply(b,c)}catch(d){return (w.value = d, w)}}function ka(a,
15
+ b){return{then:function(c,d){return a.call(b,c,d)}}}function la(a,b,c,d){b=X(c,d,b);b===w&&m(a,b.value);return a}function ma(a,b,c,d){return l.all(b).then(function(b){b=X(c,d,b);b===w&&m(a,b.value);return a})}function B(a,b,c){this.f(a,b,!1,c)}function t(a,b,c){this.f(a,b,!0,c)}function C(a,b,c){this.f(a,b,!1,c)}function na(){var a=process.nextTick,b=process.versions.I.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/);Array.isArray(b)&&"0"===b[1]&&"10"===b[2]&&(a=setImmediate);return function(){a(D)}}function oa(){return function(){vertxNext(D)}}
16
+ function pa(){var a=0,b=new Y(D),c=document.createTextNode("");b.observe(c,{characterData:!0});return function(){c.data=a=++a%2}}function qa(){var a=new MessageChannel;a.port1.onmessage=D;return function(){a.port2.postMessage(0)}}function Z(){return function(){setTimeout(D,1)}}function D(){for(var a=0;a<u;a+=2)(0,x[a])(x[a+1]),x[a]=void 0,x[a+1]=void 0;u=0}function $(){f.on.apply(f,arguments)}var aa={mixin:function(a){a.on=this.on;a.off=this.off;a.trigger=this.trigger;a.r=void 0;return a},on:function(a,
17
+ b){var c=I(this),d;(d=c[a])||(d=c[a]=[]);-1===Q(d,b)&&d.push(b)},off:function(a,b){var c=I(this),d;b?(c=c[a],d=Q(c,b),-1!==d&&c.splice(d,1)):c[a]=[]},trigger:function(a,b){var c,d;if(c=I(this)[a])for(var e=0;e<c.length;e++)d=c[e],d(b)}},f={g:!1};aa.mixin(f);var L=Array.isArray?Array.isArray:function(a){return"[object Array]"===Object.prototype.toString.call(a)},P=Date.now||function(){return(new Date).getTime()},E=Object.create||function(a){if(1<arguments.length)throw Error("Second argument not supported");
18
+ if("object"!==typeof a)throw new TypeError("Argument must be an object");S.prototype=a;return new S},F=[],H=new U,K=new U;k.prototype.s=function(a){return L(a)};k.prototype.j=function(){return Error("Array Methods must be provided an Array")};k.prototype.o=function(){this.b=Array(this.length)};k.prototype.m=function(){for(var a=this.length,b=this.c,c=this.p,d=0;void 0===b.a&&d<a;d++)this.l(c[d],d)};k.prototype.l=function(a,b){var c=this.w;"object"===typeof a&&null!==a?a.constructor===c&&void 0!==
19
+ a.a?(a.d=null,this.k(a.a,b,a.b)):this.A(c.resolve(a),b):(this.e--,this.b[b]=this.h(1,b,a))};k.prototype.k=function(a,b,c){var d=this.c;void 0===d.a&&(this.e--,this.u&&2===a?m(d,c):this.b[b]=this.h(a,b,c));0===this.e&&n(d,this.b)};k.prototype.h=function(a,b,c){return c};k.prototype.A=function(a,b){var c=this;G(a,void 0,function(a){c.k(1,b,a)},function(a){c.k(2,b,a)})};var y="rsvp_"+P()+"-",ja=0,l=r;r.D=O;r.all=function(a,b){return(new k(this,a,!0,b)).c};r.race=function(a,b){function c(a){q(e,a)}function d(a){m(e,
20
+ a)}var e=new this(s,b);if(!L(a))return (m(e,new TypeError("You must pass an array to race.")), e);for(var g=a.length,h=0;void 0===e.a&&h<g;h++)G(this.resolve(a[h]),void 0,c,d);return e};r.resolve=O;r.reject=function(a,b){var c=new this(s,b);m(c,a);return c};r.prototype={constructor:r,v:y,d:function(a){f.async(function(b){setTimeout(function(){b.d&&f.trigger("error",a)},0)},this)},then:function(a,b,c){var d=this.a;if(1===d&&!a||2===d&&!b)return (f.g&&z("chained",this,this), this);this.d=null;var e=new this.constructor(s,
21
+ c),g=this.b;f.g&&z("chained",this,e);if(d){var h=arguments[d-1];f.async(function(){T(d,e,h,g)})}else G(this,e,a,b);return e}};var w=new W,ba=new W;B.prototype=E(k.prototype);B.prototype.f=k;B.prototype.h=V;B.prototype.j=function(){return Error("allSettled must be called with an array")};t.prototype=E(k.prototype);t.prototype.f=k;t.prototype.o=function(){this.b={}};t.prototype.s=function(a){return a&&"object"===typeof a};t.prototype.j=function(){return Error("Promise.hash must be called with an object")};
22
+ t.prototype.m=function(){var a=this.c,b=this.p,c=[],d;for(d in b)void 0===a.a&&b.hasOwnProperty(d)&&c.push({position:d,C:b[d]});this.e=b=c.length;for(var e=0;void 0===a.a&&e<b;e++)d=c[e],this.l(d.C,d.position)};C.prototype=E(t.prototype);C.prototype.f=k;C.prototype.h=V;C.prototype.j=function(){return Error("hashSettled must be called with an object")};var u=0,y=(E="undefined"!==typeof window?window:void 0)||{},Y=y.MutationObserver||y.WebKitMutationObserver,y="undefined"!==typeof process&&"[object process]"===
23
+ {}.toString.call(process),ra="undefined"!==typeof Uint8ClampedArray&&"undefined"!==typeof importScripts&&"undefined"!==typeof MessageChannel,x=Array(1E3),ca,p;if(y)p=na();else if(Y)p=pa();else if(ra)p=qa();else if(void 0===E&&"function"===typeof require)try{require("vertx"),p=oa()}catch(sa){p=Z()}else p=Z();ca=p;f.async=function(a,b){x[u]=a;x[u+1]=b;u+=2;2===u&&ca()};if("undefined"!==typeof window&&"object"===typeof window.__PROMISE_INSTRUMENTATION__){p=window.__PROMISE_INSTRUMENTATION__;R("instrument",
24
+ !0);for(var M in p)p.hasOwnProperty(M)&&$(M,p[M])}var N={race:function(a,b){return l.race(a,b)},Promise:l,allSettled:function(a,b){return(new B(l,a,b)).c},hash:function(a,b){return(new t(l,a,b)).c},hashSettled:function(a,b){return(new C(l,a,b)).c},denodeify:function(a,b){function c(){for(var c=arguments.length,e=Array(c+1),g,h=!1,f=0;f<c;++f){g=arguments[f];if(!h){if(g&&"object"===typeof g){var k;if(g.constructor===l)k=!0;else try{k=g.then}catch(n){w.value=n,k=w}h=k}else h=!1;if(h===ba)return (c=new l(s), m(c,ba.value), c);h&&!0!==h&&(g=ka(h,g))}e[f]=g}var v=new l(s);e[c]=function(a,c){if(a)m(v,a);else if(void 0===b)q(v,c);else if(!0===b){for(var d=arguments,e=d.length,g=Array(e-1),f=1;f<e;f++)g[f-1]=d[f];q(v,g)}else if(L(b)){for(var g=arguments,d={},f=g.length,e=Array(f),h=0;h<f;h++)e[h]=g[h];for(f=0;f<b.length;f++)g=b[f],d[g]=e[f+1];q(v,d)}else q(v,c)};return h?ma(v,e,a,this):la(v,e,a,this)}c.__proto__=a;return c},on:$,off:function(){f.off.apply(f,arguments)},map:function(a,b,c){return l.all(a,c).then(function(a){if(!A(b))throw new TypeError("You must pass a function as map's second argument.");
25
+ for(var e=a.length,g=Array(e),f=0;f<e;f++)g[f]=b(a[f]);return l.all(g,c)})},filter:function(a,b,c){return l.all(a,c).then(function(a){if(!A(b))throw new TypeError("You must pass a function as filter's second argument.");for(var e=a.length,f=Array(e),h=0;h<e;h++)f[h]=b(a[h]);return l.all(f,c).then(function(b){for(var c=Array(e),f=0,g=0;g<e;g++)b[g]&&(c[f]=a[g],f++);c.length=f;return c})})},resolve:function(a,b){return l.resolve(a,b)},reject:function(a,b){return l.reject(a,b)},all:function(a,b){return l.all(a,
26
+ b)},rethrow:function(a){setTimeout(function(){throw a;});throw a;},defer:function(a){var b={};b.promise=new l(function(a,d){b.resolve=a;b.reject=d},a);return b},EventTarget:aa,configure:R,async:function(a,b){f.async(a,b)}};"function"===typeof define&&define.amd?define(function(){return N}):"undefined"!==typeof module&&module.exports?module.exports=N:"undefined"!==typeof this&&(this.RSVP=N)}).call(this);
@@ -0,0 +1 @@
1
+ // to make browserify happy about trying to require('vertx')
@@ -107,8 +107,8 @@ function help () {
107
107
  ,""
108
108
  ,"-i --increment [<level>]"
109
109
  ," Increment a version by the specified level. Level can"
110
- ," be one of: major, minor, patch, or prerelease"
111
- ," Default level is 'patch'."
110
+ ," be one of: major, minor, patch, premajor, preminor,"
111
+ ," prepatch, or prerelease. Default level is 'patch'."
112
112
  ," Only one version may be specified."
113
113
  ,""
114
114
  ,"-l --loose"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "semver",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
4
4
  "description": "The semantic version parser used by npm.",
5
5
  "main": "semver.js",
6
6
  "browser": "semver.browser.js",
@@ -26,6 +26,7 @@
26
26
  "bugs": {
27
27
  "url": "https://github.com/isaacs/node-semver/issues"
28
28
  },
29
- "_id": "semver@2.3.0",
30
- "_from": "semver@*"
29
+ "homepage": "https://github.com/isaacs/node-semver",
30
+ "_id": "semver@2.3.2",
31
+ "_from": "semver@>=2.0.0 <3.0.0"
31
32
  }
@@ -356,6 +356,10 @@ SemVer.prototype.inc = function(release) {
356
356
  this.inc('pre');
357
357
  break;
358
358
  case 'prepatch':
359
+ // If this is already a prerelease, it will bump to the next version
360
+ // drop any prereleases that might already exist, since they are not
361
+ // relevant at this point.
362
+ this.prerelease.length = 0
359
363
  this.inc('patch');
360
364
  this.inc('pre');
361
365
  break;
@@ -548,6 +552,9 @@ Comparator.prototype.parse = function(comp) {
548
552
  throw new TypeError('Invalid comparator: ' + comp);
549
553
 
550
554
  this.operator = m[1];
555
+ if (this.operator === '=')
556
+ this.operator = '';
557
+
551
558
  // if it literally is just '>' or '' then allow anything.
552
559
  if (!m[2])
553
560
  this.semver = ANY;
@@ -366,6 +366,10 @@ SemVer.prototype.inc = function(release) {
366
366
  this.inc('pre');
367
367
  break;
368
368
  case 'prepatch':
369
+ // If this is already a prerelease, it will bump to the next version
370
+ // drop any prereleases that might already exist, since they are not
371
+ // relevant at this point.
372
+ this.prerelease.length = 0
369
373
  this.inc('patch');
370
374
  this.inc('pre');
371
375
  break;
@@ -558,6 +562,9 @@ Comparator.prototype.parse = function(comp) {
558
562
  throw new TypeError('Invalid comparator: ' + comp);
559
563
 
560
564
  this.operator = m[1];
565
+ if (this.operator === '=')
566
+ this.operator = '';
567
+
561
568
  // if it literally is just '>' or '' then allow anything.
562
569
  if (!m[2])
563
570
  this.semver = ANY;
@@ -1 +1 @@
1
- (function(e){if(typeof module==="object"&&module.exports===e)e=module.exports=H;e.SEMVER_SPEC_VERSION="2.0.0";var r=e.re=[];var t=e.src=[];var n=0;var i=n++;t[i]="0|[1-9]\\d*";var s=n++;t[s]="[0-9]+";var a=n++;t[a]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var o=n++;t[o]="("+t[i]+")\\."+"("+t[i]+")\\."+"("+t[i]+")";var f=n++;t[f]="("+t[s]+")\\."+"("+t[s]+")\\."+"("+t[s]+")";var u=n++;t[u]="(?:"+t[i]+"|"+t[a]+")";var c=n++;t[c]="(?:"+t[s]+"|"+t[a]+")";var l=n++;t[l]="(?:-("+t[u]+"(?:\\."+t[u]+")*))";var p=n++;t[p]="(?:-?("+t[c]+"(?:\\."+t[c]+")*))";var h=n++;t[h]="[0-9A-Za-z-]+";var v=n++;t[v]="(?:\\+("+t[h]+"(?:\\."+t[h]+")*))";var m=n++;var g="v?"+t[o]+t[l]+"?"+t[v]+"?";t[m]="^"+g+"$";var w="[v=\\s]*"+t[f]+t[p]+"?"+t[v]+"?";var d=n++;t[d]="^"+w+"$";var y=n++;t[y]="((?:<|>)?=?)";var b=n++;t[b]=t[s]+"|x|X|\\*";var $=n++;t[$]=t[i]+"|x|X|\\*";var j=n++;t[j]="[v=\\s]*("+t[$]+")"+"(?:\\.("+t[$]+")"+"(?:\\.("+t[$]+")"+"(?:("+t[l]+")"+")?)?)?";var k=n++;t[k]="[v=\\s]*("+t[b]+")"+"(?:\\.("+t[b]+")"+"(?:\\.("+t[b]+")"+"(?:("+t[p]+")"+")?)?)?";var E=n++;t[E]="^"+t[y]+"\\s*"+t[j]+"$";var x=n++;t[x]="^"+t[y]+"\\s*"+t[k]+"$";var R=n++;t[R]="(?:~>?)";var S=n++;t[S]="(\\s*)"+t[R]+"\\s+";r[S]=new RegExp(t[S],"g");var V="$1~";var I=n++;t[I]="^"+t[R]+t[j]+"$";var T=n++;t[T]="^"+t[R]+t[k]+"$";var A=n++;t[A]="(?:\\^)";var C=n++;t[C]="(\\s*)"+t[A]+"\\s+";r[C]=new RegExp(t[C],"g");var M="$1^";var z=n++;t[z]="^"+t[A]+t[j]+"$";var P=n++;t[P]="^"+t[A]+t[k]+"$";var Z=n++;t[Z]="^"+t[y]+"\\s*("+w+")$|^$";var q=n++;t[q]="^"+t[y]+"\\s*("+g+")$|^$";var L=n++;t[L]="(\\s*)"+t[y]+"\\s*("+w+"|"+t[j]+")";r[L]=new RegExp(t[L],"g");var X="$1$2$3";var _=n++;t[_]="^\\s*("+t[j]+")"+"\\s+-\\s+"+"("+t[j]+")"+"\\s*$";var N=n++;t[N]="^\\s*("+t[k]+")"+"\\s+-\\s+"+"("+t[k]+")"+"\\s*$";var O=n++;t[O]="(<|>)?=?\\s*\\*";for(var B=0;B<n;B++){if(!r[B])r[B]=new RegExp(t[B])}e.parse=D;function D(e,t){var n=t?r[d]:r[m];return n.test(e)?new H(e,t):null}e.valid=F;function F(e,r){var t=D(e,r);return t?t.version:null}e.clean=G;function G(e,r){var t=D(e,r);return t?t.version:null}e.SemVer=H;function H(e,t){if(e instanceof H){if(e.loose===t)return e;else e=e.version}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(!(this instanceof H))return new H(e,t);this.loose=t;var n=e.trim().match(t?r[d]:r[m]);if(!n)throw new TypeError("Invalid Version: "+e);this.raw=e;this.major=+n[1];this.minor=+n[2];this.patch=+n[3];if(!n[4])this.prerelease=[];else this.prerelease=n[4].split(".").map(function(e){return/^[0-9]+$/.test(e)?+e:e});this.build=n[5]?n[5].split("."):[];this.format()}H.prototype.format=function(){this.version=this.major+"."+this.minor+"."+this.patch;if(this.prerelease.length)this.version+="-"+this.prerelease.join(".");return this.version};H.prototype.inspect=function(){return'<SemVer "'+this+'">'};H.prototype.toString=function(){return this.version};H.prototype.compare=function(e){if(!(e instanceof H))e=new H(e,this.loose);return this.compareMain(e)||this.comparePre(e)};H.prototype.compareMain=function(e){if(!(e instanceof H))e=new H(e,this.loose);return Q(this.major,e.major)||Q(this.minor,e.minor)||Q(this.patch,e.patch)};H.prototype.comparePre=function(e){if(!(e instanceof H))e=new H(e,this.loose);if(this.prerelease.length&&!e.prerelease.length)return-1;else if(!this.prerelease.length&&e.prerelease.length)return 1;else if(!this.prerelease.length&&!e.prerelease.length)return 0;var r=0;do{var t=this.prerelease[r];var n=e.prerelease[r];if(t===undefined&&n===undefined)return 0;else if(n===undefined)return 1;else if(t===undefined)return-1;else if(t===n)continue;else return Q(t,n)}while(++r)};H.prototype.inc=function(e){switch(e){case"premajor":this.inc("major");this.inc("pre");break;case"preminor":this.inc("minor");this.inc("pre");break;case"prepatch":this.inc("patch");this.inc("pre");break;case"prerelease":if(this.prerelease.length===0)this.inc("patch");this.inc("pre");break;case"major":this.major++;this.minor=-1;case"minor":this.minor++;this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0)this.patch++;this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{var r=this.prerelease.length;while(--r>=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1)this.prerelease.push(0)}break;default:throw new Error("invalid increment argument: "+e)}this.format();return this};e.inc=J;function J(e,r,t){try{return new H(e,t).inc(r).version}catch(n){return null}}e.compareIdentifiers=Q;var K=/^[0-9]+$/;function Q(e,r){var t=K.test(e);var n=K.test(r);if(t&&n){e=+e;r=+r}return t&&!n?-1:n&&!t?1:e<r?-1:e>r?1:0}e.rcompareIdentifiers=U;function U(e,r){return Q(r,e)}e.compare=W;function W(e,r,t){return new H(e,t).compare(r)}e.compareLoose=Y;function Y(e,r){return W(e,r,true)}e.rcompare=er;function er(e,r,t){return W(r,e,t)}e.sort=rr;function rr(r,t){return r.sort(function(r,n){return e.compare(r,n,t)})}e.rsort=tr;function tr(r,t){return r.sort(function(r,n){return e.rcompare(r,n,t)})}e.gt=nr;function nr(e,r,t){return W(e,r,t)>0}e.lt=ir;function ir(e,r,t){return W(e,r,t)<0}e.eq=sr;function sr(e,r,t){return W(e,r,t)===0}e.neq=ar;function ar(e,r,t){return W(e,r,t)!==0}e.gte=or;function or(e,r,t){return W(e,r,t)>=0}e.lte=fr;function fr(e,r,t){return W(e,r,t)<=0}e.cmp=ur;function ur(e,r,t,n){var i;switch(r){case"===":i=e===t;break;case"!==":i=e!==t;break;case"":case"=":case"==":i=sr(e,t,n);break;case"!=":i=ar(e,t,n);break;case">":i=nr(e,t,n);break;case">=":i=or(e,t,n);break;case"<":i=ir(e,t,n);break;case"<=":i=fr(e,t,n);break;default:throw new TypeError("Invalid operator: "+r)}return i}e.Comparator=cr;function cr(e,r){if(e instanceof cr){if(e.loose===r)return e;else e=e.value}if(!(this instanceof cr))return new cr(e,r);this.loose=r;this.parse(e);if(this.semver===lr)this.value="";else this.value=this.operator+this.semver.version}var lr={};cr.prototype.parse=function(e){var t=this.loose?r[Z]:r[q];var n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1];if(!n[2])this.semver=lr;else{this.semver=new H(n[2],this.loose);if(this.operator==="<"&&!this.semver.prerelease.length){this.semver.prerelease=["0"];this.semver.format()}}};cr.prototype.inspect=function(){return'<SemVer Comparator "'+this+'">'};cr.prototype.toString=function(){return this.value};cr.prototype.test=function(e){return this.semver===lr?true:ur(e,this.operator,this.semver,this.loose)};e.Range=pr;function pr(e,r){if(e instanceof pr&&e.loose===r)return e;if(!(this instanceof pr))return new pr(e,r);this.loose=r;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length});if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}pr.prototype.inspect=function(){return'<SemVer Range "'+this.range+'">'};pr.prototype.format=function(){this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim();return this.range};pr.prototype.toString=function(){return this.range};pr.prototype.parseRange=function(e){var t=this.loose;e=e.trim();var n=t?r[N]:r[_];e=e.replace(n,kr);e=e.replace(r[L],X);e=e.replace(r[S],V);e=e.replace(r[C],M);e=e.split(/\s+/).join(" ");var i=t?r[Z]:r[q];var s=e.split(" ").map(function(e){return vr(e,t)}).join(" ").split(/\s+/);if(this.loose){s=s.filter(function(e){return!!e.match(i)})}s=s.map(function(e){return new cr(e,t)});return s};e.toComparators=hr;function hr(e,r){return new pr(e,r).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function vr(e,r){e=dr(e,r);e=gr(e,r);e=br(e,r);e=jr(e,r);return e}function mr(e){return!e||e.toLowerCase()==="x"||e==="*"}function gr(e,r){return e.trim().split(/\s+/).map(function(e){return wr(e,r)}).join(" ")}function wr(e,t){var n=t?r[T]:r[I];return e.replace(n,function(e,r,t,n,i){var s;if(mr(r))s="";else if(mr(t))s=">="+r+".0.0-0 <"+(+r+1)+".0.0-0";else if(mr(n))s=">="+r+"."+t+".0-0 <"+r+"."+(+t+1)+".0-0";else if(i){if(i.charAt(0)!=="-")i="-"+i;s=">="+r+"."+t+"."+n+i+" <"+r+"."+(+t+1)+".0-0"}else s=">="+r+"."+t+"."+n+"-0"+" <"+r+"."+(+t+1)+".0-0";return s})}function dr(e,r){return e.trim().split(/\s+/).map(function(e){return yr(e,r)}).join(" ")}function yr(e,t){var n=t?r[P]:r[z];return e.replace(n,function(e,r,t,n,i){var s;if(mr(r))s="";else if(mr(t))s=">="+r+".0.0-0 <"+(+r+1)+".0.0-0";else if(mr(n)){if(r==="0")s=">="+r+"."+t+".0-0 <"+r+"."+(+t+1)+".0-0";else s=">="+r+"."+t+".0-0 <"+(+r+1)+".0.0-0"}else if(i){if(i.charAt(0)!=="-")i="-"+i;if(r==="0"){if(t==="0")s="="+r+"."+t+"."+n+i;else s=">="+r+"."+t+"."+n+i+" <"+r+"."+(+t+1)+".0-0"}else s=">="+r+"."+t+"."+n+i+" <"+(+r+1)+".0.0-0"}else{if(r==="0"){if(t==="0")s="="+r+"."+t+"."+n;else s=">="+r+"."+t+"."+n+"-0"+" <"+r+"."+(+t+1)+".0-0"}else s=">="+r+"."+t+"."+n+"-0"+" <"+(+r+1)+".0.0-0"}return s})}function br(e,r){return e.split(/\s+/).map(function(e){return $r(e,r)}).join(" ")}function $r(e,t){e=e.trim();var n=t?r[x]:r[E];return e.replace(n,function(e,r,t,n,i,s){var a=mr(t);var o=a||mr(n);var f=o||mr(i);var u=f;if(r==="="&&u)r="";if(r&&u){if(a)t=0;if(o)n=0;if(f)i=0;if(r===">"){r=">=";if(a){}else if(o){t=+t+1;n=0;i=0}else if(f){n=+n+1;i=0}}e=r+t+"."+n+"."+i+"-0"}else if(a){e="*"}else if(o){e=">="+t+".0.0-0 <"+(+t+1)+".0.0-0"}else if(f){e=">="+t+"."+n+".0-0 <"+t+"."+(+n+1)+".0-0"}return e})}function jr(e,t){return e.trim().replace(r[O],"")}function kr(e,r,t,n,i,s,a,o,f,u,c,l,p){if(mr(t))r="";else if(mr(n))r=">="+t+".0.0-0";else if(mr(i))r=">="+t+"."+n+".0-0";else r=">="+r;if(mr(f))o="";else if(mr(u))o="<"+(+f+1)+".0.0-0";else if(mr(c))o="<"+f+"."+(+u+1)+".0-0";else if(l)o="<="+f+"."+u+"."+c+"-"+l;else o="<="+o;return(r+" "+o).trim()}pr.prototype.test=function(e){if(!e)return false;for(var r=0;r<this.set.length;r++){if(Er(this.set[r],e))return true}return false};function Er(e,r){for(var t=0;t<e.length;t++){if(!e[t].test(r))return false}return true}e.satisfies=xr;function xr(e,r,t){try{r=new pr(r,t)}catch(n){return false}return r.test(e)}e.maxSatisfying=Rr;function Rr(e,r,t){return e.filter(function(e){return xr(e,r,t)}).sort(function(e,r){return er(e,r,t)})[0]||null}e.validRange=Sr;function Sr(e,r){try{return new pr(e,r).range||"*"}catch(t){return null}}e.ltr=Vr;function Vr(e,r,t){return Tr(e,r,"<",t)}e.gtr=Ir;function Ir(e,r,t){return Tr(e,r,">",t)}e.outside=Tr;function Tr(e,r,t,n){e=new H(e,n);r=new pr(r,n);var i,s,a,o,f;switch(t){case">":i=nr;s=fr;a=ir;o=">";f=">=";break;case"<":i=ir;s=or;a=nr;o="<";f="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(xr(e,r,n)){return false}for(var u=0;u<r.set.length;++u){var c=r.set[u];var l=null;var p=null;c.forEach(function(e){l=l||e;p=p||e;if(i(e.semver,l.semver,n)){l=e}else if(a(e.semver,p.semver,n)){p=e}});if(l.operator===o||l.operator===f){return false}if((!p.operator||p.operator===o)&&s(e,p.semver)){return false}else if(p.operator===f&&a(e,p.semver)){return false}}return true}if(typeof define==="function"&&define.amd)define(e)})(typeof exports==="object"?exports:typeof define==="function"&&define.amd?{}:semver={});
1
+ (function(e){if(typeof module==="object"&&module.exports===e)e=module.exports=H;e.SEMVER_SPEC_VERSION="2.0.0";var r=e.re=[];var t=e.src=[];var n=0;var i=n++;t[i]="0|[1-9]\\d*";var s=n++;t[s]="[0-9]+";var a=n++;t[a]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var o=n++;t[o]="("+t[i]+")\\."+"("+t[i]+")\\."+"("+t[i]+")";var f=n++;t[f]="("+t[s]+")\\."+"("+t[s]+")\\."+"("+t[s]+")";var u=n++;t[u]="(?:"+t[i]+"|"+t[a]+")";var c=n++;t[c]="(?:"+t[s]+"|"+t[a]+")";var l=n++;t[l]="(?:-("+t[u]+"(?:\\."+t[u]+")*))";var p=n++;t[p]="(?:-?("+t[c]+"(?:\\."+t[c]+")*))";var h=n++;t[h]="[0-9A-Za-z-]+";var v=n++;t[v]="(?:\\+("+t[h]+"(?:\\."+t[h]+")*))";var m=n++;var g="v?"+t[o]+t[l]+"?"+t[v]+"?";t[m]="^"+g+"$";var w="[v=\\s]*"+t[f]+t[p]+"?"+t[v]+"?";var d=n++;t[d]="^"+w+"$";var y=n++;t[y]="((?:<|>)?=?)";var b=n++;t[b]=t[s]+"|x|X|\\*";var $=n++;t[$]=t[i]+"|x|X|\\*";var j=n++;t[j]="[v=\\s]*("+t[$]+")"+"(?:\\.("+t[$]+")"+"(?:\\.("+t[$]+")"+"(?:("+t[l]+")"+")?)?)?";var k=n++;t[k]="[v=\\s]*("+t[b]+")"+"(?:\\.("+t[b]+")"+"(?:\\.("+t[b]+")"+"(?:("+t[p]+")"+")?)?)?";var E=n++;t[E]="^"+t[y]+"\\s*"+t[j]+"$";var x=n++;t[x]="^"+t[y]+"\\s*"+t[k]+"$";var R=n++;t[R]="(?:~>?)";var S=n++;t[S]="(\\s*)"+t[R]+"\\s+";r[S]=new RegExp(t[S],"g");var V="$1~";var I=n++;t[I]="^"+t[R]+t[j]+"$";var T=n++;t[T]="^"+t[R]+t[k]+"$";var A=n++;t[A]="(?:\\^)";var C=n++;t[C]="(\\s*)"+t[A]+"\\s+";r[C]=new RegExp(t[C],"g");var M="$1^";var z=n++;t[z]="^"+t[A]+t[j]+"$";var P=n++;t[P]="^"+t[A]+t[k]+"$";var Z=n++;t[Z]="^"+t[y]+"\\s*("+w+")$|^$";var q=n++;t[q]="^"+t[y]+"\\s*("+g+")$|^$";var L=n++;t[L]="(\\s*)"+t[y]+"\\s*("+w+"|"+t[j]+")";r[L]=new RegExp(t[L],"g");var X="$1$2$3";var _=n++;t[_]="^\\s*("+t[j]+")"+"\\s+-\\s+"+"("+t[j]+")"+"\\s*$";var N=n++;t[N]="^\\s*("+t[k]+")"+"\\s+-\\s+"+"("+t[k]+")"+"\\s*$";var O=n++;t[O]="(<|>)?=?\\s*\\*";for(var B=0;B<n;B++){if(!r[B])r[B]=new RegExp(t[B])}e.parse=D;function D(e,t){var n=t?r[d]:r[m];return n.test(e)?new H(e,t):null}e.valid=F;function F(e,r){var t=D(e,r);return t?t.version:null}e.clean=G;function G(e,r){var t=D(e,r);return t?t.version:null}e.SemVer=H;function H(e,t){if(e instanceof H){if(e.loose===t)return e;else e=e.version}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(!(this instanceof H))return new H(e,t);this.loose=t;var n=e.trim().match(t?r[d]:r[m]);if(!n)throw new TypeError("Invalid Version: "+e);this.raw=e;this.major=+n[1];this.minor=+n[2];this.patch=+n[3];if(!n[4])this.prerelease=[];else this.prerelease=n[4].split(".").map(function(e){return/^[0-9]+$/.test(e)?+e:e});this.build=n[5]?n[5].split("."):[];this.format()}H.prototype.format=function(){this.version=this.major+"."+this.minor+"."+this.patch;if(this.prerelease.length)this.version+="-"+this.prerelease.join(".");return this.version};H.prototype.inspect=function(){return'<SemVer "'+this+'">'};H.prototype.toString=function(){return this.version};H.prototype.compare=function(e){if(!(e instanceof H))e=new H(e,this.loose);return this.compareMain(e)||this.comparePre(e)};H.prototype.compareMain=function(e){if(!(e instanceof H))e=new H(e,this.loose);return Q(this.major,e.major)||Q(this.minor,e.minor)||Q(this.patch,e.patch)};H.prototype.comparePre=function(e){if(!(e instanceof H))e=new H(e,this.loose);if(this.prerelease.length&&!e.prerelease.length)return-1;else if(!this.prerelease.length&&e.prerelease.length)return 1;else if(!this.prerelease.length&&!e.prerelease.length)return 0;var r=0;do{var t=this.prerelease[r];var n=e.prerelease[r];if(t===undefined&&n===undefined)return 0;else if(n===undefined)return 1;else if(t===undefined)return-1;else if(t===n)continue;else return Q(t,n)}while(++r)};H.prototype.inc=function(e){switch(e){case"premajor":this.inc("major");this.inc("pre");break;case"preminor":this.inc("minor");this.inc("pre");break;case"prepatch":this.prerelease.length=0;this.inc("patch");this.inc("pre");break;case"prerelease":if(this.prerelease.length===0)this.inc("patch");this.inc("pre");break;case"major":this.major++;this.minor=-1;case"minor":this.minor++;this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0)this.patch++;this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{var r=this.prerelease.length;while(--r>=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1)this.prerelease.push(0)}break;default:throw new Error("invalid increment argument: "+e)}this.format();return this};e.inc=J;function J(e,r,t){try{return new H(e,t).inc(r).version}catch(n){return null}}e.compareIdentifiers=Q;var K=/^[0-9]+$/;function Q(e,r){var t=K.test(e);var n=K.test(r);if(t&&n){e=+e;r=+r}return t&&!n?-1:n&&!t?1:e<r?-1:e>r?1:0}e.rcompareIdentifiers=U;function U(e,r){return Q(r,e)}e.compare=W;function W(e,r,t){return new H(e,t).compare(r)}e.compareLoose=Y;function Y(e,r){return W(e,r,true)}e.rcompare=er;function er(e,r,t){return W(r,e,t)}e.sort=rr;function rr(r,t){return r.sort(function(r,n){return e.compare(r,n,t)})}e.rsort=tr;function tr(r,t){return r.sort(function(r,n){return e.rcompare(r,n,t)})}e.gt=nr;function nr(e,r,t){return W(e,r,t)>0}e.lt=ir;function ir(e,r,t){return W(e,r,t)<0}e.eq=sr;function sr(e,r,t){return W(e,r,t)===0}e.neq=ar;function ar(e,r,t){return W(e,r,t)!==0}e.gte=or;function or(e,r,t){return W(e,r,t)>=0}e.lte=fr;function fr(e,r,t){return W(e,r,t)<=0}e.cmp=ur;function ur(e,r,t,n){var i;switch(r){case"===":i=e===t;break;case"!==":i=e!==t;break;case"":case"=":case"==":i=sr(e,t,n);break;case"!=":i=ar(e,t,n);break;case">":i=nr(e,t,n);break;case">=":i=or(e,t,n);break;case"<":i=ir(e,t,n);break;case"<=":i=fr(e,t,n);break;default:throw new TypeError("Invalid operator: "+r)}return i}e.Comparator=cr;function cr(e,r){if(e instanceof cr){if(e.loose===r)return e;else e=e.value}if(!(this instanceof cr))return new cr(e,r);this.loose=r;this.parse(e);if(this.semver===lr)this.value="";else this.value=this.operator+this.semver.version}var lr={};cr.prototype.parse=function(e){var t=this.loose?r[Z]:r[q];var n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1];if(this.operator==="=")this.operator="";if(!n[2])this.semver=lr;else{this.semver=new H(n[2],this.loose);if(this.operator==="<"&&!this.semver.prerelease.length){this.semver.prerelease=["0"];this.semver.format()}}};cr.prototype.inspect=function(){return'<SemVer Comparator "'+this+'">'};cr.prototype.toString=function(){return this.value};cr.prototype.test=function(e){return this.semver===lr?true:ur(e,this.operator,this.semver,this.loose)};e.Range=pr;function pr(e,r){if(e instanceof pr&&e.loose===r)return e;if(!(this instanceof pr))return new pr(e,r);this.loose=r;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length});if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}pr.prototype.inspect=function(){return'<SemVer Range "'+this.range+'">'};pr.prototype.format=function(){this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim();return this.range};pr.prototype.toString=function(){return this.range};pr.prototype.parseRange=function(e){var t=this.loose;e=e.trim();var n=t?r[N]:r[_];e=e.replace(n,kr);e=e.replace(r[L],X);e=e.replace(r[S],V);e=e.replace(r[C],M);e=e.split(/\s+/).join(" ");var i=t?r[Z]:r[q];var s=e.split(" ").map(function(e){return vr(e,t)}).join(" ").split(/\s+/);if(this.loose){s=s.filter(function(e){return!!e.match(i)})}s=s.map(function(e){return new cr(e,t)});return s};e.toComparators=hr;function hr(e,r){return new pr(e,r).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function vr(e,r){e=dr(e,r);e=gr(e,r);e=br(e,r);e=jr(e,r);return e}function mr(e){return!e||e.toLowerCase()==="x"||e==="*"}function gr(e,r){return e.trim().split(/\s+/).map(function(e){return wr(e,r)}).join(" ")}function wr(e,t){var n=t?r[T]:r[I];return e.replace(n,function(e,r,t,n,i){var s;if(mr(r))s="";else if(mr(t))s=">="+r+".0.0-0 <"+(+r+1)+".0.0-0";else if(mr(n))s=">="+r+"."+t+".0-0 <"+r+"."+(+t+1)+".0-0";else if(i){if(i.charAt(0)!=="-")i="-"+i;s=">="+r+"."+t+"."+n+i+" <"+r+"."+(+t+1)+".0-0"}else s=">="+r+"."+t+"."+n+"-0"+" <"+r+"."+(+t+1)+".0-0";return s})}function dr(e,r){return e.trim().split(/\s+/).map(function(e){return yr(e,r)}).join(" ")}function yr(e,t){var n=t?r[P]:r[z];return e.replace(n,function(e,r,t,n,i){var s;if(mr(r))s="";else if(mr(t))s=">="+r+".0.0-0 <"+(+r+1)+".0.0-0";else if(mr(n)){if(r==="0")s=">="+r+"."+t+".0-0 <"+r+"."+(+t+1)+".0-0";else s=">="+r+"."+t+".0-0 <"+(+r+1)+".0.0-0"}else if(i){if(i.charAt(0)!=="-")i="-"+i;if(r==="0"){if(t==="0")s="="+r+"."+t+"."+n+i;else s=">="+r+"."+t+"."+n+i+" <"+r+"."+(+t+1)+".0-0"}else s=">="+r+"."+t+"."+n+i+" <"+(+r+1)+".0.0-0"}else{if(r==="0"){if(t==="0")s="="+r+"."+t+"."+n;else s=">="+r+"."+t+"."+n+"-0"+" <"+r+"."+(+t+1)+".0-0"}else s=">="+r+"."+t+"."+n+"-0"+" <"+(+r+1)+".0.0-0"}return s})}function br(e,r){return e.split(/\s+/).map(function(e){return $r(e,r)}).join(" ")}function $r(e,t){e=e.trim();var n=t?r[x]:r[E];return e.replace(n,function(e,r,t,n,i,s){var a=mr(t);var o=a||mr(n);var f=o||mr(i);var u=f;if(r==="="&&u)r="";if(r&&u){if(a)t=0;if(o)n=0;if(f)i=0;if(r===">"){r=">=";if(a){}else if(o){t=+t+1;n=0;i=0}else if(f){n=+n+1;i=0}}e=r+t+"."+n+"."+i+"-0"}else if(a){e="*"}else if(o){e=">="+t+".0.0-0 <"+(+t+1)+".0.0-0"}else if(f){e=">="+t+"."+n+".0-0 <"+t+"."+(+n+1)+".0-0"}return e})}function jr(e,t){return e.trim().replace(r[O],"")}function kr(e,r,t,n,i,s,a,o,f,u,c,l,p){if(mr(t))r="";else if(mr(n))r=">="+t+".0.0-0";else if(mr(i))r=">="+t+"."+n+".0-0";else r=">="+r;if(mr(f))o="";else if(mr(u))o="<"+(+f+1)+".0.0-0";else if(mr(c))o="<"+f+"."+(+u+1)+".0-0";else if(l)o="<="+f+"."+u+"."+c+"-"+l;else o="<="+o;return(r+" "+o).trim()}pr.prototype.test=function(e){if(!e)return false;for(var r=0;r<this.set.length;r++){if(Er(this.set[r],e))return true}return false};function Er(e,r){for(var t=0;t<e.length;t++){if(!e[t].test(r))return false}return true}e.satisfies=xr;function xr(e,r,t){try{r=new pr(r,t)}catch(n){return false}return r.test(e)}e.maxSatisfying=Rr;function Rr(e,r,t){return e.filter(function(e){return xr(e,r,t)}).sort(function(e,r){return er(e,r,t)})[0]||null}e.validRange=Sr;function Sr(e,r){try{return new pr(e,r).range||"*"}catch(t){return null}}e.ltr=Vr;function Vr(e,r,t){return Tr(e,r,"<",t)}e.gtr=Ir;function Ir(e,r,t){return Tr(e,r,">",t)}e.outside=Tr;function Tr(e,r,t,n){e=new H(e,n);r=new pr(r,n);var i,s,a,o,f;switch(t){case">":i=nr;s=fr;a=ir;o=">";f=">=";break;case"<":i=ir;s=or;a=nr;o="<";f="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(xr(e,r,n)){return false}for(var u=0;u<r.set.length;++u){var c=r.set[u];var l=null;var p=null;c.forEach(function(e){l=l||e;p=p||e;if(i(e.semver,l.semver,n)){l=e}else if(a(e.semver,p.semver,n)){p=e}});if(l.operator===o||l.operator===f){return false}if((!p.operator||p.operator===o)&&s(e,p.semver)){return false}else if(p.operator===f&&a(e,p.semver)){return false}}return true}if(typeof define==="function"&&define.amd)define(e)})(typeof exports==="object"?exports:typeof define==="function"&&define.amd?{}:semver={});
@@ -1,3 +1,5 @@
1
+ 'use strict';
2
+
1
3
  var tap = require('tap');
2
4
  var test = tap.test;
3
5
  var semver = require('../semver.js');
@@ -327,10 +329,12 @@ test('\nincrement versions test', function(t) {
327
329
  ['1.2.3-alpha.9.beta', 'prerelease', '1.2.3-alpha.10.beta'],
328
330
  ['1.2.3-alpha.10.beta', 'prerelease', '1.2.3-alpha.11.beta'],
329
331
  ['1.2.3-alpha.11.beta', 'prerelease', '1.2.3-alpha.12.beta'],
332
+ ['1.2.0', 'prepatch', '1.2.1-0'],
333
+ ['1.2.0-1', 'prepatch', '1.2.1-0'],
330
334
  ['1.2.0', 'preminor', '1.3.0-0'],
335
+ ['1.2.0-1', 'preminor', '1.3.0-0'],
331
336
  ['1.2.0', 'premajor', '2.0.0-0'],
332
- ['1.2.0', 'preminor', '1.3.0-0'],
333
- ['1.2.0', 'premajor', '2.0.0-0']
337
+ ['1.2.0-1', 'premajor', '2.0.0-0']
334
338
 
335
339
 
336
340
  ].forEach(function(v) {
@@ -404,8 +408,8 @@ test('\nvalid range test', function(t) {
404
408
  ['^0.1', '>=0.1.0-0 <0.2.0-0'],
405
409
  ['^1.0', '>=1.0.0-0 <2.0.0-0'],
406
410
  ['^1.2', '>=1.2.0-0 <2.0.0-0'],
407
- ['^0.0.1', '=0.0.1'],
408
- ['^0.0.1-beta', '=0.0.1-beta'],
411
+ ['^0.0.1', '0.0.1'],
412
+ ['^0.0.1-beta', '0.0.1-beta'],
409
413
  ['^0.1.2', '>=0.1.2-0 <0.2.0-0'],
410
414
  ['^1.2.3', '>=1.2.3-0 <2.0.0-0'],
411
415
  ['^1.2.3-beta.4', '>=1.2.3-beta.4 <2.0.0-0'],
@@ -162,7 +162,8 @@ test('\nnegative ltr tests', function(t) {
162
162
  ['^0.1.0 || ~3.0.1 || 5.0.0', '3.2.0'],
163
163
  ['^0.1.0 || ~3.0.1 || 5.0.0', '1.0.0beta', true],
164
164
  ['^0.1.0 || ~3.0.1 || 5.0.0', '5.0.0-0', true],
165
- ['^0.1.0 || ~3.0.1 || >4 <=5.0.0', '3.5.0']
165
+ ['^0.1.0 || ~3.0.1 || >4 <=5.0.0', '3.5.0'],
166
+ ['=0.1.0', '1.0.0']
166
167
  ].forEach(function(tuple) {
167
168
  var range = tuple[0];
168
169
  var version = tuple[1];
@@ -1,4 +1,6 @@
1
- Copyright (c) 2010 Benjamin Thomas, Robert Kieffer
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014 Evan Wallace
2
4
 
3
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
6
  of this software and associated documentation files (the "Software"), to deal
@@ -7,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
9
  copies of the Software, and to permit persons to whom the Software is
8
10
  furnished to do so, subject to the following conditions:
9
11
 
10
- The above copyright notice and this permission notice shall be included in
11
- all copies or substantial portions of the Software.
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
12
14
 
13
15
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
16
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
17
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
- THE SOFTWARE.
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,165 @@
1
+ # Source Map Support
2
+
3
+ This module provides source map support for stack traces in node via the [V8 stack trace API](http://code.google.com/p/v8/wiki/JavaScriptStackTraceApi). It uses the [source-map](https://github.com/mozilla/source-map) module to replace the paths and line numbers of source-mapped files with their original paths and line numbers. The output mimics node's stack trace format with the goal of making every compile-to-JS language more of a first-class citizen. Source maps are completely general (not specific to any one language) so you can use source maps with multiple compile-to-JS languages in the same node process.
4
+
5
+ ## Installation and Usage
6
+
7
+ #### Node support
8
+
9
+ npm install source-map-support
10
+
11
+ Source maps can be generated using libraries such as [source-map-index-generator](https://github.com/twolfson/source-map-index-generator). Once you have a valid source map, insert the following two lines at the top of your compiled code:
12
+
13
+ //# sourceMappingURL=path/to/source.map
14
+ require('source-map-support').install();
15
+
16
+ The path should either be absolute or relative to the compiled file.
17
+
18
+ #### Browser support
19
+
20
+ This library also works in Chrome. While the DevTools console already supports source maps, the V8 engine doesn't and `Error.prototype.stack` will be incorrect without this library. Everything will just work if you deploy your source files using [browserify](http://browserify.org/). Just make sure to pass the `--debug` flag to the browserify command so your source maps are included in the bundled code.
21
+
22
+ This library also works if you use another build process or just include the source files directly. In this case, include the file `browser-source-map-support.js` in your page and call `sourceMapSupport.install()`. It contains the whole library already bundled for the browser using browserify.
23
+
24
+ <script src="browser-source-map-support.js"></script>
25
+ <script>sourceMapSupport.install();</script>
26
+
27
+ This library also works if you use AMD (Asynchronous Module Definition), which is used in tools like [RequireJS](http://requirejs.org/). Just list `browser-source-map-support` as a dependency:
28
+
29
+ <script>
30
+ define(['browser-source-map-support'], function(sourceMapSupport) {
31
+ sourceMapSupport.install();
32
+ });
33
+ </script>
34
+
35
+ ## Options
36
+
37
+ This module installs two things: a change to the `stack` property on `Error` objects and a handler for uncaught exceptions that mimics node's default exception handler (the handler can be seen in the demos below). You may want to disable the handler if you have your own uncaught exception handler. This can be done by passing an argument to the installer:
38
+
39
+ require('source-map-support').install({
40
+ handleUncaughtExceptions: false
41
+ });
42
+
43
+ This module loads source maps from the filesystem by default. You can provide alternate loading behavior through a callback as shown below. For example, [Meteor](https://github.com/meteor) keeps all source maps cached in memory to avoid disk access.
44
+
45
+ require('source-map-support').install({
46
+ retrieveSourceMap: function(source) {
47
+ if (source === 'compiled.js') {
48
+ return {
49
+ url: 'original.js',
50
+ map: fs.readFileSync('compiled.js.map', 'utf8')
51
+ };
52
+ }
53
+ return null;
54
+ }
55
+ });
56
+
57
+ ## Demos
58
+
59
+ #### Basic Demo
60
+
61
+ original.js:
62
+
63
+ throw new Error('test'); // This is the original code
64
+
65
+ compiled.js:
66
+
67
+ //# sourceMappingURL=compiled.js.map
68
+ require('source-map-support').install();
69
+
70
+ throw new Error('test'); // This is the compiled code
71
+
72
+ compiled.js.map:
73
+
74
+ {
75
+ "version": 3,
76
+ "file": "compiled.js",
77
+ "sources": ["original.js"],
78
+ "names": [],
79
+ "mappings": ";;;AAAA,MAAM,IAAI"
80
+ }
81
+
82
+ Run compiled.js using node (notice how the stack trace uses original.js instead of compiled.js):
83
+
84
+ $ node compiled.js
85
+
86
+ original.js:1
87
+ throw new Error('test'); // This is the original code
88
+ ^
89
+ Error: test
90
+ at Object.<anonymous> (original.js:1:7)
91
+ at Module._compile (module.js:456:26)
92
+ at Object.Module._extensions..js (module.js:474:10)
93
+ at Module.load (module.js:356:32)
94
+ at Function.Module._load (module.js:312:12)
95
+ at Function.Module.runMain (module.js:497:10)
96
+ at startup (node.js:119:16)
97
+ at node.js:901:3
98
+
99
+ #### TypeScript Demo
100
+
101
+ demo.ts:
102
+
103
+ declare function require(name: string);
104
+ require('source-map-support').install();
105
+ class Foo {
106
+ constructor() { this.bar(); }
107
+ bar() { throw new Error('this is a demo'); }
108
+ }
109
+ new Foo();
110
+
111
+ Compile and run the file using the TypeScript compiler from the terminal:
112
+
113
+ $ npm install source-map-support typescript
114
+ $ node_modules/typescript/bin/tsc -sourcemap demo.ts
115
+ $ node demo.js
116
+
117
+ demo.ts:5
118
+ bar() { throw new Error('this is a demo'); }
119
+ ^
120
+ Error: this is a demo
121
+ at Foo.bar (demo.ts:5:17)
122
+ at new Foo (demo.ts:4:24)
123
+ at Object.<anonymous> (demo.ts:7:1)
124
+ at Module._compile (module.js:456:26)
125
+ at Object.Module._extensions..js (module.js:474:10)
126
+ at Module.load (module.js:356:32)
127
+ at Function.Module._load (module.js:312:12)
128
+ at Function.Module.runMain (module.js:497:10)
129
+ at startup (node.js:119:16)
130
+ at node.js:901:3
131
+
132
+ #### CoffeeScript Demo
133
+
134
+ demo.coffee:
135
+
136
+ require('source-map-support').install()
137
+ foo = ->
138
+ bar = -> throw new Error 'this is a demo'
139
+ bar()
140
+ foo()
141
+
142
+ Compile and run the file using the CoffeeScript compiler from the terminal:
143
+
144
+ $ npm install source-map-support coffee-script
145
+ $ node_modules/coffee-script/bin/coffee --map --compile demo.coffee
146
+ $ node demo.js
147
+
148
+ demo.coffee:3
149
+ bar = -> throw new Error 'this is a demo'
150
+ ^
151
+ Error: this is a demo
152
+ at bar (demo.coffee:3:22)
153
+ at foo (demo.coffee:4:3)
154
+ at Object.<anonymous> (demo.coffee:5:1)
155
+ at Object.<anonymous> (demo.coffee:1:1)
156
+ at Module._compile (module.js:456:26)
157
+ at Object.Module._extensions..js (module.js:474:10)
158
+ at Module.load (module.js:356:32)
159
+ at Function.Module._load (module.js:312:12)
160
+ at Function.Module.runMain (module.js:497:10)
161
+ at startup (node.js:119:16)
162
+
163
+ ## License
164
+
165
+ This code is available under the [MIT license](http://opensource.org/licenses/MIT).
@@ -0,0 +1,89 @@
1
+ /*
2
+ * Support for source maps in V8 stack traces
3
+ * https://github.com/evanw/node-source-map-support
4
+ */
5
+ (this.define||function(J,N){this.sourceMapSupport=N()})("browser-source-map-support",function(J){(function h(r,m,e){function p(g,d){if(!m[g]){if(!r[g]){var k="function"==typeof require&&require;if(!d&&k)return k(g,!0);if(u)return u(g,!0);throw Error("Cannot find module '"+g+"'");}k=m[g]={exports:{}};r[g][0].call(k.exports,function(d){var c=r[g][1][d];return p(c?c:d)},k,k.exports,h,r,m,e)}return m[g].exports}for(var u="function"==typeof require&&require,z=0;z<e.length;z++)p(e[z]);return p})({1:[function(h,
6
+ r,m){J=h("./source-map-support")},{"./source-map-support":18}],2:[function(h,r,m){},{}],3:[function(h,r,m){function e(f,n,w){if(!(this instanceof e))return new e(f,n,w);var a=typeof f;if("base64"===n&&"string"===a)for(f=f.trim?f.trim():f.replace(/^\s+|\s+$/g,"");0!==f.length%4;)f+="=";var b;if("number"===a)b=v(f);else if("string"===a)b=e.byteLength(f,n);else if("object"===a)b=v(f.length);else throw Error("First argument needs to be a number, array or string.");var c;e._useTypedArrays?c=e._augment(new Uint8Array(b)):
7
+ (c=this,c.length=b,c._isBuffer=!0);if(e._useTypedArrays&&"number"===typeof f.byteLength)c._set(f);else{var d=f;if(x(d)||e.isBuffer(d)||d&&"object"===typeof d&&"number"===typeof d.length)for(n=0;n<b;n++)e.isBuffer(f)?c[n]=f.readUInt8(n):c[n]=f[n];else if("string"===a)c.write(f,0,n);else if("number"===a&&!e._useTypedArrays&&!w)for(n=0;n<b;n++)c[n]=0}return c}function p(f,n,w){var a="";for(w=Math.min(f.length,w);n<w;n++)a+=String.fromCharCode(f[n]);return a}function u(f,n,w,a){a||(q("boolean"===typeof w,
8
+ "missing or invalid endian"),q(void 0!==n&&null!==n,"missing offset"),q(n+1<f.length,"Trying to read beyond buffer length"));a=f.length;if(!(n>=a))return w?(w=f[n],n+1<a&&(w|=f[n+1]<<8)):(w=f[n]<<8,n+1<a&&(w|=f[n+1])),w}function z(f,n,a,c){c||(q("boolean"===typeof a,"missing or invalid endian"),q(void 0!==n&&null!==n,"missing offset"),q(n+3<f.length,"Trying to read beyond buffer length"));c=f.length;if(!(n>=c)){var b;a?(n+2<c&&(b=f[n+2]<<16),n+1<c&&(b|=f[n+1]<<8),b|=f[n],n+3<c&&(b+=f[n+3]<<24>>>0)):
9
+ (n+1<c&&(b=f[n+1]<<16),n+2<c&&(b|=f[n+2]<<8),n+3<c&&(b|=f[n+3]),b+=f[n]<<24>>>0);return b}}function g(f,n,a,b){b||(q("boolean"===typeof a,"missing or invalid endian"),q(void 0!==n&&null!==n,"missing offset"),q(n+1<f.length,"Trying to read beyond buffer length"));if(!(n>=f.length))return f=u(f,n,a,!0),f&32768?-1*(65535-f+1):f}function d(f,n,a,b){b||(q("boolean"===typeof a,"missing or invalid endian"),q(void 0!==n&&null!==n,"missing offset"),q(n+3<f.length,"Trying to read beyond buffer length"));if(!(n>=
10
+ f.length))return f=z(f,n,a,!0),f&2147483648?-1*(4294967295-f+1):f}function k(f,n,a,b){b||(q("boolean"===typeof a,"missing or invalid endian"),q(n+3<f.length,"Trying to read beyond buffer length"));return H.read(f,n,a,23,4)}function l(f,n,a,b){b||(q("boolean"===typeof a,"missing or invalid endian"),q(n+7<f.length,"Trying to read beyond buffer length"));return H.read(f,n,a,52,8)}function c(f,n,a,b,c){c||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof b,"missing or invalid endian"),q(void 0!==
11
+ a&&null!==a,"missing offset"),q(a+1<f.length,"trying to write beyond buffer length"),K(n,65535));var d=f.length;if(!(a>=d))for(c=0,d=Math.min(d-a,2);c<d;c++)f[a+c]=(n&255<<8*(b?c:1-c))>>>8*(b?c:1-c)}function a(f,n,a,b,c){c||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof b,"missing or invalid endian"),q(void 0!==a&&null!==a,"missing offset"),q(a+3<f.length,"trying to write beyond buffer length"),K(n,4294967295));var d=f.length;if(!(a>=d))for(c=0,d=Math.min(d-a,4);c<d;c++)f[a+c]=n>>>
12
+ 8*(b?c:3-c)&255}function b(f,n,a,b,d){d||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof b,"missing or invalid endian"),q(void 0!==a&&null!==a,"missing offset"),q(a+1<f.length,"Trying to write beyond buffer length"),L(n,32767,-32768));a>=f.length||(0<=n?c(f,n,a,b,d):c(f,65535+n+1,a,b,d))}function y(f,n,b,c,d){d||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof c,"missing or invalid endian"),q(void 0!==b&&null!==b,"missing offset"),q(b+3<f.length,"Trying to write beyond buffer length"),
13
+ L(n,2147483647,-2147483648));b>=f.length||(0<=n?a(f,n,b,c,d):a(f,4294967295+n+1,b,c,d))}function B(f,n,a,b,c){c||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof b,"missing or invalid endian"),q(void 0!==a&&null!==a,"missing offset"),q(a+3<f.length,"Trying to write beyond buffer length"),M(n,3.4028234663852886E38,-3.4028234663852886E38));a>=f.length||H.write(f,n,a,b,23,4)}function A(f,n,a,b,c){c||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof b,"missing or invalid endian"),
14
+ q(void 0!==a&&null!==a,"missing offset"),q(a+7<f.length,"Trying to write beyond buffer length"),M(n,1.7976931348623157E308,-1.7976931348623157E308));a>=f.length||H.write(f,n,a,b,52,8)}function C(f,a,b){if("number"!==typeof f)return b;f=~~f;if(f>=a)return a;if(0<=f)return f;f+=a;return 0<=f?f:0}function v(f){f=~~Math.ceil(+f);return 0>f?0:f}function x(f){return(Array.isArray||function(f){return"[object Array]"===Object.prototype.toString.call(f)})(f)}function G(f){return 16>f?"0"+f.toString(16):f.toString(16)}
15
+ function s(f){for(var a=[],b=0;b<f.length;b++){var c=f.charCodeAt(b);if(127>=c)a.push(f.charCodeAt(b));else{var d=b;55296<=c&&57343>=c&&b++;c=encodeURIComponent(f.slice(d,b+1)).substr(1).split("%");for(d=0;d<c.length;d++)a.push(parseInt(c[d],16))}}return a}function D(f){for(var a=[],b=0;b<f.length;b++)a.push(f.charCodeAt(b)&255);return a}function E(f,a,b,c){for(var d=0;d<c&&!(d+b>=a.length||d>=f.length);d++)a[d+b]=f[d];return d}function F(f){try{return decodeURIComponent(f)}catch(a){return String.fromCharCode(65533)}}
16
+ function K(f,a){q("number"===typeof f,"cannot write a non-number as a number");q(0<=f,"specified a negative value for writing an unsigned value");q(f<=a,"value is larger than maximum value for type");q(Math.floor(f)===f,"value has a fractional component")}function L(f,a,b){q("number"===typeof f,"cannot write a non-number as a number");q(f<=a,"value larger than maximum allowed value");q(f>=b,"value smaller than minimum allowed value");q(Math.floor(f)===f,"value has a fractional component")}function M(f,
17
+ a,b){q("number"===typeof f,"cannot write a non-number as a number");q(f<=a,"value larger than maximum allowed value");q(f>=b,"value smaller than minimum allowed value")}function q(f,a){if(!f)throw Error(a||"Failed assertion");}var I=h("base64-js"),H=h("ieee754");m.Buffer=e;m.SlowBuffer=e;m.INSPECT_MAX_BYTES=50;e.poolSize=8192;e._useTypedArrays=function(){try{var f=new ArrayBuffer(0),a=new Uint8Array(f);a.foo=function(){return 42};return 42===a.foo()&&"function"===typeof a.subarray}catch(b){return!1}}();
18
+ e.isEncoding=function(f){switch(String(f).toLowerCase()){case "hex":case "utf8":case "utf-8":case "ascii":case "binary":case "base64":case "raw":case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return!0;default:return!1}};e.isBuffer=function(f){return!(null===f||void 0===f||!f._isBuffer)};e.byteLength=function(f,a){var b;f+="";switch(a||"utf8"){case "hex":b=f.length/2;break;case "utf8":case "utf-8":b=s(f).length;break;case "ascii":case "binary":case "raw":b=f.length;break;case "base64":b=I.toByteArray(f).length;
19
+ break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":b=2*f.length;break;default:throw Error("Unknown encoding");}return b};e.concat=function(f,a){q(x(f),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array.");if(0===f.length)return new e(0);if(1===f.length)return f[0];var b;if("number"!==typeof a)for(b=a=0;b<f.length;b++)a+=f[b].length;var c=new e(a),d=0;for(b=0;b<f.length;b++){var k=f[b];k.copy(c,d);d+=k.length}return c};e.prototype.write=function(f,a,b,c){if(isFinite(a))isFinite(b)||
20
+ (c=b,b=void 0);else{var d=c;c=a;a=b;b=d}a=Number(a)||0;d=this.length-a;b?(b=Number(b),b>d&&(b=d)):b=d;c=String(c||"utf8").toLowerCase();switch(c){case "hex":a=Number(a)||0;c=this.length-a;b?(b=Number(b),b>c&&(b=c)):b=c;c=f.length;q(0===c%2,"Invalid hex string");b>c/2&&(b=c/2);for(c=0;c<b;c++)d=parseInt(f.substr(2*c,2),16),q(!isNaN(d),"Invalid hex string"),this[a+c]=d;e._charsWritten=2*c;f=c;break;case "utf8":case "utf-8":f=e._charsWritten=E(s(f),this,a,b);break;case "ascii":f=e._charsWritten=E(D(f),
21
+ this,a,b);break;case "binary":f=e._charsWritten=E(D(f),this,a,b);break;case "base64":f=e._charsWritten=E(I.toByteArray(f),this,a,b);break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":for(var k,d=[],l=0;l<f.length;l++)k=f.charCodeAt(l),c=k>>8,k%=256,d.push(k),d.push(c);f=e._charsWritten=E(d,this,a,b);break;default:throw Error("Unknown encoding");}return f};e.prototype.toString=function(f,a,b){f=String(f||"utf8").toLowerCase();a=Number(a)||0;b=void 0!==b?Number(b):b=this.length;if(b===a)return"";
22
+ switch(f){case "hex":f=a;a=this.length;if(!f||0>f)f=0;if(!b||0>b||b>a)b=a;for(a="";f<b;f++)a+=G(this[f]);b=a;break;case "utf8":case "utf-8":var c=a;a=f="";for(b=Math.min(this.length,b);c<b;c++)127>=this[c]?(f+=F(a)+String.fromCharCode(this[c]),a=""):a+="%"+this[c].toString(16);b=f+F(a);break;case "ascii":b=p(this,a,b);break;case "binary":b=p(this,a,b);break;case "base64":f=a;b=0===f&&b===this.length?I.fromByteArray(this):I.fromByteArray(this.slice(f,b));break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":b=
23
+ this.slice(a,b);f="";for(a=0;a<b.length;a+=2)f+=String.fromCharCode(b[a]+256*b[a+1]);b=f;break;default:throw Error("Unknown encoding");}return b};e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};e.prototype.copy=function(a,b,c,d){c||(c=0);d||0===d||(d=this.length);b||(b=0);if(d!==c&&0!==a.length&&0!==this.length)if(q(d>=c,"sourceEnd < sourceStart"),q(0<=b&&b<a.length,"targetStart out of bounds"),q(0<=c&&c<this.length,"sourceStart out of bounds"),
24
+ q(0<=d&&d<=this.length,"sourceEnd out of bounds"),d>this.length&&(d=this.length),a.length-b<d-c&&(d=a.length-b+c),d-=c,100>d||!e._useTypedArrays)for(var k=0;k<d;k++)a[k+b]=this[k+c];else a._set(this.subarray(c,c+d),b)};e.prototype.slice=function(a,b){var c=this.length;a=C(a,c,0);b=C(b,c,c);if(e._useTypedArrays)return e._augment(this.subarray(a,b));for(var c=b-a,d=new e(c,void 0,!0),k=0;k<c;k++)d[k]=this[k+a];return d};e.prototype.get=function(a){console.log(".get() is deprecated. Access using array indexes instead.");
25
+ return this.readUInt8(a)};e.prototype.set=function(a,b){console.log(".set() is deprecated. Access using array indexes instead.");return this.writeUInt8(a,b)};e.prototype.readUInt8=function(a,b){b||(q(void 0!==a&&null!==a,"missing offset"),q(a<this.length,"Trying to read beyond buffer length"));if(!(a>=this.length))return this[a]};e.prototype.readUInt16LE=function(a,b){return u(this,a,!0,b)};e.prototype.readUInt16BE=function(a,b){return u(this,a,!1,b)};e.prototype.readUInt32LE=function(a,b){return z(this,
26
+ a,!0,b)};e.prototype.readUInt32BE=function(a,b){return z(this,a,!1,b)};e.prototype.readInt8=function(a,b){b||(q(void 0!==a&&null!==a,"missing offset"),q(a<this.length,"Trying to read beyond buffer length"));if(!(a>=this.length))return this[a]&128?-1*(255-this[a]+1):this[a]};e.prototype.readInt16LE=function(a,b){return g(this,a,!0,b)};e.prototype.readInt16BE=function(a,b){return g(this,a,!1,b)};e.prototype.readInt32LE=function(a,b){return d(this,a,!0,b)};e.prototype.readInt32BE=function(a,b){return d(this,
27
+ a,!1,b)};e.prototype.readFloatLE=function(a,b){return k(this,a,!0,b)};e.prototype.readFloatBE=function(a,b){return k(this,a,!1,b)};e.prototype.readDoubleLE=function(a,b){return l(this,a,!0,b)};e.prototype.readDoubleBE=function(a,b){return l(this,a,!1,b)};e.prototype.writeUInt8=function(a,b,c){c||(q(void 0!==a&&null!==a,"missing value"),q(void 0!==b&&null!==b,"missing offset"),q(b<this.length,"trying to write beyond buffer length"),K(a,255));b>=this.length||(this[b]=a)};e.prototype.writeUInt16LE=function(a,
28
+ b,d){c(this,a,b,!0,d)};e.prototype.writeUInt16BE=function(a,b,d){c(this,a,b,!1,d)};e.prototype.writeUInt32LE=function(b,c,d){a(this,b,c,!0,d)};e.prototype.writeUInt32BE=function(b,c,d){a(this,b,c,!1,d)};e.prototype.writeInt8=function(a,b,c){c||(q(void 0!==a&&null!==a,"missing value"),q(void 0!==b&&null!==b,"missing offset"),q(b<this.length,"Trying to write beyond buffer length"),L(a,127,-128));b>=this.length||(0<=a?this.writeUInt8(a,b,c):this.writeUInt8(255+a+1,b,c))};e.prototype.writeInt16LE=function(a,
29
+ c,d){b(this,a,c,!0,d)};e.prototype.writeInt16BE=function(a,c,d){b(this,a,c,!1,d)};e.prototype.writeInt32LE=function(a,b,c){y(this,a,b,!0,c)};e.prototype.writeInt32BE=function(a,b,c){y(this,a,b,!1,c)};e.prototype.writeFloatLE=function(a,b,c){B(this,a,b,!0,c)};e.prototype.writeFloatBE=function(a,b,c){B(this,a,b,!1,c)};e.prototype.writeDoubleLE=function(a,b,c){A(this,a,b,!0,c)};e.prototype.writeDoubleBE=function(a,b,c){A(this,a,b,!1,c)};e.prototype.fill=function(a,b,c){a||(a=0);b||(b=0);c||(c=this.length);
30
+ "string"===typeof a&&(a=a.charCodeAt(0));q("number"===typeof a&&!isNaN(a),"value is not a number");q(c>=b,"end < start");if(c!==b&&0!==this.length)for(q(0<=b&&b<this.length,"start out of bounds"),q(0<=c&&c<=this.length,"end out of bounds");b<c;b++)this[b]=a};e.prototype.inspect=function(){for(var a=[],b=this.length,c=0;c<b;c++)if(a[c]=G(this[c]),c===m.INSPECT_MAX_BYTES){a[c+1]="...";break}return"<Buffer "+a.join(" ")+">"};e.prototype.toArrayBuffer=function(){if("undefined"!==typeof Uint8Array){if(e._useTypedArrays)return(new e(this)).buffer;
31
+ for(var a=new Uint8Array(this.length),b=0,c=a.length;b<c;b+=1)a[b]=this[b];return a.buffer}throw Error("Buffer.toArrayBuffer not supported in this browser");};var t=e.prototype;e._augment=function(a){a._isBuffer=!0;a._get=a.get;a._set=a.set;a.get=t.get;a.set=t.set;a.write=t.write;a.toString=t.toString;a.toLocaleString=t.toString;a.toJSON=t.toJSON;a.copy=t.copy;a.slice=t.slice;a.readUInt8=t.readUInt8;a.readUInt16LE=t.readUInt16LE;a.readUInt16BE=t.readUInt16BE;a.readUInt32LE=t.readUInt32LE;a.readUInt32BE=
32
+ t.readUInt32BE;a.readInt8=t.readInt8;a.readInt16LE=t.readInt16LE;a.readInt16BE=t.readInt16BE;a.readInt32LE=t.readInt32LE;a.readInt32BE=t.readInt32BE;a.readFloatLE=t.readFloatLE;a.readFloatBE=t.readFloatBE;a.readDoubleLE=t.readDoubleLE;a.readDoubleBE=t.readDoubleBE;a.writeUInt8=t.writeUInt8;a.writeUInt16LE=t.writeUInt16LE;a.writeUInt16BE=t.writeUInt16BE;a.writeUInt32LE=t.writeUInt32LE;a.writeUInt32BE=t.writeUInt32BE;a.writeInt8=t.writeInt8;a.writeInt16LE=t.writeInt16LE;a.writeInt16BE=t.writeInt16BE;
33
+ a.writeInt32LE=t.writeInt32LE;a.writeInt32BE=t.writeInt32BE;a.writeFloatLE=t.writeFloatLE;a.writeFloatBE=t.writeFloatBE;a.writeDoubleLE=t.writeDoubleLE;a.writeDoubleBE=t.writeDoubleBE;a.fill=t.fill;a.inspect=t.inspect;a.toArrayBuffer=t.toArrayBuffer;return a}},{"base64-js":4,ieee754:5}],4:[function(h,r,m){(function(e){function p(e){e=e.charCodeAt(0);if(43===e)return 62;if(47===e)return 63;if(48>e)return-1;if(58>e)return e-48+52;if(91>e)return e-65;if(123>e)return e-97+26}var u="undefined"!==typeof Uint8Array?
34
+ Uint8Array:Array;e.toByteArray=function(e){function g(c){a[b++]=c}var d,k,l,c,a;if(0<e.length%4)throw Error("Invalid string. Length must be a multiple of 4");d=e.length;c="="===e.charAt(d-2)?2:"="===e.charAt(d-1)?1:0;a=new u(3*e.length/4-c);k=0<c?e.length-4:e.length;var b=0;for(d=0;d<k;d+=4)l=p(e.charAt(d))<<18|p(e.charAt(d+1))<<12|p(e.charAt(d+2))<<6|p(e.charAt(d+3)),g((l&16711680)>>16),g((l&65280)>>8),g(l&255);2===c?(l=p(e.charAt(d))<<2|p(e.charAt(d+1))>>4,g(l&255)):1===c&&(l=p(e.charAt(d))<<10|
35
+ p(e.charAt(d+1))<<4|p(e.charAt(d+2))>>2,g(l>>8&255),g(l&255));return a};e.fromByteArray=function(e){var g,d=e.length%3,k="",l,c;g=0;for(c=e.length-d;g<c;g+=3)l=(e[g]<<16)+(e[g+1]<<8)+e[g+2],l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l>>18&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l>>12&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l>>6&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l&
36
+ 63),k+=l;switch(d){case 1:l=e[e.length-1];k+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l>>2);k+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l<<4&63);k+="==";break;case 2:l=(e[e.length-2]<<8)+e[e.length-1],k+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l>>10),k+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l>>4&63),k+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l<<
37
+ 2&63),k+="="}return k}})("undefined"===typeof m?this.base64js={}:m)},{}],5:[function(h,r,m){m.read=function(e,p,u,h,g){var d;d=8*g-h-1;var k=(1<<d)-1,l=k>>1,c=-7;g=u?g-1:0;var a=u?-1:1,b=e[p+g];g+=a;u=b&(1<<-c)-1;b>>=-c;for(c+=d;0<c;u=256*u+e[p+g],g+=a,c-=8);d=u&(1<<-c)-1;u>>=-c;for(c+=h;0<c;d=256*d+e[p+g],g+=a,c-=8);if(0===u)u=1-l;else{if(u===k)return d?NaN:Infinity*(b?-1:1);d+=Math.pow(2,h);u-=l}return(b?-1:1)*d*Math.pow(2,u-h)};m.write=function(e,p,u,h,g,d){var k,l=8*d-g-1,c=(1<<l)-1,a=c>>1,b=
38
+ 23===g?Math.pow(2,-24)-Math.pow(2,-77):0;d=h?0:d-1;var y=h?1:-1,B=0>p||0===p&&0>1/p?1:0;p=Math.abs(p);isNaN(p)||Infinity===p?(p=isNaN(p)?1:0,h=c):(h=Math.floor(Math.log(p)/Math.LN2),1>p*(k=Math.pow(2,-h))&&(h--,k*=2),p=1<=h+a?p+b/k:p+b*Math.pow(2,1-a),2<=p*k&&(h++,k/=2),h+a>=c?(p=0,h=c):1<=h+a?(p=(p*k-1)*Math.pow(2,g),h+=a):(p=p*Math.pow(2,a-1)*Math.pow(2,g),h=0));for(;8<=g;e[u+d]=p&255,d+=y,p/=256,g-=8);h=h<<g|p;for(l+=g;0<l;e[u+d]=h&255,d+=y,h/=256,l-=8);e[u+d-y]|=128*B}},{}],6:[function(h,r,m){function e(){}
39
+ h=r.exports={};h.nextTick=function(){if("undefined"!==typeof window&&window.setImmediate)return function(e){return window.setImmediate(e)};if("undefined"!==typeof window&&window.postMessage&&window.addEventListener){var e=[];window.addEventListener("message",function(h){var m=h.source;m!==window&&null!==m||"process-tick"!==h.data||(h.stopPropagation(),0<e.length&&e.shift()())},!0);return function(h){e.push(h);window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}();h.title="browser";
40
+ h.browser=!0;h.env={};h.argv=[];h.on=e;h.once=e;h.off=e;h.emit=e;h.binding=function(e){throw Error("process.binding is not supported");};h.cwd=function(){return"/"};h.chdir=function(e){throw Error("process.chdir is not supported");}},{}],7:[function(h,r,m){(function(e){function h(d,k){for(var e=0,c=d.length-1;0<=c;c--){var a=d[c];"."===a?d.splice(c,1):".."===a?(d.splice(c,1),e++):e&&(d.splice(c,1),e--)}if(k)for(;e--;e)d.unshift("..");return d}function u(d,k){if(d.filter)return d.filter(k);for(var e=
41
+ [],c=0;c<d.length;c++)k(d[c],c,d)&&e.push(d[c]);return e}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;m.resolve=function(){for(var d="",k=!1,l=arguments.length-1;-1<=l&&!k;l--){var c=0<=l?arguments[l]:e.cwd();if("string"!==typeof c)throw new TypeError("Arguments to path.resolve must be strings");c&&(d=c+"/"+d,k="/"===c.charAt(0))}d=h(u(d.split("/"),function(a){return!!a}),!k).join("/");return(k?"/":"")+d||"."};m.normalize=function(d){var e=m.isAbsolute(d),l="/"===g(d,-1);
42
+ (d=h(u(d.split("/"),function(c){return!!c}),!e).join("/"))||e||(d=".");d&&l&&(d+="/");return(e?"/":"")+d};m.isAbsolute=function(d){return"/"===d.charAt(0)};m.join=function(){var d=Array.prototype.slice.call(arguments,0);return m.normalize(u(d,function(d,e){if("string"!==typeof d)throw new TypeError("Arguments to path.join must be strings");return d}).join("/"))};m.relative=function(d,e){function l(a){for(var b=0;b<a.length&&""===a[b];b++);for(var c=a.length-1;0<=c&&""===a[c];c--);return b>c?[]:a.slice(b,
43
+ c-b+1)}d=m.resolve(d).substr(1);e=m.resolve(e).substr(1);for(var c=l(d.split("/")),a=l(e.split("/")),b=Math.min(c.length,a.length),g=b,h=0;h<b;h++)if(c[h]!==a[h]){g=h;break}b=[];for(h=g;h<c.length;h++)b.push("..");b=b.concat(a.slice(g));return b.join("/")};m.sep="/";m.delimiter=":";m.dirname=function(d){var e=r.exec(d).slice(1);d=e[0];e=e[1];if(!d&&!e)return".";e&&(e=e.substr(0,e.length-1));return d+e};m.basename=function(d,e){var l=r.exec(d).slice(1)[2];e&&l.substr(-1*e.length)===e&&(l=l.substr(0,
44
+ l.length-e.length));return l};m.extname=function(d){return r.exec(d).slice(1)[3]};var g="b"==="ab".substr(-1)?function(d,e,l){return d.substr(e,l)}:function(d,e,l){0>e&&(e=d.length+e);return d.substr(e,l)}}).call(this,h("node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"))},{"node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":6}],8:[function(h,r,m){m.SourceMapGenerator=h("./source-map/source-map-generator").SourceMapGenerator;
45
+ m.SourceMapConsumer=h("./source-map/source-map-consumer").SourceMapConsumer;m.SourceNode=h("./source-map/source-node").SourceNode},{"./source-map/source-map-consumer":13,"./source-map/source-map-generator":14,"./source-map/source-node":15}],9:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){function g(){this._array=[];this._set={}}var d=e("./util");g.fromArray=function(d,e){for(var c=new g,a=0,b=d.length;a<b;a++)c.add(d[a],e);return c};g.prototype.add=function(e,
46
+ l){var c=this.has(e),a=this._array.length;c&&!l||this._array.push(e);c||(this._set[d.toSetString(e)]=a)};g.prototype.has=function(e){return Object.prototype.hasOwnProperty.call(this._set,d.toSetString(e))};g.prototype.indexOf=function(e){if(this.has(e))return this._set[d.toSetString(e)];throw Error('"'+e+'" is not in the set.');};g.prototype.at=function(d){if(0<=d&&d<this._array.length)return this._array[d];throw Error("No element indexed by "+d);};g.prototype.toArray=function(){return this._array.slice()};
47
+ h.ArraySet=g})},{"./util":16,amdefine:17}],10:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){var g=e("./base64");h.encode=function(d){var e="",l=0>d?(-d<<1)+1:(d<<1)+0;do d=l&31,l>>>=5,0<l&&(d|=32),e+=g.encode(d);while(0<l);return e};h.decode=function(d){var e=0,l=d.length,c=0,a=0,b,h;do{if(e>=l)throw Error("Expected more digits in base 64 VLQ value.");h=g.decode(d.charAt(e++));b=!!(h&32);h&=31;c+=h<<a;a+=5}while(b);l=c>>1;return{value:1===(c&1)?-l:l,rest:d.slice(e)}}})},
48
+ {"./base64":11,amdefine:17}],11:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){var g={},d={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach(function(e,l){g[e]=l;d[l]=e});h.encode=function(e){if(e in d)return d[e];throw new TypeError("Must be between 0 and 63: "+e);};h.decode=function(d){if(d in g)return g[d];throw new TypeError("Not a valid base 64 digit: "+d);}})},{amdefine:17}],12:[function(h,r,m){if("function"!==typeof e)var e=
49
+ h("amdefine")(r,h);e(function(e,h,m){function g(d,e,l,c,a){var b=Math.floor((e-d)/2)+d,h=a(l,c[b],!0);return 0===h?c[b]:0<h?1<e-b?g(b,e,l,c,a):c[b]:1<b-d?g(d,b,l,c,a):0>d?null:c[d]}h.search=function(d,e,l){return 0<e.length?g(-1,e.length,d,e,l):null}})},{amdefine:17}],13:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){function g(a){var b=a;"string"===typeof a&&(b=JSON.parse(a.replace(/^\)\]\}'/,"")));a=d.getArg(b,"version");var c=d.getArg(b,"sources"),e=d.getArg(b,
50
+ "names",[]),g=d.getArg(b,"sourceRoot",null),h=d.getArg(b,"sourcesContent",null),k=d.getArg(b,"mappings"),b=d.getArg(b,"file",null);if(a!=this._version)throw Error("Unsupported version: "+a);this._names=l.fromArray(e,!0);this._sources=l.fromArray(c,!0);this.sourceRoot=g;this.sourcesContent=h;this._mappings=k;this.file=b}var d=e("./util"),k=e("./binary-search"),l=e("./array-set").ArraySet,c=e("./base64-vlq");g.fromSourceMap=function(a){var b=Object.create(g.prototype);b._names=l.fromArray(a._names.toArray(),
51
+ !0);b._sources=l.fromArray(a._sources.toArray(),!0);b.sourceRoot=a._sourceRoot;b.sourcesContent=a._generateSourcesContent(b._sources.toArray(),b.sourceRoot);b.file=a._file;b.__generatedMappings=a._mappings.slice().sort(d.compareByGeneratedPositions);b.__originalMappings=a._mappings.slice().sort(d.compareByOriginalPositions);return b};g.prototype._version=3;Object.defineProperty(g.prototype,"sources",{get:function(){return this._sources.toArray().map(function(a){return this.sourceRoot?d.join(this.sourceRoot,
52
+ a):a},this)}});g.prototype.__generatedMappings=null;Object.defineProperty(g.prototype,"_generatedMappings",{get:function(){this.__generatedMappings||(this.__generatedMappings=[],this.__originalMappings=[],this._parseMappings(this._mappings,this.sourceRoot));return this.__generatedMappings}});g.prototype.__originalMappings=null;Object.defineProperty(g.prototype,"_originalMappings",{get:function(){this.__originalMappings||(this.__generatedMappings=[],this.__originalMappings=[],this._parseMappings(this._mappings,
53
+ this.sourceRoot));return this.__originalMappings}});g.prototype._parseMappings=function(a,b){for(var e=1,g=0,l=0,h=0,k=0,x=0,m=/^[,;]/,s=a,p;0<s.length;)if(";"===s.charAt(0))e++,s=s.slice(1),g=0;else if(","===s.charAt(0))s=s.slice(1);else{p={};p.generatedLine=e;s=c.decode(s);p.generatedColumn=g+s.value;g=p.generatedColumn;s=s.rest;if(0<s.length&&!m.test(s.charAt(0))){s=c.decode(s);p.source=this._sources.at(k+s.value);k+=s.value;s=s.rest;if(0===s.length||m.test(s.charAt(0)))throw Error("Found a source, but no line and column");
54
+ s=c.decode(s);p.originalLine=l+s.value;l=p.originalLine;p.originalLine+=1;s=s.rest;if(0===s.length||m.test(s.charAt(0)))throw Error("Found a source and line, but no column");s=c.decode(s);p.originalColumn=h+s.value;h=p.originalColumn;s=s.rest;0<s.length&&!m.test(s.charAt(0))&&(s=c.decode(s),p.name=this._names.at(x+s.value),x+=s.value,s=s.rest)}this.__generatedMappings.push(p);"number"===typeof p.originalLine&&this.__originalMappings.push(p)}this.__generatedMappings.sort(d.compareByGeneratedPositions);
55
+ this.__originalMappings.sort(d.compareByOriginalPositions)};g.prototype._findMapping=function(a,b,c,d,e){if(0>=a[c])throw new TypeError("Line must be greater than or equal to 1, got "+a[c]);if(0>a[d])throw new TypeError("Column must be greater than or equal to 0, got "+a[d]);return k.search(a,b,e)};g.prototype.originalPositionFor=function(a){a={generatedLine:d.getArg(a,"line"),generatedColumn:d.getArg(a,"column")};if(a=this._findMapping(a,this._generatedMappings,"generatedLine","generatedColumn",
56
+ d.compareByGeneratedPositions)){var b=d.getArg(a,"source",null);b&&this.sourceRoot&&(b=d.join(this.sourceRoot,b));return{source:b,line:d.getArg(a,"originalLine",null),column:d.getArg(a,"originalColumn",null),name:d.getArg(a,"name",null)}}return{source:null,line:null,column:null,name:null}};g.prototype.sourceContentFor=function(a){if(!this.sourcesContent)return null;this.sourceRoot&&(a=d.relative(this.sourceRoot,a));if(this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];var b;
57
+ if(this.sourceRoot&&(b=d.urlParse(this.sourceRoot))){var c=a.replace(/^file:\/\//,"");if("file"==b.scheme&&this._sources.has(c))return this.sourcesContent[this._sources.indexOf(c)];if((!b.path||"/"==b.path)&&this._sources.has("/"+a))return this.sourcesContent[this._sources.indexOf("/"+a)]}throw Error('"'+a+'" is not in the SourceMap.');};g.prototype.generatedPositionFor=function(a){a={source:d.getArg(a,"source"),originalLine:d.getArg(a,"line"),originalColumn:d.getArg(a,"column")};this.sourceRoot&&
58
+ (a.source=d.relative(this.sourceRoot,a.source));return(a=this._findMapping(a,this._originalMappings,"originalLine","originalColumn",d.compareByOriginalPositions))?{line:d.getArg(a,"generatedLine",null),column:d.getArg(a,"generatedColumn",null)}:{line:null,column:null}};g.GENERATED_ORDER=1;g.ORIGINAL_ORDER=2;g.prototype.eachMapping=function(a,b,c){b=b||null;switch(c||g.GENERATED_ORDER){case g.GENERATED_ORDER:c=this._generatedMappings;break;case g.ORIGINAL_ORDER:c=this._originalMappings;break;default:throw Error("Unknown order of iteration.");
59
+ }var e=this.sourceRoot;c.map(function(a){var b=a.source;b&&e&&(b=d.join(e,b));return{source:b,generatedLine:a.generatedLine,generatedColumn:a.generatedColumn,originalLine:a.originalLine,originalColumn:a.originalColumn,name:a.name}}).forEach(a,b)};h.SourceMapConsumer=g})},{"./array-set":9,"./base64-vlq":10,"./binary-search":12,"./util":16,amdefine:17}],14:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){function g(c){this._file=k.getArg(c,"file");this._sourceRoot=
60
+ k.getArg(c,"sourceRoot",null);this._sources=new l;this._names=new l;this._mappings=[];this._sourcesContents=null}var d=e("./base64-vlq"),k=e("./util"),l=e("./array-set").ArraySet;g.prototype._version=3;g.fromSourceMap=function(c){var a=c.sourceRoot,b=new g({file:c.file,sourceRoot:a});c.eachMapping(function(c){var d={generated:{line:c.generatedLine,column:c.generatedColumn}};c.source&&(d.source=c.source,a&&(d.source=k.relative(a,d.source)),d.original={line:c.originalLine,column:c.originalColumn},c.name&&
61
+ (d.name=c.name));b.addMapping(d)});c.sources.forEach(function(a){var d=c.sourceContentFor(a);d&&b.setSourceContent(a,d)});return b};g.prototype.addMapping=function(c){var a=k.getArg(c,"generated"),b=k.getArg(c,"original",null),d=k.getArg(c,"source",null);c=k.getArg(c,"name",null);this._validateMapping(a,b,d,c);d&&!this._sources.has(d)&&this._sources.add(d);c&&!this._names.has(c)&&this._names.add(c);this._mappings.push({generatedLine:a.line,generatedColumn:a.column,originalLine:null!=b&&b.line,originalColumn:null!=
62
+ b&&b.column,source:d,name:c})};g.prototype.setSourceContent=function(c,a){var b=c;this._sourceRoot&&(b=k.relative(this._sourceRoot,b));null!==a?(this._sourcesContents||(this._sourcesContents={}),this._sourcesContents[k.toSetString(b)]=a):(delete this._sourcesContents[k.toSetString(b)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))};g.prototype.applySourceMap=function(c,a){a||(a=c.file);var b=this._sourceRoot;b&&(a=k.relative(b,a));var d=new l,e=new l;this._mappings.forEach(function(g){if(g.source===
63
+ a&&g.originalLine){var l=c.originalPositionFor({line:g.originalLine,column:g.originalColumn});null!==l.source&&(g.source=b?k.relative(b,l.source):l.source,g.originalLine=l.line,g.originalColumn=l.column,null!==l.name&&null!==g.name&&(g.name=l.name))}(l=g.source)&&!d.has(l)&&d.add(l);(g=g.name)&&!e.has(g)&&e.add(g)},this);this._sources=d;this._names=e;c.sources.forEach(function(a){var d=c.sourceContentFor(a);d&&(b&&(a=k.relative(b,a)),this.setSourceContent(a,d))},this)};g.prototype._validateMapping=
64
+ function(c,a,b,d){if(!(c&&"line"in c&&"column"in c&&0<c.line&&0<=c.column&&!a&&!b&&!d||c&&"line"in c&&"column"in c&&a&&"line"in a&&"column"in a&&0<c.line&&0<=c.column&&0<a.line&&0<=a.column&&b))throw Error("Invalid mapping: "+JSON.stringify({generated:c,source:b,original:a,name:d}));};g.prototype._serializeMappings=function(){var c=0,a=1,b=0,e=0,g=0,l=0,h="",v;this._mappings.sort(k.compareByGeneratedPositions);for(var x=0,p=this._mappings.length;x<p;x++){v=this._mappings[x];if(v.generatedLine!==a)for(c=
65
+ 0;v.generatedLine!==a;)h+=";",a++;else if(0<x){if(!k.compareByGeneratedPositions(v,this._mappings[x-1]))continue;h+=","}h+=d.encode(v.generatedColumn-c);c=v.generatedColumn;v.source&&(h+=d.encode(this._sources.indexOf(v.source)-l),l=this._sources.indexOf(v.source),h+=d.encode(v.originalLine-1-e),e=v.originalLine-1,h+=d.encode(v.originalColumn-b),b=v.originalColumn,v.name&&(h+=d.encode(this._names.indexOf(v.name)-g),g=this._names.indexOf(v.name)))}return h};g.prototype._generateSourcesContent=function(c,
66
+ a){return c.map(function(b){if(!this._sourcesContents)return null;a&&(b=k.relative(a,b));b=k.toSetString(b);return Object.prototype.hasOwnProperty.call(this._sourcesContents,b)?this._sourcesContents[b]:null},this)};g.prototype.toJSON=function(){var c={version:this._version,file:this._file,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};this._sourceRoot&&(c.sourceRoot=this._sourceRoot);this._sourcesContents&&(c.sourcesContent=this._generateSourcesContent(c.sources,
67
+ c.sourceRoot));return c};g.prototype.toString=function(){return JSON.stringify(this)};h.SourceMapGenerator=g})},{"./array-set":9,"./base64-vlq":10,"./util":16,amdefine:17}],15:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){function g(d,c,a,b,e){this.children=[];this.sourceContents={};this.line=void 0===d?null:d;this.column=void 0===c?null:c;this.source=void 0===a?null:a;this.name=void 0===e?null:e;null!=b&&this.add(b)}var d=e("./source-map-generator").SourceMapGenerator,
68
+ k=e("./util");g.fromStringWithSourceMap=function(d,c){function a(a,c){null===a||void 0===a.source?b.add(c):b.add(new g(a.originalLine,a.originalColumn,a.source,c,a.name))}var b=new g,e=d.split("\n"),h=1,k=0,p=null;c.eachMapping(function(c){if(null===p){for(;h<c.generatedLine;)b.add(e.shift()+"\n"),h++;if(k<c.generatedColumn){var d=e[0];b.add(d.substr(0,c.generatedColumn));e[0]=d.substr(c.generatedColumn);k=c.generatedColumn}}else{if(h<c.generatedLine){var g="";do g+=e.shift()+"\n",h++,k=0;while(h<
69
+ c.generatedLine);k<c.generatedColumn&&(d=e[0],g+=d.substr(0,c.generatedColumn),e[0]=d.substr(c.generatedColumn),k=c.generatedColumn)}else d=e[0],g=d.substr(0,c.generatedColumn-k),e[0]=d.substr(c.generatedColumn-k),k=c.generatedColumn;a(p,g)}p=c},this);a(p,e.join("\n"));c.sources.forEach(function(a){var d=c.sourceContentFor(a);d&&b.setSourceContent(a,d)});return b};g.prototype.add=function(d){if(Array.isArray(d))d.forEach(function(c){this.add(c)},this);else if(d instanceof g||"string"===typeof d)d&&
70
+ this.children.push(d);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+d);return this};g.prototype.prepend=function(d){if(Array.isArray(d))for(var c=d.length-1;0<=c;c--)this.prepend(d[c]);else if(d instanceof g||"string"===typeof d)this.children.unshift(d);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+d);return this};g.prototype.walk=function(d){for(var c,a=0,b=this.children.length;a<b;a++)c=
71
+ this.children[a],c instanceof g?c.walk(d):""!==c&&d(c,{source:this.source,line:this.line,column:this.column,name:this.name})};g.prototype.join=function(d){var c,a,b=this.children.length;if(0<b){c=[];for(a=0;a<b-1;a++)c.push(this.children[a]),c.push(d);c.push(this.children[a]);this.children=c}return this};g.prototype.replaceRight=function(d,c){var a=this.children[this.children.length-1];a instanceof g?a.replaceRight(d,c):"string"===typeof a?this.children[this.children.length-1]=a.replace(d,c):this.children.push("".replace(d,
72
+ c));return this};g.prototype.setSourceContent=function(d,c){this.sourceContents[k.toSetString(d)]=c};g.prototype.walkSourceContents=function(d){for(var c=0,a=this.children.length;c<a;c++)this.children[c]instanceof g&&this.children[c].walkSourceContents(d);for(var b=Object.keys(this.sourceContents),c=0,a=b.length;c<a;c++)d(k.fromSetString(b[c]),this.sourceContents[b[c]])};g.prototype.toString=function(){var d="";this.walk(function(c){d+=c});return d};g.prototype.toStringWithSourceMap=function(e){var c=
73
+ "",a=1,b=0,g=new d(e),h=!1,k=null,p=null,v=null,m=null;this.walk(function(d,e){c+=d;null!==e.source&&null!==e.line&&null!==e.column?(k===e.source&&p===e.line&&v===e.column&&m===e.name||g.addMapping({source:e.source,original:{line:e.line,column:e.column},generated:{line:a,column:b},name:e.name}),k=e.source,p=e.line,v=e.column,m=e.name,h=!0):h&&(g.addMapping({generated:{line:a,column:b}}),k=null,h=!1);d.split("").forEach(function(c){"\n"===c?(a++,b=0):b++})});this.walkSourceContents(function(a,b){g.setSourceContent(a,
74
+ b)});return{code:c,map:g}};h.SourceNode=g})},{"./source-map-generator":14,"./util":16,amdefine:17}],16:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){function g(a){return(a=a.match(l))?{scheme:a[1],auth:a[3],host:a[4],port:a[6],path:a[7]}:null}function d(a){var b=a.scheme+"://";a.auth&&(b+=a.auth+"@");a.host&&(b+=a.host);a.port&&(b+=":"+a.port);a.path&&(b+=a.path);return b}function k(a,b){var c=a||"",d=b||"";return(c>d)-(c<d)}h.getArg=function(a,b,c){if(b in a)return a[b];
75
+ if(3===arguments.length)return c;throw Error('"'+b+'" is a required argument.');};var l=/([\w+\-.]+):\/\/((\w+:\w+)@)?([\w.]+)?(:(\d+))?(\S+)?/,c=/^data:.+\,.+/;h.urlParse=g;h.urlGenerate=d;h.join=function(a,b){var e;return b.match(l)||b.match(c)?b:"/"===b.charAt(0)&&(e=g(a))?(e.path=b,d(e)):a.replace(/\/$/,"")+"/"+b};h.toSetString=function(a){return"$"+a};h.fromSetString=function(a){return a.substr(1)};h.relative=function(a,b){a=a.replace(/\/$/,"");var c=g(a);return"/"==b.charAt(0)&&c&&"/"==c.path?
76
+ b.slice(1):0===b.indexOf(a+"/")?b.substr(a.length+1):b};h.compareByOriginalPositions=function(a,b,c){var d;return(d=k(a.source,b.source))||(d=a.originalLine-b.originalLine)||(d=a.originalColumn-b.originalColumn)||c||(d=k(a.name,b.name))?d:(d=a.generatedLine-b.generatedLine)?d:a.generatedColumn-b.generatedColumn};h.compareByGeneratedPositions=function(a,b,c){var d;return(d=a.generatedLine-b.generatedLine)||(d=a.generatedColumn-b.generatedColumn)||c||(d=k(a.source,b.source))||(d=a.originalLine-b.originalLine)?
77
+ d:(d=a.originalColumn-b.originalColumn)?d:k(a.name,b.name)}})},{amdefine:17}],17:[function(h,r,m){(function(e,p){r.exports=function(m,r){function g(a,b){var c;if(a&&"."===a.charAt(0)&&b){c=b.split("/");c=c.slice(0,c.length-1);var d=c=c.concat(a.split("/")),e,g;for(e=0;d[e];e+=1)if(g=d[e],"."===g)d.splice(e,1),e-=1;else if(".."===g)if(1!==e||".."!==d[2]&&".."!==d[0])0<e&&(d.splice(e-1,2),e-=2);else break;a=c.join("/")}return a}function d(a){return function(b){return g(b,a)}}function k(a){function c(d){b[a]=
78
+ d}c.fromText=function(a,b){throw Error("amdefine does not implement load.fromText");};return c}function l(a,c,d){var e,g,h;if(a)g=b[a]={},h={id:a,uri:p,exports:g},e=A(r,g,h,a);else{if(y)throw Error("amdefine with no module ID cannot be called more than once per file.");y=!0;g=m.exports;h=m;e=A(r,g,h,m.id)}c&&(c=c.map(function(a){return e(a)}));c="function"===typeof d?d.apply(h.exports,c):d;void 0!==c&&(h.exports=c,a&&(b[a]=h.exports))}function c(b,c,d){Array.isArray(b)?(d=c,c=b,b=void 0):"string"!==
79
+ typeof b&&(d=b,b=c=void 0);c&&!Array.isArray(c)&&(d=c,c=void 0);c||(c=["require","exports","module"]);b?a[b]=[b,c,d]:l(b,c,d)}var a={},b={},y=!1,B=h("path"),A,C;A=function(a,b,c,d){function h(g,k){if("string"===typeof g)return C(a,b,c,g,d);g=g.map(function(e){return C(a,b,c,e,d)});e.nextTick(function(){k.apply(null,g)})}h.toUrl=function(a){return 0===a.indexOf(".")?g(a,B.dirname(c.filename)):a};return h};r=r||function(){return m.require.apply(m,arguments)};C=function(c,e,h,m,p){var r=m.indexOf("!"),
80
+ F=m;if(-1===r){m=g(m,p);if("require"===m)return A(c,e,h,p);if("exports"===m)return e;if("module"===m)return h;if(b.hasOwnProperty(m))return b[m];if(a[m])return l.apply(null,a[m]),b[m];if(c)return c(F);throw Error("No module with ID: "+m);}F=m.substring(0,r);m=m.substring(r+1,m.length);r=C(c,e,h,F,p);m=r.normalize?r.normalize(m,d(p)):g(m,p);b[m]||r.load(m,A(c,e,h,p),k(m),{});return b[m]};c.require=function(c){if(b[c])return b[c];if(a[c])return l.apply(null,a[c]),b[c]};c.amd={};return c}}).call(this,
81
+ h("node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"/node_modules/source-map/node_modules/amdefine/amdefine.js")},{"node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":6,path:7}],18:[function(h,r,m){(function(e,p){function r(){return"undefined"!==typeof window}function z(a){if(a in D)return D[a];try{if(r()){var b=new XMLHttpRequest;b.open("GET",a,!1);b.send(null);var c=4===b.readyState?b.responseText:null}else c=
82
+ x.readFileSync(a,"utf8")}catch(d){c=null}return D[a]=c}function g(a,b){if(!a)return b;var c=v.dirname(a),d=/^\w+:\/\/[^\/]*/.exec(c),d=d?d[0]:"";return d+v.resolve(c.slice(d.length),b)}function d(a){var b;a:{if(r()&&(b=new XMLHttpRequest,b.open("GET",a,!1),b.send(null),b=b.getResponseHeader("SourceMap")||b.getResponseHeader("X-SourceMap")))break a;b=z(a);b=(b=/\/\/[#@]\s*sourceMappingURL=(.*)\s*$/m.exec(b))?b[1]:null}if(!b)return null;"data:application/json;base64,"==b.slice(0,29).toLowerCase()?(a=
83
+ (new p(b.slice(29),"base64")).toString(),b=null):(b=g(a,b),a=z(b,"utf8"));return a?{url:b,map:a}:null}function k(a){var b=E[a.source];if(!b){var c=d(a.source);c&&(b=E[a.source]={url:c.url,map:new C(c.map)},b.map.sourcesContent&&b.map.sources.forEach(function(a,c){var d=b.map.sourcesContent[c];if(d){var e=g(b.url,a);D[e]=d}}))}return b&&(c=b.map.originalPositionFor(a),null!==c.source)?(c.source=g(b.url,c.source),c):a}function l(a){var b=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(a);return b?(a=
84
+ k({source:b[2],line:b[3],column:b[4]-1}),"eval at "+b[1]+" ("+a.source+":"+a.line+":"+(a.column+1)+")"):(b=/^eval at ([^(]+) \((.+)\)$/.exec(a))?"eval at "+b[1]+" ("+l(b[2])+")":a}function c(){var a,b="";this.isNative()?b="native":(a=this.getScriptNameOrSourceURL(),!a&&this.isEval()&&(b=this.getEvalOrigin(),b+=", "),b=a?b+a:b+"<anonymous>",a=this.getLineNumber(),null!=a&&(b+=":"+a,(a=this.getColumnNumber())&&(b+=":"+a)));a="";var c=this.getFunctionName(),d=!0,e=this.isConstructor();if(this.isToplevel()||
85
+ e)e?a+="new "+(c||"<anonymous>"):c?a+=c:(a+=b,d=!1);else{var e=this.getTypeName(),g=this.getMethodName();c?(e&&0!=c.indexOf(e)&&(a+=e+"."),a+=c,g&&c.indexOf("."+g)!=c.length-g.length-1&&(a+=" [as "+g+"]")):a+=e+"."+(g||"<anonymous>")}d&&(a+=" ("+b+")");return a}function a(a){var b={};Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach(function(c){b[c]=/^(?:is|get)/.test(c)?function(){return a[c].call(a)}:a[c]});b.toString=c;return b}function b(b){var c=b.getFileName()||b.getScriptNameOrSourceURL();
86
+ if(c){var d=k({source:c,line:b.getLineNumber(),column:b.getColumnNumber()-1});b=a(b);b.getFileName=function(){return d.source};b.getLineNumber=function(){return d.line};b.getColumnNumber=function(){return d.column+1};b.getScriptNameOrSourceURL=function(){return d.source};return b}var e=b.isEval()&&b.getEvalOrigin();e&&(e=l(e),b=a(b),b.getEvalOrigin=function(){return e});return b}function y(a,c){s&&(D={},E={});return a+c.map(function(a){return"\n at "+b(a)}).join("")}function B(a){var b=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(a.stack);
87
+ if(b){a=b[1];var c=+b[2],b=+b[3],d=D[a];!d&&x.existsSync(a)&&(d=x.readFileSync(a,"utf8"));if(d&&(d=d.split(/(?:\r\n|\r|\n)/)[c-1]))return"\n"+a+":"+c+"\n"+d+"\n"+Array(b).join(" ")+"^"}return null}function A(a){if(a&&a.stack){var b=B(a);null!==b&&console.log(b);console.log(a.stack)}else console.log("Uncaught exception:",a);e.exit(1)}var C=h("source-map").SourceMapConsumer,v=h("path"),x=h("fs"),G=!1,s=!1,D={},E={};m.wrapCallSite=b;m.getErrorSource=B;m.mapSourcePosition=k;m.retrieveSourceMap=d;m.install=
88
+ function(a){if(!G){G=!0;Error.prepareStackTrace=y;a=a||{};var b="handleUncaughtExceptions"in a?a.handleUncaughtExceptions:!0;s="emptyCacheBetweenOperations"in a?a.emptyCacheBetweenOperations:!1;a.retrieveFile&&(z=a.retrieveFile);a.retrieveSourceMap&&(d=a.retrieveSourceMap);if(b&&!r())e.on("uncaughtException",A)}}}).call(this,h("node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),h("buffer").Buffer)},{"node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":6,
89
+ buffer:3,fs:2,path:7,"source-map":8}]},{},[1]);return J});
@@ -0,0 +1,6 @@
1
+ <p>
2
+ Make sure to run build.js.
3
+ This test should say either "Test failed" or "Test passed":
4
+ </p>
5
+ <script src="require.js"></script>
6
+ <script>require(['script']);</script>