sprockets-browserify 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -14
- data/node_modules/browserify/bin/advanced.txt +30 -0
- data/node_modules/browserify/bin/args.js +72 -19
- data/node_modules/browserify/bin/cmd.js +6 -3
- data/node_modules/browserify/bin/usage.txt +3 -1
- data/node_modules/browserify/example/multiple_bundles/build.sh +2 -2
- data/node_modules/browserify/index.js +385 -89
- data/node_modules/browserify/{_empty.js → lib/_empty.js} +0 -0
- data/node_modules/browserify/lib/builtins.js +36 -0
- data/node_modules/browserify/node_modules/JSONStream/index.js +84 -88
- data/node_modules/browserify/node_modules/JSONStream/node_modules/jsonparse/package.json +4 -1
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify/example/json-stream/node_modules/JSONStream → JSONStream/node_modules/through}/LICENSE.APACHE2 +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify/example/json-stream/node_modules/JSONStream → JSONStream/node_modules/through}/LICENSE.MIT +0 -0
- data/node_modules/browserify/node_modules/JSONStream/node_modules/through/index.js +103 -0
- data/node_modules/browserify/node_modules/JSONStream/node_modules/through/package.json +46 -0
- data/node_modules/browserify/node_modules/JSONStream/node_modules/through/readme.markdown +43 -0
- data/node_modules/browserify/node_modules/{module-deps → JSONStream}/node_modules/through/test/buffering.js +0 -0
- data/node_modules/browserify/node_modules/JSONStream/node_modules/through/test/end.js +26 -0
- data/node_modules/browserify/node_modules/{module-deps → JSONStream}/node_modules/through/test/index.js +0 -0
- data/node_modules/browserify/node_modules/JSONStream/package.json +15 -6
- data/node_modules/browserify/node_modules/JSONStream/readme.markdown +42 -19
- data/node_modules/browserify/node_modules/JSONStream/test/browser.js +18 -0
- data/node_modules/browserify/node_modules/JSONStream/test/destroy_missing.js +8 -3
- data/node_modules/browserify/node_modules/JSONStream/test/doubledot1.js +29 -0
- data/node_modules/browserify/node_modules/JSONStream/test/doubledot2.js +29 -0
- data/node_modules/browserify/node_modules/JSONStream/test/fixtures/depth.json +15 -0
- data/node_modules/browserify/node_modules/JSONStream/test/gen.js +135 -0
- data/node_modules/browserify/node_modules/assert/README.md +64 -0
- data/node_modules/browserify/node_modules/assert/assert.js +360 -0
- data/node_modules/browserify/node_modules/assert/package.json +35 -0
- data/node_modules/browserify/node_modules/assert/test.js +322 -0
- data/node_modules/browserify/node_modules/browser-pack/_prelude.js +1 -0
- data/node_modules/browserify/node_modules/browser-pack/bin/cmd.js +4 -0
- data/node_modules/browserify/node_modules/browser-pack/bin/prepublish.js +8 -0
- data/node_modules/browserify/node_modules/browser-pack/example/foo.js +1 -0
- data/node_modules/browserify/node_modules/browser-pack/example/self.js +18 -0
- data/node_modules/browserify/node_modules/browser-pack/index.js +38 -20
- data/node_modules/browserify/node_modules/{module-deps/node_modules/through → browser-pack/node_modules/JSONStream}/LICENSE.APACHE2 +0 -0
- data/node_modules/browserify/node_modules/{module-deps/node_modules/through → browser-pack/node_modules/JSONStream}/LICENSE.MIT +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify/example/json-stream → browser-pack}/node_modules/JSONStream/examples/all_docs.js +0 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/JSONStream/index.js +180 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify/example/json-stream → browser-pack}/node_modules/JSONStream/node_modules/jsonparse/LICENSE +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify/example/json-stream → browser-pack}/node_modules/JSONStream/node_modules/jsonparse/README.markdown +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify/example/json-stream → browser-pack}/node_modules/JSONStream/node_modules/jsonparse/bench.js +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify/example/json-stream → browser-pack}/node_modules/JSONStream/node_modules/jsonparse/examples/twitterfeed.js +0 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/JSONStream/node_modules/jsonparse/jsonparse.js +401 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/JSONStream/node_modules/jsonparse/package.json +37 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify/example/json-stream → browser-pack}/node_modules/JSONStream/node_modules/jsonparse/samplejson/basic.json +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify/example/json-stream → browser-pack}/node_modules/JSONStream/node_modules/jsonparse/samplejson/basic2.json +0 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/JSONStream/node_modules/jsonparse/test/boundary.js +110 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify/example/json-stream → browser-pack}/node_modules/JSONStream/node_modules/jsonparse/test/primitives.js +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify/example/json-stream → browser-pack}/node_modules/JSONStream/node_modules/jsonparse/test/utf8.js +0 -0
- data/node_modules/browserify/node_modules/{umd → browser-pack/node_modules/JSONStream}/node_modules/through/LICENSE.APACHE2 +0 -0
- data/node_modules/browserify/node_modules/{umd → browser-pack/node_modules/JSONStream}/node_modules/through/LICENSE.MIT +0 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/JSONStream/node_modules/through/index.js +103 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/JSONStream/node_modules/through/package.json +46 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/JSONStream/node_modules/through/readme.markdown +43 -0
- data/node_modules/browserify/node_modules/{umd → browser-pack/node_modules/JSONStream}/node_modules/through/test/buffering.js +0 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/JSONStream/node_modules/through/test/end.js +26 -0
- data/node_modules/browserify/node_modules/{umd → browser-pack/node_modules/JSONStream}/node_modules/through/test/index.js +0 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/JSONStream/package.json +41 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/JSONStream/readme.markdown +141 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify/example/json-stream → browser-pack}/node_modules/JSONStream/test/bool.js +0 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/JSONStream/test/destroy_missing.js +27 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify/example/json-stream → browser-pack}/node_modules/JSONStream/test/empty.js +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify/example/json-stream → browser-pack}/node_modules/JSONStream/test/fixtures/all_npm.json +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify/example/json-stream → browser-pack}/node_modules/JSONStream/test/fn.js +0 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/JSONStream/test/gen.js +132 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify/example/json-stream → browser-pack}/node_modules/JSONStream/test/multiple_objects.js +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify/example/json-stream → browser-pack}/node_modules/JSONStream/test/multiple_objects_error.js +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify/example/json-stream → browser-pack}/node_modules/JSONStream/test/parsejson.js +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify/example/json-stream → browser-pack}/node_modules/JSONStream/test/stringify.js +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify/example/json-stream → browser-pack}/node_modules/JSONStream/test/stringify_object.js +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify/example/json-stream → browser-pack}/node_modules/JSONStream/test/test.js +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify/example/json-stream → browser-pack}/node_modules/JSONStream/test/test2.js +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify/example/json-stream → browser-pack}/node_modules/JSONStream/test/two-ways.js +0 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/README.md +2 -2
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/example/two-files-short.js +2 -2
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/example/two-files.js +1 -2
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/index.js +5 -4
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/lib/mappings-from-map.js +30 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/convert-source-map/README.md +35 -6
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/convert-source-map/index.js +57 -11
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/convert-source-map/package.json +23 -9
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/convert-source-map/test/comment-regex.js +80 -5
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/convert-source-map/test/convert-source-map.js +39 -13
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/convert-source-map/test/fixtures/map-file-comment-double-slash.css +14 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/convert-source-map/test/fixtures/map-file-comment.css +14 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/convert-source-map/test/fixtures/map-file-comment.css.map +6 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/convert-source-map/test/map-file-comment.js +49 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/index.js +1 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/package.json +19 -7
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/test/inline-source-map.js +140 -73
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/test/source-content.js +11 -8
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/source-map/CHANGELOG.md +112 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/{inline-source-map/node_modules/source-map → source-map}/LICENSE +0 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/source-map/Makefile.dryice.js +166 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/source-map/README.md +434 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/{inline-source-map/node_modules/source-map → source-map}/build/assert-shim.js +0 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/{inline-source-map/node_modules/source-map → source-map}/build/mini-require.js +0 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/{inline-source-map/node_modules/source-map → source-map}/build/prefix-source-map.jsm +0 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/{inline-source-map/node_modules/source-map → source-map}/build/prefix-utils.jsm +0 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/source-map/build/suffix-browser.js +8 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/{inline-source-map/node_modules/source-map → source-map}/build/suffix-source-map.jsm +0 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/{inline-source-map/node_modules/source-map → source-map}/build/suffix-utils.jsm +0 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/{inline-source-map/node_modules/source-map → source-map}/build/test-prefix.js +0 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/{inline-source-map/node_modules/source-map → source-map}/build/test-suffix.js +0 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/{inline-source-map/node_modules/source-map → source-map}/lib/source-map.js +0 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/source-map/lib/source-map/array-set.js +97 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/source-map/lib/source-map/base64-vlq.js +144 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/source-map/lib/source-map/base64.js +42 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/source-map/lib/source-map/binary-search.js +81 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/source-map/lib/source-map/source-map-consumer.js +477 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/source-map/lib/source-map/source-map-generator.js +380 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/source-map/lib/source-map/source-node.js +371 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/source-map/lib/source-map/util.js +205 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/{inline-source-map/node_modules/source-map → source-map}/node_modules/amdefine/LICENSE +0 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/source-map/node_modules/amdefine/README.md +171 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/source-map/node_modules/amdefine/amdefine.js +299 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/source-map/node_modules/amdefine/intercept.js +36 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/source-map/node_modules/amdefine/package.json +36 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/source-map/package.json +110 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/source-map/test/run-tests.js +71 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/source-map/test/source-map/test-api.js +26 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/source-map/test/source-map/test-array-set.js +104 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/source-map/test/source-map/test-base64-vlq.js +24 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/source-map/test/source-map/test-base64.js +35 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/source-map/test/source-map/test-binary-search.js +54 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/source-map/test/source-map/test-dog-fooding.js +72 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/source-map/test/source-map/test-source-map-consumer.js +451 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/source-map/test/source-map/test-source-map-generator.js +417 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/source-map/test/source-map/test-source-node.js +365 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/source-map/test/source-map/util.js +161 -0
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/package.json +17 -10
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/test/combine-source-map.js +29 -19
- data/node_modules/browserify/node_modules/browser-pack/package.json +19 -12
- data/node_modules/browserify/node_modules/browser-pack/prelude.js +2 -2
- data/node_modules/browserify/node_modules/browser-pack/readme.markdown +5 -1
- data/node_modules/browserify/node_modules/browser-pack/test/source-maps-existing.js +4 -1
- data/node_modules/browserify/node_modules/browser-pack/test/source-maps.js +90 -8
- data/node_modules/browserify/node_modules/browser-pack/test/unicode.js +32 -0
- data/node_modules/browserify/node_modules/browser-resolve/README.md +31 -13
- data/node_modules/browserify/node_modules/browser-resolve/index.js +54 -31
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js +41 -48
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/caller.js +8 -0
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/node-modules-paths.js +25 -0
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/sync.js +7 -26
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/package.json +12 -4
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/readme.markdown +12 -2
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/filter.js +3 -2
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/mock.js +81 -7
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/resolver.js +155 -18
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/resolver/biz/node_modules/garply/lib/index.js +1 -0
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/resolver/biz/node_modules/garply/package.json +3 -0
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/resolver/incorrect_main/index.js +2 -0
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/resolver/incorrect_main/package.json +3 -0
- data/node_modules/browserify/node_modules/browser-resolve/{builtin/dgram.js → node_modules/resolve/test/resolver/punycode/node_modules/punycode/index.js} +0 -0
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/resolver/quux/foo/index.js +1 -0
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/resolver/without_basedir/main.js +6 -0
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/resolver/without_basedir/node_modules/mymodule.js +1 -0
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/resolver_sync.js +23 -0
- data/node_modules/browserify/node_modules/browser-resolve/package.json +14 -12
- data/node_modules/browserify/node_modules/browser-resolve/test/core.js +9 -13
- data/node_modules/browserify/node_modules/browser-resolve/test/fixtures-coffee/foo.coffee +1 -0
- data/node_modules/browserify/node_modules/browser-resolve/test/local-coffee.js +18 -0
- data/node_modules/browserify/node_modules/browser-resolve/test/modules-coffee.js +117 -0
- data/node_modules/browserify/node_modules/browser-resolve/test/modules.js +97 -12
- data/node_modules/browserify/node_modules/concat-stream/LICENSE +24 -0
- data/node_modules/browserify/node_modules/concat-stream/index.js +105 -30
- data/node_modules/browserify/node_modules/concat-stream/node_modules/readable-stream/LICENSE +18 -0
- data/node_modules/browserify/node_modules/concat-stream/node_modules/readable-stream/README.md +768 -0
- data/node_modules/browserify/node_modules/concat-stream/node_modules/readable-stream/duplex.js +1 -0
- data/node_modules/browserify/node_modules/concat-stream/node_modules/readable-stream/float.patch +923 -0
- data/node_modules/browserify/node_modules/concat-stream/node_modules/readable-stream/lib/_stream_duplex.js +69 -0
- data/node_modules/browserify/node_modules/concat-stream/node_modules/readable-stream/lib/_stream_passthrough.js +41 -0
- data/node_modules/browserify/node_modules/concat-stream/node_modules/readable-stream/lib/_stream_readable.js +924 -0
- data/node_modules/browserify/node_modules/concat-stream/node_modules/readable-stream/lib/_stream_transform.js +210 -0
- data/node_modules/browserify/node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js +460 -0
- data/node_modules/browserify/node_modules/concat-stream/node_modules/readable-stream/node_modules/core-util-is/README.md +3 -0
- data/node_modules/browserify/node_modules/concat-stream/node_modules/readable-stream/node_modules/core-util-is/float.patch +604 -0
- data/node_modules/browserify/node_modules/concat-stream/node_modules/readable-stream/node_modules/core-util-is/lib/util.js +107 -0
- data/node_modules/browserify/node_modules/concat-stream/node_modules/readable-stream/node_modules/core-util-is/package.json +35 -0
- data/node_modules/browserify/node_modules/concat-stream/node_modules/readable-stream/node_modules/core-util-is/util.js +106 -0
- data/node_modules/browserify/node_modules/concat-stream/node_modules/readable-stream/node_modules/debuglog/LICENSE +19 -0
- data/node_modules/browserify/node_modules/concat-stream/node_modules/readable-stream/node_modules/debuglog/README.md +40 -0
- data/node_modules/browserify/node_modules/concat-stream/node_modules/readable-stream/node_modules/debuglog/debuglog.js +22 -0
- data/node_modules/browserify/node_modules/concat-stream/node_modules/readable-stream/node_modules/debuglog/package.json +30 -0
- data/node_modules/browserify/node_modules/concat-stream/node_modules/readable-stream/package.json +42 -0
- data/node_modules/browserify/node_modules/concat-stream/node_modules/readable-stream/passthrough.js +1 -0
- data/node_modules/browserify/node_modules/concat-stream/node_modules/readable-stream/readable.js +7 -0
- data/node_modules/browserify/node_modules/concat-stream/node_modules/readable-stream/transform.js +1 -0
- data/node_modules/browserify/node_modules/concat-stream/node_modules/readable-stream/writable.js +1 -0
- data/node_modules/browserify/node_modules/concat-stream/node_modules/typedarray/LICENSE +35 -0
- data/node_modules/browserify/node_modules/concat-stream/node_modules/typedarray/example/tarray.js +4 -0
- data/node_modules/browserify/node_modules/concat-stream/node_modules/typedarray/index.js +630 -0
- data/node_modules/browserify/node_modules/concat-stream/node_modules/typedarray/package.json +66 -0
- data/node_modules/browserify/node_modules/concat-stream/node_modules/typedarray/readme.markdown +55 -0
- data/node_modules/browserify/node_modules/concat-stream/node_modules/typedarray/test/server/undef_globals.js +19 -0
- data/node_modules/browserify/node_modules/concat-stream/node_modules/typedarray/test/tarray.js +10 -0
- data/node_modules/browserify/node_modules/concat-stream/package.json +40 -6
- data/node_modules/browserify/node_modules/concat-stream/readme.md +62 -21
- data/node_modules/browserify/node_modules/concat-stream/test/array.js +12 -0
- data/node_modules/browserify/node_modules/concat-stream/test/buffer.js +31 -0
- data/node_modules/browserify/node_modules/concat-stream/test/infer.js +14 -0
- data/node_modules/browserify/node_modules/concat-stream/test/nothing.js +9 -0
- data/node_modules/browserify/node_modules/concat-stream/test/objects.js +29 -0
- data/node_modules/browserify/node_modules/concat-stream/test/server/ls.js +16 -0
- data/node_modules/browserify/node_modules/concat-stream/test/string.js +50 -0
- data/node_modules/browserify/node_modules/concat-stream/test/typedarray.js +33 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/console-browserify → console-browserify}/LICENCE +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/console-browserify → console-browserify}/README.md +0 -0
- data/node_modules/browserify/node_modules/console-browserify/index.js +85 -0
- data/node_modules/browserify/node_modules/console-browserify/package.json +80 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/console-browserify → console-browserify}/test/index.js +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/console-browserify → console-browserify}/test/static/index.html +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/console-browserify → console-browserify}/test/static/test-adapter.js +0 -0
- data/node_modules/browserify/node_modules/constants-browserify/README.md +52 -0
- data/node_modules/browserify/node_modules/constants-browserify/build.sh +1 -0
- data/node_modules/browserify/node_modules/constants-browserify/constants.json +178 -0
- data/node_modules/browserify/node_modules/constants-browserify/package.json +35 -0
- data/node_modules/browserify/node_modules/crypto-browserify/LICENSE +24 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/crypto-browserify → crypto-browserify}/example/bundle.js +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/crypto-browserify → crypto-browserify}/example/index.html +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/crypto-browserify → crypto-browserify}/example/test.js +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/helpers.js +35 -0
- data/node_modules/browserify/node_modules/crypto-browserify/index.js +97 -0
- data/node_modules/browserify/node_modules/crypto-browserify/md5.js +163 -0
- data/node_modules/browserify/node_modules/crypto-browserify/package.json +51 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/crypto-browserify → crypto-browserify}/readme.markdown +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/rng.js +31 -0
- data/node_modules/browserify/node_modules/crypto-browserify/sha.js +101 -0
- data/node_modules/browserify/node_modules/crypto-browserify/sha256.js +79 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/browser.js +100 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/node.js +77 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/package.json +7 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/simple.js +36 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/Readme.txt +25 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte-hashes.md5 +196 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte-hashes.sha1 +196 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte-hashes.sha256 +196 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0000.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0001.dat +1 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0002.dat +1 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0003.dat +1 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0004.dat +1 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0005.dat +1 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0006.dat +1 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0007.dat +1 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0008.dat +1 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0009.dat +1 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0010.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0011.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0012.dat +1 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0013.dat +1 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0014.dat +1 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0015.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0016.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0017.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0018.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0019.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0020.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0021.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0022.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0023.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0024.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0025.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0026.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0027.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0028.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0029.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0030.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0031.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0032.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0033.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0034.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0035.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0036.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0037.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0038.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0039.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0040.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0041.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0042.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0043.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0044.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0045.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0046.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0047.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0048.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0049.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0050.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0051.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0052.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0053.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0054.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0055.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0056.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0057.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0058.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0059.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0060.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0061.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0062.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0063.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0064.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0065.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0066.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0067.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0068.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0069.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0070.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0071.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0072.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0073.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0074.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0075.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0076.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0077.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0078.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0079.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0080.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0081.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0082.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0083.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0084.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0085.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0086.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0087.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0088.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0089.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0090.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0091.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0092.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0093.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0094.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0095.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0096.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0097.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0098.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0099.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0100.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0101.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0102.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0103.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0104.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0105.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0106.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0107.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0108.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0109.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0110.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0111.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0112.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0113.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0114.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0115.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0116.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0117.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0118.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0119.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0120.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0121.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0122.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0123.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0124.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0125.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0126.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0127.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0128.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0129.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0130.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0131.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0132.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0133.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0134.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0135.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0136.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0137.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0138.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0139.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0140.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0141.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0142.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0143.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0144.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0145.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0146.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0147.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0148.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0149.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0150.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0151.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0152.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0153.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0154.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0155.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0156.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0157.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0158.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0159.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0160.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0161.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0162.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0163.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0164.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0165.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0166.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0167.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0168.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0169.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0170.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0171.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0172.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0173.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0174.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0175.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0176.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0177.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0178.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0179.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0180.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0181.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0182.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0183.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0184.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0185.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0186.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0187.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0188.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0189.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0190.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0191.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0192.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0193.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0194.dat +0 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0195.dat +0 -0
- data/node_modules/browserify/node_modules/deep-equal/example/cmp.js +11 -0
- data/node_modules/browserify/node_modules/deep-equal/index.js +75 -0
- data/node_modules/browserify/node_modules/deep-equal/lib/is_arguments.js +20 -0
- data/node_modules/browserify/node_modules/deep-equal/lib/keys.js +9 -0
- data/node_modules/browserify/node_modules/deep-equal/package.json +70 -0
- data/node_modules/browserify/node_modules/deep-equal/readme.markdown +61 -0
- data/node_modules/browserify/node_modules/deep-equal/test/cmp.js +79 -0
- data/node_modules/browserify/node_modules/{module-deps → defined}/LICENSE +0 -0
- data/node_modules/browserify/node_modules/defined/example/defined.js +4 -0
- data/node_modules/browserify/node_modules/defined/index.js +5 -0
- data/node_modules/browserify/node_modules/defined/package.json +48 -0
- data/node_modules/browserify/node_modules/defined/readme.markdown +51 -0
- data/node_modules/browserify/node_modules/defined/test/def.js +22 -0
- data/node_modules/browserify/node_modules/deps-sort/LICENSE +18 -0
- data/node_modules/browserify/node_modules/deps-sort/bin/cmd.js +10 -0
- data/node_modules/browserify/node_modules/deps-sort/example/sort.js +6 -0
- data/node_modules/browserify/node_modules/deps-sort/index.js +40 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/LICENSE.APACHE2 +15 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/LICENSE.MIT +24 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/examples/all_docs.js +13 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/index.js +180 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/node_modules/jsonparse/LICENSE +24 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/node_modules/jsonparse/README.markdown +11 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/node_modules/jsonparse/bench.js +26 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/node_modules/jsonparse/examples/twitterfeed.js +30 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/node_modules/jsonparse/jsonparse.js +401 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/node_modules/jsonparse/package.json +37 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/node_modules/jsonparse/samplejson/basic.json +167 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/node_modules/jsonparse/samplejson/basic2.json +180 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/node_modules/jsonparse/test/boundary.js +110 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/node_modules/jsonparse/test/primitives.js +54 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/node_modules/jsonparse/test/utf8.js +38 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/node_modules/through/LICENSE.APACHE2 +15 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/node_modules/through/LICENSE.MIT +24 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/node_modules/through/index.js +103 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/node_modules/through/package.json +46 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/node_modules/through/readme.markdown +43 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/node_modules/through/test/buffering.js +71 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/node_modules/through/test/end.js +26 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/node_modules/through/test/index.js +114 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/package.json +41 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/readme.markdown +141 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/test/bool.js +41 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/test/destroy_missing.js +27 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/test/empty.js +44 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/test/fixtures/all_npm.json +4030 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/test/fn.js +39 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/test/gen.js +132 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/test/multiple_objects.js +42 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/test/multiple_objects_error.js +35 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/test/parsejson.js +28 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/test/stringify.js +41 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/test/stringify_object.js +47 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/test/test.js +35 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/test/test2.js +29 -0
- data/node_modules/browserify/node_modules/deps-sort/node_modules/JSONStream/test/two-ways.js +41 -0
- data/node_modules/browserify/node_modules/deps-sort/package.json +52 -0
- data/node_modules/browserify/node_modules/deps-sort/readme.markdown +72 -0
- data/node_modules/browserify/node_modules/derequire/index.js +40 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esprima/README.md +73 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esprima/bin/esparse.js +117 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esprima/bin/esvalidate.js +177 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esprima/esprima.js +3908 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esprima/package.json +59 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esprima/test/compat.js +239 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esprima/test/reflect.js +422 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esprima/test/run.js +66 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esprima/test/runner.js +387 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esprima/test/test.js +20238 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/CONTRIBUTING.md +45 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/LICENSE.BSD +19 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/README.md +75 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/lib/esrefactor.js +275 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/node_modules/escope/Gruntfile.js +61 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/node_modules/escope/LICENSE.BSD +19 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/node_modules/escope/README.md +45 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/node_modules/escope/bower.json +13 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/node_modules/escope/escope.js +845 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/node_modules/escope/package.json +56 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/node_modules/estraverse/LICENSE.BSD +19 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/node_modules/estraverse/README.md +29 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/node_modules/estraverse/estraverse.js +315 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/node_modules/estraverse/package.json +41 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/package.json +52 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/test/data/arguments1.js +7 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/test/data/arguments2.js +1 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/test/data/arguments3.js +1 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/test/data/arguments4.js +3 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/test/data/error_empty.js +2 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/test/data/error_invalid_range.js +2 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/test/data/error_nocode.js +2 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/test/data/error_noscope.js +7 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/test/data/error_scope_manager.js +2 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/test/data/function_declaration.js +3 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/test/data/function_expression.js +3 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/test/data/global_declaration.js +5 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/test/data/global_init.js +3 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/test/data/global_leak.js +1 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/test/data/global_scope.js +5 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/test/data/nested_functions.js +4 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/test/data/shadowed_argument.js +8 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/test/data/typo.js +3 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/test/data/unused_declaration.js +4 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/esrefactor/test/run.js +327 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/estraverse/LICENSE.BSD +19 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/estraverse/README.md +70 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/estraverse/estraverse.js +688 -0
- data/node_modules/browserify/node_modules/derequire/node_modules/estraverse/package.json +49 -0
- data/node_modules/browserify/node_modules/derequire/package.json +39 -0
- data/node_modules/browserify/node_modules/derequire/readme.md +15 -0
- data/node_modules/browserify/node_modules/derequire/test/bench.js +14 -0
- data/node_modules/browserify/node_modules/derequire/test/pouchdb.dereq.js +5892 -0
- data/node_modules/browserify/node_modules/derequire/test/pouchdb.js +5892 -0
- data/node_modules/browserify/node_modules/derequire/test/test.js +44 -0
- data/node_modules/browserify/node_modules/domain-browser/LICENSE.md +17 -0
- data/node_modules/browserify/node_modules/domain-browser/README.md +94 -0
- data/node_modules/browserify/node_modules/domain-browser/index.js +26 -0
- data/node_modules/browserify/node_modules/domain-browser/package.json +83 -0
- data/node_modules/browserify/node_modules/domain-browser/test.js +20 -0
- data/node_modules/browserify/node_modules/duplexer/README.md +18 -7
- data/node_modules/browserify/node_modules/duplexer/index.js +18 -8
- data/node_modules/browserify/node_modules/duplexer/package.json +21 -6
- data/node_modules/browserify/node_modules/duplexer/test/index.js +31 -0
- data/node_modules/browserify/node_modules/events/History.md +27 -0
- data/node_modules/browserify/node_modules/events/Readme.md +19 -0
- data/node_modules/browserify/node_modules/events/events.js +300 -0
- data/node_modules/browserify/node_modules/events/package.json +51 -0
- data/node_modules/browserify/node_modules/events/tests/add-listeners.js +63 -0
- data/node_modules/browserify/node_modules/events/tests/check-listener-leaks.js +86 -0
- data/node_modules/browserify/node_modules/events/tests/common.js +42 -0
- data/node_modules/browserify/node_modules/events/tests/index.js +24 -0
- data/node_modules/browserify/node_modules/events/tests/legacy-compat.js +18 -0
- data/node_modules/browserify/node_modules/events/tests/listeners-side-effects.js +55 -0
- data/node_modules/browserify/node_modules/events/tests/listeners.js +51 -0
- data/node_modules/browserify/node_modules/events/tests/max-listeners.js +50 -0
- data/node_modules/browserify/node_modules/events/tests/modify-in-emit.js +76 -0
- data/node_modules/browserify/node_modules/events/tests/num-args.js +44 -0
- data/node_modules/browserify/node_modules/events/tests/once.js +59 -0
- data/node_modules/browserify/node_modules/events/tests/remove-all-listeners.js +80 -0
- data/node_modules/browserify/node_modules/events/tests/remove-listeners.js +84 -0
- data/node_modules/browserify/node_modules/events/tests/set-max-listeners-side-effects.js +29 -0
- data/node_modules/browserify/node_modules/events/tests/subclass.js +51 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify → http-browserify}/example/get/index.html +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify → http-browserify}/example/get/main.js +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify → http-browserify}/example/get/server.js +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify → http-browserify}/example/headers/index.html +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify → http-browserify}/example/headers/main.js +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify → http-browserify}/example/headers/server.js +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify → http-browserify}/example/json-stream/data.json +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify → http-browserify}/example/json-stream/index.html +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify → http-browserify}/example/json-stream/main.js +0 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/LICENSE.APACHE2 +15 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/LICENSE.MIT +24 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/examples/all_docs.js +13 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify → http-browserify}/example/json-stream/node_modules/JSONStream/index.js +0 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/LICENSE +24 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/README.markdown +11 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/bench.js +26 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/examples/twitterfeed.js +30 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify → http-browserify}/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/jsonparse.js +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify → http-browserify}/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/package.json +0 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/samplejson/basic.json +167 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/samplejson/basic2.json +180 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/test/primitives.js +54 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/test/utf8.js +38 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify → http-browserify}/example/json-stream/node_modules/JSONStream/package.json +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify → http-browserify}/example/json-stream/node_modules/JSONStream/readme.markdown +0 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/bool.js +41 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify → http-browserify}/example/json-stream/node_modules/JSONStream/test/destroy_missing.js +0 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/empty.js +44 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/fixtures/all_npm.json +4030 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/fn.js +39 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify → http-browserify}/example/json-stream/node_modules/JSONStream/test/memory.js +0 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/multiple_objects.js +42 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/multiple_objects_error.js +35 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/parsejson.js +28 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/stringify.js +41 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/stringify_object.js +47 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/test.js +35 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/test2.js +29 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/two-ways.js +41 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify → http-browserify}/example/json-stream/server.js +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify → http-browserify}/example/post/index.html +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify → http-browserify}/example/post/main.js +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify → http-browserify}/example/post/server.js +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify → http-browserify}/example/streaming/index.html +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify → http-browserify}/example/streaming/main.js +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify → http-browserify}/example/streaming/server.js +0 -0
- data/node_modules/browserify/node_modules/http-browserify/index.js +79 -0
- data/node_modules/browserify/node_modules/http-browserify/inject.js +5826 -0
- data/node_modules/browserify/node_modules/http-browserify/lib/request.js +169 -0
- data/node_modules/browserify/node_modules/http-browserify/lib/response.js +120 -0
- data/node_modules/browserify/node_modules/http-browserify/node_modules/Base64/LICENSE +14 -0
- data/node_modules/browserify/node_modules/http-browserify/node_modules/Base64/Makefile +19 -0
- data/node_modules/browserify/node_modules/http-browserify/node_modules/Base64/README.md +34 -0
- data/node_modules/browserify/node_modules/http-browserify/node_modules/Base64/base64.js +60 -0
- data/node_modules/browserify/node_modules/http-browserify/node_modules/Base64/base64.min.js +1 -0
- data/node_modules/browserify/node_modules/http-browserify/node_modules/Base64/package.json +37 -0
- data/node_modules/browserify/node_modules/http-browserify/node_modules/Base64/test/base64.coffee +52 -0
- data/node_modules/browserify/node_modules/http-browserify/package.json +52 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/http-browserify → http-browserify}/readme.markdown +0 -0
- data/node_modules/browserify/node_modules/http-browserify/test/request_url.js +59 -0
- data/node_modules/browserify/node_modules/https-browserify/LICENSE +18 -0
- data/node_modules/browserify/node_modules/https-browserify/index.js +13 -0
- data/node_modules/browserify/node_modules/https-browserify/package.json +33 -0
- data/node_modules/browserify/node_modules/https-browserify/readme.markdown +22 -0
- data/node_modules/browserify/node_modules/inherits/LICENSE +16 -0
- data/node_modules/browserify/node_modules/inherits/README.md +42 -51
- data/node_modules/browserify/node_modules/inherits/inherits.js +1 -29
- data/node_modules/browserify/node_modules/inherits/inherits_browser.js +23 -0
- data/node_modules/browserify/node_modules/inherits/package.json +18 -11
- data/node_modules/browserify/node_modules/inherits/test.js +25 -0
- data/node_modules/browserify/node_modules/insert-module-globals/bin/cmd.js +0 -1
- data/node_modules/browserify/node_modules/insert-module-globals/index.js +80 -51
- data/node_modules/browserify/node_modules/insert-module-globals/node_modules/commondir/package.json +4 -0
- data/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/index.js +6 -1
- data/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/node_modules/esprima/package.json +3 -0
- data/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/package.json +3 -0
- data/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/package.json +9 -6
- data/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/test/files/try_catch.js +7 -0
- data/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/test/temp/bundle.js +6392 -0
- data/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/test/temp/test.html +1 -0
- data/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/test/testling.sh +4 -0
- data/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/test/try_catch.js +13 -0
- data/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/LICENSE +22 -0
- data/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/README.md +1 -1
- data/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js +2 -1
- data/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/package.json +9 -5
- data/node_modules/browserify/node_modules/insert-module-globals/package.json +21 -14
- data/node_modules/browserify/node_modules/insert-module-globals/readme.markdown +41 -0
- data/node_modules/browserify/node_modules/insert-module-globals/test/always.js +1 -1
- data/node_modules/browserify/node_modules/insert-module-globals/test/global.js +1 -1
- data/node_modules/browserify/node_modules/insert-module-globals/test/insert.js +6 -1
- data/node_modules/browserify/node_modules/minimist/LICENSE +18 -0
- data/node_modules/browserify/node_modules/minimist/example/parse.js +2 -0
- data/node_modules/browserify/node_modules/minimist/index.js +193 -0
- data/node_modules/browserify/node_modules/minimist/package.json +50 -0
- data/node_modules/browserify/node_modules/minimist/readme.markdown +73 -0
- data/node_modules/browserify/node_modules/minimist/test/dash.js +24 -0
- data/node_modules/browserify/node_modules/minimist/test/default_bool.js +20 -0
- data/node_modules/browserify/node_modules/minimist/test/dotted.js +16 -0
- data/node_modules/browserify/node_modules/minimist/test/long.js +31 -0
- data/node_modules/browserify/node_modules/minimist/test/parse.js +297 -0
- data/node_modules/browserify/node_modules/minimist/test/parse_modified.js +9 -0
- data/node_modules/browserify/node_modules/minimist/test/short.js +85 -0
- data/node_modules/browserify/node_modules/minimist/test/whitespace.js +8 -0
- data/node_modules/browserify/node_modules/module-deps/cmd.js +6 -1
- data/node_modules/browserify/node_modules/module-deps/index.js +169 -45
- data/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/CHANGELOG.md +54 -0
- data/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/Makefile.dryice.js +1 -1
- data/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/README.md +108 -21
- data/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/build/suffix-browser.js +1 -1
- data/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map/array-set.js +11 -10
- data/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map/base64-vlq.js +1 -1
- data/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map/base64.js +1 -1
- data/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map/binary-search.js +2 -2
- data/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map/source-map-consumer.js +128 -77
- data/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map/source-map-generator.js +47 -48
- data/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map/source-node.js +41 -23
- data/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map/util.js +117 -3
- data/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/README.md +53 -1
- data/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/amdefine.js +9 -9
- data/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/intercept.js +36 -0
- data/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/package.json +7 -5
- data/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/package.json +44 -8
- data/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/run-tests.js +11 -13
- data/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-api.js +1 -1
- data/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-array-set.js +34 -1
- data/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-base64-vlq.js +1 -1
- data/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-base64.js +1 -1
- data/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-binary-search.js +1 -1
- data/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-dog-fooding.js +1 -1
- data/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-source-map-consumer.js +161 -1
- data/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-source-map-generator.js +27 -1
- data/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-source-node.js +84 -1
- data/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/util.js +11 -2
- data/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/package.json +3 -0
- data/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/esprima/package.json +3 -0
- data/node_modules/browserify/node_modules/module-deps/node_modules/detective/package.json +5 -1
- data/node_modules/browserify/node_modules/module-deps/node_modules/resolve/lib/async.js +41 -48
- data/node_modules/browserify/node_modules/module-deps/node_modules/resolve/lib/caller.js +8 -0
- data/node_modules/browserify/node_modules/module-deps/node_modules/resolve/lib/node-modules-paths.js +25 -0
- data/node_modules/browserify/node_modules/module-deps/node_modules/resolve/lib/sync.js +7 -26
- data/node_modules/browserify/node_modules/module-deps/node_modules/resolve/package.json +12 -4
- data/node_modules/browserify/node_modules/module-deps/node_modules/resolve/readme.markdown +12 -2
- data/node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/filter.js +3 -2
- data/node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/mock.js +81 -7
- data/node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/resolver.js +155 -18
- data/node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/resolver/biz/node_modules/garply/lib/index.js +1 -0
- data/node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/resolver/biz/node_modules/garply/package.json +3 -0
- data/node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/resolver/incorrect_main/index.js +2 -0
- data/node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/resolver/incorrect_main/package.json +3 -0
- data/node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/resolver/punycode/node_modules/punycode/index.js +0 -0
- data/node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/resolver/quux/foo/index.js +1 -0
- data/node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/resolver/without_basedir/main.js +6 -0
- data/node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/resolver/without_basedir/node_modules/mymodule.js +1 -0
- data/node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/resolver_sync.js +23 -0
- data/node_modules/browserify/node_modules/module-deps/package.json +24 -12
- data/node_modules/browserify/node_modules/module-deps/readme.markdown +5 -0
- data/node_modules/browserify/node_modules/module-deps/test/bundle.js +1 -1
- data/node_modules/browserify/node_modules/module-deps/test/deps.js +1 -1
- data/node_modules/browserify/node_modules/module-deps/test/files/filterable.js +1 -1
- data/node_modules/browserify/node_modules/module-deps/test/files/pkg_filter/one.js +1 -0
- data/node_modules/browserify/node_modules/module-deps/test/files/pkg_filter/package.json +3 -0
- data/node_modules/browserify/node_modules/module-deps/test/files/pkg_filter/test.js +1 -0
- data/node_modules/browserify/node_modules/module-deps/test/files/pkg_filter/two.js +1 -0
- data/node_modules/browserify/node_modules/module-deps/test/files/tr_2dep_module/f.js +1 -0
- data/node_modules/browserify/node_modules/module-deps/test/files/tr_2dep_module/main.js +7 -0
- data/node_modules/browserify/node_modules/module-deps/test/files/{tr_module → tr_2dep_module}/node_modules/g/index.js +0 -0
- data/node_modules/browserify/node_modules/module-deps/test/files/{tr_module → tr_2dep_module}/node_modules/g/node_modules/insert-ggg/index.js +0 -0
- data/node_modules/browserify/node_modules/module-deps/test/files/{tr_module → tr_2dep_module}/node_modules/g/package.json +0 -0
- data/node_modules/browserify/node_modules/module-deps/test/files/{tr_module → tr_2dep_module}/node_modules/insert-aaa/index.js +0 -0
- data/node_modules/browserify/node_modules/module-deps/test/files/{tr_module → tr_2dep_module}/node_modules/insert-bbb/index.js +0 -0
- data/node_modules/browserify/node_modules/module-deps/test/files/tr_2dep_module/node_modules/m/index.js +3 -0
- data/node_modules/browserify/node_modules/module-deps/test/files/tr_2dep_module/node_modules/m/node_modules/insert-mmm/index.js +7 -0
- data/node_modules/browserify/node_modules/module-deps/test/files/tr_2dep_module/node_modules/m/package.json +6 -0
- data/node_modules/browserify/node_modules/module-deps/test/files/tr_global/main.js +1 -0
- data/node_modules/browserify/node_modules/module-deps/test/files/tr_global/package.json +5 -0
- data/node_modules/browserify/node_modules/module-deps/test/files/tr_module/index.js +7 -0
- data/node_modules/browserify/node_modules/module-deps/test/files/tr_module/main.js +1 -0
- data/node_modules/browserify/node_modules/module-deps/test/files/tr_module/package.json +5 -0
- data/node_modules/browserify/node_modules/module-deps/test/files/tr_module/xxx.js +7 -0
- data/node_modules/browserify/node_modules/module-deps/test/files/tr_rel/package.json +5 -0
- data/node_modules/browserify/node_modules/module-deps/test/files/tr_rel/subdir/main.js +1 -0
- data/node_modules/browserify/node_modules/module-deps/test/files/tr_rel/xxx.js +7 -0
- data/node_modules/browserify/node_modules/module-deps/test/files/tr_whole_package/f.js +3 -0
- data/node_modules/browserify/node_modules/module-deps/test/files/tr_whole_package/main.js +3 -0
- data/node_modules/browserify/node_modules/module-deps/test/files/tr_whole_package/node_modules/algo/index.js +3 -0
- data/node_modules/browserify/node_modules/module-deps/test/files/tr_whole_package/node_modules/algo/lib/decrement.js +1 -0
- data/node_modules/browserify/node_modules/module-deps/test/files/tr_whole_package/node_modules/algo/node_modules/insert-ggg/index.js +7 -0
- data/node_modules/browserify/{test/tr/node_modules/g → node_modules/module-deps/test/files/tr_whole_package/node_modules/algo}/package.json +0 -0
- data/node_modules/browserify/node_modules/module-deps/test/files/unicode/bar.js +3 -0
- data/node_modules/browserify/node_modules/module-deps/test/files/unicode/foo.js +5 -0
- data/node_modules/browserify/node_modules/module-deps/test/files/unicode/main.js +2 -0
- data/node_modules/browserify/node_modules/module-deps/test/filter.js +2 -2
- data/node_modules/browserify/node_modules/module-deps/test/noparse.js +1 -1
- data/node_modules/browserify/node_modules/module-deps/test/pkg_filter.js +23 -0
- data/node_modules/browserify/node_modules/module-deps/test/stream.js +24 -0
- data/node_modules/browserify/node_modules/module-deps/test/tr_2dep_module.js +21 -0
- data/node_modules/browserify/node_modules/module-deps/test/tr_fn.js +1 -1
- data/node_modules/browserify/node_modules/module-deps/test/tr_global.js +27 -0
- data/node_modules/browserify/node_modules/module-deps/test/tr_module.js +2 -2
- data/node_modules/browserify/node_modules/module-deps/test/tr_rel.js +22 -0
- data/node_modules/browserify/node_modules/module-deps/test/tr_sh.js +1 -1
- data/node_modules/browserify/node_modules/module-deps/test/tr_whole_package.js +20 -0
- data/node_modules/browserify/node_modules/module-deps/test/unicode.js +42 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/LICENSE +21 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/README.md +135 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/bundle.js +1244 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/bundle.sh +4 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/index.js +1030 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/node_modules/base64-js/LICENSE.MIT +21 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/node_modules/base64-js/README.md +31 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/node_modules/base64-js/bench/bench.js +19 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/node_modules/base64-js/lib/b64.js +121 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/node_modules/base64-js/package.json +49 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/node_modules/base64-js/test/convert.js +52 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/node_modules/ieee754/LICENSE +21 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/node_modules/ieee754/README.md +33 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/node_modules/ieee754/index.js +84 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/node_modules/ieee754/package.json +60 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/node_modules/ieee754/test/basic.js +23 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/package.json +73 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/perf/bracket-notation.js +37 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/perf/bundle.js +0 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/perf/comparison/bracket-notation.js +37 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/perf/comparison/bundle.js +9955 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/perf/comparison/concat.js +40 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/perf/comparison/copy.js +35 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/perf/comparison/index.html +1 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/perf/comparison/new.js +30 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/perf/comparison/readDoubleBE.js +43 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/perf/comparison/readFloatBE.js +43 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/perf/comparison/readUInt32LE.js +43 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/perf/comparison/slice.js +31 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/perf/comparison/writeFloatBE.js +37 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/perf/solo/bracket-notation.js +22 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/perf/solo/bundle.js +5224 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/perf/solo/concat.js +27 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/perf/solo/copy.js +21 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/perf/solo/index.html +1 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/perf/solo/new.js +21 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/perf/solo/readDoubleBE.js +26 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/perf/solo/readFloatBE.js +26 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/perf/solo/readUInt32BE.js +26 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/perf/solo/readUInt32LE.js +26 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/perf/solo/slice.js +20 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/perf/solo/writeFloatBE.js +22 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/test/basic.js +63 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/test/buffer.js +263 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/test/deprecated.js +18 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/test/indexes.js +29 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/test/is-buffer.js +10 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/test/is-encoding.js +11 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/test/slice.js +36 -0
- data/node_modules/browserify/node_modules/native-buffer-browserify/test/utf16.js +36 -0
- data/node_modules/browserify/node_modules/os-browserify/README.md +2 -0
- data/node_modules/browserify/node_modules/os-browserify/browser.js +45 -0
- data/node_modules/browserify/node_modules/os-browserify/main.js +1 -0
- data/node_modules/browserify/node_modules/os-browserify/package.json +26 -0
- data/node_modules/browserify/node_modules/parents/LICENSE +18 -0
- data/node_modules/browserify/node_modules/parents/example/dirname.js +3 -0
- data/node_modules/browserify/node_modules/parents/example/win32.js +5 -0
- data/node_modules/browserify/node_modules/parents/index.js +34 -0
- data/node_modules/browserify/node_modules/parents/package.json +49 -0
- data/node_modules/browserify/node_modules/parents/readme.markdown +75 -0
- data/node_modules/browserify/node_modules/parents/test/dirname.js +20 -0
- data/node_modules/browserify/node_modules/parents/test/win32.js +34 -0
- data/node_modules/browserify/node_modules/path-browserify/LICENSE +18 -0
- data/node_modules/browserify/node_modules/path-browserify/index.js +224 -0
- data/node_modules/browserify/node_modules/path-browserify/package.json +40 -0
- data/node_modules/browserify/node_modules/path-browserify/readme.markdown +3 -0
- data/node_modules/browserify/node_modules/punycode/LICENSE-GPL.txt +278 -0
- data/node_modules/browserify/node_modules/punycode/LICENSE-MIT.txt +20 -0
- data/node_modules/browserify/node_modules/punycode/package.json +73 -0
- data/node_modules/browserify/node_modules/punycode/punycode.js +508 -0
- data/node_modules/browserify/node_modules/punycode/punycode.min.js +2 -0
- data/node_modules/browserify/node_modules/punycode/vendor/docdown/LICENSE.txt +20 -0
- data/node_modules/browserify/node_modules/punycode/vendor/docdown/README.md +35 -0
- data/node_modules/browserify/node_modules/punycode/vendor/docdown/doc/README.md +69 -0
- data/node_modules/browserify/node_modules/punycode/vendor/docdown/doc/parse.php +35 -0
- data/node_modules/browserify/node_modules/punycode/vendor/docdown/docdown.php +38 -0
- data/node_modules/browserify/node_modules/punycode/vendor/docdown/src/DocDown/Alias.php +226 -0
- data/node_modules/browserify/node_modules/punycode/vendor/docdown/src/DocDown/Entry.php +442 -0
- data/node_modules/browserify/node_modules/punycode/vendor/docdown/src/DocDown/Generator.php +563 -0
- data/node_modules/browserify/node_modules/querystring/History.md +20 -0
- data/node_modules/browserify/node_modules/querystring/License.md +19 -0
- data/node_modules/browserify/node_modules/querystring/Readme.md +15 -0
- data/node_modules/browserify/node_modules/querystring/decode.js +84 -0
- data/node_modules/browserify/node_modules/querystring/encode.js +85 -0
- data/node_modules/browserify/node_modules/querystring/index.js +4 -0
- data/node_modules/browserify/node_modules/querystring/package.json +83 -0
- data/node_modules/browserify/node_modules/querystring/test/common-index.js +3 -0
- data/node_modules/browserify/node_modules/querystring/test/index.js +210 -0
- data/node_modules/browserify/node_modules/querystring/test/tap-index.js +3 -0
- data/node_modules/browserify/node_modules/shell-quote/package.json +4 -0
- data/node_modules/browserify/node_modules/stream-browserify/LICENSE +18 -0
- data/node_modules/browserify/node_modules/stream-browserify/duplex.js +72 -0
- data/node_modules/browserify/node_modules/stream-browserify/index.js +127 -0
- data/node_modules/browserify/node_modules/stream-browserify/node_modules/process/LICENSE +22 -0
- data/node_modules/browserify/node_modules/stream-browserify/node_modules/process/README.md +15 -0
- data/node_modules/browserify/node_modules/stream-browserify/node_modules/process/browser.js +53 -0
- data/node_modules/browserify/node_modules/stream-browserify/node_modules/process/index.js +2 -0
- data/node_modules/browserify/node_modules/stream-browserify/node_modules/process/package.json +29 -0
- data/node_modules/browserify/node_modules/stream-browserify/package.json +62 -0
- data/node_modules/browserify/node_modules/stream-browserify/passthrough.js +41 -0
- data/node_modules/browserify/node_modules/stream-browserify/readable.js +933 -0
- data/node_modules/browserify/node_modules/stream-browserify/readme.markdown +27 -0
- data/node_modules/browserify/node_modules/stream-browserify/test/array_buffer.js +51 -0
- data/node_modules/browserify/node_modules/stream-browserify/transform.js +204 -0
- data/node_modules/browserify/node_modules/stream-browserify/writable.js +386 -0
- data/node_modules/browserify/node_modules/stream-combiner/LICENSE +22 -0
- data/node_modules/browserify/node_modules/stream-combiner/README.md +29 -0
- data/node_modules/browserify/node_modules/stream-combiner/index.js +39 -0
- data/node_modules/browserify/node_modules/stream-combiner/package.json +33 -0
- data/node_modules/browserify/node_modules/stream-combiner/test/index.js +52 -0
- data/node_modules/browserify/node_modules/string_decoder/LICENSE +20 -0
- data/node_modules/browserify/node_modules/string_decoder/README.md +7 -0
- data/node_modules/browserify/node_modules/string_decoder/build/build.js +94 -0
- data/node_modules/browserify/node_modules/string_decoder/build/files.js +19 -0
- data/node_modules/browserify/node_modules/string_decoder/build/package.json +12 -0
- data/node_modules/browserify/node_modules/string_decoder/build/test-replacements.js +24 -0
- data/node_modules/browserify/node_modules/string_decoder/index.js +191 -0
- data/node_modules/browserify/node_modules/string_decoder/package.json +41 -0
- data/node_modules/browserify/node_modules/string_decoder/test/common.js +200 -0
- data/node_modules/browserify/node_modules/string_decoder/test/simple/test-string-decoder-end.js +75 -0
- data/node_modules/browserify/node_modules/string_decoder/test/simple/test-string-decoder.js +163 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/package.json +3 -0
- data/node_modules/browserify/node_modules/syntax-error/package.json +3 -0
- data/node_modules/browserify/node_modules/through/index.js +12 -7
- data/node_modules/browserify/node_modules/through/package.json +8 -5
- data/node_modules/browserify/node_modules/through/readme.markdown +21 -1
- data/node_modules/browserify/node_modules/{module-deps/node_modules/through → through}/test/auto-destroy.js +0 -0
- data/node_modules/browserify/node_modules/through/test/end.js +19 -0
- data/node_modules/browserify/node_modules/timers-browserify/LICENSE.md +46 -0
- data/node_modules/browserify/node_modules/timers-browserify/README.md +30 -0
- data/node_modules/browserify/node_modules/timers-browserify/example/enroll/build.sh +3 -0
- data/node_modules/browserify/node_modules/timers-browserify/example/enroll/index.html +8 -0
- data/node_modules/browserify/node_modules/timers-browserify/example/enroll/js/browserify.js +233 -0
- data/node_modules/browserify/node_modules/timers-browserify/example/enroll/js/main.js +14 -0
- data/node_modules/browserify/node_modules/timers-browserify/example/enroll/server.js +11 -0
- data/node_modules/browserify/node_modules/timers-browserify/main.js +23 -0
- data/node_modules/browserify/node_modules/timers-browserify/node_modules/process/LICENSE +22 -0
- data/node_modules/browserify/node_modules/timers-browserify/node_modules/process/README.md +15 -0
- data/node_modules/browserify/node_modules/timers-browserify/node_modules/process/browser.js +53 -0
- data/node_modules/browserify/node_modules/timers-browserify/node_modules/process/index.js +2 -0
- data/node_modules/browserify/node_modules/timers-browserify/node_modules/process/package.json +29 -0
- data/node_modules/browserify/node_modules/timers-browserify/package.json +49 -0
- data/node_modules/browserify/node_modules/tty-browserify/LICENSE +18 -0
- data/node_modules/browserify/node_modules/tty-browserify/index.js +11 -0
- data/node_modules/browserify/node_modules/tty-browserify/package.json +40 -0
- data/node_modules/browserify/node_modules/tty-browserify/readme.markdown +1 -0
- data/node_modules/browserify/node_modules/umd/LICENSE +19 -0
- data/node_modules/browserify/node_modules/umd/README.md +67 -46
- data/node_modules/browserify/node_modules/umd/bin/cli.js +39 -0
- data/node_modules/browserify/node_modules/umd/index.js +84 -63
- data/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/package.json +4 -0
- data/node_modules/browserify/node_modules/umd/node_modules/rfile/package.json +4 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/README.md +544 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/bin/uglifyjs +370 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/lib/ast.js +964 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/lib/compress.js +1968 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/lib/mozilla-ast.js +265 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/lib/output.js +1220 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/lib/parse.js +1407 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/lib/scope.js +580 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/lib/sourcemap.js +81 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/lib/transform.js +218 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/lib/utils.js +288 -0
- data/node_modules/browserify/node_modules/{optimist → umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist}/LICENSE +0 -0
- data/node_modules/browserify/node_modules/{optimist → umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist}/example/bool.js +0 -0
- data/node_modules/browserify/node_modules/{optimist → umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist}/example/boolean_double.js +0 -0
- data/node_modules/browserify/node_modules/{optimist → umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist}/example/boolean_single.js +0 -0
- data/node_modules/browserify/node_modules/{optimist → umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist}/example/default_hash.js +0 -0
- data/node_modules/browserify/node_modules/{optimist → umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist}/example/default_singles.js +0 -0
- data/node_modules/browserify/node_modules/{optimist → umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist}/example/divide.js +0 -0
- data/node_modules/browserify/node_modules/{optimist → umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist}/example/line_count.js +0 -0
- data/node_modules/browserify/node_modules/{optimist → umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist}/example/line_count_options.js +0 -0
- data/node_modules/browserify/node_modules/{optimist → umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist}/example/line_count_wrap.js +0 -0
- data/node_modules/browserify/node_modules/{optimist → umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist}/example/nonopt.js +0 -0
- data/node_modules/browserify/node_modules/{optimist → umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist}/example/reflect.js +0 -0
- data/node_modules/browserify/node_modules/{optimist → umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist}/example/short.js +0 -0
- data/node_modules/browserify/node_modules/{optimist → umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist}/example/string.js +0 -0
- data/node_modules/browserify/node_modules/{optimist → umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist}/example/usage-options.js +0 -0
- data/node_modules/browserify/node_modules/{optimist → umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist}/example/xup.js +0 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/index.js +478 -0
- data/node_modules/browserify/node_modules/{optimist → umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist}/node_modules/wordwrap/README.markdown +0 -0
- data/node_modules/browserify/node_modules/{optimist → umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist}/node_modules/wordwrap/example/center.js +0 -0
- data/node_modules/browserify/node_modules/{optimist → umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist}/node_modules/wordwrap/example/meat.js +0 -0
- data/node_modules/browserify/node_modules/{optimist → umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist}/node_modules/wordwrap/index.js +0 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/node_modules/wordwrap/package.json +45 -0
- data/node_modules/browserify/node_modules/{optimist → umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist}/node_modules/wordwrap/test/break.js +0 -0
- data/node_modules/browserify/node_modules/{optimist → umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist}/node_modules/wordwrap/test/idleness.txt +0 -0
- data/node_modules/browserify/node_modules/{optimist → umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist}/node_modules/wordwrap/test/wrap.js +0 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/package.json +46 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/readme.markdown +487 -0
- data/node_modules/browserify/node_modules/{optimist → umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist}/test/_.js +0 -0
- data/node_modules/browserify/node_modules/{optimist → umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist}/test/_/argv.js +0 -0
- data/node_modules/browserify/node_modules/{optimist → umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist}/test/_/bin.js +0 -0
- data/node_modules/browserify/node_modules/{optimist → umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist}/test/parse.js +0 -0
- data/node_modules/browserify/node_modules/{optimist → umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist}/test/usage.js +0 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/CHANGELOG.md +112 -0
- data/node_modules/browserify/node_modules/{browser-pack/node_modules/combine-source-map/node_modules/parse-base64vlq-mappings/MOZILLA_LICENSE → umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/LICENSE} +0 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/Makefile.dryice.js +166 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/README.md +434 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/build/assert-shim.js +56 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/build/mini-require.js +152 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/build/prefix-source-map.jsm +20 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/build/prefix-utils.jsm +18 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/build/suffix-browser.js +8 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/build/suffix-source-map.jsm +6 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/build/suffix-utils.jsm +21 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/build/test-prefix.js +8 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/build/test-suffix.js +3 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/lib/source-map.js +8 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/lib/source-map/array-set.js +97 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/lib/source-map/base64-vlq.js +144 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/lib/source-map/base64.js +42 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/lib/source-map/binary-search.js +81 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/lib/source-map/source-map-consumer.js +477 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/lib/source-map/source-map-generator.js +380 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/lib/source-map/source-node.js +371 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/lib/source-map/util.js +205 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/LICENSE +58 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/README.md +171 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/amdefine.js +299 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/intercept.js +36 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/package.json +37 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/package.json +110 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/test/run-tests.js +71 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/test/source-map/test-api.js +26 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/test/source-map/test-array-set.js +104 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/test/source-map/test-base64-vlq.js +24 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/test/source-map/test-base64.js +35 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/test/source-map/test-binary-search.js +54 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/test/source-map/test-dog-fooding.js +72 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/test/source-map/test-source-map-consumer.js +451 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/test/source-map/test-source-map-generator.js +417 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/test/source-map/test-source-node.js +365 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/test/source-map/util.js +161 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/package.json +44 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/arrays.js +12 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/blocks.js +49 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/conditionals.js +143 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/dead-code.js +89 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/debugger.js +24 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/drop-unused.js +97 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/issue-105.js +17 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/issue-12.js +11 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/issue-22.js +17 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/issue-44.js +31 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/issue-59.js +30 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/labels.js +163 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/loops.js +123 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/properties.js +25 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/sequences.js +161 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/switch.js +210 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/run-tests.js +170 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/tools/node.js +164 -0
- data/node_modules/browserify/node_modules/umd/node_modules/ruglify/package.json +4 -0
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/LICENSE +29 -0
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/README.md +233 -141
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/bin/uglifyjs +175 -100
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/lib/ast.js +46 -26
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/lib/compress.js +541 -151
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/lib/mozilla-ast.js +4 -2
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/lib/output.js +132 -52
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/lib/parse.js +118 -68
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/lib/scope.js +57 -74
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/lib/sourcemap.js +5 -2
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/lib/transform.js +1 -1
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/lib/utils.js +15 -1
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/async/LICENSE +19 -0
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/async/README.md +1425 -0
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/async/component.json +11 -0
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/async/lib/async.js +958 -0
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/async/package.json +47 -0
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/optimist/node_modules/wordwrap/package.json +4 -0
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/optimist/package.json +4 -0
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/CHANGELOG.md +54 -0
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/Makefile.dryice.js +1 -1
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/README.md +108 -21
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/build/suffix-browser.js +1 -1
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/lib/source-map/array-set.js +11 -10
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/lib/source-map/base64-vlq.js +1 -1
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/lib/source-map/base64.js +1 -1
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/lib/source-map/binary-search.js +2 -2
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/lib/source-map/source-map-consumer.js +128 -77
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/lib/source-map/source-map-generator.js +47 -48
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/lib/source-map/source-node.js +41 -23
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/lib/source-map/util.js +117 -3
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/README.md +53 -1
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/amdefine.js +9 -9
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/intercept.js +36 -0
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/package.json +8 -4
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/package.json +44 -8
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/test/run-tests.js +11 -13
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/test/source-map/test-api.js +1 -1
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/test/source-map/test-array-set.js +34 -1
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/test/source-map/test-base64-vlq.js +1 -1
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/test/source-map/test-base64.js +1 -1
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/test/source-map/test-binary-search.js +1 -1
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/test/source-map/test-dog-fooding.js +1 -1
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/test/source-map/test-source-map-consumer.js +161 -1
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/test/source-map/test-source-map-generator.js +27 -1
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/test/source-map/test-source-node.js +84 -1
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/test/source-map/util.js +11 -2
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/uglify-to-browserify/LICENSE +19 -0
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/uglify-to-browserify/README.md +15 -0
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/uglify-to-browserify/index.js +46 -0
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/uglify-to-browserify/package.json +30 -0
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/uglify-to-browserify/test/index.js +22 -0
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/package.json +23 -11
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/test/compress/arrays.js +62 -0
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/test/compress/concat-strings.js +22 -0
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/test/compress/conditionals.js +64 -0
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/test/compress/drop-unused.js +68 -0
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/test/compress/issue-105.js +11 -3
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/test/compress/issue-126.js +24 -0
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/test/compress/issue-143.js +48 -0
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/test/compress/issue-267.js +11 -0
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/test/compress/issue-269.js +66 -0
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/test/compress/negate-iife.js +76 -0
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/test/compress/properties.js +29 -0
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/test/compress/sequences.js +4 -2
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/test/compress/switch.js +50 -0
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/test/compress/typeof.js +25 -0
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/test/run-tests.js +9 -0
- data/node_modules/browserify/node_modules/umd/node_modules/uglify-js/tools/node.js +28 -20
- data/node_modules/browserify/node_modules/umd/package.json +22 -12
- data/node_modules/browserify/node_modules/umd/template.js +25 -33
- data/node_modules/browserify/node_modules/umd/test/index.js +52 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/LICENSE-GPL.txt +278 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/LICENSE-MIT.txt +20 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/README.md +107 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/docs/README.md +169 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/docs/parse.php +34 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/package.json +64 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/punycode.js +512 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/punycode.min.js +2 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/tests/index.html +37 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/tests/run-tests.sh +12 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/tests/tests.js +425 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/docdown/LICENSE.txt +20 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/docdown/README.md +44 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/docdown/doc/README.md +66 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/docdown/doc/parse.php +34 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/docdown/docdown.php +38 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/docdown/src/DocDown/Entry.php +290 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/docdown/src/DocDown/Generator.php +380 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit-clib/LICENSE.txt +20 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit-clib/README.md +57 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit-clib/qunit-clib.js +275 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/History.md +330 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/README.md +37 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/addons/canvas/README.md +16 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/addons/canvas/canvas-test.js +76 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/addons/canvas/canvas.html +19 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/addons/canvas/qunit-canvas.js +6 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/addons/close-enough/README.md +17 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/addons/close-enough/close-enough-test.js +37 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/addons/close-enough/close-enough.html +18 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/addons/close-enough/qunit-close-enough.js +32 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/addons/composite/README.md +7 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/addons/composite/composite-demo-test.html +33 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/addons/composite/composite-test.html +20 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/addons/composite/composite-test.js +159 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/addons/composite/dummy-qunit-test.html +19 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/addons/composite/dummy-same-test.html +19 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/addons/composite/index.html +35 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/addons/composite/qunit-composite.css +13 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/addons/composite/qunit-composite.js +82 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/addons/step/README.md +18 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/addons/step/qunit-step.js +25 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/addons/step/step-test.js +13 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/addons/step/step.html +19 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/package.json +28 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/qunit/qunit.css +226 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/qunit/qunit.js +1598 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/test/headless.html +24 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/test/index.html +21 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/test/logs.html +17 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/test/logs.js +153 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/test/same.js +1432 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/test/swarminject.js +9 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/test/test.js +524 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/LICENSE +58 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/README.md +61 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/dist/Markdown-License.text +30 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/dist/Markdown.pl +1450 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/dist/README.md +64 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/dist/dist-build.sh +50 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/dist/dist-site.js +131 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/dist/file.js +227 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/dist/fonts/Inconsolata.ttf +0 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/dist/fonts/PT-Sans/PT_Sans.ttf +0 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/dist/fonts/PT-Sans/PT_Sans_Bold.ttf +0 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/dist/fonts/PT-Sans/PT_Sans_Bold_Italic.ttf +0 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/dist/fonts/PT-Sans/PT_Sans_Caption.ttf +0 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/dist/fonts/PT-Sans/PT_Sans_Caption_Bold.ttf +0 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/dist/fonts/PT-Sans/PT_Sans_Italic.ttf +0 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/dist/fonts/PT-Sans/PT_Sans_Narrow.ttf +0 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/dist/fonts/PT-Sans/PT_Sans_Narrow_Bold.ttf +0 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/dist/fonts/PT-Sans/Paratype PT Sans Free Font License.txt +26 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/dist/init.js +28 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/dist/post.html +10 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/dist/pre.html +173 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/docs/api.html +935 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/docs/commonjs.html +99 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/docs/contributing.html +56 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/docs/design/packages.md +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/docs/dojo.html +28 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/docs/download.html +365 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/docs/errors.html +155 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/docs/faq-advanced.html +136 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/docs/faq-optimization.html +179 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/docs/faq.html +8 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/docs/history.html +28 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/docs/jquery.html +181 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/docs/node.html +181 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/docs/optimization.html +420 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/docs/plugins.html +298 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/docs/requirements.html +116 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/docs/start.html +109 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/docs/why.html +217 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/docs/whyamd.html +386 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/domReady.js +170 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/i18n.js +161 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/index.html +21 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/order.js +189 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/require.js +2053 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tasks.txt +122 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/testBaseUrl.js +11 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/NAMESPACE.html +32 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/README.md +60 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/afterload.html +96 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/afterloadreadystate.js +2 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/all-server.js +83 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/all.js +107 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/allj.sh +1 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/alln.sh +1 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/anon/a.js +7 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/anon/anon-tests.js +52 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/anon/anonSimple.html +14 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/anon/blue.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/anon/c.js +7 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/anon/green.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/anon/magenta.js +16 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/anon/message.txt +1 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/anon/red.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/anon/sub/b.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/anon/yellow.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/bar +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/baseUrl.html +13 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/appendbeforeload/one.dphpd +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/appendbeforeload/test.html +49 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/appendbeforeload/two.js +1 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/async/async.php +94 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/async/one.php +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/async/two.js +1 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/common.js +47 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/docwritenested/index.html +28 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/docwritenested/one.js +7 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/docwritenested/two.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/functionToString.html +49 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/noload/index.html +86 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/noload/server.js +26 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/onerror/index.html +74 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/onerror/ok.js +1 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/onerror/parseError.js +4 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/onerror/scriptError.js +4 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptload/eight.js +1 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptload/five.js +1 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptload/four.js +2520 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptload/index.html +98 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptload/nine.js +1 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptload/one.js +1 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptload/seven.js +1 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptload/six.js +1 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptload/three.js +1 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptload/two.js +4 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptloadinteractive/eight.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptloadinteractive/five.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptloadinteractive/four.js +2524 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptloadinteractive/four.php +2527 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptloadinteractive/index-php.html +149 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptloadinteractive/index.html +149 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptloadinteractive/nine.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptloadinteractive/one.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptloadinteractive/seven.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptloadinteractive/six.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptloadinteractive/six.php +9 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptloadinteractive/three.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptloadinteractive/two.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptloadinteractiveattach/eight.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptloadinteractiveattach/five.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptloadinteractiveattach/four.js +2524 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptloadinteractiveattach/four.php +2527 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptloadinteractiveattach/index-php.html +149 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptloadinteractiveattach/index.html +153 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptloadinteractiveattach/nine.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptloadinteractiveattach/one.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptloadinteractiveattach/seven.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptloadinteractiveattach/six.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptloadinteractiveattach/six.php +9 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptloadinteractiveattach/three.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/scriptloadinteractiveattach/two.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/vardefine/define.js +9 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/vardefine/four.js +13 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/vardefine/index.html +47 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/vardefine/one.js +4 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/vardefine/three.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/browsertests/vardefine/two.js +7 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/circular-tests.js +31 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/circular.html +14 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/circular/a.js +4 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/circular/b.js +4 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/circular/c.js +4 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/circular/circularPlugin-tests.js +18 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/circular/circularPlugin.html +19 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/circular/complexPlugin/complexPlugin-tests.js +21 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/circular/complexPlugin/complexPlugin.html +20 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/circular/complexPlugin/helper.js +6 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/circular/complexPlugin/main.js +6 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/circular/complexPlugin/slowText.js +289 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/circular/complexPlugin/toolbar.html +1 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/circular/complexPlugin/toolbar.js +6 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/circular/complexPlugin/viewport.html +1 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/circular/complexPlugin/viewport.js +7 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/circular/plugin.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/absolute/b.js +4 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/absolute/program.html +20 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/absolute/program.js +8 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/absolute/submodule/a.js +6 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/absolute/test.js +18 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/all.html +22 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/cyclic/a.js +7 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/cyclic/b.js +7 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/cyclic/program.html +20 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/cyclic/program.js +13 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/cyclic/test.js +18 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/determinism/program.html +20 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/determinism/program.js +6 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/determinism/submodule/a.js +12 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/determinism/submodule/b.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/determinism/test.js +18 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/exactExports/a.js +6 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/exactExports/program.html +20 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/exactExports/program.js +7 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/exactExports/test.js +18 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/hasOwnProperty/hasOwnProperty.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/hasOwnProperty/program.html +20 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/hasOwnProperty/program.js +7 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/hasOwnProperty/test.js +18 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/hasOwnProperty/toString.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/method/a.js +15 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/method/program.html +20 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/method/program.js +11 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/method/test.js +18 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/missing/program.html +20 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/missing/program.js +11 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/missing/test.js +18 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/monkeys/a.js +4 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/monkeys/program.html +20 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/monkeys/program.js +7 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/monkeys/test.js +18 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/nested/a/b/c/d.js +6 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/nested/program.html +20 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/nested/program.js +6 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/nested/test.js +18 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/relative/program.html +20 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/relative/program.js +8 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/relative/submodule/a.js +4 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/relative/submodule/b.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/relative/test.js +18 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/system.js +8 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/test.js +18 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/transitive/a.js +4 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/transitive/b.js +4 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/transitive/c.js +6 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/transitive/program.html +20 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/transitive/program.js +6 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/commonjs/tests/modules/1.0/transitive/test.js +18 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/config.html +44 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/configRequirejs.html +49 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/dataMain.html +13 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/dataMain.js +16 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/defineError/defineError-tests.js +38 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/defineError/defineError.html +14 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/defineError/error.js +9 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/defineError/main.js +6 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/depoverlap.html +15 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/depoverlap.js +35 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/dimple.js +8 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/doh/LICENSE +195 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/doh/README +12 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/doh/_browserRunner.js +855 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/doh/_nodeRunner.js +20 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/doh/_rhinoRunner.js +17 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/doh/_sounds/LICENSE +10 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/doh/_sounds/doh.wav +0 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/doh/_sounds/dohaaa.wav +0 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/doh/_sounds/woohoo.wav +0 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/doh/runner.html +316 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/doh/runner.js +1499 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/doh/runner.sh +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/doh/small_logo.png +0 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/domReady/one.js +8 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/domReady/two.js +8 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/domReady/withResources.html +14 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/domReady/withResources.js +36 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/dos.js +13 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/exports/am.js +13 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/exports/assign.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/exports/assign2.js +4 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/exports/bm.js +6 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/exports/cm.js +6 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/exports/exports-tests.js +26 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/exports/exports.html +14 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/exports/funcSet.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/exports/implicitModule.js +7 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/exports/moduleAndExports-tests.js +18 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/exports/moduleAndExports.html +14 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/exports/simpleReturn.js +10 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/exports/usethis.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/exports/vanilla.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/foo +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/func.js +7 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/funcFour.js +14 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/funcOne.js +15 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/funcThree.js +14 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/funcTwo.js +15 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/i18n/common.html +51 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/i18n/commonA.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/i18n/commonB.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/i18n/i18n.html +60 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/i18n/nls/colors.js +9 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/i18n/nls/en-us-surfer/colors.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/i18n/nls/fr/colors.js +4 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/i18n/testModule.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/index.html +12 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/jquery/jquery.html +33 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/jquery/jqueryDynamic-1.6.html +38 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/jquery/jqueryDynamic-1.7.html +38 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/jquery/jqueryDynamic.html +38 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/jquery/jqueryDynamic2-1.6.html +45 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/jquery/jqueryDynamic2-1.7.html +45 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/jquery/jqueryDynamic2.html +45 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/jquery/jqueryPriority.html +36 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/jquery/jqueryVersion.html +39 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/jquery/jqueryVersion2.html +39 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/jquery/scripts/app.js +1 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/jquery/scripts/dynamicApp.js +18 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/jquery/scripts/dynamicApp1.6.js +17 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/jquery/scripts/dynamicApp1.7.js +17 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/jquery/scripts/jquery-1.4.4.js +7179 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/jquery/scripts/jquery-1.5.2.js +16 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/jquery/scripts/jquery-1.6.1.js +18 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/jquery/scripts/jquery-1.7b2.js +9279 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/jquery/scripts/jquery-GPL-LICENSE.txt +278 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/jquery/scripts/jquery-MIT-LICENSE.txt +20 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/jquery/scripts/jquery.alpha.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/jquery/scripts/jquery.beta.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/jquery/scripts/jquery.epsilon.js +20 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/jquery/scripts/jquery.gamma.js +20 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/jsonp/jsonp.html +37 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/jsonp/lamp.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/jsonp/twitter.html +26 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/layers/build.sh +1 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/layers/epsilon.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/layers/helloWorld.txt +1 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/layers/layer1.js +31 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/layers/layers.html +57 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/map.js +7 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/multiversion.html +95 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/nestedDefine/four.js +7 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/nestedDefine/nestedDefine.html +50 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/nestedDefine/nestedDefine2.html +15 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/nestedDefine/nestedDefine2.js +24 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/nestedDefine/one.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/nestedDefine/two.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/one.js +18 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/order/bar.js +7 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/order/foo.js +2 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/order/one.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/order/order.html +44 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/order/three.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/order/two.js +2524 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/packages/bar/0.4/scripts/main.js +4 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/packages/baz/lib/helper.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/packages/baz/lib/index.js +8 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/packages/dojox/door.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/packages/dojox/window/pane.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/packages/dojox/window/window.js +6 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/packages/foo/lib/main.js +4 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/packages/foo/lib/second.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/packages/funky/index.js +6 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/packages/funky/lib/monkey.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/packages/optimizing/build.js +22 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/packages/optimizing/main.js +27 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/packages/optimizing/optimizing-built.html +14 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/packages/optimizing/optimizing.html +14 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/packages/optimizing/packages/engine/main.js +7 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/packages/optimizing/packages/engine/pistons.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/packages/optimizing/packages/engine/sparkplugs.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/packages/optimizing/packages/fuel/main.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/packages/optimizing/packages/tires/main.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/packages/packages-tests.js +87 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/packages/packages.html +14 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/packages/pkgs/alpha/main.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/packages/pkgs/alpha/replace.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/packages/pkgs/beta/0.2/scripts/beta.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/packages/pkgs/beta/0.2/scripts/util.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/packages/pkgs/dojox/chair/legs.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/packages/pkgs/dojox/chair/main.js +6 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/packages/pkgs/dojox/table/legs.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/packages/pkgs/dojox/table/table.js +6 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/packages/replace.js +4 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/paths/first.js/first.js +8 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/paths/first.js/second.js +8 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/paths/impl/array.js +6 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/paths/impl/util.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/paths/paths.html +54 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/paths/relativeModuleId-tests.js +21 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/paths/relativeModuleId.html +13 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/paths/util.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/plugins/a.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/plugins/b.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/plugins/c.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/plugins/double.html +51 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/plugins/double.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/plugins/earth.js +13 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/plugins/fromText/a.refine +4 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/plugins/fromText/fromText-tests.js +18 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/plugins/fromText/fromText.html +13 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/plugins/fromText/refine.js +130 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/plugins/index.js +37 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/plugins/indexBuilder.js +44 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/plugins/nameOnly-tests.js +15 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/plugins/nameOnly.html +13 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/plugins/nameOnly.js +8 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/plugins/prime/a.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/plugins/prime/b.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/plugins/prime/c.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/plugins/prime/earth.js +13 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/plugins/sync-tests.js +20 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/plugins/sync.html +13 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/plugins/textDepend/test.txt +1 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/plugins/textDepend/textDepend-tests.js +18 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/plugins/textDepend/textDepend.html +13 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/plugins/textDepend/textDepend.js +7 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/priority/epsilon.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/priority/flower.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/priority/leaf.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/priority/one.js +21 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/priority/priority.html +13 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/priority/priority.js +47 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/priority/priorityOptimized.html +13 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/priority/priorityOptimized.js +72 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/priority/priorityOrder.html +62 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/priority/prioritySingleCall.html +62 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/priority/priorityWithDeps/priorityWithDeps.html +65 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/priority/priorityWithDeps/script/lib/qunit.js +1265 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/priority/priorityWithDeps/script/req/app.js +10 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/priority/priorityWithDeps/script/req/begin.js +10 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/priority/priorityWithDeps/script/req/bootstrap.js +26 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/priority/priorityWithDeps/script/req/config.js +9 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/priority/priorityWithDeps/script/req/utils/utils.js +11 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/priority/priorityWithDeps/style/qunit.css +148 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/priority/three.js +49 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/priority/tree.js +15 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/priority/two.js +20 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/relative/foo/bar.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/relative/foo/bar/message.txt +1 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/relative/foo/bar/one.js +11 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/relative/foo/bar/two.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/relative/foo/three.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/relative/greek/alpha.js +7 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/relative/greek/main.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/relative/outsideBaseUrl/2.js +6 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/relative/outsideBaseUrl/a/outsideBaseUrl.html +33 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/relative/outsideBaseUrl/b/1.js +6 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/relative/outsideBaseUrl/b/3.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/relative/relative-tests.js +34 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/relative/relative.html +14 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/relative/relativeBaseUrl-tests.js +24 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/relative/relativeBaseUrl.html +14 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/relative/top.js +7 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/remoteUrls/jqwrap.js +10 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/remoteUrls/remoteUrls-tests.js +17 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/remoteUrls/remoteUrls.html +14 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/simple-badbase.html +55 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/simple-nohead.html +30 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/simple-tests.js +23 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/simple.html +36 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/simple.js +7 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/text/local.js +5 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/text/resources/local.html +1 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/text/resources/sample.html +8 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/text/separate.js +2 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/text/subwidget.html +8 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/text/subwidget.js +10 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/text/subwidget2.html +1 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/text/text.html +53 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/text/textBuilt.html +14 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/text/textBuilt.js +64 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/text/textOnly.html +35 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/text/widget.html +1 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/text/widget.js +11 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/tres.js +7 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/two.js +12 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/uniques/one.js +8 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/uniques/three.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/uniques/two.js +8 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/uniques/uniques.html +39 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/universal/eye.js +9 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/universal/newt.js +32 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/universal/spell.js +32 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/universal/tail.js +9 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/universal/universal-built.html +13 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/universal/universal-tests-built-expected.js +106 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/universal/universal-tests-built.js +106 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/universal/universal-tests.js +15 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/universal/universal.html +13 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/uno.js +14 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/urlfetch/one.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/urlfetch/three.js +10 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/urlfetch/two.js +10 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/urlfetch/urlfetch.html +64 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/version1/alpha.js +7 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/version1/beta.js +7 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/version1/gamma.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/version1/omega.js +7 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/version2/alpha.js +7 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/version2/beta.js +7 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/version2/epsilon.js +3 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/version2/omega.js +7 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/workers.html +56 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/workers.js +13 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/text.js +288 -0
- data/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/updatesubs.sh +38 -0
- data/node_modules/browserify/node_modules/url/node_modules/querystring/History.md +7 -0
- data/node_modules/browserify/node_modules/url/node_modules/querystring/Readme.md +8 -0
- data/node_modules/browserify/node_modules/url/node_modules/querystring/package.json +42 -0
- data/node_modules/browserify/node_modules/url/node_modules/querystring/querystring.js +108 -0
- data/node_modules/browserify/node_modules/url/node_modules/querystring/tests/test-querystring.js +203 -0
- data/node_modules/browserify/node_modules/url/package.json +45 -0
- data/node_modules/browserify/node_modules/url/url.js +631 -0
- data/node_modules/browserify/node_modules/util/README.md +15 -0
- data/node_modules/browserify/node_modules/util/package.json +41 -0
- data/node_modules/browserify/node_modules/util/support/isBuffer.js +3 -0
- data/node_modules/browserify/node_modules/util/support/isBufferBrowser.js +6 -0
- data/node_modules/browserify/node_modules/util/test/browser/inspect.js +41 -0
- data/node_modules/browserify/node_modules/util/test/browser/is.js +91 -0
- data/node_modules/browserify/node_modules/util/test/node/debug.js +86 -0
- data/node_modules/browserify/node_modules/util/test/node/format.js +77 -0
- data/node_modules/browserify/node_modules/util/test/node/inspect.js +195 -0
- data/node_modules/browserify/node_modules/util/test/node/log.js +58 -0
- data/node_modules/browserify/node_modules/util/test/node/util.js +83 -0
- data/node_modules/browserify/node_modules/util/util.js +586 -0
- data/node_modules/browserify/node_modules/vm-browserify/LICENSE +18 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/vm-browserify → vm-browserify}/example/run/bundle.js +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/vm-browserify → vm-browserify}/example/run/entry.js +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/vm-browserify → vm-browserify}/example/run/index.html +0 -0
- data/node_modules/browserify/node_modules/{browser-resolve/node_modules/vm-browserify → vm-browserify}/example/run/server.js +0 -0
- data/node_modules/browserify/node_modules/vm-browserify/index.js +138 -0
- data/node_modules/browserify/node_modules/vm-browserify/node_modules/indexof/Makefile +11 -0
- data/node_modules/browserify/node_modules/vm-browserify/node_modules/indexof/Readme.md +15 -0
- data/node_modules/browserify/node_modules/vm-browserify/node_modules/indexof/component.json +10 -0
- data/node_modules/browserify/node_modules/vm-browserify/node_modules/indexof/index.js +10 -0
- data/node_modules/browserify/node_modules/vm-browserify/node_modules/indexof/package.json +24 -0
- data/node_modules/browserify/node_modules/vm-browserify/package.json +58 -0
- data/node_modules/browserify/node_modules/vm-browserify/readme.markdown +67 -0
- data/node_modules/browserify/node_modules/vm-browserify/test/vm.js +35 -0
- data/node_modules/browserify/node_modules/zlib-browserify/LICENSE +21 -0
- data/node_modules/browserify/node_modules/zlib-browserify/index.js +43 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/LICENSE +18 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/example/array.js +35 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/example/fail.js +35 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/example/nested.js +51 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/example/nested_fail.js +51 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/example/not_enough.js +35 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/example/static/build.sh +2 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/example/static/index.html +21 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/example/static/server.js +4 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/example/timing.js +12 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/example/too_many.js +35 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/index.js +124 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/lib/default_stream.js +30 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/lib/render.js +100 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/lib/test.js +342 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/node_modules/deep-equal/README.markdown +55 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/node_modules/deep-equal/example/cmp.js +11 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/node_modules/deep-equal/index.js +84 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/node_modules/deep-equal/package.json +43 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/node_modules/deep-equal/test/cmp.js +18 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/node_modules/jsonify/README.markdown +34 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/node_modules/jsonify/index.js +2 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/node_modules/jsonify/lib/parse.js +273 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/node_modules/jsonify/lib/stringify.js +154 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/node_modules/jsonify/package.json +38 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/node_modules/jsonify/test/parse.js +16 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/node_modules/jsonify/test/stringify.js +15 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/package.json +52 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/readme.markdown +180 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/test/array.js +68 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/test/child_ordering.js +51 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/test/exit.js +108 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/test/exit/fail.js +35 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/test/exit/ok.js +35 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/test/exit/too_few.js +35 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/test/fail.js +68 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/test/harness.js +88 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/test/max_listeners.js +7 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/test/max_listeners/source.js +5 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/test/nested.js +89 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/test/only.js +48 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/test/order.js +17 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/test/plan_optional.js +15 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/test/skip.js +34 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/test/throw.js +38 -0
- data/node_modules/browserify/node_modules/zlib-browserify/node_modules/tape/test/too_many.js +69 -0
- data/node_modules/browserify/node_modules/zlib-browserify/package.json +43 -0
- data/node_modules/browserify/node_modules/zlib-browserify/readme.md +43 -0
- data/node_modules/browserify/node_modules/zlib-browserify/test/zlib.test.js +64 -0
- data/node_modules/browserify/node_modules/zlib-browserify/zlib.js +54 -0
- data/node_modules/browserify/package.json +50 -15
- data/node_modules/browserify/readme.markdown +544 -0
- data/node_modules/browserify/test/bom.js +19 -0
- data/node_modules/browserify/test/bom/hello.js +1 -0
- data/node_modules/browserify/test/buffer.js +33 -9
- data/node_modules/browserify/test/bundle.js +32 -0
- data/node_modules/browserify/test/bundle_sourcemap.js +2 -2
- data/node_modules/browserify/test/crypto.js +12 -12
- data/node_modules/browserify/test/dedupe-nomap.js +44 -0
- data/node_modules/browserify/test/dup/foo-dup.js +4 -0
- data/node_modules/browserify/test/dup/foo.js +4 -0
- data/node_modules/browserify/test/dup/index.js +5 -0
- data/node_modules/browserify/test/external.js +20 -0
- data/node_modules/browserify/test/external/main.js +2 -0
- data/node_modules/browserify/test/external/x.js +3 -0
- data/node_modules/browserify/test/field.js +8 -0
- data/node_modules/browserify/test/global.js +35 -2
- data/node_modules/browserify/test/hash.js +14 -0
- data/node_modules/browserify/test/hash/foo/other.js +1 -0
- data/node_modules/browserify/test/hash/foo/two.js +2 -0
- data/node_modules/browserify/test/hash/main.js +2 -0
- data/node_modules/browserify/test/hash/one.js +2 -0
- data/node_modules/browserify/test/hash/other.js +1 -0
- data/node_modules/browserify/test/hash_instance.js +14 -0
- data/node_modules/browserify/test/hash_instance/foo/two.js +3 -0
- data/node_modules/browserify/test/hash_instance/main.js +11 -0
- data/node_modules/browserify/test/hash_instance/one.js +3 -0
- data/node_modules/browserify/test/hash_instance_context.js +24 -0
- data/node_modules/browserify/test/hash_instance_context/main.js +17 -0
- data/node_modules/browserify/test/hash_instance_context/one/dir/f.js +3 -0
- data/node_modules/browserify/test/hash_instance_context/one/dir/g.js +2 -0
- data/node_modules/browserify/test/hash_instance_context/one/f.js +3 -0
- data/node_modules/browserify/test/hash_instance_context/one/g.js +2 -0
- data/node_modules/browserify/test/hash_instance_context/three/dir/f.js +3 -0
- data/node_modules/browserify/test/hash_instance_context/three/dir/g.js +2 -0
- data/node_modules/browserify/test/hash_instance_context/three/dir/h.js +2 -0
- data/node_modules/browserify/test/hash_instance_context/three/f.js +3 -0
- data/node_modules/browserify/test/hash_instance_context/three/g.js +2 -0
- data/node_modules/browserify/test/hash_instance_context/three/h.js +2 -0
- data/node_modules/browserify/test/hash_instance_context/two/dir/f.js +3 -0
- data/node_modules/browserify/test/hash_instance_context/two/dir/g.js +2 -0
- data/node_modules/browserify/test/hash_instance_context/two/dir/h.js +2 -0
- data/node_modules/browserify/test/hash_instance_context/two/f.js +3 -0
- data/node_modules/browserify/test/hash_instance_context/two/g.js +2 -0
- data/node_modules/browserify/test/hash_instance_context/two/h.js +2 -0
- data/node_modules/browserify/test/ignore.js +0 -1
- data/node_modules/browserify/test/json.js +1 -1
- data/node_modules/browserify/test/json/main.js +1 -0
- data/node_modules/browserify/test/multi_bundle.js +41 -0
- data/node_modules/browserify/test/multi_bundle/_prelude.js +1 -0
- data/node_modules/browserify/test/multi_bundle/a.js +1 -0
- data/node_modules/browserify/test/multi_bundle/c.js +4 -0
- data/node_modules/browserify/test/multi_bundle_unique.js +50 -0
- data/node_modules/browserify/test/multi_entry.js +0 -4
- data/node_modules/browserify/test/no_builtins.js +22 -0
- data/node_modules/browserify/test/no_builtins/main.js +2 -0
- data/node_modules/browserify/test/no_builtins/x.txt +1 -0
- data/node_modules/browserify/test/pack.js +35 -0
- data/node_modules/browserify/test/paths.js +32 -0
- data/node_modules/browserify/test/paths/main.js +3 -0
- data/node_modules/browserify/test/paths/x/aaa/index.js +1 -0
- data/node_modules/browserify/test/paths/x/ccc/index.js +1 -0
- data/node_modules/browserify/test/paths/y/bbb/index.js +1 -0
- data/node_modules/browserify/test/paths/y/ccc/index.js +1 -0
- data/node_modules/browserify/test/reverse_multi_bundle.js +18 -15
- data/node_modules/browserify/test/reverse_multi_bundle/arbitrary.js +6 -0
- data/node_modules/browserify/test/reverse_multi_bundle/lazy.js +5 -0
- data/node_modules/browserify/test/reverse_multi_bundle/shared.js +2 -0
- data/node_modules/browserify/test/standalone.js +28 -20
- data/node_modules/browserify/test/standalone_sourcemap.js +54 -0
- data/node_modules/browserify/test/stdin.js +64 -0
- data/node_modules/browserify/test/stream.js +16 -0
- data/node_modules/browserify/test/stream/bar.js +1 -0
- data/node_modules/browserify/test/stream/foo.js +1 -0
- data/node_modules/browserify/test/stream/main.js +2 -0
- data/node_modules/browserify/test/tr.js +6 -1
- data/node_modules/browserify/test/tr/f.js +1 -0
- data/node_modules/browserify/test/tr/main.js +3 -1
- data/node_modules/browserify/test/tr/package.json +5 -0
- data/node_modules/browserify/test/tr/subdir/g.js +1 -0
- data/node_modules/browserify/test/unicode.js +19 -0
- data/node_modules/browserify/test/unicode/main.js +1 -0
- data/node_modules/browserify/test/unicode/one.js +1 -0
- data/node_modules/browserify/test/unicode/two.js +1 -0
- data/node_modules/browserify/test/util.js +1 -1
- data/package.json +2 -2
- metadata +1587 -367
- data/node_modules/browserify/README.markdown +0 -431
- data/node_modules/browserify/example/multiple_bundles/static/beep.js +0 -6
- data/node_modules/browserify/example/multiple_bundles/static/boop.js +0 -6
- data/node_modules/browserify/example/multiple_bundles/static/common.js +0 -3
- data/node_modules/browserify/node_modules/browser-pack/cmd.js +0 -4
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/CHANGELOG.md +0 -58
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/Makefile.dryice.js +0 -166
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/README.md +0 -347
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/build/suffix-browser.js +0 -8
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/lib/source-map/array-set.js +0 -96
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/lib/source-map/base64-vlq.js +0 -144
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/lib/source-map/base64.js +0 -42
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/lib/source-map/binary-search.js +0 -81
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/lib/source-map/source-map-consumer.js +0 -426
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/lib/source-map/source-map-generator.js +0 -381
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/lib/source-map/source-node.js +0 -353
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/lib/source-map/util.js +0 -91
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/node_modules/amdefine/README.md +0 -119
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/node_modules/amdefine/amdefine.js +0 -299
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/node_modules/amdefine/package.json +0 -33
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/package.json +0 -74
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/test/run-tests.js +0 -73
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/test/source-map/test-api.js +0 -26
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/test/source-map/test-array-set.js +0 -71
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/test/source-map/test-base64-vlq.js +0 -24
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/test/source-map/test-base64.js +0 -35
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/test/source-map/test-binary-search.js +0 -54
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/test/source-map/test-dog-fooding.js +0 -72
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/test/source-map/test-source-map-consumer.js +0 -291
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/test/source-map/test-source-map-generator.js +0 -391
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/test/source-map/test-source-node.js +0 -282
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/test/source-map/util.js +0 -152
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/parse-base64vlq-mappings/LICENSE +0 -23
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/parse-base64vlq-mappings/README.md +0 -35
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/parse-base64vlq-mappings/base64-vlq.js +0 -108
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/parse-base64vlq-mappings/base64.js +0 -35
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/parse-base64vlq-mappings/example/one-to-one-mappings.js +0 -5
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/parse-base64vlq-mappings/index.js +0 -82
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/parse-base64vlq-mappings/package.json +0 -39
- data/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/parse-base64vlq-mappings/test/parse-base64vlq-mappings.js +0 -72
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/README.html +0 -1012
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/README.org +0 -593
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/bin/uglifyjs +0 -334
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/docstyle.css +0 -75
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/lib/consolidator.js +0 -1220
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/lib/parse-js.js +0 -1369
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/lib/process.js +0 -2117
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/lib/squeeze-more.js +0 -78
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/package.json +0 -28
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/beautify.js +0 -28
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/testconsolidator.js +0 -1391
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/testparser.js +0 -409
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/1e21.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/array1.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/array2.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/array3.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/array4.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/assignment.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/concatstring.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/const.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/div-with-regexp.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/empty-blocks.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/forstatement.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/if-not.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/if.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/ifreturn.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/ifreturn2.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/infinite.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue10.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue11.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue13.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue14.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue16.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue17.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue20.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue21.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue25.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue27.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue278.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue28.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue29.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue30.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue34.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue349.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue353.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue372.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue4.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue48.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue50.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue53.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue54.1.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue68.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue69.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue9.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issues222_324.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/mangle.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/null_string.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/strict-equals.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/var.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/whitespace.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/with.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/1e21.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/array1.js +0 -3
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/array2.js +0 -4
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/array3.js +0 -4
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/array4.js +0 -6
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/assignment.js +0 -20
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/concatstring.js +0 -3
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/const.js +0 -5
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/div-with-regexp.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/empty-blocks.js +0 -4
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/forstatement.js +0 -10
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/if-not.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/if.js +0 -6
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/ifreturn.js +0 -9
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/ifreturn2.js +0 -16
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/infinite.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue10.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue11.js +0 -3
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue13.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue14.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue16.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue17.js +0 -4
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue20.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue21.js +0 -6
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue25.js +0 -7
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue27.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue278.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue28.js +0 -3
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue29.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue30.js +0 -3
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue34.js +0 -3
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue349.js +0 -25
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue353.js +0 -4
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue372.js +0 -32
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue4.js +0 -3
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue48.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue50.js +0 -9
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue53.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue54.1.js +0 -3
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue68.js +0 -5
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue69.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue9.js +0 -4
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issues222_324.js +0 -82
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/mangle.js +0 -5
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/null_string.js +0 -1
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/strict-equals.js +0 -3
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/var.js +0 -3
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/whitespace.js +0 -21
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/with.js +0 -2
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/scripts.js +0 -57
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/tmp/hoist.js +0 -33
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/tmp/instrument.js +0 -97
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/tmp/test.js +0 -30
- data/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/uglify-js.js +0 -18
- data/node_modules/browserify/node_modules/browser-resolve/builtin/assert.js +0 -314
- data/node_modules/browserify/node_modules/browser-resolve/builtin/child_process.js +0 -2
- data/node_modules/browserify/node_modules/browser-resolve/builtin/events.js +0 -183
- data/node_modules/browserify/node_modules/browser-resolve/builtin/fs.js +0 -1
- data/node_modules/browserify/node_modules/browser-resolve/builtin/https.js +0 -13
- data/node_modules/browserify/node_modules/browser-resolve/builtin/net.js +0 -1
- data/node_modules/browserify/node_modules/browser-resolve/builtin/path.js +0 -175
- data/node_modules/browserify/node_modules/browser-resolve/builtin/process.js +0 -55
- data/node_modules/browserify/node_modules/browser-resolve/builtin/querystring.js +0 -250
- data/node_modules/browserify/node_modules/browser-resolve/builtin/stream.js +0 -119
- data/node_modules/browserify/node_modules/browser-resolve/builtin/string_decoder.js +0 -161
- data/node_modules/browserify/node_modules/browser-resolve/builtin/sys.js +0 -1
- data/node_modules/browserify/node_modules/browser-resolve/builtin/timers.js +0 -39
- data/node_modules/browserify/node_modules/browser-resolve/builtin/tls.js +0 -1
- data/node_modules/browserify/node_modules/browser-resolve/builtin/tty.js +0 -2
- data/node_modules/browserify/node_modules/browser-resolve/builtin/url.js +0 -604
- data/node_modules/browserify/node_modules/browser-resolve/builtin/util.js +0 -351
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/buffer-browserify/README.md +0 -11
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/buffer-browserify/buffer_ieee754.js +0 -84
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/buffer-browserify/index.js +0 -1317
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/buffer-browserify/node_modules/base64-js/README.md +0 -14
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/buffer-browserify/node_modules/base64-js/lib/b64.js +0 -84
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/buffer-browserify/node_modules/base64-js/package.json +0 -26
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/buffer-browserify/node_modules/base64-js/test/runner.js +0 -50
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/buffer-browserify/package.json +0 -42
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/buffer-browserify/test/buffer.js +0 -218
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/console-browserify/index.js +0 -85
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/console-browserify/package.json +0 -76
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/crypto-browserify/index.js +0 -74
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/crypto-browserify/md5.js +0 -384
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/crypto-browserify/package.json +0 -30
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/crypto-browserify/rng.js +0 -37
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/crypto-browserify/sha.js +0 -210
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/crypto-browserify/test/simple.js +0 -35
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/index.js +0 -60
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/lib/request.js +0 -131
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/lib/response.js +0 -119
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/node_modules/concat-stream/index.js +0 -48
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/node_modules/concat-stream/package.json +0 -29
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/node_modules/concat-stream/readme.md +0 -31
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/node_modules/concat-stream/test.js +0 -34
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/package.json +0 -42
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/vm-browserify/README.markdown +0 -103
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/vm-browserify/index.js +0 -85
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/vm-browserify/package.json +0 -39
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/vm-browserify/testling/run.js +0 -22
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/vm-browserify/testling/test.sh +0 -11
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/zlib-browserify/index.js +0 -43
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/zlib-browserify/package.json +0 -33
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/zlib-browserify/readme.md +0 -1
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/zlib-browserify/test/zlib.test.js +0 -65
- data/node_modules/browserify/node_modules/browser-resolve/node_modules/zlib-browserify/zlib.js +0 -55
- data/node_modules/browserify/node_modules/concat-stream/test.js +0 -34
- data/node_modules/browserify/node_modules/duplexer/Makefile +0 -4
- data/node_modules/browserify/node_modules/duplexer/test.js +0 -27
- data/node_modules/browserify/node_modules/insert-module-globals/buffer.js +0 -3863
- data/node_modules/browserify/node_modules/insert-module-globals/bundle.sh +0 -4
- data/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/2132fedf7e11adbdb654aea08615ffea7b84cbf0.patch +0 -25
- data/node_modules/browserify/node_modules/module-deps/node_modules/through/index.js +0 -108
- data/node_modules/browserify/node_modules/module-deps/node_modules/through/package.json +0 -43
- data/node_modules/browserify/node_modules/module-deps/node_modules/through/readme.markdown +0 -63
- data/node_modules/browserify/node_modules/module-deps/node_modules/through/test/end.js +0 -45
- data/node_modules/browserify/node_modules/module-deps/test/files/tr_module/node_modules/m/index.js +0 -3
- data/node_modules/browserify/node_modules/optimist/README.markdown +0 -500
- data/node_modules/browserify/node_modules/optimist/index.js +0 -498
- data/node_modules/browserify/node_modules/optimist/node_modules/wordwrap/package.json +0 -41
- data/node_modules/browserify/node_modules/optimist/package.json +0 -42
- data/node_modules/browserify/node_modules/optimist/test/dash.js +0 -31
- data/node_modules/browserify/node_modules/optimist/test/parse_modified.js +0 -14
- data/node_modules/browserify/node_modules/optimist/test/short.js +0 -16
- data/node_modules/browserify/node_modules/optimist/test/whitespace.js +0 -8
- data/node_modules/browserify/node_modules/umd/node_modules/through/index.js +0 -108
- data/node_modules/browserify/node_modules/umd/node_modules/through/package.json +0 -43
- data/node_modules/browserify/node_modules/umd/node_modules/through/readme.markdown +0 -63
- data/node_modules/browserify/node_modules/umd/node_modules/through/test/auto-destroy.js +0 -30
- data/node_modules/browserify/node_modules/umd/node_modules/through/test/end.js +0 -45
- data/node_modules/browserify/test/subdep/node_modules/qq/b.js +0 -1
- data/node_modules/browserify/test/subdep/node_modules/qq/ignore_me.js +0 -1
- data/node_modules/browserify/test/subdep/node_modules/qq/node_modules/a/index.js +0 -1
- data/node_modules/browserify/test/subdep/node_modules/qq/node_modules/a/package.json +0 -5
- data/node_modules/browserify/test/subdep/node_modules/qq/node_modules/c/index.js +0 -1
- data/node_modules/browserify/test/subdep/node_modules/qq/node_modules/c/package.json +0 -5
- data/node_modules/browserify/test/subdep/node_modules/qq/node_modules/f/index.js +0 -1
- data/node_modules/browserify/test/subdep/node_modules/qq/node_modules/z/index.js +0 -1
- data/node_modules/browserify/test/subdep/node_modules/qq/package.json +0 -3
- data/node_modules/browserify/test/tr/node_modules/g/index.js +0 -1
- data/node_modules/browserify/test/tr/node_modules/g/node_modules/insert-ggg/index.js +0 -7
- data/node_modules/browserify/test/tr/node_modules/insert-aaa/index.js +0 -7
- data/node_modules/browserify/test/tr/node_modules/insert-bbb/index.js +0 -7
- data/node_modules/browserify/test/tr/node_modules/m/index.js +0 -3
data/node_modules/browserify/node_modules/browser-resolve/node_modules/vm-browserify/package.json
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "vm-browserify",
|
3
|
-
"version": "0.0.1",
|
4
|
-
"description": "vm module for the browser",
|
5
|
-
"main": "index.js",
|
6
|
-
"directories": {
|
7
|
-
"example": "example",
|
8
|
-
"test": "test"
|
9
|
-
},
|
10
|
-
"repository": {
|
11
|
-
"type": "git",
|
12
|
-
"url": "http://github.com/substack/vm-browserify.git"
|
13
|
-
},
|
14
|
-
"keywords": [
|
15
|
-
"vm",
|
16
|
-
"browser",
|
17
|
-
"eval"
|
18
|
-
],
|
19
|
-
"devDependencies": {
|
20
|
-
"tap": "~0.2.1",
|
21
|
-
"browserify": "1.9.x"
|
22
|
-
},
|
23
|
-
"author": {
|
24
|
-
"name": "James Halliday",
|
25
|
-
"email": "mail@substack.net",
|
26
|
-
"url": "http://substack.net"
|
27
|
-
},
|
28
|
-
"scripts": {
|
29
|
-
"test": "tap test/*.js"
|
30
|
-
},
|
31
|
-
"license": "MIT/X11",
|
32
|
-
"engine": {
|
33
|
-
"node": ">=0.4.0"
|
34
|
-
},
|
35
|
-
"readme": "vm-browserify\n=============\n\nEmulate node's vm module for the browser.\n\nexample\n=======\n\nJust write some client-side javascript:\n\n``` js\nvar vm = require('vm');\n\n$(function () {\n var res = vm.runInNewContext('a + 5', { a : 100 });\n $('#res').text(res);\n});\n```\n\ncompile it with [browserify](http://github.com/substack/node-browserify):\n\n```\nbrowserify entry.js -o bundle.js\n```\n\nthen whip up some html:\n\n``` html\n<html>\n <head>\n <script src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js\"></script>\n <script src=\"/bundle.js\"></script>\n </head>\n <body>\n result = <span id=\"res\"></span>\n </body>\n</html>\n```\n\nand when you load the page you should see:\n\n```\nresult = 105\n```\n\nmethods\n=======\n\nvm.runInNewContext(code, context={})\n------------------------------------\n\nEvaluate some `code` in a new iframe with a `context`.\n\nContexts are like wrapping your code in a `with()` except slightly less terrible\nbecause the code is sandboxed into a new iframe.\n\nbrowser compatability\n=====================\n\nAll modern browsers are supported.\n\nIf you have a [browserling](http://browserling.com) account,\nfrom the testling/ directory just do:\n\n```\n$ ./test.sh substack@gmail.com\nEnter host password for user 'substack@gmail.com':\nchrome/17.0:\n vmRunInNewContext ................................. 5/5\n\niexplore/9.0:\n vmRunInNewContext ................................. 5/5\n\nfirefox/10.0:\n vmRunInNewContext ................................. 5/5\n\nsafari/5.1:\n vmRunInNewContext ................................. 5/5\n\nopera/11.6:\n vmRunInNewContext ................................. 5/5\n\ntotal ............................................... 25/25\n```\n\nIn IE8 and IE7, running `vm.runInNewContext()` more than once can cause the\nbrowsers to hang for some reason. Otherwise they work too.\n\ninstall\n=======\n\nThis module is depended upon by browserify, so you should just be able to\n`require('vm')` and it will just work. However if you want to use this module\ndirectly you can install it with [npm](http://npmjs.org):\n\n```\nnpm install vm-browserify\n```\n\nlicense\n=======\n\nMIT/X11\n",
|
36
|
-
"readmeFilename": "README.markdown",
|
37
|
-
"_id": "vm-browserify@0.0.1",
|
38
|
-
"_from": "vm-browserify@0.0.1"
|
39
|
-
}
|
data/node_modules/browserify/node_modules/browser-resolve/node_modules/vm-browserify/testling/run.js
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
var test = require('testling');
|
2
|
-
var vm = require('./');
|
3
|
-
|
4
|
-
test('vmRunInNewContext', function (t) {
|
5
|
-
t.plan(5);
|
6
|
-
|
7
|
-
t.equal(vm.runInNewContext('a + 5', { a : 100 }), 105);
|
8
|
-
|
9
|
-
(function () {
|
10
|
-
var vars = { x : 10 };
|
11
|
-
t.equal(vm.runInNewContext('x++', vars), 10);
|
12
|
-
t.equal(vars.x, 11);
|
13
|
-
})();
|
14
|
-
|
15
|
-
(function () {
|
16
|
-
var vars = { x : 10 };
|
17
|
-
t.equal(vm.runInNewContext('var y = 3; y + x++', vars), 13);
|
18
|
-
t.equal(vars.x, 11);
|
19
|
-
})();
|
20
|
-
|
21
|
-
t.end();
|
22
|
-
});
|
@@ -1,11 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
if test -n "$1"; then
|
3
|
-
user="$1"
|
4
|
-
else
|
5
|
-
echo -n 'testling account: '
|
6
|
-
read user
|
7
|
-
fi
|
8
|
-
|
9
|
-
curl -sSNT <(tar -cf- ../index.js run.js 2>/dev/null) \
|
10
|
-
'http://testling.com/?main=run.js&browsers=chrome/17.0,iexplore/9.0,firefox/10.0,safari/5.1,opera/11.6' \
|
11
|
-
-u "$user"
|
data/node_modules/browserify/node_modules/browser-resolve/node_modules/zlib-browserify/index.js
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
const Zlib = module.exports = require('./zlib');
|
2
|
-
|
3
|
-
// the least I can do is make error messages for the rest of the node.js/zlib api.
|
4
|
-
// (thanks, dominictarr)
|
5
|
-
function error () {
|
6
|
-
var m = [].slice.call(arguments).join(' ')
|
7
|
-
throw new Error([
|
8
|
-
m,
|
9
|
-
'we accept pull requests',
|
10
|
-
'http://github.com/brianloveswords/zlib-browserify'
|
11
|
-
].join('\n'))
|
12
|
-
}
|
13
|
-
|
14
|
-
;['createGzip'
|
15
|
-
, 'createGunzip'
|
16
|
-
, 'createDeflate'
|
17
|
-
, 'createDeflateRaw'
|
18
|
-
, 'createInflate'
|
19
|
-
, 'createInflateRaw'
|
20
|
-
, 'createUnzip'
|
21
|
-
, 'Gzip'
|
22
|
-
, 'Gunzip'
|
23
|
-
, 'Inflate'
|
24
|
-
, 'InflateRaw'
|
25
|
-
, 'Deflate'
|
26
|
-
, 'DeflateRaw'
|
27
|
-
, 'Unzip'
|
28
|
-
, 'inflateRaw'
|
29
|
-
, 'deflateRaw'].forEach(function (name) {
|
30
|
-
Zlib[name] = function () {
|
31
|
-
error('sorry,', name, 'is not implemented yet')
|
32
|
-
}
|
33
|
-
});
|
34
|
-
|
35
|
-
const _deflate = Zlib.deflate;
|
36
|
-
const _gzip = Zlib.gzip;
|
37
|
-
|
38
|
-
Zlib.deflate = function deflate(stringOrBuffer, callback) {
|
39
|
-
return _deflate(Buffer(stringOrBuffer), callback);
|
40
|
-
};
|
41
|
-
Zlib.gzip = function gzip(stringOrBuffer, callback) {
|
42
|
-
return _gzip(Buffer(stringOrBuffer), callback);
|
43
|
-
};
|
data/node_modules/browserify/node_modules/browser-resolve/node_modules/zlib-browserify/package.json
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "zlib-browserify",
|
3
|
-
"version": "0.0.1",
|
4
|
-
"description": "Wrapper for zlib.js to allow for browserifyication",
|
5
|
-
"main": "index.js",
|
6
|
-
"directories": {
|
7
|
-
"test": "test"
|
8
|
-
},
|
9
|
-
"dependencies": {},
|
10
|
-
"devDependencies": {
|
11
|
-
"tap": "~0.3.3"
|
12
|
-
},
|
13
|
-
"scripts": {
|
14
|
-
"test": "./node_modules/tap test/*.test.js"
|
15
|
-
},
|
16
|
-
"repository": {
|
17
|
-
"type": "git",
|
18
|
-
"url": "git://github.com/brianloveswords/zlib-browserify.git"
|
19
|
-
},
|
20
|
-
"keywords": [
|
21
|
-
"zlib",
|
22
|
-
"browserify"
|
23
|
-
],
|
24
|
-
"author": {
|
25
|
-
"name": "Brian J. Brennan"
|
26
|
-
},
|
27
|
-
"license": "MIT",
|
28
|
-
"gitHead": "4be9419f0e8e9dec9629c8a538b33a4efd7df17b",
|
29
|
-
"readmeFilename": "readme.md",
|
30
|
-
"readme": "Zlib in yo' browser.\n",
|
31
|
-
"_id": "zlib-browserify@0.0.1",
|
32
|
-
"_from": "zlib-browserify@0.0.1"
|
33
|
-
}
|
data/node_modules/browserify/node_modules/browser-resolve/node_modules/zlib-browserify/readme.md
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Zlib in yo' browser.
|
@@ -1,65 +0,0 @@
|
|
1
|
-
const test = require('tap').test;
|
2
|
-
const zlibA = require('zlib');
|
3
|
-
const zlibB = require('..');
|
4
|
-
const crypto = require('crypto');
|
5
|
-
|
6
|
-
test('zlibA.deflate -> zlibB.inflate', function (t) {
|
7
|
-
const expect = crypto.randomBytes(1024);
|
8
|
-
zlibA.deflate(expect, function (err, cmpA) {
|
9
|
-
zlibB.inflate(cmpA, function (err, result) {
|
10
|
-
t.same(result, expect, 'should match');
|
11
|
-
t.end();
|
12
|
-
});
|
13
|
-
});
|
14
|
-
});
|
15
|
-
|
16
|
-
test('zlibB.deflate -> zlibA.inflate', function (t) {
|
17
|
-
const expect = crypto.randomBytes(1024);
|
18
|
-
zlibB.deflate(expect, function (err, cmpA) {
|
19
|
-
zlibA.inflate(cmpA, function (err, result) {
|
20
|
-
t.same(result, expect, 'should match');
|
21
|
-
t.end();
|
22
|
-
});
|
23
|
-
});
|
24
|
-
});
|
25
|
-
|
26
|
-
test('zlibB.deflate -> zlibA.inflate (string)', function (t) {
|
27
|
-
const expect = 'ohaihihihihihihihihihihihihihihihi';
|
28
|
-
zlibB.deflate(expect, function (err, cmpA) {
|
29
|
-
zlibA.inflate(cmpA, function (err, result) {
|
30
|
-
t.same(result.toString(), expect, 'should match');
|
31
|
-
t.end();
|
32
|
-
});
|
33
|
-
});
|
34
|
-
});
|
35
|
-
|
36
|
-
test('zlibA.gzip -> zlibB.gunzip', function (t) {
|
37
|
-
const expect = crypto.randomBytes(1024);
|
38
|
-
zlibA.gzip(expect, function (err, cmpA) {
|
39
|
-
zlibB.gunzip(cmpA, function (err, result) {
|
40
|
-
t.same(result, expect, 'should match');
|
41
|
-
t.end();
|
42
|
-
});
|
43
|
-
});
|
44
|
-
});
|
45
|
-
|
46
|
-
test('zlibB.gzip -> zlibA.gunzip', function (t) {
|
47
|
-
const expect = crypto.randomBytes(1024);
|
48
|
-
zlibB.gzip(expect, function (err, cmpA) {
|
49
|
-
zlibA.gunzip(cmpA, function (err, result) {
|
50
|
-
t.same(result, expect, 'should match');
|
51
|
-
t.end();
|
52
|
-
});
|
53
|
-
});
|
54
|
-
});
|
55
|
-
|
56
|
-
test('zlibB.gzip -> zlibA.gunzip', function (t) {
|
57
|
-
const expect = 'lololololoollolololoololololololololololololololololololololol';
|
58
|
-
zlibB.gzip(expect, function (err, cmpA) {
|
59
|
-
zlibA.gunzip(cmpA, function (err, result) {
|
60
|
-
t.same(result.toString(), expect, 'should match');
|
61
|
-
t.end();
|
62
|
-
});
|
63
|
-
});
|
64
|
-
});
|
65
|
-
|
data/node_modules/browserify/node_modules/browser-resolve/node_modules/zlib-browserify/zlib.js
DELETED
@@ -1,55 +0,0 @@
|
|
1
|
-
/** @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */
|
2
|
-
(function() {'use strict';function m(c){throw c;}var r=void 0,u=!0;var B="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array;function aa(c){if("string"===typeof c){var a=c.split(""),b,e;b=0;for(e=a.length;b<e;b++)a[b]=(a[b].charCodeAt(0)&255)>>>0;c=a}for(var f=1,d=0,g=c.length,h,j=0;0<g;){h=1024<g?1024:g;g-=h;do f+=c[j++],d+=f;while(--h);f%=65521;d%=65521}return(d<<16|f)>>>0};function I(c,a){this.index="number"===typeof a?a:0;this.n=0;this.buffer=c instanceof(B?Uint8Array:Array)?c:new (B?Uint8Array:Array)(32768);2*this.buffer.length<=this.index&&m(Error("invalid index"));this.buffer.length<=this.index&&this.f()}I.prototype.f=function(){var c=this.buffer,a,b=c.length,e=new (B?Uint8Array:Array)(b<<1);if(B)e.set(c);else for(a=0;a<b;++a)e[a]=c[a];return this.buffer=e};
|
3
|
-
I.prototype.d=function(c,a,b){var e=this.buffer,f=this.index,d=this.n,g=e[f],h;b&&1<a&&(c=8<a?(K[c&255]<<24|K[c>>>8&255]<<16|K[c>>>16&255]<<8|K[c>>>24&255])>>32-a:K[c]>>8-a);if(8>a+d)g=g<<a|c,d+=a;else for(h=0;h<a;++h)g=g<<1|c>>a-h-1&1,8===++d&&(d=0,e[f++]=K[g],g=0,f===e.length&&(e=this.f()));e[f]=g;this.buffer=e;this.n=d;this.index=f};I.prototype.finish=function(){var c=this.buffer,a=this.index,b;0<this.n&&(c[a]<<=8-this.n,c[a]=K[c[a]],a++);B?b=c.subarray(0,a):(c.length=a,b=c);return b};
|
4
|
-
var ba=new (B?Uint8Array:Array)(256),Q;for(Q=0;256>Q;++Q){for(var R=Q,ga=R,ha=7,R=R>>>1;R;R>>>=1)ga<<=1,ga|=R&1,--ha;ba[Q]=(ga<<ha&255)>>>0}var K=ba;var S={k:function(c,a,b){return S.update(c,0,a,b)},update:function(c,a,b,e){for(var f=S.L,d="number"===typeof b?b:b=0,g="number"===typeof e?e:c.length,a=a^4294967295,d=g&7;d--;++b)a=a>>>8^f[(a^c[b])&255];for(d=g>>3;d--;b+=8)a=a>>>8^f[(a^c[b])&255],a=a>>>8^f[(a^c[b+1])&255],a=a>>>8^f[(a^c[b+2])&255],a=a>>>8^f[(a^c[b+3])&255],a=a>>>8^f[(a^c[b+4])&255],a=a>>>8^f[(a^c[b+5])&255],a=a>>>8^f[(a^c[b+6])&255],a=a>>>8^f[(a^c[b+7])&255];return(a^4294967295)>>>0}},ia=S,ja,ka=[0,1996959894,3993919788,2567524794,
|
5
|
-
124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,
|
6
|
-
3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,
|
7
|
-
2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,
|
8
|
-
2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,
|
9
|
-
2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918E3,2847714899,3736837829,1202900863,
|
10
|
-
817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];ja=B?new Uint32Array(ka):ka;ia.L=ja;function na(){};function oa(c){this.buffer=new (B?Uint16Array:Array)(2*c);this.length=0}oa.prototype.getParent=function(c){return 2*((c-2)/4|0)};oa.prototype.push=function(c,a){var b,e,f=this.buffer,d;b=this.length;f[this.length++]=a;for(f[this.length++]=c;0<b;)if(e=this.getParent(b),f[b]>f[e])d=f[b],f[b]=f[e],f[e]=d,d=f[b+1],f[b+1]=f[e+1],f[e+1]=d,b=e;else break;return this.length};
|
11
|
-
oa.prototype.pop=function(){var c,a,b=this.buffer,e,f,d;a=b[0];c=b[1];this.length-=2;b[0]=b[this.length];b[1]=b[this.length+1];for(d=0;;){f=2*d+2;if(f>=this.length)break;f+2<this.length&&b[f+2]>b[f]&&(f+=2);if(b[f]>b[d])e=b[d],b[d]=b[f],b[f]=e,e=b[d+1],b[d+1]=b[f+1],b[f+1]=e;else break;d=f}return{index:c,value:a,length:this.length}};function T(c){var a=c.length,b=0,e=Number.POSITIVE_INFINITY,f,d,g,h,j,i,q,l,k;for(l=0;l<a;++l)c[l]>b&&(b=c[l]),c[l]<e&&(e=c[l]);f=1<<b;d=new (B?Uint32Array:Array)(f);g=1;h=0;for(j=2;g<=b;){for(l=0;l<a;++l)if(c[l]===g){i=0;q=h;for(k=0;k<g;++k)i=i<<1|q&1,q>>=1;for(k=i;k<f;k+=j)d[k]=g<<16|l;++h}++g;h<<=1;j<<=1}return[d,b,e]};function pa(c,a){this.l=qa;this.F=0;this.input=c;this.b=0;a&&(a.lazy&&(this.F=a.lazy),"number"===typeof a.compressionType&&(this.l=a.compressionType),a.outputBuffer&&(this.a=B&&a.outputBuffer instanceof Array?new Uint8Array(a.outputBuffer):a.outputBuffer),"number"===typeof a.outputIndex&&(this.b=a.outputIndex));this.a||(this.a=new (B?Uint8Array:Array)(32768))}var qa=2,ra={NONE:0,K:1,u:qa,W:3},sa=[],U;
|
12
|
-
for(U=0;288>U;U++)switch(u){case 143>=U:sa.push([U+48,8]);break;case 255>=U:sa.push([U-144+400,9]);break;case 279>=U:sa.push([U-256+0,7]);break;case 287>=U:sa.push([U-280+192,8]);break;default:m("invalid literal: "+U)}
|
13
|
-
pa.prototype.h=function(){var c,a,b,e,f=this.input;switch(this.l){case 0:b=0;for(e=f.length;b<e;){a=B?f.subarray(b,b+65535):f.slice(b,b+65535);b+=a.length;var d=a,g=b===e,h=r,j=r,i=r,q=r,l=r,k=this.a,p=this.b;if(B){for(k=new Uint8Array(this.a.buffer);k.length<=p+d.length+5;)k=new Uint8Array(k.length<<1);k.set(this.a)}h=g?1:0;k[p++]=h|0;j=d.length;i=~j+65536&65535;k[p++]=j&255;k[p++]=j>>>8&255;k[p++]=i&255;k[p++]=i>>>8&255;if(B)k.set(d,p),p+=d.length,k=k.subarray(0,p);else{q=0;for(l=d.length;q<l;++q)k[p++]=
|
14
|
-
d[q];k.length=p}this.b=p;this.a=k}break;case 1:var t=new I(new Uint8Array(this.a.buffer),this.b);t.d(1,1,u);t.d(1,2,u);var v=ta(this,f),x,F,w;x=0;for(F=v.length;x<F;x++)if(w=v[x],I.prototype.d.apply(t,sa[w]),256<w)t.d(v[++x],v[++x],u),t.d(v[++x],5),t.d(v[++x],v[++x],u);else if(256===w)break;this.a=t.finish();this.b=this.a.length;break;case qa:var A=new I(new Uint8Array(this.a),this.b),C,n,s,E,D,ca=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],V,La,da,Ma,la,va=Array(19),Na,Z,ma,G,Oa;C=qa;A.d(1,
|
15
|
-
1,u);A.d(C,2,u);n=ta(this,f);V=ua(this.T,15);La=wa(V);da=ua(this.S,7);Ma=wa(da);for(s=286;257<s&&0===V[s-1];s--);for(E=30;1<E&&0===da[E-1];E--);var Pa=s,Qa=E,M=new (B?Uint32Array:Array)(Pa+Qa),y,N,z,ea,L=new (B?Uint32Array:Array)(316),J,H,O=new (B?Uint8Array:Array)(19);for(y=N=0;y<Pa;y++)M[N++]=V[y];for(y=0;y<Qa;y++)M[N++]=da[y];if(!B){y=0;for(ea=O.length;y<ea;++y)O[y]=0}y=J=0;for(ea=M.length;y<ea;y+=N){for(N=1;y+N<ea&&M[y+N]===M[y];++N);z=N;if(0===M[y])if(3>z)for(;0<z--;)L[J++]=0,O[0]++;else for(;0<
|
16
|
-
z;)H=138>z?z:138,H>z-3&&H<z&&(H=z-3),10>=H?(L[J++]=17,L[J++]=H-3,O[17]++):(L[J++]=18,L[J++]=H-11,O[18]++),z-=H;else if(L[J++]=M[y],O[M[y]]++,z--,3>z)for(;0<z--;)L[J++]=M[y],O[M[y]]++;else for(;0<z;)H=6>z?z:6,H>z-3&&H<z&&(H=z-3),L[J++]=16,L[J++]=H-3,O[16]++,z-=H}c=B?L.subarray(0,J):L.slice(0,J);la=ua(O,7);for(G=0;19>G;G++)va[G]=la[ca[G]];for(D=19;4<D&&0===va[D-1];D--);Na=wa(la);A.d(s-257,5,u);A.d(E-1,5,u);A.d(D-4,4,u);for(G=0;G<D;G++)A.d(va[G],3,u);G=0;for(Oa=c.length;G<Oa;G++)if(Z=c[G],A.d(Na[Z],
|
17
|
-
la[Z],u),16<=Z){G++;switch(Z){case 16:ma=2;break;case 17:ma=3;break;case 18:ma=7;break;default:m("invalid code: "+Z)}A.d(c[G],ma,u)}var Ra=[La,V],Sa=[Ma,da],P,Ta,fa,ya,Ua,Va,Wa,Xa;Ua=Ra[0];Va=Ra[1];Wa=Sa[0];Xa=Sa[1];P=0;for(Ta=n.length;P<Ta;++P)if(fa=n[P],A.d(Ua[fa],Va[fa],u),256<fa)A.d(n[++P],n[++P],u),ya=n[++P],A.d(Wa[ya],Xa[ya],u),A.d(n[++P],n[++P],u);else if(256===fa)break;this.a=A.finish();this.b=this.a.length;break;default:m("invalid compression type")}return this.a};
|
18
|
-
function xa(c,a){this.length=c;this.N=a}
|
19
|
-
function za(){var c=Aa;switch(u){case 3===c:return[257,c-3,0];case 4===c:return[258,c-4,0];case 5===c:return[259,c-5,0];case 6===c:return[260,c-6,0];case 7===c:return[261,c-7,0];case 8===c:return[262,c-8,0];case 9===c:return[263,c-9,0];case 10===c:return[264,c-10,0];case 12>=c:return[265,c-11,1];case 14>=c:return[266,c-13,1];case 16>=c:return[267,c-15,1];case 18>=c:return[268,c-17,1];case 22>=c:return[269,c-19,2];case 26>=c:return[270,c-23,2];case 30>=c:return[271,c-27,2];case 34>=c:return[272,c-
|
20
|
-
31,2];case 42>=c:return[273,c-35,3];case 50>=c:return[274,c-43,3];case 58>=c:return[275,c-51,3];case 66>=c:return[276,c-59,3];case 82>=c:return[277,c-67,4];case 98>=c:return[278,c-83,4];case 114>=c:return[279,c-99,4];case 130>=c:return[280,c-115,4];case 162>=c:return[281,c-131,5];case 194>=c:return[282,c-163,5];case 226>=c:return[283,c-195,5];case 257>=c:return[284,c-227,5];case 258===c:return[285,c-258,0];default:m("invalid length: "+c)}}var Ba=[],Aa,Ca;
|
21
|
-
for(Aa=3;258>=Aa;Aa++)Ca=za(),Ba[Aa]=Ca[2]<<24|Ca[1]<<16|Ca[0];var Da=B?new Uint32Array(Ba):Ba;
|
22
|
-
function ta(c,a){function b(a,c){var b=a.N,d=[],e=0,f;f=Da[a.length];d[e++]=f&65535;d[e++]=f>>16&255;d[e++]=f>>24;var g;switch(u){case 1===b:g=[0,b-1,0];break;case 2===b:g=[1,b-2,0];break;case 3===b:g=[2,b-3,0];break;case 4===b:g=[3,b-4,0];break;case 6>=b:g=[4,b-5,1];break;case 8>=b:g=[5,b-7,1];break;case 12>=b:g=[6,b-9,2];break;case 16>=b:g=[7,b-13,2];break;case 24>=b:g=[8,b-17,3];break;case 32>=b:g=[9,b-25,3];break;case 48>=b:g=[10,b-33,4];break;case 64>=b:g=[11,b-49,4];break;case 96>=b:g=[12,b-
|
23
|
-
65,5];break;case 128>=b:g=[13,b-97,5];break;case 192>=b:g=[14,b-129,6];break;case 256>=b:g=[15,b-193,6];break;case 384>=b:g=[16,b-257,7];break;case 512>=b:g=[17,b-385,7];break;case 768>=b:g=[18,b-513,8];break;case 1024>=b:g=[19,b-769,8];break;case 1536>=b:g=[20,b-1025,9];break;case 2048>=b:g=[21,b-1537,9];break;case 3072>=b:g=[22,b-2049,10];break;case 4096>=b:g=[23,b-3073,10];break;case 6144>=b:g=[24,b-4097,11];break;case 8192>=b:g=[25,b-6145,11];break;case 12288>=b:g=[26,b-8193,12];break;case 16384>=
|
24
|
-
b:g=[27,b-12289,12];break;case 24576>=b:g=[28,b-16385,13];break;case 32768>=b:g=[29,b-24577,13];break;default:m("invalid distance")}f=g;d[e++]=f[0];d[e++]=f[1];d[e++]=f[2];var h,i;h=0;for(i=d.length;h<i;++h)k[p++]=d[h];v[d[0]]++;x[d[3]]++;t=a.length+c-1;l=null}var e,f,d,g,h,j={},i,q,l,k=B?new Uint16Array(2*a.length):[],p=0,t=0,v=new (B?Uint32Array:Array)(286),x=new (B?Uint32Array:Array)(30),F=c.F,w;if(!B){for(d=0;285>=d;)v[d++]=0;for(d=0;29>=d;)x[d++]=0}v[256]=1;e=0;for(f=a.length;e<f;++e){d=h=0;
|
25
|
-
for(g=3;d<g&&e+d!==f;++d)h=h<<8|a[e+d];j[h]===r&&(j[h]=[]);i=j[h];if(!(0<t--)){for(;0<i.length&&32768<e-i[0];)i.shift();if(e+3>=f){l&&b(l,-1);d=0;for(g=f-e;d<g;++d)w=a[e+d],k[p++]=w,++v[w];break}if(0<i.length){var A=r,C=r,n=0,s=r,E=r,D=r,ca=r,V=a.length,E=0,ca=i.length;a:for(;E<ca;E++){A=i[ca-E-1];s=3;if(3<n){for(D=n;3<D;D--)if(a[A+D-1]!==a[e+D-1])continue a;s=n}for(;258>s&&e+s<V&&a[A+s]===a[e+s];)++s;s>n&&(C=A,n=s);if(258===s)break}q=new xa(n,e-C);l?l.length<q.length?(w=a[e-1],k[p++]=w,++v[w],b(q,
|
26
|
-
0)):b(l,-1):q.length<F?l=q:b(q,0)}else l?b(l,-1):(w=a[e],k[p++]=w,++v[w])}i.push(e)}k[p++]=256;v[256]++;c.T=v;c.S=x;return B?k.subarray(0,p):k}
|
27
|
-
function ua(c,a){function b(a){var c=x[a][F[a]];c===l?(b(a+1),b(a+1)):--t[c];++F[a]}var e=c.length,f=new oa(572),d=new (B?Uint8Array:Array)(e),g,h,j,i,q;if(!B)for(i=0;i<e;i++)d[i]=0;for(i=0;i<e;++i)0<c[i]&&f.push(i,c[i]);g=Array(f.length/2);h=new (B?Uint32Array:Array)(f.length/2);if(1===g.length)return d[f.pop().index]=1,d;i=0;for(q=f.length/2;i<q;++i)g[i]=f.pop(),h[i]=g[i].value;var l=h.length,k=new (B?Uint16Array:Array)(a),p=new (B?Uint8Array:Array)(a),t=new (B?Uint8Array:Array)(l),v=Array(a),x=
|
28
|
-
Array(a),F=Array(a),w=(1<<a)-l,A=1<<a-1,C,n,s,E,D;k[a-1]=l;for(n=0;n<a;++n)w<A?p[n]=0:(p[n]=1,w-=A),w<<=1,k[a-2-n]=(k[a-1-n]/2|0)+l;k[0]=p[0];v[0]=Array(k[0]);x[0]=Array(k[0]);for(n=1;n<a;++n)k[n]>2*k[n-1]+p[n]&&(k[n]=2*k[n-1]+p[n]),v[n]=Array(k[n]),x[n]=Array(k[n]);for(C=0;C<l;++C)t[C]=a;for(s=0;s<k[a-1];++s)v[a-1][s]=h[s],x[a-1][s]=s;for(C=0;C<a;++C)F[C]=0;1===p[a-1]&&(--t[0],++F[a-1]);for(n=a-2;0<=n;--n){E=C=0;D=F[n+1];for(s=0;s<k[n];s++)E=v[n+1][D]+v[n+1][D+1],E>h[C]?(v[n][s]=E,x[n][s]=l,D+=2):
|
29
|
-
(v[n][s]=h[C],x[n][s]=C,++C);F[n]=0;1===p[n]&&b(n)}j=t;i=0;for(q=g.length;i<q;++i)d[g[i].index]=j[i];return d}function wa(c){var a=new (B?Uint16Array:Array)(c.length),b=[],e=[],f=0,d,g,h,j;d=0;for(g=c.length;d<g;d++)b[c[d]]=(b[c[d]]|0)+1;d=1;for(g=16;d<=g;d++)e[d]=f,f+=b[d]|0,f<<=1;d=0;for(g=c.length;d<g;d++){f=e[c[d]];e[c[d]]+=1;h=a[d]=0;for(j=c[d];h<j;h++)a[d]=a[d]<<1|f&1,f>>>=1}return a};function Ea(c,a){this.input=c;this.a=new (B?Uint8Array:Array)(32768);this.l=Fa.u;var b={},e;if((a||!(a={}))&&"number"===typeof a.compressionType)this.l=a.compressionType;for(e in a)b[e]=a[e];b.outputBuffer=this.a;this.H=new pa(this.input,b)}var Fa=ra;
|
30
|
-
Ea.prototype.h=function(){var c,a,b,e,f,d,g,h=0;g=this.a;c=Ga;switch(c){case Ga:a=Math.LOG2E*Math.log(32768)-8;break;default:m(Error("invalid compression method"))}b=a<<4|c;g[h++]=b;switch(c){case Ga:switch(this.l){case Fa.NONE:f=0;break;case Fa.K:f=1;break;case Fa.u:f=2;break;default:m(Error("unsupported compression type"))}break;default:m(Error("invalid compression method"))}e=f<<6|0;g[h++]=e|31-(256*b+e)%31;d=aa(this.input);this.H.b=h;g=this.H.h();h=g.length;B&&(g=new Uint8Array(g.buffer),g.length<=
|
31
|
-
h+4&&(this.a=new Uint8Array(g.length+4),this.a.set(g),g=this.a),g=g.subarray(0,h+4));g[h++]=d>>24&255;g[h++]=d>>16&255;g[h++]=d>>8&255;g[h++]=d&255;return g};function Ha(c,a){this.input=c;this.b=this.c=0;this.g={};a&&(a.flags&&(this.g=a.flags),"string"===typeof a.filename&&(this.filename=a.filename),"string"===typeof a.comment&&(this.comment=a.comment),a.deflateOptions&&(this.m=a.deflateOptions));this.m||(this.m={})}
|
32
|
-
Ha.prototype.h=function(){var c,a,b,e,f,d,g,h,j=new (B?Uint8Array:Array)(32768),i=0,q=this.input,l=this.c,k=this.filename,p=this.comment;j[i++]=31;j[i++]=139;j[i++]=8;c=0;this.g.fname&&(c|=Ia);this.g.fcomment&&(c|=Ja);this.g.fhcrc&&(c|=Ka);j[i++]=c;a=(Date.now?Date.now():+new Date)/1E3|0;j[i++]=a&255;j[i++]=a>>>8&255;j[i++]=a>>>16&255;j[i++]=a>>>24&255;j[i++]=0;j[i++]=Ya;if(this.g.fname!==r){g=0;for(h=k.length;g<h;++g)d=k.charCodeAt(g),255<d&&(j[i++]=d>>>8&255),j[i++]=d&255;j[i++]=0}if(this.g.comment){g=
|
33
|
-
0;for(h=p.length;g<h;++g)d=p.charCodeAt(g),255<d&&(j[i++]=d>>>8&255),j[i++]=d&255;j[i++]=0}this.g.fhcrc&&(b=S.k(j,0,i)&65535,j[i++]=b&255,j[i++]=b>>>8&255);this.m.outputBuffer=j;this.m.outputIndex=i;f=new pa(q,this.m);j=f.h();i=f.b;B&&(i+8>j.buffer.byteLength?(this.a=new Uint8Array(i+8),this.a.set(new Uint8Array(j.buffer)),j=this.a):j=new Uint8Array(j.buffer));e=S.k(q);j[i++]=e&255;j[i++]=e>>>8&255;j[i++]=e>>>16&255;j[i++]=e>>>24&255;h=q.length;j[i++]=h&255;j[i++]=h>>>8&255;j[i++]=h>>>16&255;j[i++]=
|
34
|
-
h>>>24&255;this.c=l;B&&i<j.length&&(this.a=j=j.subarray(0,i));return j};var Ya=255,Ka=2,Ia=8,Ja=16;function W(c,a){this.p=[];this.q=32768;this.e=this.j=this.c=this.t=0;this.input=B?new Uint8Array(c):c;this.v=!1;this.r=Za;this.J=!1;if(a||!(a={}))a.index&&(this.c=a.index),a.bufferSize&&(this.q=a.bufferSize),a.bufferType&&(this.r=a.bufferType),a.resize&&(this.J=a.resize);switch(this.r){case $a:this.b=32768;this.a=new (B?Uint8Array:Array)(32768+this.q+258);break;case Za:this.b=0;this.a=new (B?Uint8Array:Array)(this.q);this.f=this.R;this.z=this.O;this.s=this.Q;break;default:m(Error("invalid inflate mode"))}}
|
35
|
-
var $a=0,Za=1;
|
36
|
-
W.prototype.i=function(){for(;!this.v;){var c=X(this,3);c&1&&(this.v=u);c>>>=1;switch(c){case 0:var a=this.input,b=this.c,e=this.a,f=this.b,d=r,g=r,h=r,j=e.length,i=r;this.e=this.j=0;d=a[b++];d===r&&m(Error("invalid uncompressed block header: LEN (first byte)"));g=d;d=a[b++];d===r&&m(Error("invalid uncompressed block header: LEN (second byte)"));g|=d<<8;d=a[b++];d===r&&m(Error("invalid uncompressed block header: NLEN (first byte)"));h=d;d=a[b++];d===r&&m(Error("invalid uncompressed block header: NLEN (second byte)"));h|=
|
37
|
-
d<<8;g===~h&&m(Error("invalid uncompressed block header: length verify"));b+g>a.length&&m(Error("input buffer is broken"));switch(this.r){case $a:for(;f+g>e.length;){i=j-f;g-=i;if(B)e.set(a.subarray(b,b+i),f),f+=i,b+=i;else for(;i--;)e[f++]=a[b++];this.b=f;e=this.f();f=this.b}break;case Za:for(;f+g>e.length;)e=this.f({B:2});break;default:m(Error("invalid inflate mode"))}if(B)e.set(a.subarray(b,b+g),f),f+=g,b+=g;else for(;g--;)e[f++]=a[b++];this.c=b;this.b=f;this.a=e;break;case 1:this.s(ab,bb);break;
|
38
|
-
case 2:cb(this);break;default:m(Error("unknown BTYPE: "+c))}}return this.z()};
|
39
|
-
var db=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],eb=B?new Uint16Array(db):db,fb=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,258,258],gb=B?new Uint16Array(fb):fb,hb=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0],ib=B?new Uint8Array(hb):hb,jb=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],kb=B?new Uint16Array(jb):jb,lb=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,
|
40
|
-
10,11,11,12,12,13,13],mb=B?new Uint8Array(lb):lb,nb=new (B?Uint8Array:Array)(288),Y,ob;Y=0;for(ob=nb.length;Y<ob;++Y)nb[Y]=143>=Y?8:255>=Y?9:279>=Y?7:8;var ab=T(nb),pb=new (B?Uint8Array:Array)(30),qb,rb;qb=0;for(rb=pb.length;qb<rb;++qb)pb[qb]=5;var bb=T(pb);function X(c,a){for(var b=c.j,e=c.e,f=c.input,d=c.c,g;e<a;)g=f[d++],g===r&&m(Error("input buffer is broken")),b|=g<<e,e+=8;g=b&(1<<a)-1;c.j=b>>>a;c.e=e-a;c.c=d;return g}
|
41
|
-
function sb(c,a){for(var b=c.j,e=c.e,f=c.input,d=c.c,g=a[0],h=a[1],j,i,q;e<h;)j=f[d++],j===r&&m(Error("input buffer is broken")),b|=j<<e,e+=8;i=g[b&(1<<h)-1];q=i>>>16;c.j=b>>q;c.e=e-q;c.c=d;return i&65535}
|
42
|
-
function cb(c){function a(a,b,c){var d,f,e,g;for(g=0;g<a;)switch(d=sb(this,b),d){case 16:for(e=3+X(this,2);e--;)c[g++]=f;break;case 17:for(e=3+X(this,3);e--;)c[g++]=0;f=0;break;case 18:for(e=11+X(this,7);e--;)c[g++]=0;f=0;break;default:f=c[g++]=d}return c}var b=X(c,5)+257,e=X(c,5)+1,f=X(c,4)+4,d=new (B?Uint8Array:Array)(eb.length),g,h,j,i;for(i=0;i<f;++i)d[eb[i]]=X(c,3);g=T(d);h=new (B?Uint8Array:Array)(b);j=new (B?Uint8Array:Array)(e);c.s(T(a.call(c,b,g,h)),T(a.call(c,e,g,j)))}
|
43
|
-
W.prototype.s=function(c,a){var b=this.a,e=this.b;this.A=c;for(var f=b.length-258,d,g,h,j;256!==(d=sb(this,c));)if(256>d)e>=f&&(this.b=e,b=this.f(),e=this.b),b[e++]=d;else{g=d-257;j=gb[g];0<ib[g]&&(j+=X(this,ib[g]));d=sb(this,a);h=kb[d];0<mb[d]&&(h+=X(this,mb[d]));e>=f&&(this.b=e,b=this.f(),e=this.b);for(;j--;)b[e]=b[e++-h]}for(;8<=this.e;)this.e-=8,this.c--;this.b=e};
|
44
|
-
W.prototype.Q=function(c,a){var b=this.a,e=this.b;this.A=c;for(var f=b.length,d,g,h,j;256!==(d=sb(this,c));)if(256>d)e>=f&&(b=this.f(),f=b.length),b[e++]=d;else{g=d-257;j=gb[g];0<ib[g]&&(j+=X(this,ib[g]));d=sb(this,a);h=kb[d];0<mb[d]&&(h+=X(this,mb[d]));e+j>f&&(b=this.f(),f=b.length);for(;j--;)b[e]=b[e++-h]}for(;8<=this.e;)this.e-=8,this.c--;this.b=e};
|
45
|
-
W.prototype.f=function(){var c=new (B?Uint8Array:Array)(this.b-32768),a=this.b-32768,b,e,f=this.a;if(B)c.set(f.subarray(32768,c.length));else{b=0;for(e=c.length;b<e;++b)c[b]=f[b+32768]}this.p.push(c);this.t+=c.length;if(B)f.set(f.subarray(a,a+32768));else for(b=0;32768>b;++b)f[b]=f[a+b];this.b=32768;return f};
|
46
|
-
W.prototype.R=function(c){var a,b=this.input.length/this.c+1|0,e,f,d,g=this.input,h=this.a;c&&("number"===typeof c.B&&(b=c.B),"number"===typeof c.M&&(b+=c.M));2>b?(e=(g.length-this.c)/this.A[2],d=258*(e/2)|0,f=d<h.length?h.length+d:h.length<<1):f=h.length*b;B?(a=new Uint8Array(f),a.set(h)):a=h;return this.a=a};
|
47
|
-
W.prototype.z=function(){var c=0,a=this.a,b=this.p,e,f=new (B?Uint8Array:Array)(this.t+(this.b-32768)),d,g,h,j;if(0===b.length)return B?this.a.subarray(32768,this.b):this.a.slice(32768,this.b);d=0;for(g=b.length;d<g;++d){e=b[d];h=0;for(j=e.length;h<j;++h)f[c++]=e[h]}d=32768;for(g=this.b;d<g;++d)f[c++]=a[d];this.p=[];return this.buffer=f};
|
48
|
-
W.prototype.O=function(){var c,a=this.b;B?this.J?(c=new Uint8Array(a),c.set(this.a.subarray(0,a))):c=this.a.subarray(0,a):(this.a.length>a&&(this.a.length=a),c=this.a);return this.buffer=c};function tb(c){this.input=c;this.c=0;this.member=[]}
|
49
|
-
tb.prototype.i=function(){for(var c=this.input.length;this.c<c;){var a=new na,b=r,e=r,f=r,d=r,g=r,h=r,j=r,i=r,q=r,l=this.input,k=this.c;a.C=l[k++];a.D=l[k++];(31!==a.C||139!==a.D)&&m(Error("invalid file signature:",a.C,a.D));a.w=l[k++];switch(a.w){case 8:break;default:m(Error("unknown compression method: "+a.w))}a.o=l[k++];i=l[k++]|l[k++]<<8|l[k++]<<16|l[k++]<<24;a.Z=new Date(1E3*i);a.aa=l[k++];a.$=l[k++];0<(a.o&4)&&(a.V=l[k++]|l[k++]<<8,k+=a.V);if(0<(a.o&Ia)){j=[];for(h=0;0<(g=l[k++]);)j[h++]=String.fromCharCode(g);
|
50
|
-
a.name=j.join("")}if(0<(a.o&Ja)){j=[];for(h=0;0<(g=l[k++]);)j[h++]=String.fromCharCode(g);a.comment=j.join("")}0<(a.o&Ka)&&(a.P=S.k(l,0,k)&65535,a.P!==(l[k++]|l[k++]<<8)&&m(Error("invalid header crc16")));b=l[l.length-4]|l[l.length-3]<<8|l[l.length-2]<<16|l[l.length-1]<<24;l.length-k-4-4<512*b&&(d=b);e=new W(l,{index:k,bufferSize:d});a.data=f=e.i();k=e.c;a.X=q=(l[k++]|l[k++]<<8|l[k++]<<16|l[k++]<<24)>>>0;S.k(f)!==q&&m(Error("invalid CRC-32 checksum: 0x"+S.k(f).toString(16)+" / 0x"+q.toString(16)));
|
51
|
-
a.Y=b=(l[k++]|l[k++]<<8|l[k++]<<16|l[k++]<<24)>>>0;(f.length&4294967295)!==b&&m(Error("invalid input size: "+(f.length&4294967295)+" / "+b));this.member.push(a);this.c=k}var p=this.member,t,v,x=0,F=0,w;t=0;for(v=p.length;t<v;++t)F+=p[t].data.length;if(B){w=new Uint8Array(F);for(t=0;t<v;++t)w.set(p[t].data,x),x+=p[t].data.length}else{w=[];for(t=0;t<v;++t)w[t]=p[t].data;w=Array.prototype.concat.apply([],w)}return w};function ub(c,a){var b,e;this.input=c;this.c=0;if(a||!(a={}))a.index&&(this.c=a.index),a.verify&&(this.U=a.verify);b=c[this.c++];e=c[this.c++];switch(b&15){case Ga:this.method=Ga;break;default:m(Error("unsupported compression method"))}0!==((b<<8)+e)%31&&m(Error("invalid fcheck flag:"+((b<<8)+e)%31));e&32&&m(Error("fdict flag is not supported"));this.I=new W(c,{index:this.c,bufferSize:a.bufferSize,bufferType:a.bufferType,resize:a.resize})}
|
52
|
-
ub.prototype.i=function(){var c=this.input,a,b;a=this.I.i();this.c=this.I.c;this.U&&(b=(c[this.c++]<<24|c[this.c++]<<16|c[this.c++]<<8|c[this.c++])>>>0,b!==aa(a)&&m(Error("invalid adler-32 checksum")));return a};exports.deflate=vb;exports.deflateSync=wb;exports.inflate=xb;exports.inflateSync=yb;exports.gzip=zb;exports.gzipSync=Ab;exports.gunzip=Bb;exports.gunzipSync=Cb;function vb(c,a,b){process.nextTick(function(){var e,f;try{f=wb(c,b)}catch(d){e=d}a(e,f)})}function wb(c,a){var b;b=(new Ea(c)).h();a||(a={});return a.G?b:Db(b)}function xb(c,a,b){process.nextTick(function(){var e,f;try{f=yb(c,b)}catch(d){e=d}a(e,f)})}
|
53
|
-
function yb(c,a){var b;c.subarray=c.slice;b=(new ub(c)).i();a||(a={});return a.noBuffer?b:Db(b)}function zb(c,a,b){process.nextTick(function(){var e,f;try{f=Ab(c,b)}catch(d){e=d}a(e,f)})}function Ab(c,a){var b;c.subarray=c.slice;b=(new Ha(c)).h();a||(a={});return a.G?b:Db(b)}function Bb(c,a,b){process.nextTick(function(){var e,f;try{f=Cb(c,b)}catch(d){e=d}a(e,f)})}function Cb(c,a){var b;c.subarray=c.slice;b=(new tb(c)).i();a||(a={});return a.G?b:Db(b)}
|
54
|
-
function Db(c){var a=new Buffer(c.length),b,e;b=0;for(e=c.length;b<e;++b)a[b]=c[b];return a};var Eb=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];B&&new Uint16Array(Eb);var Fb=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,258,258];B&&new Uint16Array(Fb);var Gb=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0];B&&new Uint8Array(Gb);var Hb=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];B&&new Uint16Array(Hb);
|
55
|
-
var Ib=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];B&&new Uint8Array(Ib);var Jb=new (B?Uint8Array:Array)(288),$,Kb;$=0;for(Kb=Jb.length;$<Kb;++$)Jb[$]=143>=$?8:255>=$?9:279>=$?7:8;T(Jb);var Lb=new (B?Uint8Array:Array)(30),Mb,Nb;Mb=0;for(Nb=Lb.length;Mb<Nb;++Mb)Lb[Mb]=5;T(Lb);var Ga=8;}).call(this);
|
@@ -1,34 +0,0 @@
|
|
1
|
-
var spawn = require('child_process').spawn
|
2
|
-
var concat = require('./')
|
3
|
-
|
4
|
-
// real world example
|
5
|
-
var cmd = spawn('ls')
|
6
|
-
cmd.stdout.pipe(
|
7
|
-
concat(function(err, out) {
|
8
|
-
console.log('`ls`', err, out.toString())
|
9
|
-
})
|
10
|
-
)
|
11
|
-
|
12
|
-
// array stream
|
13
|
-
var arrays = concat(function(err, out) {
|
14
|
-
console.log('arrays', err, out)
|
15
|
-
})
|
16
|
-
arrays.write([1,2,3])
|
17
|
-
arrays.write([4,5,6])
|
18
|
-
arrays.end()
|
19
|
-
|
20
|
-
// buffer stream
|
21
|
-
var buffers = concat(function(err, out) {
|
22
|
-
console.log('buffers', err, out.toString())
|
23
|
-
})
|
24
|
-
buffers.write(new Buffer('pizza Array is not a ', 'utf8'))
|
25
|
-
buffers.write(new Buffer('stringy cat'))
|
26
|
-
buffers.end()
|
27
|
-
|
28
|
-
// string stream
|
29
|
-
var strings = concat(function(err, out) {
|
30
|
-
console.log('strings', err, out)
|
31
|
-
})
|
32
|
-
strings.write("nacho ")
|
33
|
-
strings.write("dogs")
|
34
|
-
strings.end()
|
@@ -1,27 +0,0 @@
|
|
1
|
-
var duplex = require("./index")
|
2
|
-
, assert = require("assert")
|
3
|
-
, through = require("through")
|
4
|
-
|
5
|
-
var readable = through()
|
6
|
-
, writable = through(write)
|
7
|
-
, written = 0
|
8
|
-
, data = 0
|
9
|
-
|
10
|
-
var stream = duplex(writable, readable)
|
11
|
-
|
12
|
-
function write() {
|
13
|
-
written++
|
14
|
-
}
|
15
|
-
|
16
|
-
stream.on("data", ondata)
|
17
|
-
|
18
|
-
function ondata() {
|
19
|
-
data++
|
20
|
-
}
|
21
|
-
|
22
|
-
stream.write()
|
23
|
-
readable.emit("data")
|
24
|
-
|
25
|
-
assert.equal(written, 1)
|
26
|
-
assert.equal(data, 1)
|
27
|
-
console.log("DONE")
|
@@ -1,3863 +0,0 @@
|
|
1
|
-
require=(function(e,t,n,r){function i(r){if(!n[r]){if(!t[r]){if(e)return e(r);throw new Error("Cannot find module '"+r+"'")}var s=n[r]={exports:{}};t[r][0](function(e){var n=t[r][1][e];return i(n?n:e)},s,s.exports)}return n[r].exports}for(var s=0;s<r.length;s++)i(r[s]);return i})(typeof require!=="undefined"&&require,{1:[function(require,module,exports){
|
2
|
-
exports.readIEEE754 = function(buffer, offset, isBE, mLen, nBytes) {
|
3
|
-
var e, m,
|
4
|
-
eLen = nBytes * 8 - mLen - 1,
|
5
|
-
eMax = (1 << eLen) - 1,
|
6
|
-
eBias = eMax >> 1,
|
7
|
-
nBits = -7,
|
8
|
-
i = isBE ? 0 : (nBytes - 1),
|
9
|
-
d = isBE ? 1 : -1,
|
10
|
-
s = buffer[offset + i];
|
11
|
-
|
12
|
-
i += d;
|
13
|
-
|
14
|
-
e = s & ((1 << (-nBits)) - 1);
|
15
|
-
s >>= (-nBits);
|
16
|
-
nBits += eLen;
|
17
|
-
for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8);
|
18
|
-
|
19
|
-
m = e & ((1 << (-nBits)) - 1);
|
20
|
-
e >>= (-nBits);
|
21
|
-
nBits += mLen;
|
22
|
-
for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8);
|
23
|
-
|
24
|
-
if (e === 0) {
|
25
|
-
e = 1 - eBias;
|
26
|
-
} else if (e === eMax) {
|
27
|
-
return m ? NaN : ((s ? -1 : 1) * Infinity);
|
28
|
-
} else {
|
29
|
-
m = m + Math.pow(2, mLen);
|
30
|
-
e = e - eBias;
|
31
|
-
}
|
32
|
-
return (s ? -1 : 1) * m * Math.pow(2, e - mLen);
|
33
|
-
};
|
34
|
-
|
35
|
-
exports.writeIEEE754 = function(buffer, value, offset, isBE, mLen, nBytes) {
|
36
|
-
var e, m, c,
|
37
|
-
eLen = nBytes * 8 - mLen - 1,
|
38
|
-
eMax = (1 << eLen) - 1,
|
39
|
-
eBias = eMax >> 1,
|
40
|
-
rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0),
|
41
|
-
i = isBE ? (nBytes - 1) : 0,
|
42
|
-
d = isBE ? -1 : 1,
|
43
|
-
s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0;
|
44
|
-
|
45
|
-
value = Math.abs(value);
|
46
|
-
|
47
|
-
if (isNaN(value) || value === Infinity) {
|
48
|
-
m = isNaN(value) ? 1 : 0;
|
49
|
-
e = eMax;
|
50
|
-
} else {
|
51
|
-
e = Math.floor(Math.log(value) / Math.LN2);
|
52
|
-
if (value * (c = Math.pow(2, -e)) < 1) {
|
53
|
-
e--;
|
54
|
-
c *= 2;
|
55
|
-
}
|
56
|
-
if (e + eBias >= 1) {
|
57
|
-
value += rt / c;
|
58
|
-
} else {
|
59
|
-
value += rt * Math.pow(2, 1 - eBias);
|
60
|
-
}
|
61
|
-
if (value * c >= 2) {
|
62
|
-
e++;
|
63
|
-
c /= 2;
|
64
|
-
}
|
65
|
-
|
66
|
-
if (e + eBias >= eMax) {
|
67
|
-
m = 0;
|
68
|
-
e = eMax;
|
69
|
-
} else if (e + eBias >= 1) {
|
70
|
-
m = (value * c - 1) * Math.pow(2, mLen);
|
71
|
-
e = e + eBias;
|
72
|
-
} else {
|
73
|
-
m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen);
|
74
|
-
e = 0;
|
75
|
-
}
|
76
|
-
}
|
77
|
-
|
78
|
-
for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8);
|
79
|
-
|
80
|
-
e = (e << mLen) | m;
|
81
|
-
eLen += mLen;
|
82
|
-
for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8);
|
83
|
-
|
84
|
-
buffer[offset + i - d] |= s * 128;
|
85
|
-
};
|
86
|
-
|
87
|
-
},{}],2:[function(require,module,exports){
|
88
|
-
(function(){// UTILITY
|
89
|
-
var util = require('util');
|
90
|
-
var Buffer = require("buffer").Buffer;
|
91
|
-
var pSlice = Array.prototype.slice;
|
92
|
-
|
93
|
-
function objectKeys(object) {
|
94
|
-
if (Object.keys) return Object.keys(object);
|
95
|
-
var result = [];
|
96
|
-
for (var name in object) {
|
97
|
-
if (Object.prototype.hasOwnProperty.call(object, name)) {
|
98
|
-
result.push(name);
|
99
|
-
}
|
100
|
-
}
|
101
|
-
return result;
|
102
|
-
}
|
103
|
-
|
104
|
-
// 1. The assert module provides functions that throw
|
105
|
-
// AssertionError's when particular conditions are not met. The
|
106
|
-
// assert module must conform to the following interface.
|
107
|
-
|
108
|
-
var assert = module.exports = ok;
|
109
|
-
|
110
|
-
// 2. The AssertionError is defined in assert.
|
111
|
-
// new assert.AssertionError({ message: message,
|
112
|
-
// actual: actual,
|
113
|
-
// expected: expected })
|
114
|
-
|
115
|
-
assert.AssertionError = function AssertionError(options) {
|
116
|
-
this.name = 'AssertionError';
|
117
|
-
this.message = options.message;
|
118
|
-
this.actual = options.actual;
|
119
|
-
this.expected = options.expected;
|
120
|
-
this.operator = options.operator;
|
121
|
-
var stackStartFunction = options.stackStartFunction || fail;
|
122
|
-
|
123
|
-
if (Error.captureStackTrace) {
|
124
|
-
Error.captureStackTrace(this, stackStartFunction);
|
125
|
-
}
|
126
|
-
};
|
127
|
-
util.inherits(assert.AssertionError, Error);
|
128
|
-
|
129
|
-
function replacer(key, value) {
|
130
|
-
if (value === undefined) {
|
131
|
-
return '' + value;
|
132
|
-
}
|
133
|
-
if (typeof value === 'number' && (isNaN(value) || !isFinite(value))) {
|
134
|
-
return value.toString();
|
135
|
-
}
|
136
|
-
if (typeof value === 'function' || value instanceof RegExp) {
|
137
|
-
return value.toString();
|
138
|
-
}
|
139
|
-
return value;
|
140
|
-
}
|
141
|
-
|
142
|
-
function truncate(s, n) {
|
143
|
-
if (typeof s == 'string') {
|
144
|
-
return s.length < n ? s : s.slice(0, n);
|
145
|
-
} else {
|
146
|
-
return s;
|
147
|
-
}
|
148
|
-
}
|
149
|
-
|
150
|
-
assert.AssertionError.prototype.toString = function() {
|
151
|
-
if (this.message) {
|
152
|
-
return [this.name + ':', this.message].join(' ');
|
153
|
-
} else {
|
154
|
-
return [
|
155
|
-
this.name + ':',
|
156
|
-
truncate(JSON.stringify(this.actual, replacer), 128),
|
157
|
-
this.operator,
|
158
|
-
truncate(JSON.stringify(this.expected, replacer), 128)
|
159
|
-
].join(' ');
|
160
|
-
}
|
161
|
-
};
|
162
|
-
|
163
|
-
// assert.AssertionError instanceof Error
|
164
|
-
|
165
|
-
assert.AssertionError.__proto__ = Error.prototype;
|
166
|
-
|
167
|
-
// At present only the three keys mentioned above are used and
|
168
|
-
// understood by the spec. Implementations or sub modules can pass
|
169
|
-
// other keys to the AssertionError's constructor - they will be
|
170
|
-
// ignored.
|
171
|
-
|
172
|
-
// 3. All of the following functions must throw an AssertionError
|
173
|
-
// when a corresponding condition is not met, with a message that
|
174
|
-
// may be undefined if not provided. All assertion methods provide
|
175
|
-
// both the actual and expected values to the assertion error for
|
176
|
-
// display purposes.
|
177
|
-
|
178
|
-
function fail(actual, expected, message, operator, stackStartFunction) {
|
179
|
-
throw new assert.AssertionError({
|
180
|
-
message: message,
|
181
|
-
actual: actual,
|
182
|
-
expected: expected,
|
183
|
-
operator: operator,
|
184
|
-
stackStartFunction: stackStartFunction
|
185
|
-
});
|
186
|
-
}
|
187
|
-
|
188
|
-
// EXTENSION! allows for well behaved errors defined elsewhere.
|
189
|
-
assert.fail = fail;
|
190
|
-
|
191
|
-
// 4. Pure assertion tests whether a value is truthy, as determined
|
192
|
-
// by !!guard.
|
193
|
-
// assert.ok(guard, message_opt);
|
194
|
-
// This statement is equivalent to assert.equal(true, guard,
|
195
|
-
// message_opt);. To test strictly for the value true, use
|
196
|
-
// assert.strictEqual(true, guard, message_opt);.
|
197
|
-
|
198
|
-
function ok(value, message) {
|
199
|
-
if (!!!value) fail(value, true, message, '==', assert.ok);
|
200
|
-
}
|
201
|
-
assert.ok = ok;
|
202
|
-
|
203
|
-
// 5. The equality assertion tests shallow, coercive equality with
|
204
|
-
// ==.
|
205
|
-
// assert.equal(actual, expected, message_opt);
|
206
|
-
|
207
|
-
assert.equal = function equal(actual, expected, message) {
|
208
|
-
if (actual != expected) fail(actual, expected, message, '==', assert.equal);
|
209
|
-
};
|
210
|
-
|
211
|
-
// 6. The non-equality assertion tests for whether two objects are not equal
|
212
|
-
// with != assert.notEqual(actual, expected, message_opt);
|
213
|
-
|
214
|
-
assert.notEqual = function notEqual(actual, expected, message) {
|
215
|
-
if (actual == expected) {
|
216
|
-
fail(actual, expected, message, '!=', assert.notEqual);
|
217
|
-
}
|
218
|
-
};
|
219
|
-
|
220
|
-
// 7. The equivalence assertion tests a deep equality relation.
|
221
|
-
// assert.deepEqual(actual, expected, message_opt);
|
222
|
-
|
223
|
-
assert.deepEqual = function deepEqual(actual, expected, message) {
|
224
|
-
if (!_deepEqual(actual, expected)) {
|
225
|
-
fail(actual, expected, message, 'deepEqual', assert.deepEqual);
|
226
|
-
}
|
227
|
-
};
|
228
|
-
|
229
|
-
function _deepEqual(actual, expected) {
|
230
|
-
// 7.1. All identical values are equivalent, as determined by ===.
|
231
|
-
if (actual === expected) {
|
232
|
-
return true;
|
233
|
-
|
234
|
-
} else if (Buffer.isBuffer(actual) && Buffer.isBuffer(expected)) {
|
235
|
-
if (actual.length != expected.length) return false;
|
236
|
-
|
237
|
-
for (var i = 0; i < actual.length; i++) {
|
238
|
-
if (actual[i] !== expected[i]) return false;
|
239
|
-
}
|
240
|
-
|
241
|
-
return true;
|
242
|
-
|
243
|
-
// 7.2. If the expected value is a Date object, the actual value is
|
244
|
-
// equivalent if it is also a Date object that refers to the same time.
|
245
|
-
} else if (actual instanceof Date && expected instanceof Date) {
|
246
|
-
return actual.getTime() === expected.getTime();
|
247
|
-
|
248
|
-
// 7.3. Other pairs that do not both pass typeof value == 'object',
|
249
|
-
// equivalence is determined by ==.
|
250
|
-
} else if (typeof actual != 'object' && typeof expected != 'object') {
|
251
|
-
return actual == expected;
|
252
|
-
|
253
|
-
// 7.4. For all other Object pairs, including Array objects, equivalence is
|
254
|
-
// determined by having the same number of owned properties (as verified
|
255
|
-
// with Object.prototype.hasOwnProperty.call), the same set of keys
|
256
|
-
// (although not necessarily the same order), equivalent values for every
|
257
|
-
// corresponding key, and an identical 'prototype' property. Note: this
|
258
|
-
// accounts for both named and indexed properties on Arrays.
|
259
|
-
} else {
|
260
|
-
return objEquiv(actual, expected);
|
261
|
-
}
|
262
|
-
}
|
263
|
-
|
264
|
-
function isUndefinedOrNull(value) {
|
265
|
-
return value === null || value === undefined;
|
266
|
-
}
|
267
|
-
|
268
|
-
function isArguments(object) {
|
269
|
-
return Object.prototype.toString.call(object) == '[object Arguments]';
|
270
|
-
}
|
271
|
-
|
272
|
-
function objEquiv(a, b) {
|
273
|
-
if (isUndefinedOrNull(a) || isUndefinedOrNull(b))
|
274
|
-
return false;
|
275
|
-
// an identical 'prototype' property.
|
276
|
-
if (a.prototype !== b.prototype) return false;
|
277
|
-
//~~~I've managed to break Object.keys through screwy arguments passing.
|
278
|
-
// Converting to array solves the problem.
|
279
|
-
if (isArguments(a)) {
|
280
|
-
if (!isArguments(b)) {
|
281
|
-
return false;
|
282
|
-
}
|
283
|
-
a = pSlice.call(a);
|
284
|
-
b = pSlice.call(b);
|
285
|
-
return _deepEqual(a, b);
|
286
|
-
}
|
287
|
-
try {
|
288
|
-
var ka = objectKeys(a),
|
289
|
-
kb = objectKeys(b),
|
290
|
-
key, i;
|
291
|
-
} catch (e) {//happens when one is a string literal and the other isn't
|
292
|
-
return false;
|
293
|
-
}
|
294
|
-
// having the same number of owned properties (keys incorporates
|
295
|
-
// hasOwnProperty)
|
296
|
-
if (ka.length != kb.length)
|
297
|
-
return false;
|
298
|
-
//the same set of keys (although not necessarily the same order),
|
299
|
-
ka.sort();
|
300
|
-
kb.sort();
|
301
|
-
//~~~cheap key test
|
302
|
-
for (i = ka.length - 1; i >= 0; i--) {
|
303
|
-
if (ka[i] != kb[i])
|
304
|
-
return false;
|
305
|
-
}
|
306
|
-
//equivalent values for every corresponding key, and
|
307
|
-
//~~~possibly expensive deep test
|
308
|
-
for (i = ka.length - 1; i >= 0; i--) {
|
309
|
-
key = ka[i];
|
310
|
-
if (!_deepEqual(a[key], b[key])) return false;
|
311
|
-
}
|
312
|
-
return true;
|
313
|
-
}
|
314
|
-
|
315
|
-
// 8. The non-equivalence assertion tests for any deep inequality.
|
316
|
-
// assert.notDeepEqual(actual, expected, message_opt);
|
317
|
-
|
318
|
-
assert.notDeepEqual = function notDeepEqual(actual, expected, message) {
|
319
|
-
if (_deepEqual(actual, expected)) {
|
320
|
-
fail(actual, expected, message, 'notDeepEqual', assert.notDeepEqual);
|
321
|
-
}
|
322
|
-
};
|
323
|
-
|
324
|
-
// 9. The strict equality assertion tests strict equality, as determined by ===.
|
325
|
-
// assert.strictEqual(actual, expected, message_opt);
|
326
|
-
|
327
|
-
assert.strictEqual = function strictEqual(actual, expected, message) {
|
328
|
-
if (actual !== expected) {
|
329
|
-
fail(actual, expected, message, '===', assert.strictEqual);
|
330
|
-
}
|
331
|
-
};
|
332
|
-
|
333
|
-
// 10. The strict non-equality assertion tests for strict inequality, as
|
334
|
-
// determined by !==. assert.notStrictEqual(actual, expected, message_opt);
|
335
|
-
|
336
|
-
assert.notStrictEqual = function notStrictEqual(actual, expected, message) {
|
337
|
-
if (actual === expected) {
|
338
|
-
fail(actual, expected, message, '!==', assert.notStrictEqual);
|
339
|
-
}
|
340
|
-
};
|
341
|
-
|
342
|
-
function expectedException(actual, expected) {
|
343
|
-
if (!actual || !expected) {
|
344
|
-
return false;
|
345
|
-
}
|
346
|
-
|
347
|
-
if (expected instanceof RegExp) {
|
348
|
-
return expected.test(actual);
|
349
|
-
} else if (actual instanceof expected) {
|
350
|
-
return true;
|
351
|
-
} else if (expected.call({}, actual) === true) {
|
352
|
-
return true;
|
353
|
-
}
|
354
|
-
|
355
|
-
return false;
|
356
|
-
}
|
357
|
-
|
358
|
-
function _throws(shouldThrow, block, expected, message) {
|
359
|
-
var actual;
|
360
|
-
|
361
|
-
if (typeof expected === 'string') {
|
362
|
-
message = expected;
|
363
|
-
expected = null;
|
364
|
-
}
|
365
|
-
|
366
|
-
try {
|
367
|
-
block();
|
368
|
-
} catch (e) {
|
369
|
-
actual = e;
|
370
|
-
}
|
371
|
-
|
372
|
-
message = (expected && expected.name ? ' (' + expected.name + ').' : '.') +
|
373
|
-
(message ? ' ' + message : '.');
|
374
|
-
|
375
|
-
if (shouldThrow && !actual) {
|
376
|
-
fail('Missing expected exception' + message);
|
377
|
-
}
|
378
|
-
|
379
|
-
if (!shouldThrow && expectedException(actual, expected)) {
|
380
|
-
fail('Got unwanted exception' + message);
|
381
|
-
}
|
382
|
-
|
383
|
-
if ((shouldThrow && actual && expected &&
|
384
|
-
!expectedException(actual, expected)) || (!shouldThrow && actual)) {
|
385
|
-
throw actual;
|
386
|
-
}
|
387
|
-
}
|
388
|
-
|
389
|
-
// 11. Expected to throw an error:
|
390
|
-
// assert.throws(block, Error_opt, message_opt);
|
391
|
-
|
392
|
-
assert.throws = function(block, /*optional*/error, /*optional*/message) {
|
393
|
-
_throws.apply(this, [true].concat(pSlice.call(arguments)));
|
394
|
-
};
|
395
|
-
|
396
|
-
// EXTENSION! This is annoying to write outside this module.
|
397
|
-
assert.doesNotThrow = function(block, /*optional*/error, /*optional*/message) {
|
398
|
-
_throws.apply(this, [false].concat(pSlice.call(arguments)));
|
399
|
-
};
|
400
|
-
|
401
|
-
assert.ifError = function(err) { if (err) {throw err;}};
|
402
|
-
|
403
|
-
})()
|
404
|
-
},{"util":3,"buffer":4}],"buffer-browserify":[function(require,module,exports){
|
405
|
-
module.exports=require('q9TxCC');
|
406
|
-
},{}],"q9TxCC":[function(require,module,exports){
|
407
|
-
(function(){function SlowBuffer (size) {
|
408
|
-
this.length = size;
|
409
|
-
};
|
410
|
-
|
411
|
-
var assert = require('assert');
|
412
|
-
|
413
|
-
exports.INSPECT_MAX_BYTES = 50;
|
414
|
-
|
415
|
-
|
416
|
-
function toHex(n) {
|
417
|
-
if (n < 16) return '0' + n.toString(16);
|
418
|
-
return n.toString(16);
|
419
|
-
}
|
420
|
-
|
421
|
-
function utf8ToBytes(str) {
|
422
|
-
var byteArray = [];
|
423
|
-
for (var i = 0; i < str.length; i++)
|
424
|
-
if (str.charCodeAt(i) <= 0x7F)
|
425
|
-
byteArray.push(str.charCodeAt(i));
|
426
|
-
else {
|
427
|
-
var h = encodeURIComponent(str.charAt(i)).substr(1).split('%');
|
428
|
-
for (var j = 0; j < h.length; j++)
|
429
|
-
byteArray.push(parseInt(h[j], 16));
|
430
|
-
}
|
431
|
-
|
432
|
-
return byteArray;
|
433
|
-
}
|
434
|
-
|
435
|
-
function asciiToBytes(str) {
|
436
|
-
var byteArray = []
|
437
|
-
for (var i = 0; i < str.length; i++ )
|
438
|
-
// Node's code seems to be doing this and not & 0x7F..
|
439
|
-
byteArray.push( str.charCodeAt(i) & 0xFF );
|
440
|
-
|
441
|
-
return byteArray;
|
442
|
-
}
|
443
|
-
|
444
|
-
function base64ToBytes(str) {
|
445
|
-
return require("base64-js").toByteArray(str);
|
446
|
-
}
|
447
|
-
|
448
|
-
SlowBuffer.byteLength = function (str, encoding) {
|
449
|
-
switch (encoding || "utf8") {
|
450
|
-
case 'hex':
|
451
|
-
return str.length / 2;
|
452
|
-
|
453
|
-
case 'utf8':
|
454
|
-
case 'utf-8':
|
455
|
-
return utf8ToBytes(str).length;
|
456
|
-
|
457
|
-
case 'ascii':
|
458
|
-
case 'binary':
|
459
|
-
return str.length;
|
460
|
-
|
461
|
-
case 'base64':
|
462
|
-
return base64ToBytes(str).length;
|
463
|
-
|
464
|
-
default:
|
465
|
-
throw new Error('Unknown encoding');
|
466
|
-
}
|
467
|
-
};
|
468
|
-
|
469
|
-
function blitBuffer(src, dst, offset, length) {
|
470
|
-
var pos, i = 0;
|
471
|
-
while (i < length) {
|
472
|
-
if ((i+offset >= dst.length) || (i >= src.length))
|
473
|
-
break;
|
474
|
-
|
475
|
-
dst[i + offset] = src[i];
|
476
|
-
i++;
|
477
|
-
}
|
478
|
-
return i;
|
479
|
-
}
|
480
|
-
|
481
|
-
SlowBuffer.prototype.utf8Write = function (string, offset, length) {
|
482
|
-
var bytes, pos;
|
483
|
-
return SlowBuffer._charsWritten = blitBuffer(utf8ToBytes(string), this, offset, length);
|
484
|
-
};
|
485
|
-
|
486
|
-
SlowBuffer.prototype.asciiWrite = function (string, offset, length) {
|
487
|
-
var bytes, pos;
|
488
|
-
return SlowBuffer._charsWritten = blitBuffer(asciiToBytes(string), this, offset, length);
|
489
|
-
};
|
490
|
-
|
491
|
-
SlowBuffer.prototype.binaryWrite = SlowBuffer.prototype.asciiWrite;
|
492
|
-
|
493
|
-
SlowBuffer.prototype.base64Write = function (string, offset, length) {
|
494
|
-
var bytes, pos;
|
495
|
-
return SlowBuffer._charsWritten = blitBuffer(base64ToBytes(string), this, offset, length);
|
496
|
-
};
|
497
|
-
|
498
|
-
SlowBuffer.prototype.base64Slice = function (start, end) {
|
499
|
-
var bytes = Array.prototype.slice.apply(this, arguments)
|
500
|
-
return require("base64-js").fromByteArray(bytes);
|
501
|
-
}
|
502
|
-
|
503
|
-
function decodeUtf8Char(str) {
|
504
|
-
try {
|
505
|
-
return decodeURIComponent(str);
|
506
|
-
} catch (err) {
|
507
|
-
return String.fromCharCode(0xFFFD); // UTF 8 invalid char
|
508
|
-
}
|
509
|
-
}
|
510
|
-
|
511
|
-
SlowBuffer.prototype.utf8Slice = function () {
|
512
|
-
var bytes = Array.prototype.slice.apply(this, arguments);
|
513
|
-
var res = "";
|
514
|
-
var tmp = "";
|
515
|
-
var i = 0;
|
516
|
-
while (i < bytes.length) {
|
517
|
-
if (bytes[i] <= 0x7F) {
|
518
|
-
res += decodeUtf8Char(tmp) + String.fromCharCode(bytes[i]);
|
519
|
-
tmp = "";
|
520
|
-
} else
|
521
|
-
tmp += "%" + bytes[i].toString(16);
|
522
|
-
|
523
|
-
i++;
|
524
|
-
}
|
525
|
-
|
526
|
-
return res + decodeUtf8Char(tmp);
|
527
|
-
}
|
528
|
-
|
529
|
-
SlowBuffer.prototype.asciiSlice = function () {
|
530
|
-
var bytes = Array.prototype.slice.apply(this, arguments);
|
531
|
-
var ret = "";
|
532
|
-
for (var i = 0; i < bytes.length; i++)
|
533
|
-
ret += String.fromCharCode(bytes[i]);
|
534
|
-
return ret;
|
535
|
-
}
|
536
|
-
|
537
|
-
SlowBuffer.prototype.binarySlice = SlowBuffer.prototype.asciiSlice;
|
538
|
-
|
539
|
-
SlowBuffer.prototype.inspect = function() {
|
540
|
-
var out = [],
|
541
|
-
len = this.length;
|
542
|
-
for (var i = 0; i < len; i++) {
|
543
|
-
out[i] = toHex(this[i]);
|
544
|
-
if (i == exports.INSPECT_MAX_BYTES) {
|
545
|
-
out[i + 1] = '...';
|
546
|
-
break;
|
547
|
-
}
|
548
|
-
}
|
549
|
-
return '<SlowBuffer ' + out.join(' ') + '>';
|
550
|
-
};
|
551
|
-
|
552
|
-
|
553
|
-
SlowBuffer.prototype.hexSlice = function(start, end) {
|
554
|
-
var len = this.length;
|
555
|
-
|
556
|
-
if (!start || start < 0) start = 0;
|
557
|
-
if (!end || end < 0 || end > len) end = len;
|
558
|
-
|
559
|
-
var out = '';
|
560
|
-
for (var i = start; i < end; i++) {
|
561
|
-
out += toHex(this[i]);
|
562
|
-
}
|
563
|
-
return out;
|
564
|
-
};
|
565
|
-
|
566
|
-
|
567
|
-
SlowBuffer.prototype.toString = function(encoding, start, end) {
|
568
|
-
encoding = String(encoding || 'utf8').toLowerCase();
|
569
|
-
start = +start || 0;
|
570
|
-
if (typeof end == 'undefined') end = this.length;
|
571
|
-
|
572
|
-
// Fastpath empty strings
|
573
|
-
if (+end == start) {
|
574
|
-
return '';
|
575
|
-
}
|
576
|
-
|
577
|
-
switch (encoding) {
|
578
|
-
case 'hex':
|
579
|
-
return this.hexSlice(start, end);
|
580
|
-
|
581
|
-
case 'utf8':
|
582
|
-
case 'utf-8':
|
583
|
-
return this.utf8Slice(start, end);
|
584
|
-
|
585
|
-
case 'ascii':
|
586
|
-
return this.asciiSlice(start, end);
|
587
|
-
|
588
|
-
case 'binary':
|
589
|
-
return this.binarySlice(start, end);
|
590
|
-
|
591
|
-
case 'base64':
|
592
|
-
return this.base64Slice(start, end);
|
593
|
-
|
594
|
-
case 'ucs2':
|
595
|
-
case 'ucs-2':
|
596
|
-
return this.ucs2Slice(start, end);
|
597
|
-
|
598
|
-
default:
|
599
|
-
throw new Error('Unknown encoding');
|
600
|
-
}
|
601
|
-
};
|
602
|
-
|
603
|
-
|
604
|
-
SlowBuffer.prototype.hexWrite = function(string, offset, length) {
|
605
|
-
offset = +offset || 0;
|
606
|
-
var remaining = this.length - offset;
|
607
|
-
if (!length) {
|
608
|
-
length = remaining;
|
609
|
-
} else {
|
610
|
-
length = +length;
|
611
|
-
if (length > remaining) {
|
612
|
-
length = remaining;
|
613
|
-
}
|
614
|
-
}
|
615
|
-
|
616
|
-
// must be an even number of digits
|
617
|
-
var strLen = string.length;
|
618
|
-
if (strLen % 2) {
|
619
|
-
throw new Error('Invalid hex string');
|
620
|
-
}
|
621
|
-
if (length > strLen / 2) {
|
622
|
-
length = strLen / 2;
|
623
|
-
}
|
624
|
-
for (var i = 0; i < length; i++) {
|
625
|
-
var byte = parseInt(string.substr(i * 2, 2), 16);
|
626
|
-
if (isNaN(byte)) throw new Error('Invalid hex string');
|
627
|
-
this[offset + i] = byte;
|
628
|
-
}
|
629
|
-
SlowBuffer._charsWritten = i * 2;
|
630
|
-
return i;
|
631
|
-
};
|
632
|
-
|
633
|
-
|
634
|
-
SlowBuffer.prototype.write = function(string, offset, length, encoding) {
|
635
|
-
// Support both (string, offset, length, encoding)
|
636
|
-
// and the legacy (string, encoding, offset, length)
|
637
|
-
if (isFinite(offset)) {
|
638
|
-
if (!isFinite(length)) {
|
639
|
-
encoding = length;
|
640
|
-
length = undefined;
|
641
|
-
}
|
642
|
-
} else { // legacy
|
643
|
-
var swap = encoding;
|
644
|
-
encoding = offset;
|
645
|
-
offset = length;
|
646
|
-
length = swap;
|
647
|
-
}
|
648
|
-
|
649
|
-
offset = +offset || 0;
|
650
|
-
var remaining = this.length - offset;
|
651
|
-
if (!length) {
|
652
|
-
length = remaining;
|
653
|
-
} else {
|
654
|
-
length = +length;
|
655
|
-
if (length > remaining) {
|
656
|
-
length = remaining;
|
657
|
-
}
|
658
|
-
}
|
659
|
-
encoding = String(encoding || 'utf8').toLowerCase();
|
660
|
-
|
661
|
-
switch (encoding) {
|
662
|
-
case 'hex':
|
663
|
-
return this.hexWrite(string, offset, length);
|
664
|
-
|
665
|
-
case 'utf8':
|
666
|
-
case 'utf-8':
|
667
|
-
return this.utf8Write(string, offset, length);
|
668
|
-
|
669
|
-
case 'ascii':
|
670
|
-
return this.asciiWrite(string, offset, length);
|
671
|
-
|
672
|
-
case 'binary':
|
673
|
-
return this.binaryWrite(string, offset, length);
|
674
|
-
|
675
|
-
case 'base64':
|
676
|
-
return this.base64Write(string, offset, length);
|
677
|
-
|
678
|
-
case 'ucs2':
|
679
|
-
case 'ucs-2':
|
680
|
-
return this.ucs2Write(string, offset, length);
|
681
|
-
|
682
|
-
default:
|
683
|
-
throw new Error('Unknown encoding');
|
684
|
-
}
|
685
|
-
};
|
686
|
-
|
687
|
-
|
688
|
-
// slice(start, end)
|
689
|
-
SlowBuffer.prototype.slice = function(start, end) {
|
690
|
-
if (end === undefined) end = this.length;
|
691
|
-
|
692
|
-
if (end > this.length) {
|
693
|
-
throw new Error('oob');
|
694
|
-
}
|
695
|
-
if (start > end) {
|
696
|
-
throw new Error('oob');
|
697
|
-
}
|
698
|
-
|
699
|
-
return new Buffer(this, end - start, +start);
|
700
|
-
};
|
701
|
-
|
702
|
-
SlowBuffer.prototype.copy = function(target, targetstart, sourcestart, sourceend) {
|
703
|
-
var temp = [];
|
704
|
-
for (var i=sourcestart; i<sourceend; i++) {
|
705
|
-
assert.ok(typeof this[i] !== 'undefined', "copying undefined buffer bytes!");
|
706
|
-
temp.push(this[i]);
|
707
|
-
}
|
708
|
-
|
709
|
-
for (var i=targetstart; i<targetstart+temp.length; i++) {
|
710
|
-
target[i] = temp[i-targetstart];
|
711
|
-
}
|
712
|
-
};
|
713
|
-
|
714
|
-
SlowBuffer.prototype.fill = function(value, start, end) {
|
715
|
-
if (end > this.length) {
|
716
|
-
throw new Error('oob');
|
717
|
-
}
|
718
|
-
if (start > end) {
|
719
|
-
throw new Error('oob');
|
720
|
-
}
|
721
|
-
|
722
|
-
for (var i = start; i < end; i++) {
|
723
|
-
this[i] = value;
|
724
|
-
}
|
725
|
-
}
|
726
|
-
|
727
|
-
function coerce(length) {
|
728
|
-
// Coerce length to a number (possibly NaN), round up
|
729
|
-
// in case it's fractional (e.g. 123.456) then do a
|
730
|
-
// double negate to coerce a NaN to 0. Easy, right?
|
731
|
-
length = ~~Math.ceil(+length);
|
732
|
-
return length < 0 ? 0 : length;
|
733
|
-
}
|
734
|
-
|
735
|
-
|
736
|
-
// Buffer
|
737
|
-
|
738
|
-
function Buffer(subject, encoding, offset) {
|
739
|
-
if (!(this instanceof Buffer)) {
|
740
|
-
return new Buffer(subject, encoding, offset);
|
741
|
-
}
|
742
|
-
|
743
|
-
var type;
|
744
|
-
|
745
|
-
// Are we slicing?
|
746
|
-
if (typeof offset === 'number') {
|
747
|
-
this.length = coerce(encoding);
|
748
|
-
this.parent = subject;
|
749
|
-
this.offset = offset;
|
750
|
-
} else {
|
751
|
-
// Find the length
|
752
|
-
switch (type = typeof subject) {
|
753
|
-
case 'number':
|
754
|
-
this.length = coerce(subject);
|
755
|
-
break;
|
756
|
-
|
757
|
-
case 'string':
|
758
|
-
this.length = Buffer.byteLength(subject, encoding);
|
759
|
-
break;
|
760
|
-
|
761
|
-
case 'object': // Assume object is an array
|
762
|
-
this.length = coerce(subject.length);
|
763
|
-
break;
|
764
|
-
|
765
|
-
default:
|
766
|
-
throw new Error('First argument needs to be a number, ' +
|
767
|
-
'array or string.');
|
768
|
-
}
|
769
|
-
|
770
|
-
if (this.length > Buffer.poolSize) {
|
771
|
-
// Big buffer, just alloc one.
|
772
|
-
this.parent = new SlowBuffer(this.length);
|
773
|
-
this.offset = 0;
|
774
|
-
|
775
|
-
} else {
|
776
|
-
// Small buffer.
|
777
|
-
if (!pool || pool.length - pool.used < this.length) allocPool();
|
778
|
-
this.parent = pool;
|
779
|
-
this.offset = pool.used;
|
780
|
-
pool.used += this.length;
|
781
|
-
}
|
782
|
-
|
783
|
-
// Treat array-ish objects as a byte array.
|
784
|
-
if (isArrayIsh(subject)) {
|
785
|
-
for (var i = 0; i < this.length; i++) {
|
786
|
-
if (subject instanceof Buffer) {
|
787
|
-
this.parent[i + this.offset] = subject.readUInt8(i);
|
788
|
-
}
|
789
|
-
else {
|
790
|
-
this.parent[i + this.offset] = subject[i];
|
791
|
-
}
|
792
|
-
}
|
793
|
-
} else if (type == 'string') {
|
794
|
-
// We are a string
|
795
|
-
this.length = this.write(subject, 0, encoding);
|
796
|
-
}
|
797
|
-
}
|
798
|
-
|
799
|
-
}
|
800
|
-
|
801
|
-
function isArrayIsh(subject) {
|
802
|
-
return Array.isArray(subject) || Buffer.isBuffer(subject) ||
|
803
|
-
subject && typeof subject === 'object' &&
|
804
|
-
typeof subject.length === 'number';
|
805
|
-
}
|
806
|
-
|
807
|
-
exports.SlowBuffer = SlowBuffer;
|
808
|
-
exports.Buffer = Buffer;
|
809
|
-
|
810
|
-
Buffer.poolSize = 8 * 1024;
|
811
|
-
var pool;
|
812
|
-
|
813
|
-
function allocPool() {
|
814
|
-
pool = new SlowBuffer(Buffer.poolSize);
|
815
|
-
pool.used = 0;
|
816
|
-
}
|
817
|
-
|
818
|
-
|
819
|
-
// Static methods
|
820
|
-
Buffer.isBuffer = function isBuffer(b) {
|
821
|
-
return b instanceof Buffer || b instanceof SlowBuffer;
|
822
|
-
};
|
823
|
-
|
824
|
-
Buffer.concat = function (list, totalLength) {
|
825
|
-
if (!Array.isArray(list)) {
|
826
|
-
throw new Error("Usage: Buffer.concat(list, [totalLength])\n \
|
827
|
-
list should be an Array.");
|
828
|
-
}
|
829
|
-
|
830
|
-
if (list.length === 0) {
|
831
|
-
return new Buffer(0);
|
832
|
-
} else if (list.length === 1) {
|
833
|
-
return list[0];
|
834
|
-
}
|
835
|
-
|
836
|
-
if (typeof totalLength !== 'number') {
|
837
|
-
totalLength = 0;
|
838
|
-
for (var i = 0; i < list.length; i++) {
|
839
|
-
var buf = list[i];
|
840
|
-
totalLength += buf.length;
|
841
|
-
}
|
842
|
-
}
|
843
|
-
|
844
|
-
var buffer = new Buffer(totalLength);
|
845
|
-
var pos = 0;
|
846
|
-
for (var i = 0; i < list.length; i++) {
|
847
|
-
var buf = list[i];
|
848
|
-
buf.copy(buffer, pos);
|
849
|
-
pos += buf.length;
|
850
|
-
}
|
851
|
-
return buffer;
|
852
|
-
};
|
853
|
-
|
854
|
-
// Inspect
|
855
|
-
Buffer.prototype.inspect = function inspect() {
|
856
|
-
var out = [],
|
857
|
-
len = this.length;
|
858
|
-
|
859
|
-
for (var i = 0; i < len; i++) {
|
860
|
-
out[i] = toHex(this.parent[i + this.offset]);
|
861
|
-
if (i == exports.INSPECT_MAX_BYTES) {
|
862
|
-
out[i + 1] = '...';
|
863
|
-
break;
|
864
|
-
}
|
865
|
-
}
|
866
|
-
|
867
|
-
return '<Buffer ' + out.join(' ') + '>';
|
868
|
-
};
|
869
|
-
|
870
|
-
|
871
|
-
Buffer.prototype.get = function get(i) {
|
872
|
-
if (i < 0 || i >= this.length) throw new Error('oob');
|
873
|
-
return this.parent[this.offset + i];
|
874
|
-
};
|
875
|
-
|
876
|
-
|
877
|
-
Buffer.prototype.set = function set(i, v) {
|
878
|
-
if (i < 0 || i >= this.length) throw new Error('oob');
|
879
|
-
return this.parent[this.offset + i] = v;
|
880
|
-
};
|
881
|
-
|
882
|
-
|
883
|
-
// write(string, offset = 0, length = buffer.length-offset, encoding = 'utf8')
|
884
|
-
Buffer.prototype.write = function(string, offset, length, encoding) {
|
885
|
-
// Support both (string, offset, length, encoding)
|
886
|
-
// and the legacy (string, encoding, offset, length)
|
887
|
-
if (isFinite(offset)) {
|
888
|
-
if (!isFinite(length)) {
|
889
|
-
encoding = length;
|
890
|
-
length = undefined;
|
891
|
-
}
|
892
|
-
} else { // legacy
|
893
|
-
var swap = encoding;
|
894
|
-
encoding = offset;
|
895
|
-
offset = length;
|
896
|
-
length = swap;
|
897
|
-
}
|
898
|
-
|
899
|
-
offset = +offset || 0;
|
900
|
-
var remaining = this.length - offset;
|
901
|
-
if (!length) {
|
902
|
-
length = remaining;
|
903
|
-
} else {
|
904
|
-
length = +length;
|
905
|
-
if (length > remaining) {
|
906
|
-
length = remaining;
|
907
|
-
}
|
908
|
-
}
|
909
|
-
encoding = String(encoding || 'utf8').toLowerCase();
|
910
|
-
|
911
|
-
var ret;
|
912
|
-
switch (encoding) {
|
913
|
-
case 'hex':
|
914
|
-
ret = this.parent.hexWrite(string, this.offset + offset, length);
|
915
|
-
break;
|
916
|
-
|
917
|
-
case 'utf8':
|
918
|
-
case 'utf-8':
|
919
|
-
ret = this.parent.utf8Write(string, this.offset + offset, length);
|
920
|
-
break;
|
921
|
-
|
922
|
-
case 'ascii':
|
923
|
-
ret = this.parent.asciiWrite(string, this.offset + offset, length);
|
924
|
-
break;
|
925
|
-
|
926
|
-
case 'binary':
|
927
|
-
ret = this.parent.binaryWrite(string, this.offset + offset, length);
|
928
|
-
break;
|
929
|
-
|
930
|
-
case 'base64':
|
931
|
-
// Warning: maxLength not taken into account in base64Write
|
932
|
-
ret = this.parent.base64Write(string, this.offset + offset, length);
|
933
|
-
break;
|
934
|
-
|
935
|
-
case 'ucs2':
|
936
|
-
case 'ucs-2':
|
937
|
-
ret = this.parent.ucs2Write(string, this.offset + offset, length);
|
938
|
-
break;
|
939
|
-
|
940
|
-
default:
|
941
|
-
throw new Error('Unknown encoding');
|
942
|
-
}
|
943
|
-
|
944
|
-
Buffer._charsWritten = SlowBuffer._charsWritten;
|
945
|
-
|
946
|
-
return ret;
|
947
|
-
};
|
948
|
-
|
949
|
-
|
950
|
-
// toString(encoding, start=0, end=buffer.length)
|
951
|
-
Buffer.prototype.toString = function(encoding, start, end) {
|
952
|
-
encoding = String(encoding || 'utf8').toLowerCase();
|
953
|
-
|
954
|
-
if (typeof start == 'undefined' || start < 0) {
|
955
|
-
start = 0;
|
956
|
-
} else if (start > this.length) {
|
957
|
-
start = this.length;
|
958
|
-
}
|
959
|
-
|
960
|
-
if (typeof end == 'undefined' || end > this.length) {
|
961
|
-
end = this.length;
|
962
|
-
} else if (end < 0) {
|
963
|
-
end = 0;
|
964
|
-
}
|
965
|
-
|
966
|
-
start = start + this.offset;
|
967
|
-
end = end + this.offset;
|
968
|
-
|
969
|
-
switch (encoding) {
|
970
|
-
case 'hex':
|
971
|
-
return this.parent.hexSlice(start, end);
|
972
|
-
|
973
|
-
case 'utf8':
|
974
|
-
case 'utf-8':
|
975
|
-
return this.parent.utf8Slice(start, end);
|
976
|
-
|
977
|
-
case 'ascii':
|
978
|
-
return this.parent.asciiSlice(start, end);
|
979
|
-
|
980
|
-
case 'binary':
|
981
|
-
return this.parent.binarySlice(start, end);
|
982
|
-
|
983
|
-
case 'base64':
|
984
|
-
return this.parent.base64Slice(start, end);
|
985
|
-
|
986
|
-
case 'ucs2':
|
987
|
-
case 'ucs-2':
|
988
|
-
return this.parent.ucs2Slice(start, end);
|
989
|
-
|
990
|
-
default:
|
991
|
-
throw new Error('Unknown encoding');
|
992
|
-
}
|
993
|
-
};
|
994
|
-
|
995
|
-
|
996
|
-
// byteLength
|
997
|
-
Buffer.byteLength = SlowBuffer.byteLength;
|
998
|
-
|
999
|
-
|
1000
|
-
// fill(value, start=0, end=buffer.length)
|
1001
|
-
Buffer.prototype.fill = function fill(value, start, end) {
|
1002
|
-
value || (value = 0);
|
1003
|
-
start || (start = 0);
|
1004
|
-
end || (end = this.length);
|
1005
|
-
|
1006
|
-
if (typeof value === 'string') {
|
1007
|
-
value = value.charCodeAt(0);
|
1008
|
-
}
|
1009
|
-
if (!(typeof value === 'number') || isNaN(value)) {
|
1010
|
-
throw new Error('value is not a number');
|
1011
|
-
}
|
1012
|
-
|
1013
|
-
if (end < start) throw new Error('end < start');
|
1014
|
-
|
1015
|
-
// Fill 0 bytes; we're done
|
1016
|
-
if (end === start) return 0;
|
1017
|
-
if (this.length == 0) return 0;
|
1018
|
-
|
1019
|
-
if (start < 0 || start >= this.length) {
|
1020
|
-
throw new Error('start out of bounds');
|
1021
|
-
}
|
1022
|
-
|
1023
|
-
if (end < 0 || end > this.length) {
|
1024
|
-
throw new Error('end out of bounds');
|
1025
|
-
}
|
1026
|
-
|
1027
|
-
return this.parent.fill(value,
|
1028
|
-
start + this.offset,
|
1029
|
-
end + this.offset);
|
1030
|
-
};
|
1031
|
-
|
1032
|
-
|
1033
|
-
// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
|
1034
|
-
Buffer.prototype.copy = function(target, target_start, start, end) {
|
1035
|
-
var source = this;
|
1036
|
-
start || (start = 0);
|
1037
|
-
end || (end = this.length);
|
1038
|
-
target_start || (target_start = 0);
|
1039
|
-
|
1040
|
-
if (end < start) throw new Error('sourceEnd < sourceStart');
|
1041
|
-
|
1042
|
-
// Copy 0 bytes; we're done
|
1043
|
-
if (end === start) return 0;
|
1044
|
-
if (target.length == 0 || source.length == 0) return 0;
|
1045
|
-
|
1046
|
-
if (target_start < 0 || target_start >= target.length) {
|
1047
|
-
throw new Error('targetStart out of bounds');
|
1048
|
-
}
|
1049
|
-
|
1050
|
-
if (start < 0 || start >= source.length) {
|
1051
|
-
throw new Error('sourceStart out of bounds');
|
1052
|
-
}
|
1053
|
-
|
1054
|
-
if (end < 0 || end > source.length) {
|
1055
|
-
throw new Error('sourceEnd out of bounds');
|
1056
|
-
}
|
1057
|
-
|
1058
|
-
// Are we oob?
|
1059
|
-
if (end > this.length) {
|
1060
|
-
end = this.length;
|
1061
|
-
}
|
1062
|
-
|
1063
|
-
if (target.length - target_start < end - start) {
|
1064
|
-
end = target.length - target_start + start;
|
1065
|
-
}
|
1066
|
-
|
1067
|
-
return this.parent.copy(target.parent,
|
1068
|
-
target_start + target.offset,
|
1069
|
-
start + this.offset,
|
1070
|
-
end + this.offset);
|
1071
|
-
};
|
1072
|
-
|
1073
|
-
|
1074
|
-
// slice(start, end)
|
1075
|
-
Buffer.prototype.slice = function(start, end) {
|
1076
|
-
if (end === undefined) end = this.length;
|
1077
|
-
if (end > this.length) throw new Error('oob');
|
1078
|
-
if (start > end) throw new Error('oob');
|
1079
|
-
|
1080
|
-
return new Buffer(this.parent, end - start, +start + this.offset);
|
1081
|
-
};
|
1082
|
-
|
1083
|
-
|
1084
|
-
// Legacy methods for backwards compatibility.
|
1085
|
-
|
1086
|
-
Buffer.prototype.utf8Slice = function(start, end) {
|
1087
|
-
return this.toString('utf8', start, end);
|
1088
|
-
};
|
1089
|
-
|
1090
|
-
Buffer.prototype.binarySlice = function(start, end) {
|
1091
|
-
return this.toString('binary', start, end);
|
1092
|
-
};
|
1093
|
-
|
1094
|
-
Buffer.prototype.asciiSlice = function(start, end) {
|
1095
|
-
return this.toString('ascii', start, end);
|
1096
|
-
};
|
1097
|
-
|
1098
|
-
Buffer.prototype.utf8Write = function(string, offset) {
|
1099
|
-
return this.write(string, offset, 'utf8');
|
1100
|
-
};
|
1101
|
-
|
1102
|
-
Buffer.prototype.binaryWrite = function(string, offset) {
|
1103
|
-
return this.write(string, offset, 'binary');
|
1104
|
-
};
|
1105
|
-
|
1106
|
-
Buffer.prototype.asciiWrite = function(string, offset) {
|
1107
|
-
return this.write(string, offset, 'ascii');
|
1108
|
-
};
|
1109
|
-
|
1110
|
-
Buffer.prototype.readUInt8 = function(offset, noAssert) {
|
1111
|
-
var buffer = this;
|
1112
|
-
|
1113
|
-
if (!noAssert) {
|
1114
|
-
assert.ok(offset !== undefined && offset !== null,
|
1115
|
-
'missing offset');
|
1116
|
-
|
1117
|
-
assert.ok(offset < buffer.length,
|
1118
|
-
'Trying to read beyond buffer length');
|
1119
|
-
}
|
1120
|
-
|
1121
|
-
if (offset >= buffer.length) return;
|
1122
|
-
|
1123
|
-
return buffer.parent[buffer.offset + offset];
|
1124
|
-
};
|
1125
|
-
|
1126
|
-
function readUInt16(buffer, offset, isBigEndian, noAssert) {
|
1127
|
-
var val = 0;
|
1128
|
-
|
1129
|
-
|
1130
|
-
if (!noAssert) {
|
1131
|
-
assert.ok(typeof (isBigEndian) === 'boolean',
|
1132
|
-
'missing or invalid endian');
|
1133
|
-
|
1134
|
-
assert.ok(offset !== undefined && offset !== null,
|
1135
|
-
'missing offset');
|
1136
|
-
|
1137
|
-
assert.ok(offset + 1 < buffer.length,
|
1138
|
-
'Trying to read beyond buffer length');
|
1139
|
-
}
|
1140
|
-
|
1141
|
-
if (offset >= buffer.length) return 0;
|
1142
|
-
|
1143
|
-
if (isBigEndian) {
|
1144
|
-
val = buffer.parent[buffer.offset + offset] << 8;
|
1145
|
-
if (offset + 1 < buffer.length) {
|
1146
|
-
val |= buffer.parent[buffer.offset + offset + 1];
|
1147
|
-
}
|
1148
|
-
} else {
|
1149
|
-
val = buffer.parent[buffer.offset + offset];
|
1150
|
-
if (offset + 1 < buffer.length) {
|
1151
|
-
val |= buffer.parent[buffer.offset + offset + 1] << 8;
|
1152
|
-
}
|
1153
|
-
}
|
1154
|
-
|
1155
|
-
return val;
|
1156
|
-
}
|
1157
|
-
|
1158
|
-
Buffer.prototype.readUInt16LE = function(offset, noAssert) {
|
1159
|
-
return readUInt16(this, offset, false, noAssert);
|
1160
|
-
};
|
1161
|
-
|
1162
|
-
Buffer.prototype.readUInt16BE = function(offset, noAssert) {
|
1163
|
-
return readUInt16(this, offset, true, noAssert);
|
1164
|
-
};
|
1165
|
-
|
1166
|
-
function readUInt32(buffer, offset, isBigEndian, noAssert) {
|
1167
|
-
var val = 0;
|
1168
|
-
|
1169
|
-
if (!noAssert) {
|
1170
|
-
assert.ok(typeof (isBigEndian) === 'boolean',
|
1171
|
-
'missing or invalid endian');
|
1172
|
-
|
1173
|
-
assert.ok(offset !== undefined && offset !== null,
|
1174
|
-
'missing offset');
|
1175
|
-
|
1176
|
-
assert.ok(offset + 3 < buffer.length,
|
1177
|
-
'Trying to read beyond buffer length');
|
1178
|
-
}
|
1179
|
-
|
1180
|
-
if (offset >= buffer.length) return 0;
|
1181
|
-
|
1182
|
-
if (isBigEndian) {
|
1183
|
-
if (offset + 1 < buffer.length)
|
1184
|
-
val = buffer.parent[buffer.offset + offset + 1] << 16;
|
1185
|
-
if (offset + 2 < buffer.length)
|
1186
|
-
val |= buffer.parent[buffer.offset + offset + 2] << 8;
|
1187
|
-
if (offset + 3 < buffer.length)
|
1188
|
-
val |= buffer.parent[buffer.offset + offset + 3];
|
1189
|
-
val = val + (buffer.parent[buffer.offset + offset] << 24 >>> 0);
|
1190
|
-
} else {
|
1191
|
-
if (offset + 2 < buffer.length)
|
1192
|
-
val = buffer.parent[buffer.offset + offset + 2] << 16;
|
1193
|
-
if (offset + 1 < buffer.length)
|
1194
|
-
val |= buffer.parent[buffer.offset + offset + 1] << 8;
|
1195
|
-
val |= buffer.parent[buffer.offset + offset];
|
1196
|
-
if (offset + 3 < buffer.length)
|
1197
|
-
val = val + (buffer.parent[buffer.offset + offset + 3] << 24 >>> 0);
|
1198
|
-
}
|
1199
|
-
|
1200
|
-
return val;
|
1201
|
-
}
|
1202
|
-
|
1203
|
-
Buffer.prototype.readUInt32LE = function(offset, noAssert) {
|
1204
|
-
return readUInt32(this, offset, false, noAssert);
|
1205
|
-
};
|
1206
|
-
|
1207
|
-
Buffer.prototype.readUInt32BE = function(offset, noAssert) {
|
1208
|
-
return readUInt32(this, offset, true, noAssert);
|
1209
|
-
};
|
1210
|
-
|
1211
|
-
|
1212
|
-
/*
|
1213
|
-
* Signed integer types, yay team! A reminder on how two's complement actually
|
1214
|
-
* works. The first bit is the signed bit, i.e. tells us whether or not the
|
1215
|
-
* number should be positive or negative. If the two's complement value is
|
1216
|
-
* positive, then we're done, as it's equivalent to the unsigned representation.
|
1217
|
-
*
|
1218
|
-
* Now if the number is positive, you're pretty much done, you can just leverage
|
1219
|
-
* the unsigned translations and return those. Unfortunately, negative numbers
|
1220
|
-
* aren't quite that straightforward.
|
1221
|
-
*
|
1222
|
-
* At first glance, one might be inclined to use the traditional formula to
|
1223
|
-
* translate binary numbers between the positive and negative values in two's
|
1224
|
-
* complement. (Though it doesn't quite work for the most negative value)
|
1225
|
-
* Mainly:
|
1226
|
-
* - invert all the bits
|
1227
|
-
* - add one to the result
|
1228
|
-
*
|
1229
|
-
* Of course, this doesn't quite work in Javascript. Take for example the value
|
1230
|
-
* of -128. This could be represented in 16 bits (big-endian) as 0xff80. But of
|
1231
|
-
* course, Javascript will do the following:
|
1232
|
-
*
|
1233
|
-
* > ~0xff80
|
1234
|
-
* -65409
|
1235
|
-
*
|
1236
|
-
* Whoh there, Javascript, that's not quite right. But wait, according to
|
1237
|
-
* Javascript that's perfectly correct. When Javascript ends up seeing the
|
1238
|
-
* constant 0xff80, it has no notion that it is actually a signed number. It
|
1239
|
-
* assumes that we've input the unsigned value 0xff80. Thus, when it does the
|
1240
|
-
* binary negation, it casts it into a signed value, (positive 0xff80). Then
|
1241
|
-
* when you perform binary negation on that, it turns it into a negative number.
|
1242
|
-
*
|
1243
|
-
* Instead, we're going to have to use the following general formula, that works
|
1244
|
-
* in a rather Javascript friendly way. I'm glad we don't support this kind of
|
1245
|
-
* weird numbering scheme in the kernel.
|
1246
|
-
*
|
1247
|
-
* (BIT-MAX - (unsigned)val + 1) * -1
|
1248
|
-
*
|
1249
|
-
* The astute observer, may think that this doesn't make sense for 8-bit numbers
|
1250
|
-
* (really it isn't necessary for them). However, when you get 16-bit numbers,
|
1251
|
-
* you do. Let's go back to our prior example and see how this will look:
|
1252
|
-
*
|
1253
|
-
* (0xffff - 0xff80 + 1) * -1
|
1254
|
-
* (0x007f + 1) * -1
|
1255
|
-
* (0x0080) * -1
|
1256
|
-
*/
|
1257
|
-
Buffer.prototype.readInt8 = function(offset, noAssert) {
|
1258
|
-
var buffer = this;
|
1259
|
-
var neg;
|
1260
|
-
|
1261
|
-
if (!noAssert) {
|
1262
|
-
assert.ok(offset !== undefined && offset !== null,
|
1263
|
-
'missing offset');
|
1264
|
-
|
1265
|
-
assert.ok(offset < buffer.length,
|
1266
|
-
'Trying to read beyond buffer length');
|
1267
|
-
}
|
1268
|
-
|
1269
|
-
if (offset >= buffer.length) return;
|
1270
|
-
|
1271
|
-
neg = buffer.parent[buffer.offset + offset] & 0x80;
|
1272
|
-
if (!neg) {
|
1273
|
-
return (buffer.parent[buffer.offset + offset]);
|
1274
|
-
}
|
1275
|
-
|
1276
|
-
return ((0xff - buffer.parent[buffer.offset + offset] + 1) * -1);
|
1277
|
-
};
|
1278
|
-
|
1279
|
-
function readInt16(buffer, offset, isBigEndian, noAssert) {
|
1280
|
-
var neg, val;
|
1281
|
-
|
1282
|
-
if (!noAssert) {
|
1283
|
-
assert.ok(typeof (isBigEndian) === 'boolean',
|
1284
|
-
'missing or invalid endian');
|
1285
|
-
|
1286
|
-
assert.ok(offset !== undefined && offset !== null,
|
1287
|
-
'missing offset');
|
1288
|
-
|
1289
|
-
assert.ok(offset + 1 < buffer.length,
|
1290
|
-
'Trying to read beyond buffer length');
|
1291
|
-
}
|
1292
|
-
|
1293
|
-
val = readUInt16(buffer, offset, isBigEndian, noAssert);
|
1294
|
-
neg = val & 0x8000;
|
1295
|
-
if (!neg) {
|
1296
|
-
return val;
|
1297
|
-
}
|
1298
|
-
|
1299
|
-
return (0xffff - val + 1) * -1;
|
1300
|
-
}
|
1301
|
-
|
1302
|
-
Buffer.prototype.readInt16LE = function(offset, noAssert) {
|
1303
|
-
return readInt16(this, offset, false, noAssert);
|
1304
|
-
};
|
1305
|
-
|
1306
|
-
Buffer.prototype.readInt16BE = function(offset, noAssert) {
|
1307
|
-
return readInt16(this, offset, true, noAssert);
|
1308
|
-
};
|
1309
|
-
|
1310
|
-
function readInt32(buffer, offset, isBigEndian, noAssert) {
|
1311
|
-
var neg, val;
|
1312
|
-
|
1313
|
-
if (!noAssert) {
|
1314
|
-
assert.ok(typeof (isBigEndian) === 'boolean',
|
1315
|
-
'missing or invalid endian');
|
1316
|
-
|
1317
|
-
assert.ok(offset !== undefined && offset !== null,
|
1318
|
-
'missing offset');
|
1319
|
-
|
1320
|
-
assert.ok(offset + 3 < buffer.length,
|
1321
|
-
'Trying to read beyond buffer length');
|
1322
|
-
}
|
1323
|
-
|
1324
|
-
val = readUInt32(buffer, offset, isBigEndian, noAssert);
|
1325
|
-
neg = val & 0x80000000;
|
1326
|
-
if (!neg) {
|
1327
|
-
return (val);
|
1328
|
-
}
|
1329
|
-
|
1330
|
-
return (0xffffffff - val + 1) * -1;
|
1331
|
-
}
|
1332
|
-
|
1333
|
-
Buffer.prototype.readInt32LE = function(offset, noAssert) {
|
1334
|
-
return readInt32(this, offset, false, noAssert);
|
1335
|
-
};
|
1336
|
-
|
1337
|
-
Buffer.prototype.readInt32BE = function(offset, noAssert) {
|
1338
|
-
return readInt32(this, offset, true, noAssert);
|
1339
|
-
};
|
1340
|
-
|
1341
|
-
function readFloat(buffer, offset, isBigEndian, noAssert) {
|
1342
|
-
if (!noAssert) {
|
1343
|
-
assert.ok(typeof (isBigEndian) === 'boolean',
|
1344
|
-
'missing or invalid endian');
|
1345
|
-
|
1346
|
-
assert.ok(offset + 3 < buffer.length,
|
1347
|
-
'Trying to read beyond buffer length');
|
1348
|
-
}
|
1349
|
-
|
1350
|
-
return require('./buffer_ieee754').readIEEE754(buffer, offset, isBigEndian,
|
1351
|
-
23, 4);
|
1352
|
-
}
|
1353
|
-
|
1354
|
-
Buffer.prototype.readFloatLE = function(offset, noAssert) {
|
1355
|
-
return readFloat(this, offset, false, noAssert);
|
1356
|
-
};
|
1357
|
-
|
1358
|
-
Buffer.prototype.readFloatBE = function(offset, noAssert) {
|
1359
|
-
return readFloat(this, offset, true, noAssert);
|
1360
|
-
};
|
1361
|
-
|
1362
|
-
function readDouble(buffer, offset, isBigEndian, noAssert) {
|
1363
|
-
if (!noAssert) {
|
1364
|
-
assert.ok(typeof (isBigEndian) === 'boolean',
|
1365
|
-
'missing or invalid endian');
|
1366
|
-
|
1367
|
-
assert.ok(offset + 7 < buffer.length,
|
1368
|
-
'Trying to read beyond buffer length');
|
1369
|
-
}
|
1370
|
-
|
1371
|
-
return require('./buffer_ieee754').readIEEE754(buffer, offset, isBigEndian,
|
1372
|
-
52, 8);
|
1373
|
-
}
|
1374
|
-
|
1375
|
-
Buffer.prototype.readDoubleLE = function(offset, noAssert) {
|
1376
|
-
return readDouble(this, offset, false, noAssert);
|
1377
|
-
};
|
1378
|
-
|
1379
|
-
Buffer.prototype.readDoubleBE = function(offset, noAssert) {
|
1380
|
-
return readDouble(this, offset, true, noAssert);
|
1381
|
-
};
|
1382
|
-
|
1383
|
-
|
1384
|
-
/*
|
1385
|
-
* We have to make sure that the value is a valid integer. This means that it is
|
1386
|
-
* non-negative. It has no fractional component and that it does not exceed the
|
1387
|
-
* maximum allowed value.
|
1388
|
-
*
|
1389
|
-
* value The number to check for validity
|
1390
|
-
*
|
1391
|
-
* max The maximum value
|
1392
|
-
*/
|
1393
|
-
function verifuint(value, max) {
|
1394
|
-
assert.ok(typeof (value) == 'number',
|
1395
|
-
'cannot write a non-number as a number');
|
1396
|
-
|
1397
|
-
assert.ok(value >= 0,
|
1398
|
-
'specified a negative value for writing an unsigned value');
|
1399
|
-
|
1400
|
-
assert.ok(value <= max, 'value is larger than maximum value for type');
|
1401
|
-
|
1402
|
-
assert.ok(Math.floor(value) === value, 'value has a fractional component');
|
1403
|
-
}
|
1404
|
-
|
1405
|
-
Buffer.prototype.writeUInt8 = function(value, offset, noAssert) {
|
1406
|
-
var buffer = this;
|
1407
|
-
|
1408
|
-
if (!noAssert) {
|
1409
|
-
assert.ok(value !== undefined && value !== null,
|
1410
|
-
'missing value');
|
1411
|
-
|
1412
|
-
assert.ok(offset !== undefined && offset !== null,
|
1413
|
-
'missing offset');
|
1414
|
-
|
1415
|
-
assert.ok(offset < buffer.length,
|
1416
|
-
'trying to write beyond buffer length');
|
1417
|
-
|
1418
|
-
verifuint(value, 0xff);
|
1419
|
-
}
|
1420
|
-
|
1421
|
-
if (offset < buffer.length) {
|
1422
|
-
buffer.parent[buffer.offset + offset] = value;
|
1423
|
-
}
|
1424
|
-
};
|
1425
|
-
|
1426
|
-
function writeUInt16(buffer, value, offset, isBigEndian, noAssert) {
|
1427
|
-
if (!noAssert) {
|
1428
|
-
assert.ok(value !== undefined && value !== null,
|
1429
|
-
'missing value');
|
1430
|
-
|
1431
|
-
assert.ok(typeof (isBigEndian) === 'boolean',
|
1432
|
-
'missing or invalid endian');
|
1433
|
-
|
1434
|
-
assert.ok(offset !== undefined && offset !== null,
|
1435
|
-
'missing offset');
|
1436
|
-
|
1437
|
-
assert.ok(offset + 1 < buffer.length,
|
1438
|
-
'trying to write beyond buffer length');
|
1439
|
-
|
1440
|
-
verifuint(value, 0xffff);
|
1441
|
-
}
|
1442
|
-
|
1443
|
-
for (var i = 0; i < Math.min(buffer.length - offset, 2); i++) {
|
1444
|
-
buffer.parent[buffer.offset + offset + i] =
|
1445
|
-
(value & (0xff << (8 * (isBigEndian ? 1 - i : i)))) >>>
|
1446
|
-
(isBigEndian ? 1 - i : i) * 8;
|
1447
|
-
}
|
1448
|
-
|
1449
|
-
}
|
1450
|
-
|
1451
|
-
Buffer.prototype.writeUInt16LE = function(value, offset, noAssert) {
|
1452
|
-
writeUInt16(this, value, offset, false, noAssert);
|
1453
|
-
};
|
1454
|
-
|
1455
|
-
Buffer.prototype.writeUInt16BE = function(value, offset, noAssert) {
|
1456
|
-
writeUInt16(this, value, offset, true, noAssert);
|
1457
|
-
};
|
1458
|
-
|
1459
|
-
function writeUInt32(buffer, value, offset, isBigEndian, noAssert) {
|
1460
|
-
if (!noAssert) {
|
1461
|
-
assert.ok(value !== undefined && value !== null,
|
1462
|
-
'missing value');
|
1463
|
-
|
1464
|
-
assert.ok(typeof (isBigEndian) === 'boolean',
|
1465
|
-
'missing or invalid endian');
|
1466
|
-
|
1467
|
-
assert.ok(offset !== undefined && offset !== null,
|
1468
|
-
'missing offset');
|
1469
|
-
|
1470
|
-
assert.ok(offset + 3 < buffer.length,
|
1471
|
-
'trying to write beyond buffer length');
|
1472
|
-
|
1473
|
-
verifuint(value, 0xffffffff);
|
1474
|
-
}
|
1475
|
-
|
1476
|
-
for (var i = 0; i < Math.min(buffer.length - offset, 4); i++) {
|
1477
|
-
buffer.parent[buffer.offset + offset + i] =
|
1478
|
-
(value >>> (isBigEndian ? 3 - i : i) * 8) & 0xff;
|
1479
|
-
}
|
1480
|
-
}
|
1481
|
-
|
1482
|
-
Buffer.prototype.writeUInt32LE = function(value, offset, noAssert) {
|
1483
|
-
writeUInt32(this, value, offset, false, noAssert);
|
1484
|
-
};
|
1485
|
-
|
1486
|
-
Buffer.prototype.writeUInt32BE = function(value, offset, noAssert) {
|
1487
|
-
writeUInt32(this, value, offset, true, noAssert);
|
1488
|
-
};
|
1489
|
-
|
1490
|
-
|
1491
|
-
/*
|
1492
|
-
* We now move onto our friends in the signed number category. Unlike unsigned
|
1493
|
-
* numbers, we're going to have to worry a bit more about how we put values into
|
1494
|
-
* arrays. Since we are only worrying about signed 32-bit values, we're in
|
1495
|
-
* slightly better shape. Unfortunately, we really can't do our favorite binary
|
1496
|
-
* & in this system. It really seems to do the wrong thing. For example:
|
1497
|
-
*
|
1498
|
-
* > -32 & 0xff
|
1499
|
-
* 224
|
1500
|
-
*
|
1501
|
-
* What's happening above is really: 0xe0 & 0xff = 0xe0. However, the results of
|
1502
|
-
* this aren't treated as a signed number. Ultimately a bad thing.
|
1503
|
-
*
|
1504
|
-
* What we're going to want to do is basically create the unsigned equivalent of
|
1505
|
-
* our representation and pass that off to the wuint* functions. To do that
|
1506
|
-
* we're going to do the following:
|
1507
|
-
*
|
1508
|
-
* - if the value is positive
|
1509
|
-
* we can pass it directly off to the equivalent wuint
|
1510
|
-
* - if the value is negative
|
1511
|
-
* we do the following computation:
|
1512
|
-
* mb + val + 1, where
|
1513
|
-
* mb is the maximum unsigned value in that byte size
|
1514
|
-
* val is the Javascript negative integer
|
1515
|
-
*
|
1516
|
-
*
|
1517
|
-
* As a concrete value, take -128. In signed 16 bits this would be 0xff80. If
|
1518
|
-
* you do out the computations:
|
1519
|
-
*
|
1520
|
-
* 0xffff - 128 + 1
|
1521
|
-
* 0xffff - 127
|
1522
|
-
* 0xff80
|
1523
|
-
*
|
1524
|
-
* You can then encode this value as the signed version. This is really rather
|
1525
|
-
* hacky, but it should work and get the job done which is our goal here.
|
1526
|
-
*/
|
1527
|
-
|
1528
|
-
/*
|
1529
|
-
* A series of checks to make sure we actually have a signed 32-bit number
|
1530
|
-
*/
|
1531
|
-
function verifsint(value, max, min) {
|
1532
|
-
assert.ok(typeof (value) == 'number',
|
1533
|
-
'cannot write a non-number as a number');
|
1534
|
-
|
1535
|
-
assert.ok(value <= max, 'value larger than maximum allowed value');
|
1536
|
-
|
1537
|
-
assert.ok(value >= min, 'value smaller than minimum allowed value');
|
1538
|
-
|
1539
|
-
assert.ok(Math.floor(value) === value, 'value has a fractional component');
|
1540
|
-
}
|
1541
|
-
|
1542
|
-
function verifIEEE754(value, max, min) {
|
1543
|
-
assert.ok(typeof (value) == 'number',
|
1544
|
-
'cannot write a non-number as a number');
|
1545
|
-
|
1546
|
-
assert.ok(value <= max, 'value larger than maximum allowed value');
|
1547
|
-
|
1548
|
-
assert.ok(value >= min, 'value smaller than minimum allowed value');
|
1549
|
-
}
|
1550
|
-
|
1551
|
-
Buffer.prototype.writeInt8 = function(value, offset, noAssert) {
|
1552
|
-
var buffer = this;
|
1553
|
-
|
1554
|
-
if (!noAssert) {
|
1555
|
-
assert.ok(value !== undefined && value !== null,
|
1556
|
-
'missing value');
|
1557
|
-
|
1558
|
-
assert.ok(offset !== undefined && offset !== null,
|
1559
|
-
'missing offset');
|
1560
|
-
|
1561
|
-
assert.ok(offset < buffer.length,
|
1562
|
-
'Trying to write beyond buffer length');
|
1563
|
-
|
1564
|
-
verifsint(value, 0x7f, -0x80);
|
1565
|
-
}
|
1566
|
-
|
1567
|
-
if (value >= 0) {
|
1568
|
-
buffer.writeUInt8(value, offset, noAssert);
|
1569
|
-
} else {
|
1570
|
-
buffer.writeUInt8(0xff + value + 1, offset, noAssert);
|
1571
|
-
}
|
1572
|
-
};
|
1573
|
-
|
1574
|
-
function writeInt16(buffer, value, offset, isBigEndian, noAssert) {
|
1575
|
-
if (!noAssert) {
|
1576
|
-
assert.ok(value !== undefined && value !== null,
|
1577
|
-
'missing value');
|
1578
|
-
|
1579
|
-
assert.ok(typeof (isBigEndian) === 'boolean',
|
1580
|
-
'missing or invalid endian');
|
1581
|
-
|
1582
|
-
assert.ok(offset !== undefined && offset !== null,
|
1583
|
-
'missing offset');
|
1584
|
-
|
1585
|
-
assert.ok(offset + 1 < buffer.length,
|
1586
|
-
'Trying to write beyond buffer length');
|
1587
|
-
|
1588
|
-
verifsint(value, 0x7fff, -0x8000);
|
1589
|
-
}
|
1590
|
-
|
1591
|
-
if (value >= 0) {
|
1592
|
-
writeUInt16(buffer, value, offset, isBigEndian, noAssert);
|
1593
|
-
} else {
|
1594
|
-
writeUInt16(buffer, 0xffff + value + 1, offset, isBigEndian, noAssert);
|
1595
|
-
}
|
1596
|
-
}
|
1597
|
-
|
1598
|
-
Buffer.prototype.writeInt16LE = function(value, offset, noAssert) {
|
1599
|
-
writeInt16(this, value, offset, false, noAssert);
|
1600
|
-
};
|
1601
|
-
|
1602
|
-
Buffer.prototype.writeInt16BE = function(value, offset, noAssert) {
|
1603
|
-
writeInt16(this, value, offset, true, noAssert);
|
1604
|
-
};
|
1605
|
-
|
1606
|
-
function writeInt32(buffer, value, offset, isBigEndian, noAssert) {
|
1607
|
-
if (!noAssert) {
|
1608
|
-
assert.ok(value !== undefined && value !== null,
|
1609
|
-
'missing value');
|
1610
|
-
|
1611
|
-
assert.ok(typeof (isBigEndian) === 'boolean',
|
1612
|
-
'missing or invalid endian');
|
1613
|
-
|
1614
|
-
assert.ok(offset !== undefined && offset !== null,
|
1615
|
-
'missing offset');
|
1616
|
-
|
1617
|
-
assert.ok(offset + 3 < buffer.length,
|
1618
|
-
'Trying to write beyond buffer length');
|
1619
|
-
|
1620
|
-
verifsint(value, 0x7fffffff, -0x80000000);
|
1621
|
-
}
|
1622
|
-
|
1623
|
-
if (value >= 0) {
|
1624
|
-
writeUInt32(buffer, value, offset, isBigEndian, noAssert);
|
1625
|
-
} else {
|
1626
|
-
writeUInt32(buffer, 0xffffffff + value + 1, offset, isBigEndian, noAssert);
|
1627
|
-
}
|
1628
|
-
}
|
1629
|
-
|
1630
|
-
Buffer.prototype.writeInt32LE = function(value, offset, noAssert) {
|
1631
|
-
writeInt32(this, value, offset, false, noAssert);
|
1632
|
-
};
|
1633
|
-
|
1634
|
-
Buffer.prototype.writeInt32BE = function(value, offset, noAssert) {
|
1635
|
-
writeInt32(this, value, offset, true, noAssert);
|
1636
|
-
};
|
1637
|
-
|
1638
|
-
function writeFloat(buffer, value, offset, isBigEndian, noAssert) {
|
1639
|
-
if (!noAssert) {
|
1640
|
-
assert.ok(value !== undefined && value !== null,
|
1641
|
-
'missing value');
|
1642
|
-
|
1643
|
-
assert.ok(typeof (isBigEndian) === 'boolean',
|
1644
|
-
'missing or invalid endian');
|
1645
|
-
|
1646
|
-
assert.ok(offset !== undefined && offset !== null,
|
1647
|
-
'missing offset');
|
1648
|
-
|
1649
|
-
assert.ok(offset + 3 < buffer.length,
|
1650
|
-
'Trying to write beyond buffer length');
|
1651
|
-
|
1652
|
-
verifIEEE754(value, 3.4028234663852886e+38, -3.4028234663852886e+38);
|
1653
|
-
}
|
1654
|
-
|
1655
|
-
require('./buffer_ieee754').writeIEEE754(buffer, value, offset, isBigEndian,
|
1656
|
-
23, 4);
|
1657
|
-
}
|
1658
|
-
|
1659
|
-
Buffer.prototype.writeFloatLE = function(value, offset, noAssert) {
|
1660
|
-
writeFloat(this, value, offset, false, noAssert);
|
1661
|
-
};
|
1662
|
-
|
1663
|
-
Buffer.prototype.writeFloatBE = function(value, offset, noAssert) {
|
1664
|
-
writeFloat(this, value, offset, true, noAssert);
|
1665
|
-
};
|
1666
|
-
|
1667
|
-
function writeDouble(buffer, value, offset, isBigEndian, noAssert) {
|
1668
|
-
if (!noAssert) {
|
1669
|
-
assert.ok(value !== undefined && value !== null,
|
1670
|
-
'missing value');
|
1671
|
-
|
1672
|
-
assert.ok(typeof (isBigEndian) === 'boolean',
|
1673
|
-
'missing or invalid endian');
|
1674
|
-
|
1675
|
-
assert.ok(offset !== undefined && offset !== null,
|
1676
|
-
'missing offset');
|
1677
|
-
|
1678
|
-
assert.ok(offset + 7 < buffer.length,
|
1679
|
-
'Trying to write beyond buffer length');
|
1680
|
-
|
1681
|
-
verifIEEE754(value, 1.7976931348623157E+308, -1.7976931348623157E+308);
|
1682
|
-
}
|
1683
|
-
|
1684
|
-
require('./buffer_ieee754').writeIEEE754(buffer, value, offset, isBigEndian,
|
1685
|
-
52, 8);
|
1686
|
-
}
|
1687
|
-
|
1688
|
-
Buffer.prototype.writeDoubleLE = function(value, offset, noAssert) {
|
1689
|
-
writeDouble(this, value, offset, false, noAssert);
|
1690
|
-
};
|
1691
|
-
|
1692
|
-
Buffer.prototype.writeDoubleBE = function(value, offset, noAssert) {
|
1693
|
-
writeDouble(this, value, offset, true, noAssert);
|
1694
|
-
};
|
1695
|
-
|
1696
|
-
SlowBuffer.prototype.readUInt8 = Buffer.prototype.readUInt8;
|
1697
|
-
SlowBuffer.prototype.readUInt16LE = Buffer.prototype.readUInt16LE;
|
1698
|
-
SlowBuffer.prototype.readUInt16BE = Buffer.prototype.readUInt16BE;
|
1699
|
-
SlowBuffer.prototype.readUInt32LE = Buffer.prototype.readUInt32LE;
|
1700
|
-
SlowBuffer.prototype.readUInt32BE = Buffer.prototype.readUInt32BE;
|
1701
|
-
SlowBuffer.prototype.readInt8 = Buffer.prototype.readInt8;
|
1702
|
-
SlowBuffer.prototype.readInt16LE = Buffer.prototype.readInt16LE;
|
1703
|
-
SlowBuffer.prototype.readInt16BE = Buffer.prototype.readInt16BE;
|
1704
|
-
SlowBuffer.prototype.readInt32LE = Buffer.prototype.readInt32LE;
|
1705
|
-
SlowBuffer.prototype.readInt32BE = Buffer.prototype.readInt32BE;
|
1706
|
-
SlowBuffer.prototype.readFloatLE = Buffer.prototype.readFloatLE;
|
1707
|
-
SlowBuffer.prototype.readFloatBE = Buffer.prototype.readFloatBE;
|
1708
|
-
SlowBuffer.prototype.readDoubleLE = Buffer.prototype.readDoubleLE;
|
1709
|
-
SlowBuffer.prototype.readDoubleBE = Buffer.prototype.readDoubleBE;
|
1710
|
-
SlowBuffer.prototype.writeUInt8 = Buffer.prototype.writeUInt8;
|
1711
|
-
SlowBuffer.prototype.writeUInt16LE = Buffer.prototype.writeUInt16LE;
|
1712
|
-
SlowBuffer.prototype.writeUInt16BE = Buffer.prototype.writeUInt16BE;
|
1713
|
-
SlowBuffer.prototype.writeUInt32LE = Buffer.prototype.writeUInt32LE;
|
1714
|
-
SlowBuffer.prototype.writeUInt32BE = Buffer.prototype.writeUInt32BE;
|
1715
|
-
SlowBuffer.prototype.writeInt8 = Buffer.prototype.writeInt8;
|
1716
|
-
SlowBuffer.prototype.writeInt16LE = Buffer.prototype.writeInt16LE;
|
1717
|
-
SlowBuffer.prototype.writeInt16BE = Buffer.prototype.writeInt16BE;
|
1718
|
-
SlowBuffer.prototype.writeInt32LE = Buffer.prototype.writeInt32LE;
|
1719
|
-
SlowBuffer.prototype.writeInt32BE = Buffer.prototype.writeInt32BE;
|
1720
|
-
SlowBuffer.prototype.writeFloatLE = Buffer.prototype.writeFloatLE;
|
1721
|
-
SlowBuffer.prototype.writeFloatBE = Buffer.prototype.writeFloatBE;
|
1722
|
-
SlowBuffer.prototype.writeDoubleLE = Buffer.prototype.writeDoubleLE;
|
1723
|
-
SlowBuffer.prototype.writeDoubleBE = Buffer.prototype.writeDoubleBE;
|
1724
|
-
|
1725
|
-
})()
|
1726
|
-
},{"assert":2,"./buffer_ieee754":1,"base64-js":5}],3:[function(require,module,exports){
|
1727
|
-
var events = require('events');
|
1728
|
-
|
1729
|
-
exports.isArray = isArray;
|
1730
|
-
exports.isDate = function(obj){return Object.prototype.toString.call(obj) === '[object Date]'};
|
1731
|
-
exports.isRegExp = function(obj){return Object.prototype.toString.call(obj) === '[object RegExp]'};
|
1732
|
-
|
1733
|
-
|
1734
|
-
exports.print = function () {};
|
1735
|
-
exports.puts = function () {};
|
1736
|
-
exports.debug = function() {};
|
1737
|
-
|
1738
|
-
exports.inspect = function(obj, showHidden, depth, colors) {
|
1739
|
-
var seen = [];
|
1740
|
-
|
1741
|
-
var stylize = function(str, styleType) {
|
1742
|
-
// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics
|
1743
|
-
var styles =
|
1744
|
-
{ 'bold' : [1, 22],
|
1745
|
-
'italic' : [3, 23],
|
1746
|
-
'underline' : [4, 24],
|
1747
|
-
'inverse' : [7, 27],
|
1748
|
-
'white' : [37, 39],
|
1749
|
-
'grey' : [90, 39],
|
1750
|
-
'black' : [30, 39],
|
1751
|
-
'blue' : [34, 39],
|
1752
|
-
'cyan' : [36, 39],
|
1753
|
-
'green' : [32, 39],
|
1754
|
-
'magenta' : [35, 39],
|
1755
|
-
'red' : [31, 39],
|
1756
|
-
'yellow' : [33, 39] };
|
1757
|
-
|
1758
|
-
var style =
|
1759
|
-
{ 'special': 'cyan',
|
1760
|
-
'number': 'blue',
|
1761
|
-
'boolean': 'yellow',
|
1762
|
-
'undefined': 'grey',
|
1763
|
-
'null': 'bold',
|
1764
|
-
'string': 'green',
|
1765
|
-
'date': 'magenta',
|
1766
|
-
// "name": intentionally not styling
|
1767
|
-
'regexp': 'red' }[styleType];
|
1768
|
-
|
1769
|
-
if (style) {
|
1770
|
-
return '\033[' + styles[style][0] + 'm' + str +
|
1771
|
-
'\033[' + styles[style][1] + 'm';
|
1772
|
-
} else {
|
1773
|
-
return str;
|
1774
|
-
}
|
1775
|
-
};
|
1776
|
-
if (! colors) {
|
1777
|
-
stylize = function(str, styleType) { return str; };
|
1778
|
-
}
|
1779
|
-
|
1780
|
-
function format(value, recurseTimes) {
|
1781
|
-
// Provide a hook for user-specified inspect functions.
|
1782
|
-
// Check that value is an object with an inspect function on it
|
1783
|
-
if (value && typeof value.inspect === 'function' &&
|
1784
|
-
// Filter out the util module, it's inspect function is special
|
1785
|
-
value !== exports &&
|
1786
|
-
// Also filter out any prototype objects using the circular check.
|
1787
|
-
!(value.constructor && value.constructor.prototype === value)) {
|
1788
|
-
return value.inspect(recurseTimes);
|
1789
|
-
}
|
1790
|
-
|
1791
|
-
// Primitive types cannot have properties
|
1792
|
-
switch (typeof value) {
|
1793
|
-
case 'undefined':
|
1794
|
-
return stylize('undefined', 'undefined');
|
1795
|
-
|
1796
|
-
case 'string':
|
1797
|
-
var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '')
|
1798
|
-
.replace(/'/g, "\\'")
|
1799
|
-
.replace(/\\"/g, '"') + '\'';
|
1800
|
-
return stylize(simple, 'string');
|
1801
|
-
|
1802
|
-
case 'number':
|
1803
|
-
return stylize('' + value, 'number');
|
1804
|
-
|
1805
|
-
case 'boolean':
|
1806
|
-
return stylize('' + value, 'boolean');
|
1807
|
-
}
|
1808
|
-
// For some reason typeof null is "object", so special case here.
|
1809
|
-
if (value === null) {
|
1810
|
-
return stylize('null', 'null');
|
1811
|
-
}
|
1812
|
-
|
1813
|
-
// Look up the keys of the object.
|
1814
|
-
var visible_keys = Object_keys(value);
|
1815
|
-
var keys = showHidden ? Object_getOwnPropertyNames(value) : visible_keys;
|
1816
|
-
|
1817
|
-
// Functions without properties can be shortcutted.
|
1818
|
-
if (typeof value === 'function' && keys.length === 0) {
|
1819
|
-
if (isRegExp(value)) {
|
1820
|
-
return stylize('' + value, 'regexp');
|
1821
|
-
} else {
|
1822
|
-
var name = value.name ? ': ' + value.name : '';
|
1823
|
-
return stylize('[Function' + name + ']', 'special');
|
1824
|
-
}
|
1825
|
-
}
|
1826
|
-
|
1827
|
-
// Dates without properties can be shortcutted
|
1828
|
-
if (isDate(value) && keys.length === 0) {
|
1829
|
-
return stylize(value.toUTCString(), 'date');
|
1830
|
-
}
|
1831
|
-
|
1832
|
-
var base, type, braces;
|
1833
|
-
// Determine the object type
|
1834
|
-
if (isArray(value)) {
|
1835
|
-
type = 'Array';
|
1836
|
-
braces = ['[', ']'];
|
1837
|
-
} else {
|
1838
|
-
type = 'Object';
|
1839
|
-
braces = ['{', '}'];
|
1840
|
-
}
|
1841
|
-
|
1842
|
-
// Make functions say that they are functions
|
1843
|
-
if (typeof value === 'function') {
|
1844
|
-
var n = value.name ? ': ' + value.name : '';
|
1845
|
-
base = (isRegExp(value)) ? ' ' + value : ' [Function' + n + ']';
|
1846
|
-
} else {
|
1847
|
-
base = '';
|
1848
|
-
}
|
1849
|
-
|
1850
|
-
// Make dates with properties first say the date
|
1851
|
-
if (isDate(value)) {
|
1852
|
-
base = ' ' + value.toUTCString();
|
1853
|
-
}
|
1854
|
-
|
1855
|
-
if (keys.length === 0) {
|
1856
|
-
return braces[0] + base + braces[1];
|
1857
|
-
}
|
1858
|
-
|
1859
|
-
if (recurseTimes < 0) {
|
1860
|
-
if (isRegExp(value)) {
|
1861
|
-
return stylize('' + value, 'regexp');
|
1862
|
-
} else {
|
1863
|
-
return stylize('[Object]', 'special');
|
1864
|
-
}
|
1865
|
-
}
|
1866
|
-
|
1867
|
-
seen.push(value);
|
1868
|
-
|
1869
|
-
var output = keys.map(function(key) {
|
1870
|
-
var name, str;
|
1871
|
-
if (value.__lookupGetter__) {
|
1872
|
-
if (value.__lookupGetter__(key)) {
|
1873
|
-
if (value.__lookupSetter__(key)) {
|
1874
|
-
str = stylize('[Getter/Setter]', 'special');
|
1875
|
-
} else {
|
1876
|
-
str = stylize('[Getter]', 'special');
|
1877
|
-
}
|
1878
|
-
} else {
|
1879
|
-
if (value.__lookupSetter__(key)) {
|
1880
|
-
str = stylize('[Setter]', 'special');
|
1881
|
-
}
|
1882
|
-
}
|
1883
|
-
}
|
1884
|
-
if (visible_keys.indexOf(key) < 0) {
|
1885
|
-
name = '[' + key + ']';
|
1886
|
-
}
|
1887
|
-
if (!str) {
|
1888
|
-
if (seen.indexOf(value[key]) < 0) {
|
1889
|
-
if (recurseTimes === null) {
|
1890
|
-
str = format(value[key]);
|
1891
|
-
} else {
|
1892
|
-
str = format(value[key], recurseTimes - 1);
|
1893
|
-
}
|
1894
|
-
if (str.indexOf('\n') > -1) {
|
1895
|
-
if (isArray(value)) {
|
1896
|
-
str = str.split('\n').map(function(line) {
|
1897
|
-
return ' ' + line;
|
1898
|
-
}).join('\n').substr(2);
|
1899
|
-
} else {
|
1900
|
-
str = '\n' + str.split('\n').map(function(line) {
|
1901
|
-
return ' ' + line;
|
1902
|
-
}).join('\n');
|
1903
|
-
}
|
1904
|
-
}
|
1905
|
-
} else {
|
1906
|
-
str = stylize('[Circular]', 'special');
|
1907
|
-
}
|
1908
|
-
}
|
1909
|
-
if (typeof name === 'undefined') {
|
1910
|
-
if (type === 'Array' && key.match(/^\d+$/)) {
|
1911
|
-
return str;
|
1912
|
-
}
|
1913
|
-
name = JSON.stringify('' + key);
|
1914
|
-
if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
|
1915
|
-
name = name.substr(1, name.length - 2);
|
1916
|
-
name = stylize(name, 'name');
|
1917
|
-
} else {
|
1918
|
-
name = name.replace(/'/g, "\\'")
|
1919
|
-
.replace(/\\"/g, '"')
|
1920
|
-
.replace(/(^"|"$)/g, "'");
|
1921
|
-
name = stylize(name, 'string');
|
1922
|
-
}
|
1923
|
-
}
|
1924
|
-
|
1925
|
-
return name + ': ' + str;
|
1926
|
-
});
|
1927
|
-
|
1928
|
-
seen.pop();
|
1929
|
-
|
1930
|
-
var numLinesEst = 0;
|
1931
|
-
var length = output.reduce(function(prev, cur) {
|
1932
|
-
numLinesEst++;
|
1933
|
-
if (cur.indexOf('\n') >= 0) numLinesEst++;
|
1934
|
-
return prev + cur.length + 1;
|
1935
|
-
}, 0);
|
1936
|
-
|
1937
|
-
if (length > 50) {
|
1938
|
-
output = braces[0] +
|
1939
|
-
(base === '' ? '' : base + '\n ') +
|
1940
|
-
' ' +
|
1941
|
-
output.join(',\n ') +
|
1942
|
-
' ' +
|
1943
|
-
braces[1];
|
1944
|
-
|
1945
|
-
} else {
|
1946
|
-
output = braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];
|
1947
|
-
}
|
1948
|
-
|
1949
|
-
return output;
|
1950
|
-
}
|
1951
|
-
return format(obj, (typeof depth === 'undefined' ? 2 : depth));
|
1952
|
-
};
|
1953
|
-
|
1954
|
-
|
1955
|
-
function isArray(ar) {
|
1956
|
-
return ar instanceof Array ||
|
1957
|
-
Array.isArray(ar) ||
|
1958
|
-
(ar && ar !== Object.prototype && isArray(ar.__proto__));
|
1959
|
-
}
|
1960
|
-
|
1961
|
-
|
1962
|
-
function isRegExp(re) {
|
1963
|
-
return re instanceof RegExp ||
|
1964
|
-
(typeof re === 'object' && Object.prototype.toString.call(re) === '[object RegExp]');
|
1965
|
-
}
|
1966
|
-
|
1967
|
-
|
1968
|
-
function isDate(d) {
|
1969
|
-
if (d instanceof Date) return true;
|
1970
|
-
if (typeof d !== 'object') return false;
|
1971
|
-
var properties = Date.prototype && Object_getOwnPropertyNames(Date.prototype);
|
1972
|
-
var proto = d.__proto__ && Object_getOwnPropertyNames(d.__proto__);
|
1973
|
-
return JSON.stringify(proto) === JSON.stringify(properties);
|
1974
|
-
}
|
1975
|
-
|
1976
|
-
function pad(n) {
|
1977
|
-
return n < 10 ? '0' + n.toString(10) : n.toString(10);
|
1978
|
-
}
|
1979
|
-
|
1980
|
-
var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',
|
1981
|
-
'Oct', 'Nov', 'Dec'];
|
1982
|
-
|
1983
|
-
// 26 Feb 16:19:34
|
1984
|
-
function timestamp() {
|
1985
|
-
var d = new Date();
|
1986
|
-
var time = [pad(d.getHours()),
|
1987
|
-
pad(d.getMinutes()),
|
1988
|
-
pad(d.getSeconds())].join(':');
|
1989
|
-
return [d.getDate(), months[d.getMonth()], time].join(' ');
|
1990
|
-
}
|
1991
|
-
|
1992
|
-
exports.log = function (msg) {};
|
1993
|
-
|
1994
|
-
exports.pump = null;
|
1995
|
-
|
1996
|
-
var Object_keys = Object.keys || function (obj) {
|
1997
|
-
var res = [];
|
1998
|
-
for (var key in obj) res.push(key);
|
1999
|
-
return res;
|
2000
|
-
};
|
2001
|
-
|
2002
|
-
var Object_getOwnPropertyNames = Object.getOwnPropertyNames || function (obj) {
|
2003
|
-
var res = [];
|
2004
|
-
for (var key in obj) {
|
2005
|
-
if (Object.hasOwnProperty.call(obj, key)) res.push(key);
|
2006
|
-
}
|
2007
|
-
return res;
|
2008
|
-
};
|
2009
|
-
|
2010
|
-
var Object_create = Object.create || function (prototype, properties) {
|
2011
|
-
// from es5-shim
|
2012
|
-
var object;
|
2013
|
-
if (prototype === null) {
|
2014
|
-
object = { '__proto__' : null };
|
2015
|
-
}
|
2016
|
-
else {
|
2017
|
-
if (typeof prototype !== 'object') {
|
2018
|
-
throw new TypeError(
|
2019
|
-
'typeof prototype[' + (typeof prototype) + '] != \'object\''
|
2020
|
-
);
|
2021
|
-
}
|
2022
|
-
var Type = function () {};
|
2023
|
-
Type.prototype = prototype;
|
2024
|
-
object = new Type();
|
2025
|
-
object.__proto__ = prototype;
|
2026
|
-
}
|
2027
|
-
if (typeof properties !== 'undefined' && Object.defineProperties) {
|
2028
|
-
Object.defineProperties(object, properties);
|
2029
|
-
}
|
2030
|
-
return object;
|
2031
|
-
};
|
2032
|
-
|
2033
|
-
exports.inherits = function(ctor, superCtor) {
|
2034
|
-
ctor.super_ = superCtor;
|
2035
|
-
ctor.prototype = Object_create(superCtor.prototype, {
|
2036
|
-
constructor: {
|
2037
|
-
value: ctor,
|
2038
|
-
enumerable: false,
|
2039
|
-
writable: true,
|
2040
|
-
configurable: true
|
2041
|
-
}
|
2042
|
-
});
|
2043
|
-
};
|
2044
|
-
|
2045
|
-
var formatRegExp = /%[sdj%]/g;
|
2046
|
-
exports.format = function(f) {
|
2047
|
-
if (typeof f !== 'string') {
|
2048
|
-
var objects = [];
|
2049
|
-
for (var i = 0; i < arguments.length; i++) {
|
2050
|
-
objects.push(exports.inspect(arguments[i]));
|
2051
|
-
}
|
2052
|
-
return objects.join(' ');
|
2053
|
-
}
|
2054
|
-
|
2055
|
-
var i = 1;
|
2056
|
-
var args = arguments;
|
2057
|
-
var len = args.length;
|
2058
|
-
var str = String(f).replace(formatRegExp, function(x) {
|
2059
|
-
if (x === '%%') return '%';
|
2060
|
-
if (i >= len) return x;
|
2061
|
-
switch (x) {
|
2062
|
-
case '%s': return String(args[i++]);
|
2063
|
-
case '%d': return Number(args[i++]);
|
2064
|
-
case '%j': return JSON.stringify(args[i++]);
|
2065
|
-
default:
|
2066
|
-
return x;
|
2067
|
-
}
|
2068
|
-
});
|
2069
|
-
for(var x = args[i]; i < len; x = args[++i]){
|
2070
|
-
if (x === null || typeof x !== 'object') {
|
2071
|
-
str += ' ' + x;
|
2072
|
-
} else {
|
2073
|
-
str += ' ' + exports.inspect(x);
|
2074
|
-
}
|
2075
|
-
}
|
2076
|
-
return str;
|
2077
|
-
};
|
2078
|
-
|
2079
|
-
},{"events":6}],5:[function(require,module,exports){
|
2080
|
-
(function (exports) {
|
2081
|
-
'use strict';
|
2082
|
-
|
2083
|
-
var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
2084
|
-
|
2085
|
-
function b64ToByteArray(b64) {
|
2086
|
-
var i, j, l, tmp, placeHolders, arr;
|
2087
|
-
|
2088
|
-
if (b64.length % 4 > 0) {
|
2089
|
-
throw 'Invalid string. Length must be a multiple of 4';
|
2090
|
-
}
|
2091
|
-
|
2092
|
-
// the number of equal signs (place holders)
|
2093
|
-
// if there are two placeholders, than the two characters before it
|
2094
|
-
// represent one byte
|
2095
|
-
// if there is only one, then the three characters before it represent 2 bytes
|
2096
|
-
// this is just a cheap hack to not do indexOf twice
|
2097
|
-
placeHolders = b64.indexOf('=');
|
2098
|
-
placeHolders = placeHolders > 0 ? b64.length - placeHolders : 0;
|
2099
|
-
|
2100
|
-
// base64 is 4/3 + up to two characters of the original data
|
2101
|
-
arr = [];//new Uint8Array(b64.length * 3 / 4 - placeHolders);
|
2102
|
-
|
2103
|
-
// if there are placeholders, only get up to the last complete 4 chars
|
2104
|
-
l = placeHolders > 0 ? b64.length - 4 : b64.length;
|
2105
|
-
|
2106
|
-
for (i = 0, j = 0; i < l; i += 4, j += 3) {
|
2107
|
-
tmp = (lookup.indexOf(b64[i]) << 18) | (lookup.indexOf(b64[i + 1]) << 12) | (lookup.indexOf(b64[i + 2]) << 6) | lookup.indexOf(b64[i + 3]);
|
2108
|
-
arr.push((tmp & 0xFF0000) >> 16);
|
2109
|
-
arr.push((tmp & 0xFF00) >> 8);
|
2110
|
-
arr.push(tmp & 0xFF);
|
2111
|
-
}
|
2112
|
-
|
2113
|
-
if (placeHolders === 2) {
|
2114
|
-
tmp = (lookup.indexOf(b64[i]) << 2) | (lookup.indexOf(b64[i + 1]) >> 4);
|
2115
|
-
arr.push(tmp & 0xFF);
|
2116
|
-
} else if (placeHolders === 1) {
|
2117
|
-
tmp = (lookup.indexOf(b64[i]) << 10) | (lookup.indexOf(b64[i + 1]) << 4) | (lookup.indexOf(b64[i + 2]) >> 2);
|
2118
|
-
arr.push((tmp >> 8) & 0xFF);
|
2119
|
-
arr.push(tmp & 0xFF);
|
2120
|
-
}
|
2121
|
-
|
2122
|
-
return arr;
|
2123
|
-
}
|
2124
|
-
|
2125
|
-
function uint8ToBase64(uint8) {
|
2126
|
-
var i,
|
2127
|
-
extraBytes = uint8.length % 3, // if we have 1 byte left, pad 2 bytes
|
2128
|
-
output = "",
|
2129
|
-
temp, length;
|
2130
|
-
|
2131
|
-
function tripletToBase64 (num) {
|
2132
|
-
return lookup[num >> 18 & 0x3F] + lookup[num >> 12 & 0x3F] + lookup[num >> 6 & 0x3F] + lookup[num & 0x3F];
|
2133
|
-
};
|
2134
|
-
|
2135
|
-
// go through the array every three bytes, we'll deal with trailing stuff later
|
2136
|
-
for (i = 0, length = uint8.length - extraBytes; i < length; i += 3) {
|
2137
|
-
temp = (uint8[i] << 16) + (uint8[i + 1] << 8) + (uint8[i + 2]);
|
2138
|
-
output += tripletToBase64(temp);
|
2139
|
-
}
|
2140
|
-
|
2141
|
-
// pad the end with zeros, but make sure to not forget the extra bytes
|
2142
|
-
switch (extraBytes) {
|
2143
|
-
case 1:
|
2144
|
-
temp = uint8[uint8.length - 1];
|
2145
|
-
output += lookup[temp >> 2];
|
2146
|
-
output += lookup[(temp << 4) & 0x3F];
|
2147
|
-
output += '==';
|
2148
|
-
break;
|
2149
|
-
case 2:
|
2150
|
-
temp = (uint8[uint8.length - 2] << 8) + (uint8[uint8.length - 1]);
|
2151
|
-
output += lookup[temp >> 10];
|
2152
|
-
output += lookup[(temp >> 4) & 0x3F];
|
2153
|
-
output += lookup[(temp << 2) & 0x3F];
|
2154
|
-
output += '=';
|
2155
|
-
break;
|
2156
|
-
}
|
2157
|
-
|
2158
|
-
return output;
|
2159
|
-
}
|
2160
|
-
|
2161
|
-
module.exports.toByteArray = b64ToByteArray;
|
2162
|
-
module.exports.fromByteArray = uint8ToBase64;
|
2163
|
-
}());
|
2164
|
-
|
2165
|
-
},{}],7:[function(require,module,exports){
|
2166
|
-
exports.readIEEE754 = function(buffer, offset, isBE, mLen, nBytes) {
|
2167
|
-
var e, m,
|
2168
|
-
eLen = nBytes * 8 - mLen - 1,
|
2169
|
-
eMax = (1 << eLen) - 1,
|
2170
|
-
eBias = eMax >> 1,
|
2171
|
-
nBits = -7,
|
2172
|
-
i = isBE ? 0 : (nBytes - 1),
|
2173
|
-
d = isBE ? 1 : -1,
|
2174
|
-
s = buffer[offset + i];
|
2175
|
-
|
2176
|
-
i += d;
|
2177
|
-
|
2178
|
-
e = s & ((1 << (-nBits)) - 1);
|
2179
|
-
s >>= (-nBits);
|
2180
|
-
nBits += eLen;
|
2181
|
-
for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8);
|
2182
|
-
|
2183
|
-
m = e & ((1 << (-nBits)) - 1);
|
2184
|
-
e >>= (-nBits);
|
2185
|
-
nBits += mLen;
|
2186
|
-
for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8);
|
2187
|
-
|
2188
|
-
if (e === 0) {
|
2189
|
-
e = 1 - eBias;
|
2190
|
-
} else if (e === eMax) {
|
2191
|
-
return m ? NaN : ((s ? -1 : 1) * Infinity);
|
2192
|
-
} else {
|
2193
|
-
m = m + Math.pow(2, mLen);
|
2194
|
-
e = e - eBias;
|
2195
|
-
}
|
2196
|
-
return (s ? -1 : 1) * m * Math.pow(2, e - mLen);
|
2197
|
-
};
|
2198
|
-
|
2199
|
-
exports.writeIEEE754 = function(buffer, value, offset, isBE, mLen, nBytes) {
|
2200
|
-
var e, m, c,
|
2201
|
-
eLen = nBytes * 8 - mLen - 1,
|
2202
|
-
eMax = (1 << eLen) - 1,
|
2203
|
-
eBias = eMax >> 1,
|
2204
|
-
rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0),
|
2205
|
-
i = isBE ? (nBytes - 1) : 0,
|
2206
|
-
d = isBE ? -1 : 1,
|
2207
|
-
s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0;
|
2208
|
-
|
2209
|
-
value = Math.abs(value);
|
2210
|
-
|
2211
|
-
if (isNaN(value) || value === Infinity) {
|
2212
|
-
m = isNaN(value) ? 1 : 0;
|
2213
|
-
e = eMax;
|
2214
|
-
} else {
|
2215
|
-
e = Math.floor(Math.log(value) / Math.LN2);
|
2216
|
-
if (value * (c = Math.pow(2, -e)) < 1) {
|
2217
|
-
e--;
|
2218
|
-
c *= 2;
|
2219
|
-
}
|
2220
|
-
if (e + eBias >= 1) {
|
2221
|
-
value += rt / c;
|
2222
|
-
} else {
|
2223
|
-
value += rt * Math.pow(2, 1 - eBias);
|
2224
|
-
}
|
2225
|
-
if (value * c >= 2) {
|
2226
|
-
e++;
|
2227
|
-
c /= 2;
|
2228
|
-
}
|
2229
|
-
|
2230
|
-
if (e + eBias >= eMax) {
|
2231
|
-
m = 0;
|
2232
|
-
e = eMax;
|
2233
|
-
} else if (e + eBias >= 1) {
|
2234
|
-
m = (value * c - 1) * Math.pow(2, mLen);
|
2235
|
-
e = e + eBias;
|
2236
|
-
} else {
|
2237
|
-
m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen);
|
2238
|
-
e = 0;
|
2239
|
-
}
|
2240
|
-
}
|
2241
|
-
|
2242
|
-
for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8);
|
2243
|
-
|
2244
|
-
e = (e << mLen) | m;
|
2245
|
-
eLen += mLen;
|
2246
|
-
for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8);
|
2247
|
-
|
2248
|
-
buffer[offset + i - d] |= s * 128;
|
2249
|
-
};
|
2250
|
-
|
2251
|
-
},{}],8:[function(require,module,exports){
|
2252
|
-
// shim for using process in browser
|
2253
|
-
|
2254
|
-
var process = module.exports = {};
|
2255
|
-
|
2256
|
-
process.nextTick = (function () {
|
2257
|
-
var canSetImmediate = typeof window !== 'undefined'
|
2258
|
-
&& window.setImmediate;
|
2259
|
-
var canPost = typeof window !== 'undefined'
|
2260
|
-
&& window.postMessage && window.addEventListener
|
2261
|
-
;
|
2262
|
-
|
2263
|
-
if (canSetImmediate) {
|
2264
|
-
return function (f) { return window.setImmediate(f) };
|
2265
|
-
}
|
2266
|
-
|
2267
|
-
if (canPost) {
|
2268
|
-
var queue = [];
|
2269
|
-
window.addEventListener('message', function (ev) {
|
2270
|
-
if (ev.source === window && ev.data === 'process-tick') {
|
2271
|
-
ev.stopPropagation();
|
2272
|
-
if (queue.length > 0) {
|
2273
|
-
var fn = queue.shift();
|
2274
|
-
fn();
|
2275
|
-
}
|
2276
|
-
}
|
2277
|
-
}, true);
|
2278
|
-
|
2279
|
-
return function nextTick(fn) {
|
2280
|
-
queue.push(fn);
|
2281
|
-
window.postMessage('process-tick', '*');
|
2282
|
-
};
|
2283
|
-
}
|
2284
|
-
|
2285
|
-
return function nextTick(fn) {
|
2286
|
-
setTimeout(fn, 0);
|
2287
|
-
};
|
2288
|
-
})();
|
2289
|
-
|
2290
|
-
process.title = 'browser';
|
2291
|
-
process.browser = true;
|
2292
|
-
process.env = {};
|
2293
|
-
process.argv = [];
|
2294
|
-
|
2295
|
-
process.binding = function (name) {
|
2296
|
-
throw new Error('process.binding is not supported');
|
2297
|
-
}
|
2298
|
-
|
2299
|
-
// TODO(shtylman)
|
2300
|
-
process.cwd = function () { return '/' };
|
2301
|
-
process.chdir = function (dir) {
|
2302
|
-
throw new Error('process.chdir is not supported');
|
2303
|
-
};
|
2304
|
-
|
2305
|
-
},{}],6:[function(require,module,exports){
|
2306
|
-
(function(process){if (!process.EventEmitter) process.EventEmitter = function () {};
|
2307
|
-
|
2308
|
-
var EventEmitter = exports.EventEmitter = process.EventEmitter;
|
2309
|
-
var isArray = typeof Array.isArray === 'function'
|
2310
|
-
? Array.isArray
|
2311
|
-
: function (xs) {
|
2312
|
-
return Object.prototype.toString.call(xs) === '[object Array]'
|
2313
|
-
}
|
2314
|
-
;
|
2315
|
-
function indexOf (xs, x) {
|
2316
|
-
if (xs.indexOf) return xs.indexOf(x);
|
2317
|
-
for (var i = 0; i < xs.length; i++) {
|
2318
|
-
if (x === xs[i]) return i;
|
2319
|
-
}
|
2320
|
-
return -1;
|
2321
|
-
}
|
2322
|
-
|
2323
|
-
// By default EventEmitters will print a warning if more than
|
2324
|
-
// 10 listeners are added to it. This is a useful default which
|
2325
|
-
// helps finding memory leaks.
|
2326
|
-
//
|
2327
|
-
// Obviously not all Emitters should be limited to 10. This function allows
|
2328
|
-
// that to be increased. Set to zero for unlimited.
|
2329
|
-
var defaultMaxListeners = 10;
|
2330
|
-
EventEmitter.prototype.setMaxListeners = function(n) {
|
2331
|
-
if (!this._events) this._events = {};
|
2332
|
-
this._events.maxListeners = n;
|
2333
|
-
};
|
2334
|
-
|
2335
|
-
|
2336
|
-
EventEmitter.prototype.emit = function(type) {
|
2337
|
-
// If there is no 'error' event listener then throw.
|
2338
|
-
if (type === 'error') {
|
2339
|
-
if (!this._events || !this._events.error ||
|
2340
|
-
(isArray(this._events.error) && !this._events.error.length))
|
2341
|
-
{
|
2342
|
-
if (arguments[1] instanceof Error) {
|
2343
|
-
throw arguments[1]; // Unhandled 'error' event
|
2344
|
-
} else {
|
2345
|
-
throw new Error("Uncaught, unspecified 'error' event.");
|
2346
|
-
}
|
2347
|
-
return false;
|
2348
|
-
}
|
2349
|
-
}
|
2350
|
-
|
2351
|
-
if (!this._events) return false;
|
2352
|
-
var handler = this._events[type];
|
2353
|
-
if (!handler) return false;
|
2354
|
-
|
2355
|
-
if (typeof handler == 'function') {
|
2356
|
-
switch (arguments.length) {
|
2357
|
-
// fast cases
|
2358
|
-
case 1:
|
2359
|
-
handler.call(this);
|
2360
|
-
break;
|
2361
|
-
case 2:
|
2362
|
-
handler.call(this, arguments[1]);
|
2363
|
-
break;
|
2364
|
-
case 3:
|
2365
|
-
handler.call(this, arguments[1], arguments[2]);
|
2366
|
-
break;
|
2367
|
-
// slower
|
2368
|
-
default:
|
2369
|
-
var args = Array.prototype.slice.call(arguments, 1);
|
2370
|
-
handler.apply(this, args);
|
2371
|
-
}
|
2372
|
-
return true;
|
2373
|
-
|
2374
|
-
} else if (isArray(handler)) {
|
2375
|
-
var args = Array.prototype.slice.call(arguments, 1);
|
2376
|
-
|
2377
|
-
var listeners = handler.slice();
|
2378
|
-
for (var i = 0, l = listeners.length; i < l; i++) {
|
2379
|
-
listeners[i].apply(this, args);
|
2380
|
-
}
|
2381
|
-
return true;
|
2382
|
-
|
2383
|
-
} else {
|
2384
|
-
return false;
|
2385
|
-
}
|
2386
|
-
};
|
2387
|
-
|
2388
|
-
// EventEmitter is defined in src/node_events.cc
|
2389
|
-
// EventEmitter.prototype.emit() is also defined there.
|
2390
|
-
EventEmitter.prototype.addListener = function(type, listener) {
|
2391
|
-
if ('function' !== typeof listener) {
|
2392
|
-
throw new Error('addListener only takes instances of Function');
|
2393
|
-
}
|
2394
|
-
|
2395
|
-
if (!this._events) this._events = {};
|
2396
|
-
|
2397
|
-
// To avoid recursion in the case that type == "newListeners"! Before
|
2398
|
-
// adding it to the listeners, first emit "newListeners".
|
2399
|
-
this.emit('newListener', type, listener);
|
2400
|
-
|
2401
|
-
if (!this._events[type]) {
|
2402
|
-
// Optimize the case of one listener. Don't need the extra array object.
|
2403
|
-
this._events[type] = listener;
|
2404
|
-
} else if (isArray(this._events[type])) {
|
2405
|
-
|
2406
|
-
// Check for listener leak
|
2407
|
-
if (!this._events[type].warned) {
|
2408
|
-
var m;
|
2409
|
-
if (this._events.maxListeners !== undefined) {
|
2410
|
-
m = this._events.maxListeners;
|
2411
|
-
} else {
|
2412
|
-
m = defaultMaxListeners;
|
2413
|
-
}
|
2414
|
-
|
2415
|
-
if (m && m > 0 && this._events[type].length > m) {
|
2416
|
-
this._events[type].warned = true;
|
2417
|
-
console.error('(node) warning: possible EventEmitter memory ' +
|
2418
|
-
'leak detected. %d listeners added. ' +
|
2419
|
-
'Use emitter.setMaxListeners() to increase limit.',
|
2420
|
-
this._events[type].length);
|
2421
|
-
console.trace();
|
2422
|
-
}
|
2423
|
-
}
|
2424
|
-
|
2425
|
-
// If we've already got an array, just append.
|
2426
|
-
this._events[type].push(listener);
|
2427
|
-
} else {
|
2428
|
-
// Adding the second element, need to change to array.
|
2429
|
-
this._events[type] = [this._events[type], listener];
|
2430
|
-
}
|
2431
|
-
|
2432
|
-
return this;
|
2433
|
-
};
|
2434
|
-
|
2435
|
-
EventEmitter.prototype.on = EventEmitter.prototype.addListener;
|
2436
|
-
|
2437
|
-
EventEmitter.prototype.once = function(type, listener) {
|
2438
|
-
var self = this;
|
2439
|
-
self.on(type, function g() {
|
2440
|
-
self.removeListener(type, g);
|
2441
|
-
listener.apply(this, arguments);
|
2442
|
-
});
|
2443
|
-
|
2444
|
-
return this;
|
2445
|
-
};
|
2446
|
-
|
2447
|
-
EventEmitter.prototype.removeListener = function(type, listener) {
|
2448
|
-
if ('function' !== typeof listener) {
|
2449
|
-
throw new Error('removeListener only takes instances of Function');
|
2450
|
-
}
|
2451
|
-
|
2452
|
-
// does not use listeners(), so no side effect of creating _events[type]
|
2453
|
-
if (!this._events || !this._events[type]) return this;
|
2454
|
-
|
2455
|
-
var list = this._events[type];
|
2456
|
-
|
2457
|
-
if (isArray(list)) {
|
2458
|
-
var i = indexOf(list, listener);
|
2459
|
-
if (i < 0) return this;
|
2460
|
-
list.splice(i, 1);
|
2461
|
-
if (list.length == 0)
|
2462
|
-
delete this._events[type];
|
2463
|
-
} else if (this._events[type] === listener) {
|
2464
|
-
delete this._events[type];
|
2465
|
-
}
|
2466
|
-
|
2467
|
-
return this;
|
2468
|
-
};
|
2469
|
-
|
2470
|
-
EventEmitter.prototype.removeAllListeners = function(type) {
|
2471
|
-
if (arguments.length === 0) {
|
2472
|
-
this._events = {};
|
2473
|
-
return this;
|
2474
|
-
}
|
2475
|
-
|
2476
|
-
// does not use listeners(), so no side effect of creating _events[type]
|
2477
|
-
if (type && this._events && this._events[type]) this._events[type] = null;
|
2478
|
-
return this;
|
2479
|
-
};
|
2480
|
-
|
2481
|
-
EventEmitter.prototype.listeners = function(type) {
|
2482
|
-
if (!this._events) this._events = {};
|
2483
|
-
if (!this._events[type]) this._events[type] = [];
|
2484
|
-
if (!isArray(this._events[type])) {
|
2485
|
-
this._events[type] = [this._events[type]];
|
2486
|
-
}
|
2487
|
-
return this._events[type];
|
2488
|
-
};
|
2489
|
-
|
2490
|
-
})(require("__browserify_process"))
|
2491
|
-
},{"__browserify_process":8}],4:[function(require,module,exports){
|
2492
|
-
(function(){function SlowBuffer (size) {
|
2493
|
-
this.length = size;
|
2494
|
-
};
|
2495
|
-
|
2496
|
-
var assert = require('assert');
|
2497
|
-
|
2498
|
-
exports.INSPECT_MAX_BYTES = 50;
|
2499
|
-
|
2500
|
-
|
2501
|
-
function toHex(n) {
|
2502
|
-
if (n < 16) return '0' + n.toString(16);
|
2503
|
-
return n.toString(16);
|
2504
|
-
}
|
2505
|
-
|
2506
|
-
function utf8ToBytes(str) {
|
2507
|
-
var byteArray = [];
|
2508
|
-
for (var i = 0; i < str.length; i++)
|
2509
|
-
if (str.charCodeAt(i) <= 0x7F)
|
2510
|
-
byteArray.push(str.charCodeAt(i));
|
2511
|
-
else {
|
2512
|
-
var h = encodeURIComponent(str.charAt(i)).substr(1).split('%');
|
2513
|
-
for (var j = 0; j < h.length; j++)
|
2514
|
-
byteArray.push(parseInt(h[j], 16));
|
2515
|
-
}
|
2516
|
-
|
2517
|
-
return byteArray;
|
2518
|
-
}
|
2519
|
-
|
2520
|
-
function asciiToBytes(str) {
|
2521
|
-
var byteArray = []
|
2522
|
-
for (var i = 0; i < str.length; i++ )
|
2523
|
-
// Node's code seems to be doing this and not & 0x7F..
|
2524
|
-
byteArray.push( str.charCodeAt(i) & 0xFF );
|
2525
|
-
|
2526
|
-
return byteArray;
|
2527
|
-
}
|
2528
|
-
|
2529
|
-
function base64ToBytes(str) {
|
2530
|
-
return require("base64-js").toByteArray(str);
|
2531
|
-
}
|
2532
|
-
|
2533
|
-
SlowBuffer.byteLength = function (str, encoding) {
|
2534
|
-
switch (encoding || "utf8") {
|
2535
|
-
case 'hex':
|
2536
|
-
return str.length / 2;
|
2537
|
-
|
2538
|
-
case 'utf8':
|
2539
|
-
case 'utf-8':
|
2540
|
-
return utf8ToBytes(str).length;
|
2541
|
-
|
2542
|
-
case 'ascii':
|
2543
|
-
return str.length;
|
2544
|
-
|
2545
|
-
case 'base64':
|
2546
|
-
return base64ToBytes(str).length;
|
2547
|
-
|
2548
|
-
default:
|
2549
|
-
throw new Error('Unknown encoding');
|
2550
|
-
}
|
2551
|
-
};
|
2552
|
-
|
2553
|
-
function blitBuffer(src, dst, offset, length) {
|
2554
|
-
var pos, i = 0;
|
2555
|
-
while (i < length) {
|
2556
|
-
if ((i+offset >= dst.length) || (i >= src.length))
|
2557
|
-
break;
|
2558
|
-
|
2559
|
-
dst[i + offset] = src[i];
|
2560
|
-
i++;
|
2561
|
-
}
|
2562
|
-
return i;
|
2563
|
-
}
|
2564
|
-
|
2565
|
-
SlowBuffer.prototype.utf8Write = function (string, offset, length) {
|
2566
|
-
var bytes, pos;
|
2567
|
-
return SlowBuffer._charsWritten = blitBuffer(utf8ToBytes(string), this, offset, length);
|
2568
|
-
};
|
2569
|
-
|
2570
|
-
SlowBuffer.prototype.asciiWrite = function (string, offset, length) {
|
2571
|
-
var bytes, pos;
|
2572
|
-
return SlowBuffer._charsWritten = blitBuffer(asciiToBytes(string), this, offset, length);
|
2573
|
-
};
|
2574
|
-
|
2575
|
-
SlowBuffer.prototype.base64Write = function (string, offset, length) {
|
2576
|
-
var bytes, pos;
|
2577
|
-
return SlowBuffer._charsWritten = blitBuffer(base64ToBytes(string), this, offset, length);
|
2578
|
-
};
|
2579
|
-
|
2580
|
-
SlowBuffer.prototype.base64Slice = function (start, end) {
|
2581
|
-
var bytes = Array.prototype.slice.apply(this, arguments)
|
2582
|
-
return require("base64-js").fromByteArray(bytes);
|
2583
|
-
}
|
2584
|
-
|
2585
|
-
function decodeUtf8Char(str) {
|
2586
|
-
try {
|
2587
|
-
return decodeURIComponent(str);
|
2588
|
-
} catch (err) {
|
2589
|
-
return String.fromCharCode(0xFFFD); // UTF 8 invalid char
|
2590
|
-
}
|
2591
|
-
}
|
2592
|
-
|
2593
|
-
SlowBuffer.prototype.utf8Slice = function () {
|
2594
|
-
var bytes = Array.prototype.slice.apply(this, arguments);
|
2595
|
-
var res = "";
|
2596
|
-
var tmp = "";
|
2597
|
-
var i = 0;
|
2598
|
-
while (i < bytes.length) {
|
2599
|
-
if (bytes[i] <= 0x7F) {
|
2600
|
-
res += decodeUtf8Char(tmp) + String.fromCharCode(bytes[i]);
|
2601
|
-
tmp = "";
|
2602
|
-
} else
|
2603
|
-
tmp += "%" + bytes[i].toString(16);
|
2604
|
-
|
2605
|
-
i++;
|
2606
|
-
}
|
2607
|
-
|
2608
|
-
return res + decodeUtf8Char(tmp);
|
2609
|
-
}
|
2610
|
-
|
2611
|
-
SlowBuffer.prototype.asciiSlice = function () {
|
2612
|
-
var bytes = Array.prototype.slice.apply(this, arguments);
|
2613
|
-
var ret = "";
|
2614
|
-
for (var i = 0; i < bytes.length; i++)
|
2615
|
-
ret += String.fromCharCode(bytes[i]);
|
2616
|
-
return ret;
|
2617
|
-
}
|
2618
|
-
|
2619
|
-
SlowBuffer.prototype.inspect = function() {
|
2620
|
-
var out = [],
|
2621
|
-
len = this.length;
|
2622
|
-
for (var i = 0; i < len; i++) {
|
2623
|
-
out[i] = toHex(this[i]);
|
2624
|
-
if (i == exports.INSPECT_MAX_BYTES) {
|
2625
|
-
out[i + 1] = '...';
|
2626
|
-
break;
|
2627
|
-
}
|
2628
|
-
}
|
2629
|
-
return '<SlowBuffer ' + out.join(' ') + '>';
|
2630
|
-
};
|
2631
|
-
|
2632
|
-
|
2633
|
-
SlowBuffer.prototype.hexSlice = function(start, end) {
|
2634
|
-
var len = this.length;
|
2635
|
-
|
2636
|
-
if (!start || start < 0) start = 0;
|
2637
|
-
if (!end || end < 0 || end > len) end = len;
|
2638
|
-
|
2639
|
-
var out = '';
|
2640
|
-
for (var i = start; i < end; i++) {
|
2641
|
-
out += toHex(this[i]);
|
2642
|
-
}
|
2643
|
-
return out;
|
2644
|
-
};
|
2645
|
-
|
2646
|
-
|
2647
|
-
SlowBuffer.prototype.toString = function(encoding, start, end) {
|
2648
|
-
encoding = String(encoding || 'utf8').toLowerCase();
|
2649
|
-
start = +start || 0;
|
2650
|
-
if (typeof end == 'undefined') end = this.length;
|
2651
|
-
|
2652
|
-
// Fastpath empty strings
|
2653
|
-
if (+end == start) {
|
2654
|
-
return '';
|
2655
|
-
}
|
2656
|
-
|
2657
|
-
switch (encoding) {
|
2658
|
-
case 'hex':
|
2659
|
-
return this.hexSlice(start, end);
|
2660
|
-
|
2661
|
-
case 'utf8':
|
2662
|
-
case 'utf-8':
|
2663
|
-
return this.utf8Slice(start, end);
|
2664
|
-
|
2665
|
-
case 'ascii':
|
2666
|
-
return this.asciiSlice(start, end);
|
2667
|
-
|
2668
|
-
case 'binary':
|
2669
|
-
return this.binarySlice(start, end);
|
2670
|
-
|
2671
|
-
case 'base64':
|
2672
|
-
return this.base64Slice(start, end);
|
2673
|
-
|
2674
|
-
case 'ucs2':
|
2675
|
-
case 'ucs-2':
|
2676
|
-
return this.ucs2Slice(start, end);
|
2677
|
-
|
2678
|
-
default:
|
2679
|
-
throw new Error('Unknown encoding');
|
2680
|
-
}
|
2681
|
-
};
|
2682
|
-
|
2683
|
-
|
2684
|
-
SlowBuffer.prototype.hexWrite = function(string, offset, length) {
|
2685
|
-
offset = +offset || 0;
|
2686
|
-
var remaining = this.length - offset;
|
2687
|
-
if (!length) {
|
2688
|
-
length = remaining;
|
2689
|
-
} else {
|
2690
|
-
length = +length;
|
2691
|
-
if (length > remaining) {
|
2692
|
-
length = remaining;
|
2693
|
-
}
|
2694
|
-
}
|
2695
|
-
|
2696
|
-
// must be an even number of digits
|
2697
|
-
var strLen = string.length;
|
2698
|
-
if (strLen % 2) {
|
2699
|
-
throw new Error('Invalid hex string');
|
2700
|
-
}
|
2701
|
-
if (length > strLen / 2) {
|
2702
|
-
length = strLen / 2;
|
2703
|
-
}
|
2704
|
-
for (var i = 0; i < length; i++) {
|
2705
|
-
var byte = parseInt(string.substr(i * 2, 2), 16);
|
2706
|
-
if (isNaN(byte)) throw new Error('Invalid hex string');
|
2707
|
-
this[offset + i] = byte;
|
2708
|
-
}
|
2709
|
-
SlowBuffer._charsWritten = i * 2;
|
2710
|
-
return i;
|
2711
|
-
};
|
2712
|
-
|
2713
|
-
|
2714
|
-
SlowBuffer.prototype.write = function(string, offset, length, encoding) {
|
2715
|
-
// Support both (string, offset, length, encoding)
|
2716
|
-
// and the legacy (string, encoding, offset, length)
|
2717
|
-
if (isFinite(offset)) {
|
2718
|
-
if (!isFinite(length)) {
|
2719
|
-
encoding = length;
|
2720
|
-
length = undefined;
|
2721
|
-
}
|
2722
|
-
} else { // legacy
|
2723
|
-
var swap = encoding;
|
2724
|
-
encoding = offset;
|
2725
|
-
offset = length;
|
2726
|
-
length = swap;
|
2727
|
-
}
|
2728
|
-
|
2729
|
-
offset = +offset || 0;
|
2730
|
-
var remaining = this.length - offset;
|
2731
|
-
if (!length) {
|
2732
|
-
length = remaining;
|
2733
|
-
} else {
|
2734
|
-
length = +length;
|
2735
|
-
if (length > remaining) {
|
2736
|
-
length = remaining;
|
2737
|
-
}
|
2738
|
-
}
|
2739
|
-
encoding = String(encoding || 'utf8').toLowerCase();
|
2740
|
-
|
2741
|
-
switch (encoding) {
|
2742
|
-
case 'hex':
|
2743
|
-
return this.hexWrite(string, offset, length);
|
2744
|
-
|
2745
|
-
case 'utf8':
|
2746
|
-
case 'utf-8':
|
2747
|
-
return this.utf8Write(string, offset, length);
|
2748
|
-
|
2749
|
-
case 'ascii':
|
2750
|
-
return this.asciiWrite(string, offset, length);
|
2751
|
-
|
2752
|
-
case 'binary':
|
2753
|
-
return this.binaryWrite(string, offset, length);
|
2754
|
-
|
2755
|
-
case 'base64':
|
2756
|
-
return this.base64Write(string, offset, length);
|
2757
|
-
|
2758
|
-
case 'ucs2':
|
2759
|
-
case 'ucs-2':
|
2760
|
-
return this.ucs2Write(string, offset, length);
|
2761
|
-
|
2762
|
-
default:
|
2763
|
-
throw new Error('Unknown encoding');
|
2764
|
-
}
|
2765
|
-
};
|
2766
|
-
|
2767
|
-
|
2768
|
-
// slice(start, end)
|
2769
|
-
SlowBuffer.prototype.slice = function(start, end) {
|
2770
|
-
if (end === undefined) end = this.length;
|
2771
|
-
|
2772
|
-
if (end > this.length) {
|
2773
|
-
throw new Error('oob');
|
2774
|
-
}
|
2775
|
-
if (start > end) {
|
2776
|
-
throw new Error('oob');
|
2777
|
-
}
|
2778
|
-
|
2779
|
-
return new Buffer(this, end - start, +start);
|
2780
|
-
};
|
2781
|
-
|
2782
|
-
SlowBuffer.prototype.copy = function(target, targetstart, sourcestart, sourceend) {
|
2783
|
-
var temp = [];
|
2784
|
-
for (var i=sourcestart; i<sourceend; i++) {
|
2785
|
-
assert.ok(typeof this[i] !== 'undefined', "copying undefined buffer bytes!");
|
2786
|
-
temp.push(this[i]);
|
2787
|
-
}
|
2788
|
-
|
2789
|
-
for (var i=targetstart; i<targetstart+temp.length; i++) {
|
2790
|
-
target[i] = temp[i-targetstart];
|
2791
|
-
}
|
2792
|
-
};
|
2793
|
-
|
2794
|
-
function coerce(length) {
|
2795
|
-
// Coerce length to a number (possibly NaN), round up
|
2796
|
-
// in case it's fractional (e.g. 123.456) then do a
|
2797
|
-
// double negate to coerce a NaN to 0. Easy, right?
|
2798
|
-
length = ~~Math.ceil(+length);
|
2799
|
-
return length < 0 ? 0 : length;
|
2800
|
-
}
|
2801
|
-
|
2802
|
-
|
2803
|
-
// Buffer
|
2804
|
-
|
2805
|
-
function Buffer(subject, encoding, offset) {
|
2806
|
-
if (!(this instanceof Buffer)) {
|
2807
|
-
return new Buffer(subject, encoding, offset);
|
2808
|
-
}
|
2809
|
-
|
2810
|
-
var type;
|
2811
|
-
|
2812
|
-
// Are we slicing?
|
2813
|
-
if (typeof offset === 'number') {
|
2814
|
-
this.length = coerce(encoding);
|
2815
|
-
this.parent = subject;
|
2816
|
-
this.offset = offset;
|
2817
|
-
} else {
|
2818
|
-
// Find the length
|
2819
|
-
switch (type = typeof subject) {
|
2820
|
-
case 'number':
|
2821
|
-
this.length = coerce(subject);
|
2822
|
-
break;
|
2823
|
-
|
2824
|
-
case 'string':
|
2825
|
-
this.length = Buffer.byteLength(subject, encoding);
|
2826
|
-
break;
|
2827
|
-
|
2828
|
-
case 'object': // Assume object is an array
|
2829
|
-
this.length = coerce(subject.length);
|
2830
|
-
break;
|
2831
|
-
|
2832
|
-
default:
|
2833
|
-
throw new Error('First argument needs to be a number, ' +
|
2834
|
-
'array or string.');
|
2835
|
-
}
|
2836
|
-
|
2837
|
-
if (this.length > Buffer.poolSize) {
|
2838
|
-
// Big buffer, just alloc one.
|
2839
|
-
this.parent = new SlowBuffer(this.length);
|
2840
|
-
this.offset = 0;
|
2841
|
-
|
2842
|
-
} else {
|
2843
|
-
// Small buffer.
|
2844
|
-
if (!pool || pool.length - pool.used < this.length) allocPool();
|
2845
|
-
this.parent = pool;
|
2846
|
-
this.offset = pool.used;
|
2847
|
-
pool.used += this.length;
|
2848
|
-
}
|
2849
|
-
|
2850
|
-
// Treat array-ish objects as a byte array.
|
2851
|
-
if (isArrayIsh(subject)) {
|
2852
|
-
for (var i = 0; i < this.length; i++) {
|
2853
|
-
this.parent[i + this.offset] = subject[i];
|
2854
|
-
}
|
2855
|
-
} else if (type == 'string') {
|
2856
|
-
// We are a string
|
2857
|
-
this.length = this.write(subject, 0, encoding);
|
2858
|
-
}
|
2859
|
-
}
|
2860
|
-
|
2861
|
-
}
|
2862
|
-
|
2863
|
-
function isArrayIsh(subject) {
|
2864
|
-
return Array.isArray(subject) || Buffer.isBuffer(subject) ||
|
2865
|
-
subject && typeof subject === 'object' &&
|
2866
|
-
typeof subject.length === 'number';
|
2867
|
-
}
|
2868
|
-
|
2869
|
-
exports.SlowBuffer = SlowBuffer;
|
2870
|
-
exports.Buffer = Buffer;
|
2871
|
-
|
2872
|
-
Buffer.poolSize = 8 * 1024;
|
2873
|
-
var pool;
|
2874
|
-
|
2875
|
-
function allocPool() {
|
2876
|
-
pool = new SlowBuffer(Buffer.poolSize);
|
2877
|
-
pool.used = 0;
|
2878
|
-
}
|
2879
|
-
|
2880
|
-
|
2881
|
-
// Static methods
|
2882
|
-
Buffer.isBuffer = function isBuffer(b) {
|
2883
|
-
return b instanceof Buffer || b instanceof SlowBuffer;
|
2884
|
-
};
|
2885
|
-
|
2886
|
-
Buffer.concat = function (list, totalLength) {
|
2887
|
-
if (!Array.isArray(list)) {
|
2888
|
-
throw new Error("Usage: Buffer.concat(list, [totalLength])\n \
|
2889
|
-
list should be an Array.");
|
2890
|
-
}
|
2891
|
-
|
2892
|
-
if (list.length === 0) {
|
2893
|
-
return new Buffer(0);
|
2894
|
-
} else if (list.length === 1) {
|
2895
|
-
return list[0];
|
2896
|
-
}
|
2897
|
-
|
2898
|
-
if (typeof totalLength !== 'number') {
|
2899
|
-
totalLength = 0;
|
2900
|
-
for (var i = 0; i < list.length; i++) {
|
2901
|
-
var buf = list[i];
|
2902
|
-
totalLength += buf.length;
|
2903
|
-
}
|
2904
|
-
}
|
2905
|
-
|
2906
|
-
var buffer = new Buffer(totalLength);
|
2907
|
-
var pos = 0;
|
2908
|
-
for (var i = 0; i < list.length; i++) {
|
2909
|
-
var buf = list[i];
|
2910
|
-
buf.copy(buffer, pos);
|
2911
|
-
pos += buf.length;
|
2912
|
-
}
|
2913
|
-
return buffer;
|
2914
|
-
};
|
2915
|
-
|
2916
|
-
// Inspect
|
2917
|
-
Buffer.prototype.inspect = function inspect() {
|
2918
|
-
var out = [],
|
2919
|
-
len = this.length;
|
2920
|
-
|
2921
|
-
for (var i = 0; i < len; i++) {
|
2922
|
-
out[i] = toHex(this.parent[i + this.offset]);
|
2923
|
-
if (i == exports.INSPECT_MAX_BYTES) {
|
2924
|
-
out[i + 1] = '...';
|
2925
|
-
break;
|
2926
|
-
}
|
2927
|
-
}
|
2928
|
-
|
2929
|
-
return '<Buffer ' + out.join(' ') + '>';
|
2930
|
-
};
|
2931
|
-
|
2932
|
-
|
2933
|
-
Buffer.prototype.get = function get(i) {
|
2934
|
-
if (i < 0 || i >= this.length) throw new Error('oob');
|
2935
|
-
return this.parent[this.offset + i];
|
2936
|
-
};
|
2937
|
-
|
2938
|
-
|
2939
|
-
Buffer.prototype.set = function set(i, v) {
|
2940
|
-
if (i < 0 || i >= this.length) throw new Error('oob');
|
2941
|
-
return this.parent[this.offset + i] = v;
|
2942
|
-
};
|
2943
|
-
|
2944
|
-
|
2945
|
-
// write(string, offset = 0, length = buffer.length-offset, encoding = 'utf8')
|
2946
|
-
Buffer.prototype.write = function(string, offset, length, encoding) {
|
2947
|
-
// Support both (string, offset, length, encoding)
|
2948
|
-
// and the legacy (string, encoding, offset, length)
|
2949
|
-
if (isFinite(offset)) {
|
2950
|
-
if (!isFinite(length)) {
|
2951
|
-
encoding = length;
|
2952
|
-
length = undefined;
|
2953
|
-
}
|
2954
|
-
} else { // legacy
|
2955
|
-
var swap = encoding;
|
2956
|
-
encoding = offset;
|
2957
|
-
offset = length;
|
2958
|
-
length = swap;
|
2959
|
-
}
|
2960
|
-
|
2961
|
-
offset = +offset || 0;
|
2962
|
-
var remaining = this.length - offset;
|
2963
|
-
if (!length) {
|
2964
|
-
length = remaining;
|
2965
|
-
} else {
|
2966
|
-
length = +length;
|
2967
|
-
if (length > remaining) {
|
2968
|
-
length = remaining;
|
2969
|
-
}
|
2970
|
-
}
|
2971
|
-
encoding = String(encoding || 'utf8').toLowerCase();
|
2972
|
-
|
2973
|
-
var ret;
|
2974
|
-
switch (encoding) {
|
2975
|
-
case 'hex':
|
2976
|
-
ret = this.parent.hexWrite(string, this.offset + offset, length);
|
2977
|
-
break;
|
2978
|
-
|
2979
|
-
case 'utf8':
|
2980
|
-
case 'utf-8':
|
2981
|
-
ret = this.parent.utf8Write(string, this.offset + offset, length);
|
2982
|
-
break;
|
2983
|
-
|
2984
|
-
case 'ascii':
|
2985
|
-
ret = this.parent.asciiWrite(string, this.offset + offset, length);
|
2986
|
-
break;
|
2987
|
-
|
2988
|
-
case 'binary':
|
2989
|
-
ret = this.parent.binaryWrite(string, this.offset + offset, length);
|
2990
|
-
break;
|
2991
|
-
|
2992
|
-
case 'base64':
|
2993
|
-
// Warning: maxLength not taken into account in base64Write
|
2994
|
-
ret = this.parent.base64Write(string, this.offset + offset, length);
|
2995
|
-
break;
|
2996
|
-
|
2997
|
-
case 'ucs2':
|
2998
|
-
case 'ucs-2':
|
2999
|
-
ret = this.parent.ucs2Write(string, this.offset + offset, length);
|
3000
|
-
break;
|
3001
|
-
|
3002
|
-
default:
|
3003
|
-
throw new Error('Unknown encoding');
|
3004
|
-
}
|
3005
|
-
|
3006
|
-
Buffer._charsWritten = SlowBuffer._charsWritten;
|
3007
|
-
|
3008
|
-
return ret;
|
3009
|
-
};
|
3010
|
-
|
3011
|
-
|
3012
|
-
// toString(encoding, start=0, end=buffer.length)
|
3013
|
-
Buffer.prototype.toString = function(encoding, start, end) {
|
3014
|
-
encoding = String(encoding || 'utf8').toLowerCase();
|
3015
|
-
|
3016
|
-
if (typeof start == 'undefined' || start < 0) {
|
3017
|
-
start = 0;
|
3018
|
-
} else if (start > this.length) {
|
3019
|
-
start = this.length;
|
3020
|
-
}
|
3021
|
-
|
3022
|
-
if (typeof end == 'undefined' || end > this.length) {
|
3023
|
-
end = this.length;
|
3024
|
-
} else if (end < 0) {
|
3025
|
-
end = 0;
|
3026
|
-
}
|
3027
|
-
|
3028
|
-
start = start + this.offset;
|
3029
|
-
end = end + this.offset;
|
3030
|
-
|
3031
|
-
switch (encoding) {
|
3032
|
-
case 'hex':
|
3033
|
-
return this.parent.hexSlice(start, end);
|
3034
|
-
|
3035
|
-
case 'utf8':
|
3036
|
-
case 'utf-8':
|
3037
|
-
return this.parent.utf8Slice(start, end);
|
3038
|
-
|
3039
|
-
case 'ascii':
|
3040
|
-
return this.parent.asciiSlice(start, end);
|
3041
|
-
|
3042
|
-
case 'binary':
|
3043
|
-
return this.parent.binarySlice(start, end);
|
3044
|
-
|
3045
|
-
case 'base64':
|
3046
|
-
return this.parent.base64Slice(start, end);
|
3047
|
-
|
3048
|
-
case 'ucs2':
|
3049
|
-
case 'ucs-2':
|
3050
|
-
return this.parent.ucs2Slice(start, end);
|
3051
|
-
|
3052
|
-
default:
|
3053
|
-
throw new Error('Unknown encoding');
|
3054
|
-
}
|
3055
|
-
};
|
3056
|
-
|
3057
|
-
|
3058
|
-
// byteLength
|
3059
|
-
Buffer.byteLength = SlowBuffer.byteLength;
|
3060
|
-
|
3061
|
-
|
3062
|
-
// fill(value, start=0, end=buffer.length)
|
3063
|
-
Buffer.prototype.fill = function fill(value, start, end) {
|
3064
|
-
value || (value = 0);
|
3065
|
-
start || (start = 0);
|
3066
|
-
end || (end = this.length);
|
3067
|
-
|
3068
|
-
if (typeof value === 'string') {
|
3069
|
-
value = value.charCodeAt(0);
|
3070
|
-
}
|
3071
|
-
if (!(typeof value === 'number') || isNaN(value)) {
|
3072
|
-
throw new Error('value is not a number');
|
3073
|
-
}
|
3074
|
-
|
3075
|
-
if (end < start) throw new Error('end < start');
|
3076
|
-
|
3077
|
-
// Fill 0 bytes; we're done
|
3078
|
-
if (end === start) return 0;
|
3079
|
-
if (this.length == 0) return 0;
|
3080
|
-
|
3081
|
-
if (start < 0 || start >= this.length) {
|
3082
|
-
throw new Error('start out of bounds');
|
3083
|
-
}
|
3084
|
-
|
3085
|
-
if (end < 0 || end > this.length) {
|
3086
|
-
throw new Error('end out of bounds');
|
3087
|
-
}
|
3088
|
-
|
3089
|
-
return this.parent.fill(value,
|
3090
|
-
start + this.offset,
|
3091
|
-
end + this.offset);
|
3092
|
-
};
|
3093
|
-
|
3094
|
-
|
3095
|
-
// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
|
3096
|
-
Buffer.prototype.copy = function(target, target_start, start, end) {
|
3097
|
-
var source = this;
|
3098
|
-
start || (start = 0);
|
3099
|
-
end || (end = this.length);
|
3100
|
-
target_start || (target_start = 0);
|
3101
|
-
|
3102
|
-
if (end < start) throw new Error('sourceEnd < sourceStart');
|
3103
|
-
|
3104
|
-
// Copy 0 bytes; we're done
|
3105
|
-
if (end === start) return 0;
|
3106
|
-
if (target.length == 0 || source.length == 0) return 0;
|
3107
|
-
|
3108
|
-
if (target_start < 0 || target_start >= target.length) {
|
3109
|
-
throw new Error('targetStart out of bounds');
|
3110
|
-
}
|
3111
|
-
|
3112
|
-
if (start < 0 || start >= source.length) {
|
3113
|
-
throw new Error('sourceStart out of bounds');
|
3114
|
-
}
|
3115
|
-
|
3116
|
-
if (end < 0 || end > source.length) {
|
3117
|
-
throw new Error('sourceEnd out of bounds');
|
3118
|
-
}
|
3119
|
-
|
3120
|
-
// Are we oob?
|
3121
|
-
if (end > this.length) {
|
3122
|
-
end = this.length;
|
3123
|
-
}
|
3124
|
-
|
3125
|
-
if (target.length - target_start < end - start) {
|
3126
|
-
end = target.length - target_start + start;
|
3127
|
-
}
|
3128
|
-
|
3129
|
-
return this.parent.copy(target.parent,
|
3130
|
-
target_start + target.offset,
|
3131
|
-
start + this.offset,
|
3132
|
-
end + this.offset);
|
3133
|
-
};
|
3134
|
-
|
3135
|
-
|
3136
|
-
// slice(start, end)
|
3137
|
-
Buffer.prototype.slice = function(start, end) {
|
3138
|
-
if (end === undefined) end = this.length;
|
3139
|
-
if (end > this.length) throw new Error('oob');
|
3140
|
-
if (start > end) throw new Error('oob');
|
3141
|
-
|
3142
|
-
return new Buffer(this.parent, end - start, +start + this.offset);
|
3143
|
-
};
|
3144
|
-
|
3145
|
-
|
3146
|
-
// Legacy methods for backwards compatibility.
|
3147
|
-
|
3148
|
-
Buffer.prototype.utf8Slice = function(start, end) {
|
3149
|
-
return this.toString('utf8', start, end);
|
3150
|
-
};
|
3151
|
-
|
3152
|
-
Buffer.prototype.binarySlice = function(start, end) {
|
3153
|
-
return this.toString('binary', start, end);
|
3154
|
-
};
|
3155
|
-
|
3156
|
-
Buffer.prototype.asciiSlice = function(start, end) {
|
3157
|
-
return this.toString('ascii', start, end);
|
3158
|
-
};
|
3159
|
-
|
3160
|
-
Buffer.prototype.utf8Write = function(string, offset) {
|
3161
|
-
return this.write(string, offset, 'utf8');
|
3162
|
-
};
|
3163
|
-
|
3164
|
-
Buffer.prototype.binaryWrite = function(string, offset) {
|
3165
|
-
return this.write(string, offset, 'binary');
|
3166
|
-
};
|
3167
|
-
|
3168
|
-
Buffer.prototype.asciiWrite = function(string, offset) {
|
3169
|
-
return this.write(string, offset, 'ascii');
|
3170
|
-
};
|
3171
|
-
|
3172
|
-
Buffer.prototype.readUInt8 = function(offset, noAssert) {
|
3173
|
-
var buffer = this;
|
3174
|
-
|
3175
|
-
if (!noAssert) {
|
3176
|
-
assert.ok(offset !== undefined && offset !== null,
|
3177
|
-
'missing offset');
|
3178
|
-
|
3179
|
-
assert.ok(offset < buffer.length,
|
3180
|
-
'Trying to read beyond buffer length');
|
3181
|
-
}
|
3182
|
-
|
3183
|
-
return buffer.parent[buffer.offset + offset];
|
3184
|
-
};
|
3185
|
-
|
3186
|
-
function readUInt16(buffer, offset, isBigEndian, noAssert) {
|
3187
|
-
var val = 0;
|
3188
|
-
|
3189
|
-
|
3190
|
-
if (!noAssert) {
|
3191
|
-
assert.ok(typeof (isBigEndian) === 'boolean',
|
3192
|
-
'missing or invalid endian');
|
3193
|
-
|
3194
|
-
assert.ok(offset !== undefined && offset !== null,
|
3195
|
-
'missing offset');
|
3196
|
-
|
3197
|
-
assert.ok(offset + 1 < buffer.length,
|
3198
|
-
'Trying to read beyond buffer length');
|
3199
|
-
}
|
3200
|
-
|
3201
|
-
if (isBigEndian) {
|
3202
|
-
val = buffer.parent[buffer.offset + offset] << 8;
|
3203
|
-
val |= buffer.parent[buffer.offset + offset + 1];
|
3204
|
-
} else {
|
3205
|
-
val = buffer.parent[buffer.offset + offset];
|
3206
|
-
val |= buffer.parent[buffer.offset + offset + 1] << 8;
|
3207
|
-
}
|
3208
|
-
|
3209
|
-
return val;
|
3210
|
-
}
|
3211
|
-
|
3212
|
-
Buffer.prototype.readUInt16LE = function(offset, noAssert) {
|
3213
|
-
return readUInt16(this, offset, false, noAssert);
|
3214
|
-
};
|
3215
|
-
|
3216
|
-
Buffer.prototype.readUInt16BE = function(offset, noAssert) {
|
3217
|
-
return readUInt16(this, offset, true, noAssert);
|
3218
|
-
};
|
3219
|
-
|
3220
|
-
function readUInt32(buffer, offset, isBigEndian, noAssert) {
|
3221
|
-
var val = 0;
|
3222
|
-
|
3223
|
-
if (!noAssert) {
|
3224
|
-
assert.ok(typeof (isBigEndian) === 'boolean',
|
3225
|
-
'missing or invalid endian');
|
3226
|
-
|
3227
|
-
assert.ok(offset !== undefined && offset !== null,
|
3228
|
-
'missing offset');
|
3229
|
-
|
3230
|
-
assert.ok(offset + 3 < buffer.length,
|
3231
|
-
'Trying to read beyond buffer length');
|
3232
|
-
}
|
3233
|
-
|
3234
|
-
if (isBigEndian) {
|
3235
|
-
val = buffer.parent[buffer.offset + offset + 1] << 16;
|
3236
|
-
val |= buffer.parent[buffer.offset + offset + 2] << 8;
|
3237
|
-
val |= buffer.parent[buffer.offset + offset + 3];
|
3238
|
-
val = val + (buffer.parent[buffer.offset + offset] << 24 >>> 0);
|
3239
|
-
} else {
|
3240
|
-
val = buffer.parent[buffer.offset + offset + 2] << 16;
|
3241
|
-
val |= buffer.parent[buffer.offset + offset + 1] << 8;
|
3242
|
-
val |= buffer.parent[buffer.offset + offset];
|
3243
|
-
val = val + (buffer.parent[buffer.offset + offset + 3] << 24 >>> 0);
|
3244
|
-
}
|
3245
|
-
|
3246
|
-
return val;
|
3247
|
-
}
|
3248
|
-
|
3249
|
-
Buffer.prototype.readUInt32LE = function(offset, noAssert) {
|
3250
|
-
return readUInt32(this, offset, false, noAssert);
|
3251
|
-
};
|
3252
|
-
|
3253
|
-
Buffer.prototype.readUInt32BE = function(offset, noAssert) {
|
3254
|
-
return readUInt32(this, offset, true, noAssert);
|
3255
|
-
};
|
3256
|
-
|
3257
|
-
|
3258
|
-
/*
|
3259
|
-
* Signed integer types, yay team! A reminder on how two's complement actually
|
3260
|
-
* works. The first bit is the signed bit, i.e. tells us whether or not the
|
3261
|
-
* number should be positive or negative. If the two's complement value is
|
3262
|
-
* positive, then we're done, as it's equivalent to the unsigned representation.
|
3263
|
-
*
|
3264
|
-
* Now if the number is positive, you're pretty much done, you can just leverage
|
3265
|
-
* the unsigned translations and return those. Unfortunately, negative numbers
|
3266
|
-
* aren't quite that straightforward.
|
3267
|
-
*
|
3268
|
-
* At first glance, one might be inclined to use the traditional formula to
|
3269
|
-
* translate binary numbers between the positive and negative values in two's
|
3270
|
-
* complement. (Though it doesn't quite work for the most negative value)
|
3271
|
-
* Mainly:
|
3272
|
-
* - invert all the bits
|
3273
|
-
* - add one to the result
|
3274
|
-
*
|
3275
|
-
* Of course, this doesn't quite work in Javascript. Take for example the value
|
3276
|
-
* of -128. This could be represented in 16 bits (big-endian) as 0xff80. But of
|
3277
|
-
* course, Javascript will do the following:
|
3278
|
-
*
|
3279
|
-
* > ~0xff80
|
3280
|
-
* -65409
|
3281
|
-
*
|
3282
|
-
* Whoh there, Javascript, that's not quite right. But wait, according to
|
3283
|
-
* Javascript that's perfectly correct. When Javascript ends up seeing the
|
3284
|
-
* constant 0xff80, it has no notion that it is actually a signed number. It
|
3285
|
-
* assumes that we've input the unsigned value 0xff80. Thus, when it does the
|
3286
|
-
* binary negation, it casts it into a signed value, (positive 0xff80). Then
|
3287
|
-
* when you perform binary negation on that, it turns it into a negative number.
|
3288
|
-
*
|
3289
|
-
* Instead, we're going to have to use the following general formula, that works
|
3290
|
-
* in a rather Javascript friendly way. I'm glad we don't support this kind of
|
3291
|
-
* weird numbering scheme in the kernel.
|
3292
|
-
*
|
3293
|
-
* (BIT-MAX - (unsigned)val + 1) * -1
|
3294
|
-
*
|
3295
|
-
* The astute observer, may think that this doesn't make sense for 8-bit numbers
|
3296
|
-
* (really it isn't necessary for them). However, when you get 16-bit numbers,
|
3297
|
-
* you do. Let's go back to our prior example and see how this will look:
|
3298
|
-
*
|
3299
|
-
* (0xffff - 0xff80 + 1) * -1
|
3300
|
-
* (0x007f + 1) * -1
|
3301
|
-
* (0x0080) * -1
|
3302
|
-
*/
|
3303
|
-
Buffer.prototype.readInt8 = function(offset, noAssert) {
|
3304
|
-
var buffer = this;
|
3305
|
-
var neg;
|
3306
|
-
|
3307
|
-
if (!noAssert) {
|
3308
|
-
assert.ok(offset !== undefined && offset !== null,
|
3309
|
-
'missing offset');
|
3310
|
-
|
3311
|
-
assert.ok(offset < buffer.length,
|
3312
|
-
'Trying to read beyond buffer length');
|
3313
|
-
}
|
3314
|
-
|
3315
|
-
neg = buffer.parent[buffer.offset + offset] & 0x80;
|
3316
|
-
if (!neg) {
|
3317
|
-
return (buffer.parent[buffer.offset + offset]);
|
3318
|
-
}
|
3319
|
-
|
3320
|
-
return ((0xff - buffer.parent[buffer.offset + offset] + 1) * -1);
|
3321
|
-
};
|
3322
|
-
|
3323
|
-
function readInt16(buffer, offset, isBigEndian, noAssert) {
|
3324
|
-
var neg, val;
|
3325
|
-
|
3326
|
-
if (!noAssert) {
|
3327
|
-
assert.ok(typeof (isBigEndian) === 'boolean',
|
3328
|
-
'missing or invalid endian');
|
3329
|
-
|
3330
|
-
assert.ok(offset !== undefined && offset !== null,
|
3331
|
-
'missing offset');
|
3332
|
-
|
3333
|
-
assert.ok(offset + 1 < buffer.length,
|
3334
|
-
'Trying to read beyond buffer length');
|
3335
|
-
}
|
3336
|
-
|
3337
|
-
val = readUInt16(buffer, offset, isBigEndian, noAssert);
|
3338
|
-
neg = val & 0x8000;
|
3339
|
-
if (!neg) {
|
3340
|
-
return val;
|
3341
|
-
}
|
3342
|
-
|
3343
|
-
return (0xffff - val + 1) * -1;
|
3344
|
-
}
|
3345
|
-
|
3346
|
-
Buffer.prototype.readInt16LE = function(offset, noAssert) {
|
3347
|
-
return readInt16(this, offset, false, noAssert);
|
3348
|
-
};
|
3349
|
-
|
3350
|
-
Buffer.prototype.readInt16BE = function(offset, noAssert) {
|
3351
|
-
return readInt16(this, offset, true, noAssert);
|
3352
|
-
};
|
3353
|
-
|
3354
|
-
function readInt32(buffer, offset, isBigEndian, noAssert) {
|
3355
|
-
var neg, val;
|
3356
|
-
|
3357
|
-
if (!noAssert) {
|
3358
|
-
assert.ok(typeof (isBigEndian) === 'boolean',
|
3359
|
-
'missing or invalid endian');
|
3360
|
-
|
3361
|
-
assert.ok(offset !== undefined && offset !== null,
|
3362
|
-
'missing offset');
|
3363
|
-
|
3364
|
-
assert.ok(offset + 3 < buffer.length,
|
3365
|
-
'Trying to read beyond buffer length');
|
3366
|
-
}
|
3367
|
-
|
3368
|
-
val = readUInt32(buffer, offset, isBigEndian, noAssert);
|
3369
|
-
neg = val & 0x80000000;
|
3370
|
-
if (!neg) {
|
3371
|
-
return (val);
|
3372
|
-
}
|
3373
|
-
|
3374
|
-
return (0xffffffff - val + 1) * -1;
|
3375
|
-
}
|
3376
|
-
|
3377
|
-
Buffer.prototype.readInt32LE = function(offset, noAssert) {
|
3378
|
-
return readInt32(this, offset, false, noAssert);
|
3379
|
-
};
|
3380
|
-
|
3381
|
-
Buffer.prototype.readInt32BE = function(offset, noAssert) {
|
3382
|
-
return readInt32(this, offset, true, noAssert);
|
3383
|
-
};
|
3384
|
-
|
3385
|
-
function readFloat(buffer, offset, isBigEndian, noAssert) {
|
3386
|
-
if (!noAssert) {
|
3387
|
-
assert.ok(typeof (isBigEndian) === 'boolean',
|
3388
|
-
'missing or invalid endian');
|
3389
|
-
|
3390
|
-
assert.ok(offset + 3 < buffer.length,
|
3391
|
-
'Trying to read beyond buffer length');
|
3392
|
-
}
|
3393
|
-
|
3394
|
-
return require('./buffer_ieee754').readIEEE754(buffer, offset, isBigEndian,
|
3395
|
-
23, 4);
|
3396
|
-
}
|
3397
|
-
|
3398
|
-
Buffer.prototype.readFloatLE = function(offset, noAssert) {
|
3399
|
-
return readFloat(this, offset, false, noAssert);
|
3400
|
-
};
|
3401
|
-
|
3402
|
-
Buffer.prototype.readFloatBE = function(offset, noAssert) {
|
3403
|
-
return readFloat(this, offset, true, noAssert);
|
3404
|
-
};
|
3405
|
-
|
3406
|
-
function readDouble(buffer, offset, isBigEndian, noAssert) {
|
3407
|
-
if (!noAssert) {
|
3408
|
-
assert.ok(typeof (isBigEndian) === 'boolean',
|
3409
|
-
'missing or invalid endian');
|
3410
|
-
|
3411
|
-
assert.ok(offset + 7 < buffer.length,
|
3412
|
-
'Trying to read beyond buffer length');
|
3413
|
-
}
|
3414
|
-
|
3415
|
-
return require('./buffer_ieee754').readIEEE754(buffer, offset, isBigEndian,
|
3416
|
-
52, 8);
|
3417
|
-
}
|
3418
|
-
|
3419
|
-
Buffer.prototype.readDoubleLE = function(offset, noAssert) {
|
3420
|
-
return readDouble(this, offset, false, noAssert);
|
3421
|
-
};
|
3422
|
-
|
3423
|
-
Buffer.prototype.readDoubleBE = function(offset, noAssert) {
|
3424
|
-
return readDouble(this, offset, true, noAssert);
|
3425
|
-
};
|
3426
|
-
|
3427
|
-
|
3428
|
-
/*
|
3429
|
-
* We have to make sure that the value is a valid integer. This means that it is
|
3430
|
-
* non-negative. It has no fractional component and that it does not exceed the
|
3431
|
-
* maximum allowed value.
|
3432
|
-
*
|
3433
|
-
* value The number to check for validity
|
3434
|
-
*
|
3435
|
-
* max The maximum value
|
3436
|
-
*/
|
3437
|
-
function verifuint(value, max) {
|
3438
|
-
assert.ok(typeof (value) == 'number',
|
3439
|
-
'cannot write a non-number as a number');
|
3440
|
-
|
3441
|
-
assert.ok(value >= 0,
|
3442
|
-
'specified a negative value for writing an unsigned value');
|
3443
|
-
|
3444
|
-
assert.ok(value <= max, 'value is larger than maximum value for type');
|
3445
|
-
|
3446
|
-
assert.ok(Math.floor(value) === value, 'value has a fractional component');
|
3447
|
-
}
|
3448
|
-
|
3449
|
-
Buffer.prototype.writeUInt8 = function(value, offset, noAssert) {
|
3450
|
-
var buffer = this;
|
3451
|
-
|
3452
|
-
if (!noAssert) {
|
3453
|
-
assert.ok(value !== undefined && value !== null,
|
3454
|
-
'missing value');
|
3455
|
-
|
3456
|
-
assert.ok(offset !== undefined && offset !== null,
|
3457
|
-
'missing offset');
|
3458
|
-
|
3459
|
-
assert.ok(offset < buffer.length,
|
3460
|
-
'trying to write beyond buffer length');
|
3461
|
-
|
3462
|
-
verifuint(value, 0xff);
|
3463
|
-
}
|
3464
|
-
|
3465
|
-
buffer.parent[buffer.offset + offset] = value;
|
3466
|
-
};
|
3467
|
-
|
3468
|
-
function writeUInt16(buffer, value, offset, isBigEndian, noAssert) {
|
3469
|
-
if (!noAssert) {
|
3470
|
-
assert.ok(value !== undefined && value !== null,
|
3471
|
-
'missing value');
|
3472
|
-
|
3473
|
-
assert.ok(typeof (isBigEndian) === 'boolean',
|
3474
|
-
'missing or invalid endian');
|
3475
|
-
|
3476
|
-
assert.ok(offset !== undefined && offset !== null,
|
3477
|
-
'missing offset');
|
3478
|
-
|
3479
|
-
assert.ok(offset + 1 < buffer.length,
|
3480
|
-
'trying to write beyond buffer length');
|
3481
|
-
|
3482
|
-
verifuint(value, 0xffff);
|
3483
|
-
}
|
3484
|
-
|
3485
|
-
if (isBigEndian) {
|
3486
|
-
buffer.parent[buffer.offset + offset] = (value & 0xff00) >>> 8;
|
3487
|
-
buffer.parent[buffer.offset + offset + 1] = value & 0x00ff;
|
3488
|
-
} else {
|
3489
|
-
buffer.parent[buffer.offset + offset + 1] = (value & 0xff00) >>> 8;
|
3490
|
-
buffer.parent[buffer.offset + offset] = value & 0x00ff;
|
3491
|
-
}
|
3492
|
-
}
|
3493
|
-
|
3494
|
-
Buffer.prototype.writeUInt16LE = function(value, offset, noAssert) {
|
3495
|
-
writeUInt16(this, value, offset, false, noAssert);
|
3496
|
-
};
|
3497
|
-
|
3498
|
-
Buffer.prototype.writeUInt16BE = function(value, offset, noAssert) {
|
3499
|
-
writeUInt16(this, value, offset, true, noAssert);
|
3500
|
-
};
|
3501
|
-
|
3502
|
-
function writeUInt32(buffer, value, offset, isBigEndian, noAssert) {
|
3503
|
-
if (!noAssert) {
|
3504
|
-
assert.ok(value !== undefined && value !== null,
|
3505
|
-
'missing value');
|
3506
|
-
|
3507
|
-
assert.ok(typeof (isBigEndian) === 'boolean',
|
3508
|
-
'missing or invalid endian');
|
3509
|
-
|
3510
|
-
assert.ok(offset !== undefined && offset !== null,
|
3511
|
-
'missing offset');
|
3512
|
-
|
3513
|
-
assert.ok(offset + 3 < buffer.length,
|
3514
|
-
'trying to write beyond buffer length');
|
3515
|
-
|
3516
|
-
verifuint(value, 0xffffffff);
|
3517
|
-
}
|
3518
|
-
|
3519
|
-
if (isBigEndian) {
|
3520
|
-
buffer.parent[buffer.offset + offset] = (value >>> 24) & 0xff;
|
3521
|
-
buffer.parent[buffer.offset + offset + 1] = (value >>> 16) & 0xff;
|
3522
|
-
buffer.parent[buffer.offset + offset + 2] = (value >>> 8) & 0xff;
|
3523
|
-
buffer.parent[buffer.offset + offset + 3] = value & 0xff;
|
3524
|
-
} else {
|
3525
|
-
buffer.parent[buffer.offset + offset + 3] = (value >>> 24) & 0xff;
|
3526
|
-
buffer.parent[buffer.offset + offset + 2] = (value >>> 16) & 0xff;
|
3527
|
-
buffer.parent[buffer.offset + offset + 1] = (value >>> 8) & 0xff;
|
3528
|
-
buffer.parent[buffer.offset + offset] = value & 0xff;
|
3529
|
-
}
|
3530
|
-
}
|
3531
|
-
|
3532
|
-
Buffer.prototype.writeUInt32LE = function(value, offset, noAssert) {
|
3533
|
-
writeUInt32(this, value, offset, false, noAssert);
|
3534
|
-
};
|
3535
|
-
|
3536
|
-
Buffer.prototype.writeUInt32BE = function(value, offset, noAssert) {
|
3537
|
-
writeUInt32(this, value, offset, true, noAssert);
|
3538
|
-
};
|
3539
|
-
|
3540
|
-
|
3541
|
-
/*
|
3542
|
-
* We now move onto our friends in the signed number category. Unlike unsigned
|
3543
|
-
* numbers, we're going to have to worry a bit more about how we put values into
|
3544
|
-
* arrays. Since we are only worrying about signed 32-bit values, we're in
|
3545
|
-
* slightly better shape. Unfortunately, we really can't do our favorite binary
|
3546
|
-
* & in this system. It really seems to do the wrong thing. For example:
|
3547
|
-
*
|
3548
|
-
* > -32 & 0xff
|
3549
|
-
* 224
|
3550
|
-
*
|
3551
|
-
* What's happening above is really: 0xe0 & 0xff = 0xe0. However, the results of
|
3552
|
-
* this aren't treated as a signed number. Ultimately a bad thing.
|
3553
|
-
*
|
3554
|
-
* What we're going to want to do is basically create the unsigned equivalent of
|
3555
|
-
* our representation and pass that off to the wuint* functions. To do that
|
3556
|
-
* we're going to do the following:
|
3557
|
-
*
|
3558
|
-
* - if the value is positive
|
3559
|
-
* we can pass it directly off to the equivalent wuint
|
3560
|
-
* - if the value is negative
|
3561
|
-
* we do the following computation:
|
3562
|
-
* mb + val + 1, where
|
3563
|
-
* mb is the maximum unsigned value in that byte size
|
3564
|
-
* val is the Javascript negative integer
|
3565
|
-
*
|
3566
|
-
*
|
3567
|
-
* As a concrete value, take -128. In signed 16 bits this would be 0xff80. If
|
3568
|
-
* you do out the computations:
|
3569
|
-
*
|
3570
|
-
* 0xffff - 128 + 1
|
3571
|
-
* 0xffff - 127
|
3572
|
-
* 0xff80
|
3573
|
-
*
|
3574
|
-
* You can then encode this value as the signed version. This is really rather
|
3575
|
-
* hacky, but it should work and get the job done which is our goal here.
|
3576
|
-
*/
|
3577
|
-
|
3578
|
-
/*
|
3579
|
-
* A series of checks to make sure we actually have a signed 32-bit number
|
3580
|
-
*/
|
3581
|
-
function verifsint(value, max, min) {
|
3582
|
-
assert.ok(typeof (value) == 'number',
|
3583
|
-
'cannot write a non-number as a number');
|
3584
|
-
|
3585
|
-
assert.ok(value <= max, 'value larger than maximum allowed value');
|
3586
|
-
|
3587
|
-
assert.ok(value >= min, 'value smaller than minimum allowed value');
|
3588
|
-
|
3589
|
-
assert.ok(Math.floor(value) === value, 'value has a fractional component');
|
3590
|
-
}
|
3591
|
-
|
3592
|
-
function verifIEEE754(value, max, min) {
|
3593
|
-
assert.ok(typeof (value) == 'number',
|
3594
|
-
'cannot write a non-number as a number');
|
3595
|
-
|
3596
|
-
assert.ok(value <= max, 'value larger than maximum allowed value');
|
3597
|
-
|
3598
|
-
assert.ok(value >= min, 'value smaller than minimum allowed value');
|
3599
|
-
}
|
3600
|
-
|
3601
|
-
Buffer.prototype.writeInt8 = function(value, offset, noAssert) {
|
3602
|
-
var buffer = this;
|
3603
|
-
|
3604
|
-
if (!noAssert) {
|
3605
|
-
assert.ok(value !== undefined && value !== null,
|
3606
|
-
'missing value');
|
3607
|
-
|
3608
|
-
assert.ok(offset !== undefined && offset !== null,
|
3609
|
-
'missing offset');
|
3610
|
-
|
3611
|
-
assert.ok(offset < buffer.length,
|
3612
|
-
'Trying to write beyond buffer length');
|
3613
|
-
|
3614
|
-
verifsint(value, 0x7f, -0x80);
|
3615
|
-
}
|
3616
|
-
|
3617
|
-
if (value >= 0) {
|
3618
|
-
buffer.writeUInt8(value, offset, noAssert);
|
3619
|
-
} else {
|
3620
|
-
buffer.writeUInt8(0xff + value + 1, offset, noAssert);
|
3621
|
-
}
|
3622
|
-
};
|
3623
|
-
|
3624
|
-
function writeInt16(buffer, value, offset, isBigEndian, noAssert) {
|
3625
|
-
if (!noAssert) {
|
3626
|
-
assert.ok(value !== undefined && value !== null,
|
3627
|
-
'missing value');
|
3628
|
-
|
3629
|
-
assert.ok(typeof (isBigEndian) === 'boolean',
|
3630
|
-
'missing or invalid endian');
|
3631
|
-
|
3632
|
-
assert.ok(offset !== undefined && offset !== null,
|
3633
|
-
'missing offset');
|
3634
|
-
|
3635
|
-
assert.ok(offset + 1 < buffer.length,
|
3636
|
-
'Trying to write beyond buffer length');
|
3637
|
-
|
3638
|
-
verifsint(value, 0x7fff, -0x8000);
|
3639
|
-
}
|
3640
|
-
|
3641
|
-
if (value >= 0) {
|
3642
|
-
writeUInt16(buffer, value, offset, isBigEndian, noAssert);
|
3643
|
-
} else {
|
3644
|
-
writeUInt16(buffer, 0xffff + value + 1, offset, isBigEndian, noAssert);
|
3645
|
-
}
|
3646
|
-
}
|
3647
|
-
|
3648
|
-
Buffer.prototype.writeInt16LE = function(value, offset, noAssert) {
|
3649
|
-
writeInt16(this, value, offset, false, noAssert);
|
3650
|
-
};
|
3651
|
-
|
3652
|
-
Buffer.prototype.writeInt16BE = function(value, offset, noAssert) {
|
3653
|
-
writeInt16(this, value, offset, true, noAssert);
|
3654
|
-
};
|
3655
|
-
|
3656
|
-
function writeInt32(buffer, value, offset, isBigEndian, noAssert) {
|
3657
|
-
if (!noAssert) {
|
3658
|
-
assert.ok(value !== undefined && value !== null,
|
3659
|
-
'missing value');
|
3660
|
-
|
3661
|
-
assert.ok(typeof (isBigEndian) === 'boolean',
|
3662
|
-
'missing or invalid endian');
|
3663
|
-
|
3664
|
-
assert.ok(offset !== undefined && offset !== null,
|
3665
|
-
'missing offset');
|
3666
|
-
|
3667
|
-
assert.ok(offset + 3 < buffer.length,
|
3668
|
-
'Trying to write beyond buffer length');
|
3669
|
-
|
3670
|
-
verifsint(value, 0x7fffffff, -0x80000000);
|
3671
|
-
}
|
3672
|
-
|
3673
|
-
if (value >= 0) {
|
3674
|
-
writeUInt32(buffer, value, offset, isBigEndian, noAssert);
|
3675
|
-
} else {
|
3676
|
-
writeUInt32(buffer, 0xffffffff + value + 1, offset, isBigEndian, noAssert);
|
3677
|
-
}
|
3678
|
-
}
|
3679
|
-
|
3680
|
-
Buffer.prototype.writeInt32LE = function(value, offset, noAssert) {
|
3681
|
-
writeInt32(this, value, offset, false, noAssert);
|
3682
|
-
};
|
3683
|
-
|
3684
|
-
Buffer.prototype.writeInt32BE = function(value, offset, noAssert) {
|
3685
|
-
writeInt32(this, value, offset, true, noAssert);
|
3686
|
-
};
|
3687
|
-
|
3688
|
-
function writeFloat(buffer, value, offset, isBigEndian, noAssert) {
|
3689
|
-
if (!noAssert) {
|
3690
|
-
assert.ok(value !== undefined && value !== null,
|
3691
|
-
'missing value');
|
3692
|
-
|
3693
|
-
assert.ok(typeof (isBigEndian) === 'boolean',
|
3694
|
-
'missing or invalid endian');
|
3695
|
-
|
3696
|
-
assert.ok(offset !== undefined && offset !== null,
|
3697
|
-
'missing offset');
|
3698
|
-
|
3699
|
-
assert.ok(offset + 3 < buffer.length,
|
3700
|
-
'Trying to write beyond buffer length');
|
3701
|
-
|
3702
|
-
verifIEEE754(value, 3.4028234663852886e+38, -3.4028234663852886e+38);
|
3703
|
-
}
|
3704
|
-
|
3705
|
-
require('./buffer_ieee754').writeIEEE754(buffer, value, offset, isBigEndian,
|
3706
|
-
23, 4);
|
3707
|
-
}
|
3708
|
-
|
3709
|
-
Buffer.prototype.writeFloatLE = function(value, offset, noAssert) {
|
3710
|
-
writeFloat(this, value, offset, false, noAssert);
|
3711
|
-
};
|
3712
|
-
|
3713
|
-
Buffer.prototype.writeFloatBE = function(value, offset, noAssert) {
|
3714
|
-
writeFloat(this, value, offset, true, noAssert);
|
3715
|
-
};
|
3716
|
-
|
3717
|
-
function writeDouble(buffer, value, offset, isBigEndian, noAssert) {
|
3718
|
-
if (!noAssert) {
|
3719
|
-
assert.ok(value !== undefined && value !== null,
|
3720
|
-
'missing value');
|
3721
|
-
|
3722
|
-
assert.ok(typeof (isBigEndian) === 'boolean',
|
3723
|
-
'missing or invalid endian');
|
3724
|
-
|
3725
|
-
assert.ok(offset !== undefined && offset !== null,
|
3726
|
-
'missing offset');
|
3727
|
-
|
3728
|
-
assert.ok(offset + 7 < buffer.length,
|
3729
|
-
'Trying to write beyond buffer length');
|
3730
|
-
|
3731
|
-
verifIEEE754(value, 1.7976931348623157E+308, -1.7976931348623157E+308);
|
3732
|
-
}
|
3733
|
-
|
3734
|
-
require('./buffer_ieee754').writeIEEE754(buffer, value, offset, isBigEndian,
|
3735
|
-
52, 8);
|
3736
|
-
}
|
3737
|
-
|
3738
|
-
Buffer.prototype.writeDoubleLE = function(value, offset, noAssert) {
|
3739
|
-
writeDouble(this, value, offset, false, noAssert);
|
3740
|
-
};
|
3741
|
-
|
3742
|
-
Buffer.prototype.writeDoubleBE = function(value, offset, noAssert) {
|
3743
|
-
writeDouble(this, value, offset, true, noAssert);
|
3744
|
-
};
|
3745
|
-
|
3746
|
-
SlowBuffer.prototype.readUInt8 = Buffer.prototype.readUInt8;
|
3747
|
-
SlowBuffer.prototype.readUInt16LE = Buffer.prototype.readUInt16LE;
|
3748
|
-
SlowBuffer.prototype.readUInt16BE = Buffer.prototype.readUInt16BE;
|
3749
|
-
SlowBuffer.prototype.readUInt32LE = Buffer.prototype.readUInt32LE;
|
3750
|
-
SlowBuffer.prototype.readUInt32BE = Buffer.prototype.readUInt32BE;
|
3751
|
-
SlowBuffer.prototype.readInt8 = Buffer.prototype.readInt8;
|
3752
|
-
SlowBuffer.prototype.readInt16LE = Buffer.prototype.readInt16LE;
|
3753
|
-
SlowBuffer.prototype.readInt16BE = Buffer.prototype.readInt16BE;
|
3754
|
-
SlowBuffer.prototype.readInt32LE = Buffer.prototype.readInt32LE;
|
3755
|
-
SlowBuffer.prototype.readInt32BE = Buffer.prototype.readInt32BE;
|
3756
|
-
SlowBuffer.prototype.readFloatLE = Buffer.prototype.readFloatLE;
|
3757
|
-
SlowBuffer.prototype.readFloatBE = Buffer.prototype.readFloatBE;
|
3758
|
-
SlowBuffer.prototype.readDoubleLE = Buffer.prototype.readDoubleLE;
|
3759
|
-
SlowBuffer.prototype.readDoubleBE = Buffer.prototype.readDoubleBE;
|
3760
|
-
SlowBuffer.prototype.writeUInt8 = Buffer.prototype.writeUInt8;
|
3761
|
-
SlowBuffer.prototype.writeUInt16LE = Buffer.prototype.writeUInt16LE;
|
3762
|
-
SlowBuffer.prototype.writeUInt16BE = Buffer.prototype.writeUInt16BE;
|
3763
|
-
SlowBuffer.prototype.writeUInt32LE = Buffer.prototype.writeUInt32LE;
|
3764
|
-
SlowBuffer.prototype.writeUInt32BE = Buffer.prototype.writeUInt32BE;
|
3765
|
-
SlowBuffer.prototype.writeInt8 = Buffer.prototype.writeInt8;
|
3766
|
-
SlowBuffer.prototype.writeInt16LE = Buffer.prototype.writeInt16LE;
|
3767
|
-
SlowBuffer.prototype.writeInt16BE = Buffer.prototype.writeInt16BE;
|
3768
|
-
SlowBuffer.prototype.writeInt32LE = Buffer.prototype.writeInt32LE;
|
3769
|
-
SlowBuffer.prototype.writeInt32BE = Buffer.prototype.writeInt32BE;
|
3770
|
-
SlowBuffer.prototype.writeFloatLE = Buffer.prototype.writeFloatLE;
|
3771
|
-
SlowBuffer.prototype.writeFloatBE = Buffer.prototype.writeFloatBE;
|
3772
|
-
SlowBuffer.prototype.writeDoubleLE = Buffer.prototype.writeDoubleLE;
|
3773
|
-
SlowBuffer.prototype.writeDoubleBE = Buffer.prototype.writeDoubleBE;
|
3774
|
-
|
3775
|
-
})()
|
3776
|
-
},{"assert":2,"./buffer_ieee754":7,"base64-js":9}],9:[function(require,module,exports){
|
3777
|
-
(function (exports) {
|
3778
|
-
'use strict';
|
3779
|
-
|
3780
|
-
var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
3781
|
-
|
3782
|
-
function b64ToByteArray(b64) {
|
3783
|
-
var i, j, l, tmp, placeHolders, arr;
|
3784
|
-
|
3785
|
-
if (b64.length % 4 > 0) {
|
3786
|
-
throw 'Invalid string. Length must be a multiple of 4';
|
3787
|
-
}
|
3788
|
-
|
3789
|
-
// the number of equal signs (place holders)
|
3790
|
-
// if there are two placeholders, than the two characters before it
|
3791
|
-
// represent one byte
|
3792
|
-
// if there is only one, then the three characters before it represent 2 bytes
|
3793
|
-
// this is just a cheap hack to not do indexOf twice
|
3794
|
-
placeHolders = b64.indexOf('=');
|
3795
|
-
placeHolders = placeHolders > 0 ? b64.length - placeHolders : 0;
|
3796
|
-
|
3797
|
-
// base64 is 4/3 + up to two characters of the original data
|
3798
|
-
arr = [];//new Uint8Array(b64.length * 3 / 4 - placeHolders);
|
3799
|
-
|
3800
|
-
// if there are placeholders, only get up to the last complete 4 chars
|
3801
|
-
l = placeHolders > 0 ? b64.length - 4 : b64.length;
|
3802
|
-
|
3803
|
-
for (i = 0, j = 0; i < l; i += 4, j += 3) {
|
3804
|
-
tmp = (lookup.indexOf(b64[i]) << 18) | (lookup.indexOf(b64[i + 1]) << 12) | (lookup.indexOf(b64[i + 2]) << 6) | lookup.indexOf(b64[i + 3]);
|
3805
|
-
arr.push((tmp & 0xFF0000) >> 16);
|
3806
|
-
arr.push((tmp & 0xFF00) >> 8);
|
3807
|
-
arr.push(tmp & 0xFF);
|
3808
|
-
}
|
3809
|
-
|
3810
|
-
if (placeHolders === 2) {
|
3811
|
-
tmp = (lookup.indexOf(b64[i]) << 2) | (lookup.indexOf(b64[i + 1]) >> 4);
|
3812
|
-
arr.push(tmp & 0xFF);
|
3813
|
-
} else if (placeHolders === 1) {
|
3814
|
-
tmp = (lookup.indexOf(b64[i]) << 10) | (lookup.indexOf(b64[i + 1]) << 4) | (lookup.indexOf(b64[i + 2]) >> 2);
|
3815
|
-
arr.push((tmp >> 8) & 0xFF);
|
3816
|
-
arr.push(tmp & 0xFF);
|
3817
|
-
}
|
3818
|
-
|
3819
|
-
return arr;
|
3820
|
-
}
|
3821
|
-
|
3822
|
-
function uint8ToBase64(uint8) {
|
3823
|
-
var i,
|
3824
|
-
extraBytes = uint8.length % 3, // if we have 1 byte left, pad 2 bytes
|
3825
|
-
output = "",
|
3826
|
-
temp, length;
|
3827
|
-
|
3828
|
-
function tripletToBase64 (num) {
|
3829
|
-
return lookup[num >> 18 & 0x3F] + lookup[num >> 12 & 0x3F] + lookup[num >> 6 & 0x3F] + lookup[num & 0x3F];
|
3830
|
-
};
|
3831
|
-
|
3832
|
-
// go through the array every three bytes, we'll deal with trailing stuff later
|
3833
|
-
for (i = 0, length = uint8.length - extraBytes; i < length; i += 3) {
|
3834
|
-
temp = (uint8[i] << 16) + (uint8[i + 1] << 8) + (uint8[i + 2]);
|
3835
|
-
output += tripletToBase64(temp);
|
3836
|
-
}
|
3837
|
-
|
3838
|
-
// pad the end with zeros, but make sure to not forget the extra bytes
|
3839
|
-
switch (extraBytes) {
|
3840
|
-
case 1:
|
3841
|
-
temp = uint8[uint8.length - 1];
|
3842
|
-
output += lookup[temp >> 2];
|
3843
|
-
output += lookup[(temp << 4) & 0x3F];
|
3844
|
-
output += '==';
|
3845
|
-
break;
|
3846
|
-
case 2:
|
3847
|
-
temp = (uint8[uint8.length - 2] << 8) + (uint8[uint8.length - 1]);
|
3848
|
-
output += lookup[temp >> 10];
|
3849
|
-
output += lookup[(temp >> 4) & 0x3F];
|
3850
|
-
output += lookup[(temp << 2) & 0x3F];
|
3851
|
-
output += '=';
|
3852
|
-
break;
|
3853
|
-
}
|
3854
|
-
|
3855
|
-
return output;
|
3856
|
-
}
|
3857
|
-
|
3858
|
-
module.exports.toByteArray = b64ToByteArray;
|
3859
|
-
module.exports.fromByteArray = uint8ToBase64;
|
3860
|
-
}());
|
3861
|
-
|
3862
|
-
},{}]},{},[])
|
3863
|
-
;;module.exports=require("buffer-browserify")
|