meteor-node-stubs 1.0.2 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/node-stubs.iml +1 -1
- package/CHANGELOG.md +19 -0
- package/index.js +2 -2
- package/package.json +14 -13
- package/.idea/markdown-navigator-enh.xml +0 -10
- package/.idea/markdown-navigator.xml +0 -46
- package/node_modules/asn1.js/README.md +0 -100
- package/node_modules/asn1.js/lib/asn1/api.js +0 -61
- package/node_modules/asn1.js/lib/asn1/base/buffer.js +0 -116
- package/node_modules/asn1.js/lib/asn1/base/index.js +0 -6
- package/node_modules/asn1.js/lib/asn1/base/node.js +0 -634
- package/node_modules/asn1.js/lib/asn1/base/reporter.js +0 -121
- package/node_modules/asn1.js/lib/asn1/constants/der.js +0 -42
- package/node_modules/asn1.js/lib/asn1/constants/index.js +0 -19
- package/node_modules/asn1.js/lib/asn1/decoders/der.js +0 -324
- package/node_modules/asn1.js/lib/asn1/decoders/index.js +0 -4
- package/node_modules/asn1.js/lib/asn1/decoders/pem.js +0 -49
- package/node_modules/asn1.js/lib/asn1/encoders/der.js +0 -295
- package/node_modules/asn1.js/lib/asn1/encoders/index.js +0 -4
- package/node_modules/asn1.js/lib/asn1/encoders/pem.js +0 -21
- package/node_modules/asn1.js/lib/asn1.js +0 -9
- package/node_modules/asn1.js/package.json +0 -61
- package/node_modules/assert/.npmignore +0 -1
- package/node_modules/assert/.travis.yml +0 -31
- package/node_modules/assert/.zuul.yml +0 -13
- package/node_modules/assert/LICENSE +0 -18
- package/node_modules/assert/README.md +0 -64
- package/node_modules/assert/assert.js +0 -490
- package/node_modules/assert/node_modules/util/.npmignore +0 -1
- package/node_modules/assert/node_modules/util/.travis.yml +0 -8
- package/node_modules/assert/node_modules/util/.zuul.yml +0 -10
- package/node_modules/assert/node_modules/util/LICENSE +0 -18
- package/node_modules/assert/node_modules/util/README.md +0 -15
- package/node_modules/assert/node_modules/util/package.json +0 -62
- package/node_modules/assert/node_modules/util/support/isBuffer.js +0 -3
- package/node_modules/assert/node_modules/util/support/isBufferBrowser.js +0 -6
- package/node_modules/assert/node_modules/util/test/browser/inspect.js +0 -41
- package/node_modules/assert/node_modules/util/test/browser/is.js +0 -91
- package/node_modules/assert/node_modules/util/test/node/debug.js +0 -86
- package/node_modules/assert/node_modules/util/test/node/format.js +0 -77
- package/node_modules/assert/node_modules/util/test/node/inspect.js +0 -195
- package/node_modules/assert/node_modules/util/test/node/log.js +0 -58
- package/node_modules/assert/node_modules/util/test/node/util.js +0 -83
- package/node_modules/assert/node_modules/util/util.js +0 -586
- package/node_modules/assert/package.json +0 -63
- package/node_modules/assert/test.js +0 -345
- package/node_modules/base64-js/LICENSE +0 -21
- package/node_modules/base64-js/README.md +0 -34
- package/node_modules/base64-js/base64js.min.js +0 -1
- package/node_modules/base64-js/index.js +0 -151
- package/node_modules/base64-js/package.json +0 -68
- package/node_modules/base64-js/test/big-data.js +0 -25
- package/node_modules/base64-js/test/convert.js +0 -88
- package/node_modules/base64-js/test/corrupt.js +0 -10
- package/node_modules/base64-js/test/url-safe.js +0 -24
- package/node_modules/bn.js/.npmignore +0 -8
- package/node_modules/bn.js/README.md +0 -221
- package/node_modules/bn.js/lib/bn.js +0 -3427
- package/node_modules/bn.js/package.json +0 -74
- package/node_modules/bn.js/util/genCombMulTo.js +0 -65
- package/node_modules/bn.js/util/genCombMulTo10.js +0 -65
- package/node_modules/brorand/.npmignore +0 -2
- package/node_modules/brorand/README.md +0 -26
- package/node_modules/brorand/index.js +0 -65
- package/node_modules/brorand/package.json +0 -63
- package/node_modules/brorand/test/api-test.js +0 -8
- package/node_modules/browserify-aes/.travis.yml +0 -15
- package/node_modules/browserify-aes/LICENSE +0 -21
- package/node_modules/browserify-aes/README.md +0 -19
- package/node_modules/browserify-aes/aes.js +0 -228
- package/node_modules/browserify-aes/authCipher.js +0 -117
- package/node_modules/browserify-aes/browser.js +0 -13
- package/node_modules/browserify-aes/decrypter.js +0 -124
- package/node_modules/browserify-aes/encrypter.js +0 -114
- package/node_modules/browserify-aes/ghash.js +0 -89
- package/node_modules/browserify-aes/incr32.js +0 -15
- package/node_modules/browserify-aes/index.js +0 -7
- package/node_modules/browserify-aes/modes/cbc.js +0 -17
- package/node_modules/browserify-aes/modes/cfb.js +0 -33
- package/node_modules/browserify-aes/modes/cfb1.js +0 -42
- package/node_modules/browserify-aes/modes/cfb8.js +0 -25
- package/node_modules/browserify-aes/modes/ctr.js +0 -30
- package/node_modules/browserify-aes/modes/ecb.js +0 -7
- package/node_modules/browserify-aes/modes/index.js +0 -18
- package/node_modules/browserify-aes/modes/list.json +0 -191
- package/node_modules/browserify-aes/modes/ofb.js +0 -16
- package/node_modules/browserify-aes/package.json +0 -72
- package/node_modules/browserify-aes/streamCipher.js +0 -27
- package/node_modules/browserify-cipher/.travis.yml +0 -14
- package/node_modules/browserify-cipher/LICENSE +0 -21
- package/node_modules/browserify-cipher/README.md +0 -7
- package/node_modules/browserify-cipher/browser.js +0 -67
- package/node_modules/browserify-cipher/index.js +0 -7
- package/node_modules/browserify-cipher/package.json +0 -61
- package/node_modules/browserify-cipher/test.js +0 -55
- package/node_modules/browserify-des/.travis.yml +0 -8
- package/node_modules/browserify-des/index.js +0 -50
- package/node_modules/browserify-des/license +0 -21
- package/node_modules/browserify-des/modes.js +0 -24
- package/node_modules/browserify-des/package.json +0 -61
- package/node_modules/browserify-des/readme.md +0 -6
- package/node_modules/browserify-des/test.js +0 -81
- package/node_modules/browserify-rsa/.travis.yml +0 -3
- package/node_modules/browserify-rsa/LICENSE +0 -21
- package/node_modules/browserify-rsa/index.js +0 -40
- package/node_modules/browserify-rsa/package.json +0 -57
- package/node_modules/browserify-rsa/readme.md +0 -10
- package/node_modules/browserify-rsa/test.js +0 -53
- package/node_modules/browserify-sign/LICENSE +0 -13
- package/node_modules/browserify-sign/README.md +0 -13
- package/node_modules/browserify-sign/algos.js +0 -1
- package/node_modules/browserify-sign/browser/algorithms.json +0 -152
- package/node_modules/browserify-sign/browser/curves.json +0 -8
- package/node_modules/browserify-sign/browser/index.js +0 -91
- package/node_modules/browserify-sign/browser/sign.js +0 -145
- package/node_modules/browserify-sign/browser/verify.js +0 -83
- package/node_modules/browserify-sign/index.js +0 -7
- package/node_modules/browserify-sign/package.json +0 -69
- package/node_modules/browserify-zlib/.npmignore +0 -7
- package/node_modules/browserify-zlib/.travis.yml +0 -16
- package/node_modules/browserify-zlib/LICENSE +0 -70
- package/node_modules/browserify-zlib/README.md +0 -24
- package/node_modules/browserify-zlib/karma.conf.js +0 -11
- package/node_modules/browserify-zlib/lib/binding.js +0 -409
- package/node_modules/browserify-zlib/lib/index.js +0 -609
- package/node_modules/browserify-zlib/package.json +0 -95
- package/node_modules/browserify-zlib/src/binding.js +0 -432
- package/node_modules/browserify-zlib/src/index.js +0 -650
- package/node_modules/browserify-zlib/yarn.lock +0 -3819
- package/node_modules/buffer/AUTHORS.md +0 -55
- package/node_modules/buffer/LICENSE +0 -21
- package/node_modules/buffer/README.md +0 -409
- package/node_modules/buffer/index.d.ts +0 -185
- package/node_modules/buffer/index.js +0 -1777
- package/node_modules/buffer/package.json +0 -113
- package/node_modules/buffer-xor/.npmignore +0 -1
- package/node_modules/buffer-xor/.travis.yml +0 -9
- package/node_modules/buffer-xor/LICENSE +0 -21
- package/node_modules/buffer-xor/README.md +0 -41
- package/node_modules/buffer-xor/index.js +0 -10
- package/node_modules/buffer-xor/inline.js +0 -1
- package/node_modules/buffer-xor/inplace.js +0 -9
- package/node_modules/buffer-xor/package.json +0 -67
- package/node_modules/buffer-xor/test/fixtures.json +0 -23
- package/node_modules/buffer-xor/test/index.js +0 -38
- package/node_modules/builtin-status-codes/browser.js +0 -64
- package/node_modules/builtin-status-codes/build.js +0 -8
- package/node_modules/builtin-status-codes/index.js +0 -3
- package/node_modules/builtin-status-codes/license +0 -21
- package/node_modules/builtin-status-codes/package.json +0 -74
- package/node_modules/builtin-status-codes/readme.md +0 -31
- package/node_modules/cipher-base/.eslintrc +0 -3
- package/node_modules/cipher-base/.npmignore +0 -1
- package/node_modules/cipher-base/.travis.yml +0 -6
- package/node_modules/cipher-base/LICENSE +0 -21
- package/node_modules/cipher-base/README.md +0 -17
- package/node_modules/cipher-base/index.js +0 -99
- package/node_modules/cipher-base/package.json +0 -66
- package/node_modules/cipher-base/test.js +0 -111
- package/node_modules/console-browserify/.npmignore +0 -14
- package/node_modules/console-browserify/.testem.json +0 -14
- package/node_modules/console-browserify/.travis.yml +0 -4
- package/node_modules/console-browserify/LICENCE +0 -19
- package/node_modules/console-browserify/README.md +0 -33
- package/node_modules/console-browserify/index.js +0 -86
- package/node_modules/console-browserify/package.json +0 -96
- package/node_modules/console-browserify/test/index.js +0 -67
- package/node_modules/console-browserify/test/static/index.html +0 -12
- package/node_modules/console-browserify/test/static/test-adapter.js +0 -53
- package/node_modules/constants-browserify/README.md +0 -54
- package/node_modules/constants-browserify/build.sh +0 -1
- package/node_modules/constants-browserify/constants.json +0 -209
- package/node_modules/constants-browserify/package.json +0 -65
- package/node_modules/constants-browserify/test.js +0 -18
- package/node_modules/core-util-is/LICENSE +0 -19
- package/node_modules/core-util-is/README.md +0 -3
- package/node_modules/core-util-is/float.patch +0 -604
- package/node_modules/core-util-is/lib/util.js +0 -107
- package/node_modules/core-util-is/package.json +0 -65
- package/node_modules/core-util-is/test.js +0 -68
- package/node_modules/create-ecdh/.travis.yml +0 -7
- package/node_modules/create-ecdh/LICENSE +0 -21
- package/node_modules/create-ecdh/browser.js +0 -124
- package/node_modules/create-ecdh/index.js +0 -3
- package/node_modules/create-ecdh/package.json +0 -65
- package/node_modules/create-ecdh/readme.md +0 -4
- package/node_modules/create-hash/.travis.yml +0 -17
- package/node_modules/create-hash/LICENSE +0 -21
- package/node_modules/create-hash/README.md +0 -19
- package/node_modules/create-hash/browser.js +0 -30
- package/node_modules/create-hash/index.js +0 -1
- package/node_modules/create-hash/md5.js +0 -5
- package/node_modules/create-hash/package.json +0 -73
- package/node_modules/create-hash/test.js +0 -41
- package/node_modules/create-hmac/LICENSE +0 -21
- package/node_modules/create-hmac/README.md +0 -20
- package/node_modules/create-hmac/browser.js +0 -62
- package/node_modules/create-hmac/index.js +0 -1
- package/node_modules/create-hmac/legacy.js +0 -46
- package/node_modules/create-hmac/package.json +0 -75
- package/node_modules/crypto-browserify/.travis.yml +0 -27
- package/node_modules/crypto-browserify/.zuul.yml +0 -1
- package/node_modules/crypto-browserify/LICENSE +0 -24
- package/node_modules/crypto-browserify/README.md +0 -50
- package/node_modules/crypto-browserify/example/bundle.js +0 -637
- package/node_modules/crypto-browserify/example/index.html +0 -12
- package/node_modules/crypto-browserify/example/test.js +0 -4
- package/node_modules/crypto-browserify/index.js +0 -97
- package/node_modules/crypto-browserify/package.json +0 -81
- package/node_modules/crypto-browserify/test/aes.js +0 -49
- package/node_modules/crypto-browserify/test/create-hash.js +0 -50
- package/node_modules/crypto-browserify/test/create-hmac.js +0 -50
- package/node_modules/crypto-browserify/test/dh.js +0 -49
- package/node_modules/crypto-browserify/test/ecdh.js +0 -61
- package/node_modules/crypto-browserify/test/index.js +0 -19
- package/node_modules/crypto-browserify/test/node/dh.js +0 -51
- package/node_modules/crypto-browserify/test/pbkdf2.js +0 -21
- package/node_modules/crypto-browserify/test/public-encrypt.js +0 -36
- package/node_modules/crypto-browserify/test/random-bytes.js +0 -60
- package/node_modules/crypto-browserify/test/random-fill.js +0 -53
- package/node_modules/crypto-browserify/test/sign.js +0 -59
- package/node_modules/date-now/.npmignore +0 -14
- package/node_modules/date-now/.testem.json +0 -14
- package/node_modules/date-now/.travis.yml +0 -4
- package/node_modules/date-now/LICENCE +0 -19
- package/node_modules/date-now/README.md +0 -45
- package/node_modules/date-now/index.js +0 -5
- package/node_modules/date-now/package.json +0 -97
- package/node_modules/date-now/seed.js +0 -16
- package/node_modules/date-now/test/index.js +0 -28
- package/node_modules/date-now/test/static/index.html +0 -10
- package/node_modules/des.js/.jscsrc +0 -46
- package/node_modules/des.js/.jshintrc +0 -89
- package/node_modules/des.js/.npmignore +0 -2
- package/node_modules/des.js/README.md +0 -26
- package/node_modules/des.js/lib/des/cbc.js +0 -65
- package/node_modules/des.js/lib/des/cipher.js +0 -141
- package/node_modules/des.js/lib/des/des.js +0 -143
- package/node_modules/des.js/lib/des/ede.js +0 -55
- package/node_modules/des.js/lib/des/utils.js +0 -256
- package/node_modules/des.js/lib/des.js +0 -7
- package/node_modules/des.js/package.json +0 -65
- package/node_modules/des.js/test/cbc-test.js +0 -73
- package/node_modules/des.js/test/des-test.js +0 -139
- package/node_modules/des.js/test/ede-test.js +0 -73
- package/node_modules/des.js/test/fixtures.js +0 -5
- package/node_modules/des.js/test/utils-test.js +0 -169
- package/node_modules/diffie-hellman/.travis.yml +0 -10
- package/node_modules/diffie-hellman/LICENSE +0 -19
- package/node_modules/diffie-hellman/browser.js +0 -42
- package/node_modules/diffie-hellman/index.js +0 -10
- package/node_modules/diffie-hellman/lib/dh.js +0 -164
- package/node_modules/diffie-hellman/lib/generatePrime.js +0 -105
- package/node_modules/diffie-hellman/lib/primes.json +0 -34
- package/node_modules/diffie-hellman/package.json +0 -65
- package/node_modules/diffie-hellman/readme.md +0 -4
- package/node_modules/domain-browser/HISTORY.md +0 -46
- package/node_modules/domain-browser/LICENSE.md +0 -23
- package/node_modules/domain-browser/README.md +0 -121
- package/node_modules/domain-browser/package.json +0 -175
- package/node_modules/domain-browser/source/index.js +0 -70
- package/node_modules/elliptic/README.md +0 -238
- package/node_modules/elliptic/lib/elliptic/curve/base.js +0 -376
- package/node_modules/elliptic/lib/elliptic/curve/edwards.js +0 -432
- package/node_modules/elliptic/lib/elliptic/curve/index.js +0 -8
- package/node_modules/elliptic/lib/elliptic/curve/mont.js +0 -178
- package/node_modules/elliptic/lib/elliptic/curve/short.js +0 -937
- package/node_modules/elliptic/lib/elliptic/curves.js +0 -206
- package/node_modules/elliptic/lib/elliptic/ec/index.js +0 -241
- package/node_modules/elliptic/lib/elliptic/ec/key.js +0 -118
- package/node_modules/elliptic/lib/elliptic/ec/signature.js +0 -166
- package/node_modules/elliptic/lib/elliptic/eddsa/index.js +0 -118
- package/node_modules/elliptic/lib/elliptic/eddsa/key.js +0 -95
- package/node_modules/elliptic/lib/elliptic/eddsa/signature.js +0 -65
- package/node_modules/elliptic/lib/elliptic/precomputed/secp256k1.js +0 -780
- package/node_modules/elliptic/lib/elliptic/utils.js +0 -119
- package/node_modules/elliptic/lib/elliptic.js +0 -13
- package/node_modules/elliptic/package.json +0 -90
- package/node_modules/events/.airtap.yml +0 -15
- package/node_modules/events/.travis.yml +0 -16
- package/node_modules/events/History.md +0 -70
- package/node_modules/events/LICENSE +0 -22
- package/node_modules/events/Readme.md +0 -48
- package/node_modules/events/events.js +0 -448
- package/node_modules/events/package.json +0 -68
- package/node_modules/events/tests/add-listeners.js +0 -111
- package/node_modules/events/tests/check-listener-leaks.js +0 -101
- package/node_modules/events/tests/common.js +0 -104
- package/node_modules/events/tests/errors.js +0 -13
- package/node_modules/events/tests/events-list.js +0 -28
- package/node_modules/events/tests/index.js +0 -48
- package/node_modules/events/tests/legacy-compat.js +0 -16
- package/node_modules/events/tests/listener-count.js +0 -37
- package/node_modules/events/tests/listeners-side-effects.js +0 -56
- package/node_modules/events/tests/listeners.js +0 -149
- package/node_modules/events/tests/max-listeners.js +0 -47
- package/node_modules/events/tests/method-names.js +0 -35
- package/node_modules/events/tests/modify-in-emit.js +0 -90
- package/node_modules/events/tests/num-args.js +0 -60
- package/node_modules/events/tests/once.js +0 -83
- package/node_modules/events/tests/prepend.js +0 -31
- package/node_modules/events/tests/remove-all-listeners.js +0 -133
- package/node_modules/events/tests/remove-listeners.js +0 -212
- package/node_modules/events/tests/set-max-listeners-side-effects.js +0 -31
- package/node_modules/events/tests/special-event-names.js +0 -45
- package/node_modules/events/tests/subclass.js +0 -66
- package/node_modules/events/tests/symbols.js +0 -25
- package/node_modules/evp_bytestokey/LICENSE +0 -21
- package/node_modules/evp_bytestokey/README.md +0 -51
- package/node_modules/evp_bytestokey/index.js +0 -45
- package/node_modules/evp_bytestokey/package.json +0 -81
- package/node_modules/hash-base/LICENSE +0 -21
- package/node_modules/hash-base/README.md +0 -48
- package/node_modules/hash-base/index.js +0 -95
- package/node_modules/hash-base/package.json +0 -74
- package/node_modules/hash.js/.eslintrc.js +0 -41
- package/node_modules/hash.js/.travis.yml +0 -10
- package/node_modules/hash.js/README.md +0 -48
- package/node_modules/hash.js/lib/hash/common.js +0 -92
- package/node_modules/hash.js/lib/hash/hmac.js +0 -47
- package/node_modules/hash.js/lib/hash/ripemd.js +0 -146
- package/node_modules/hash.js/lib/hash/sha/1.js +0 -74
- package/node_modules/hash.js/lib/hash/sha/224.js +0 -30
- package/node_modules/hash.js/lib/hash/sha/256.js +0 -105
- package/node_modules/hash.js/lib/hash/sha/384.js +0 -35
- package/node_modules/hash.js/lib/hash/sha/512.js +0 -330
- package/node_modules/hash.js/lib/hash/sha/common.js +0 -49
- package/node_modules/hash.js/lib/hash/sha.js +0 -7
- package/node_modules/hash.js/lib/hash/utils.js +0 -278
- package/node_modules/hash.js/lib/hash.d.ts +0 -106
- package/node_modules/hash.js/lib/hash.js +0 -15
- package/node_modules/hash.js/node_modules/inherits/LICENSE +0 -16
- package/node_modules/hash.js/node_modules/inherits/README.md +0 -42
- package/node_modules/hash.js/node_modules/inherits/inherits.js +0 -7
- package/node_modules/hash.js/node_modules/inherits/inherits_browser.js +0 -23
- package/node_modules/hash.js/node_modules/inherits/package.json +0 -64
- package/node_modules/hash.js/package.json +0 -67
- package/node_modules/hash.js/test/hash-test.js +0 -140
- package/node_modules/hash.js/test/hmac-test.js +0 -62
- package/node_modules/hmac-drbg/.npmignore +0 -2
- package/node_modules/hmac-drbg/.travis.yml +0 -11
- package/node_modules/hmac-drbg/README.md +0 -48
- package/node_modules/hmac-drbg/lib/hmac-drbg.js +0 -113
- package/node_modules/hmac-drbg/package.json +0 -63
- package/node_modules/hmac-drbg/test/drbg-test.js +0 -91
- package/node_modules/hmac-drbg/test/fixtures/hmac-drbg-nist.json +0 -332
- package/node_modules/https-browserify/LICENSE +0 -20
- package/node_modules/https-browserify/index.js +0 -31
- package/node_modules/https-browserify/package.json +0 -59
- package/node_modules/https-browserify/readme.markdown +0 -22
- package/node_modules/ieee754/LICENSE +0 -11
- package/node_modules/ieee754/README.md +0 -53
- package/node_modules/ieee754/index.js +0 -84
- package/node_modules/ieee754/package.json +0 -72
- package/node_modules/inherits/LICENSE +0 -16
- package/node_modules/inherits/README.md +0 -42
- package/node_modules/inherits/inherits.js +0 -1
- package/node_modules/inherits/inherits_browser.js +0 -23
- package/node_modules/inherits/package.json +0 -74
- package/node_modules/inherits/test.js +0 -25
- package/node_modules/isarray/.npmignore +0 -1
- package/node_modules/isarray/.travis.yml +0 -4
- package/node_modules/isarray/Makefile +0 -6
- package/node_modules/isarray/README.md +0 -60
- package/node_modules/isarray/component.json +0 -19
- package/node_modules/isarray/index.js +0 -5
- package/node_modules/isarray/package.json +0 -76
- package/node_modules/isarray/test.js +0 -20
- package/node_modules/md5.js/LICENSE +0 -21
- package/node_modules/md5.js/README.md +0 -29
- package/node_modules/md5.js/index.js +0 -146
- package/node_modules/md5.js/package.json +0 -71
- package/node_modules/miller-rabin/.npmignore +0 -2
- package/node_modules/miller-rabin/1.js +0 -7
- package/node_modules/miller-rabin/README.md +0 -26
- package/node_modules/miller-rabin/bin/miller-rabin +0 -29
- package/node_modules/miller-rabin/lib/mr.js +0 -115
- package/node_modules/miller-rabin/package.json +0 -65
- package/node_modules/miller-rabin/test/api-test.js +0 -18
- package/node_modules/miller-rabin/test.js +0 -25
- package/node_modules/minimalistic-assert/LICENSE +0 -13
- package/node_modules/minimalistic-assert/index.js +0 -11
- package/node_modules/minimalistic-assert/package.json +0 -51
- package/node_modules/minimalistic-assert/readme.md +0 -4
- package/node_modules/minimalistic-crypto-utils/.npmignore +0 -2
- package/node_modules/minimalistic-crypto-utils/.travis.yml +0 -11
- package/node_modules/minimalistic-crypto-utils/README.md +0 -47
- package/node_modules/minimalistic-crypto-utils/lib/utils.js +0 -58
- package/node_modules/minimalistic-crypto-utils/package.json +0 -59
- package/node_modules/minimalistic-crypto-utils/test/utils-test.js +0 -28
- package/node_modules/os-browserify/.npmignore +0 -14
- package/node_modules/os-browserify/LICENSE +0 -21
- package/node_modules/os-browserify/README.md +0 -5
- package/node_modules/os-browserify/browser.js +0 -49
- package/node_modules/os-browserify/main.js +0 -1
- package/node_modules/os-browserify/package.json +0 -56
- package/node_modules/pako/CHANGELOG.md +0 -142
- package/node_modules/pako/LICENSE +0 -21
- package/node_modules/pako/README.md +0 -183
- package/node_modules/pako/dist/pako.js +0 -6818
- package/node_modules/pako/dist/pako.min.js +0 -1
- package/node_modules/pako/dist/pako_deflate.js +0 -3997
- package/node_modules/pako/dist/pako_deflate.min.js +0 -1
- package/node_modules/pako/dist/pako_inflate.js +0 -3300
- package/node_modules/pako/dist/pako_inflate.min.js +0 -1
- package/node_modules/pako/index.js +0 -14
- package/node_modules/pako/lib/deflate.js +0 -400
- package/node_modules/pako/lib/inflate.js +0 -423
- package/node_modules/pako/lib/utils/common.js +0 -105
- package/node_modules/pako/lib/utils/strings.js +0 -187
- package/node_modules/pako/lib/zlib/README +0 -59
- package/node_modules/pako/lib/zlib/adler32.js +0 -51
- package/node_modules/pako/lib/zlib/constants.js +0 -68
- package/node_modules/pako/lib/zlib/crc32.js +0 -59
- package/node_modules/pako/lib/zlib/deflate.js +0 -1874
- package/node_modules/pako/lib/zlib/gzheader.js +0 -58
- package/node_modules/pako/lib/zlib/inffast.js +0 -345
- package/node_modules/pako/lib/zlib/inflate.js +0 -1556
- package/node_modules/pako/lib/zlib/inftrees.js +0 -343
- package/node_modules/pako/lib/zlib/messages.js +0 -32
- package/node_modules/pako/lib/zlib/trees.js +0 -1222
- package/node_modules/pako/lib/zlib/zstream.js +0 -47
- package/node_modules/pako/package.json +0 -94
- package/node_modules/parse-asn1/.travis.yml +0 -9
- package/node_modules/parse-asn1/LICENSE +0 -13
- package/node_modules/parse-asn1/README.md +0 -8
- package/node_modules/parse-asn1/aesid.json +0 -13
- package/node_modules/parse-asn1/asn1.js +0 -122
- package/node_modules/parse-asn1/certificate.js +0 -89
- package/node_modules/parse-asn1/fixProc.js +0 -31
- package/node_modules/parse-asn1/index.js +0 -107
- package/node_modules/parse-asn1/package.json +0 -62
- package/node_modules/parse-asn1/test/1024.priv +0 -16
- package/node_modules/parse-asn1/test/1024.pub +0 -6
- package/node_modules/parse-asn1/test/cert.priv +0 -27
- package/node_modules/parse-asn1/test/cert.pub +0 -20
- package/node_modules/parse-asn1/test/dsa.1024.priv +0 -18
- package/node_modules/parse-asn1/test/dsa.1024.pub +0 -12
- package/node_modules/parse-asn1/test/dsa.2048.priv +0 -20
- package/node_modules/parse-asn1/test/dsa.2048.pub +0 -20
- package/node_modules/parse-asn1/test/ec.pass.priv +0 -7
- package/node_modules/parse-asn1/test/ec.priv +0 -5
- package/node_modules/parse-asn1/test/ec.pub +0 -4
- package/node_modules/parse-asn1/test/index.js +0 -101
- package/node_modules/parse-asn1/test/node.cert +0 -20
- package/node_modules/parse-asn1/test/pass.1024.priv +0 -18
- package/node_modules/parse-asn1/test/pass.1024.pub +0 -6
- package/node_modules/parse-asn1/test/pass.dsa.1024.priv +0 -11
- package/node_modules/parse-asn1/test/pass.dsa.1024.pub +0 -12
- package/node_modules/parse-asn1/test/pass.rsa.1024.priv +0 -18
- package/node_modules/parse-asn1/test/pass.rsa.1024.pub +0 -6
- package/node_modules/parse-asn1/test/pass.rsa.2028.priv +0 -30
- package/node_modules/parse-asn1/test/pass.rsa.2028.pub +0 -9
- package/node_modules/parse-asn1/test/pass2.dsa.1024.priv +0 -15
- package/node_modules/parse-asn1/test/pass2.dsa.1024.pub +0 -12
- package/node_modules/parse-asn1/test/rsa.1024.priv +0 -15
- package/node_modules/parse-asn1/test/rsa.1024.pub +0 -5
- package/node_modules/parse-asn1/test/rsa.2028.priv +0 -27
- package/node_modules/parse-asn1/test/rsa.2028.pub +0 -8
- package/node_modules/parse-asn1/test/vector.js +0 -7
- package/node_modules/parse-asn1/test/vector.priv +0 -12
- package/node_modules/parse-asn1/test/vector2.priv +0 -19
- package/node_modules/path-browserify/.travis.yml +0 -16
- package/node_modules/path-browserify/CHANGELOG.md +0 -14
- package/node_modules/path-browserify/LICENSE +0 -18
- package/node_modules/path-browserify/README.md +0 -45
- package/node_modules/path-browserify/index.js +0 -529
- package/node_modules/path-browserify/package.json +0 -60
- package/node_modules/path-browserify/test/index.js +0 -9
- package/node_modules/path-browserify/test/test-path-basename.js +0 -79
- package/node_modules/path-browserify/test/test-path-dirname.js +0 -58
- package/node_modules/path-browserify/test/test-path-extname.js +0 -96
- package/node_modules/path-browserify/test/test-path-isabsolute.js +0 -33
- package/node_modules/path-browserify/test/test-path-join.js +0 -126
- package/node_modules/path-browserify/test/test-path-parse-format.js +0 -235
- package/node_modules/path-browserify/test/test-path-relative.js +0 -66
- package/node_modules/path-browserify/test/test-path-resolve.js +0 -45
- package/node_modules/path-browserify/test/test-path-zero-length-strings.js +0 -53
- package/node_modules/path-browserify/test/test-path.js +0 -107
- package/node_modules/pbkdf2/LICENSE +0 -21
- package/node_modules/pbkdf2/README.md +0 -30
- package/node_modules/pbkdf2/browser.js +0 -2
- package/node_modules/pbkdf2/index.js +0 -31
- package/node_modules/pbkdf2/lib/async.js +0 -100
- package/node_modules/pbkdf2/lib/default-encoding.js +0 -10
- package/node_modules/pbkdf2/lib/precondition.js +0 -28
- package/node_modules/pbkdf2/lib/sync-browser.js +0 -104
- package/node_modules/pbkdf2/lib/sync.js +0 -51
- package/node_modules/pbkdf2/package.json +0 -101
- package/node_modules/process/.eslintrc +0 -21
- package/node_modules/process/LICENSE +0 -22
- package/node_modules/process/README.md +0 -26
- package/node_modules/process/browser.js +0 -184
- package/node_modules/process/index.js +0 -2
- package/node_modules/process/package.json +0 -62
- package/node_modules/process/test.js +0 -199
- package/node_modules/process-nextick-args/index.js +0 -44
- package/node_modules/process-nextick-args/license.md +0 -19
- package/node_modules/process-nextick-args/package.json +0 -53
- package/node_modules/process-nextick-args/readme.md +0 -18
- package/node_modules/public-encrypt/.travis.yml +0 -6
- package/node_modules/public-encrypt/LICENSE +0 -19
- package/node_modules/public-encrypt/browser.js +0 -10
- package/node_modules/public-encrypt/index.js +0 -18
- package/node_modules/public-encrypt/mgf.js +0 -19
- package/node_modules/public-encrypt/package.json +0 -67
- package/node_modules/public-encrypt/privateDecrypt.js +0 -105
- package/node_modules/public-encrypt/publicEncrypt.js +0 -88
- package/node_modules/public-encrypt/readme.md +0 -8
- package/node_modules/public-encrypt/test/1024.priv +0 -16
- package/node_modules/public-encrypt/test/1024.pub +0 -6
- package/node_modules/public-encrypt/test/ec.pass.priv +0 -7
- package/node_modules/public-encrypt/test/ec.priv +0 -5
- package/node_modules/public-encrypt/test/ec.pub +0 -4
- package/node_modules/public-encrypt/test/index.js +0 -113
- package/node_modules/public-encrypt/test/nodeTests.js +0 -51
- package/node_modules/public-encrypt/test/pass.1024.priv +0 -18
- package/node_modules/public-encrypt/test/pass.1024.pub +0 -6
- package/node_modules/public-encrypt/test/rsa.1024.priv +0 -15
- package/node_modules/public-encrypt/test/rsa.1024.pub +0 -5
- package/node_modules/public-encrypt/test/rsa.2028.priv +0 -27
- package/node_modules/public-encrypt/test/rsa.2028.pub +0 -8
- package/node_modules/public-encrypt/test/rsa.pass.priv +0 -30
- package/node_modules/public-encrypt/test/rsa.pass.pub +0 -9
- package/node_modules/public-encrypt/test/test_cert.pem +0 -20
- package/node_modules/public-encrypt/test/test_key.pem +0 -15
- package/node_modules/public-encrypt/test/test_rsa_privkey.pem +0 -15
- package/node_modules/public-encrypt/test/test_rsa_privkey_encrypted.pem +0 -18
- package/node_modules/public-encrypt/test/test_rsa_pubkey.pem +0 -6
- package/node_modules/public-encrypt/withPublic.js +0 -12
- package/node_modules/public-encrypt/xor.js +0 -8
- package/node_modules/punycode/LICENSE-MIT.txt +0 -20
- package/node_modules/punycode/README.md +0 -122
- package/node_modules/punycode/package.json +0 -88
- package/node_modules/punycode/punycode.es6.js +0 -441
- package/node_modules/punycode/punycode.js +0 -440
- package/node_modules/querystring/.History.md.un~ +0 -0
- package/node_modules/querystring/.Readme.md.un~ +0 -0
- package/node_modules/querystring/.package.json.un~ +0 -0
- package/node_modules/querystring/.travis.yml +0 -4
- package/node_modules/querystring/History.md +0 -20
- package/node_modules/querystring/License.md +0 -19
- package/node_modules/querystring/Readme.md +0 -15
- package/node_modules/querystring/decode.js +0 -80
- package/node_modules/querystring/encode.js +0 -64
- package/node_modules/querystring/index.js +0 -4
- package/node_modules/querystring/package.json +0 -103
- package/node_modules/querystring/test/.index.js.un~ +0 -0
- package/node_modules/querystring/test/common-index.js +0 -3
- package/node_modules/querystring/test/index.js +0 -210
- package/node_modules/querystring/test/tap-index.js +0 -3
- package/node_modules/querystring-es3/.travis.yml +0 -4
- package/node_modules/querystring-es3/History.md +0 -20
- package/node_modules/querystring-es3/License.md +0 -19
- package/node_modules/querystring-es3/Readme.md +0 -15
- package/node_modules/querystring-es3/decode.js +0 -84
- package/node_modules/querystring-es3/encode.js +0 -85
- package/node_modules/querystring-es3/index.js +0 -4
- package/node_modules/querystring-es3/package.json +0 -103
- package/node_modules/querystring-es3/test/common-index.js +0 -3
- package/node_modules/querystring-es3/test/index.js +0 -210
- package/node_modules/querystring-es3/test/tap-index.js +0 -3
- package/node_modules/randombytes/.travis.yml +0 -15
- package/node_modules/randombytes/.zuul.yml +0 -1
- package/node_modules/randombytes/LICENSE +0 -21
- package/node_modules/randombytes/README.md +0 -14
- package/node_modules/randombytes/browser.js +0 -50
- package/node_modules/randombytes/index.js +0 -1
- package/node_modules/randombytes/package.json +0 -68
- package/node_modules/randombytes/test.js +0 -81
- package/node_modules/randomfill/.travis.yml +0 -15
- package/node_modules/randomfill/.zuul.yml +0 -1
- package/node_modules/randomfill/LICENSE +0 -21
- package/node_modules/randomfill/README.md +0 -15
- package/node_modules/randomfill/browser.js +0 -108
- package/node_modules/randomfill/index.js +0 -7
- package/node_modules/randomfill/package.json +0 -65
- package/node_modules/randomfill/test.js +0 -28
- package/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- package/node_modules/readable-stream/GOVERNANCE.md +0 -136
- package/node_modules/readable-stream/LICENSE +0 -47
- package/node_modules/readable-stream/README.md +0 -111
- package/node_modules/readable-stream/errors-browser.js +0 -127
- package/node_modules/readable-stream/errors.js +0 -116
- package/node_modules/readable-stream/experimentalWarning.js +0 -17
- package/node_modules/readable-stream/lib/_stream_duplex.js +0 -139
- package/node_modules/readable-stream/lib/_stream_passthrough.js +0 -39
- package/node_modules/readable-stream/lib/_stream_readable.js +0 -1087
- package/node_modules/readable-stream/lib/_stream_transform.js +0 -201
- package/node_modules/readable-stream/lib/_stream_writable.js +0 -683
- package/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -207
- package/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -189
- package/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -85
- package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -104
- package/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -97
- package/node_modules/readable-stream/lib/internal/streams/state.js +0 -27
- package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/node_modules/readable-stream/node_modules/inherits/LICENSE +0 -16
- package/node_modules/readable-stream/node_modules/inherits/README.md +0 -42
- package/node_modules/readable-stream/node_modules/inherits/inherits.js +0 -7
- package/node_modules/readable-stream/node_modules/inherits/inherits_browser.js +0 -23
- package/node_modules/readable-stream/node_modules/inherits/package.json +0 -64
- package/node_modules/readable-stream/package.json +0 -99
- package/node_modules/readable-stream/readable-browser.js +0 -7
- package/node_modules/readable-stream/readable.js +0 -16
- package/node_modules/ripemd160/CHANGELOG.md +0 -72
- package/node_modules/ripemd160/LICENSE +0 -21
- package/node_modules/ripemd160/README.md +0 -27
- package/node_modules/ripemd160/index.js +0 -163
- package/node_modules/ripemd160/package.json +0 -71
- package/node_modules/safe-buffer/LICENSE +0 -21
- package/node_modules/safe-buffer/README.md +0 -584
- package/node_modules/safe-buffer/index.d.ts +0 -187
- package/node_modules/safe-buffer/index.js +0 -62
- package/node_modules/safe-buffer/package.json +0 -80
- package/node_modules/setimmediate/LICENSE.txt +0 -20
- package/node_modules/setimmediate/package.json +0 -77
- package/node_modules/setimmediate/setImmediate.js +0 -186
- package/node_modules/sha.js/.travis.yml +0 -17
- package/node_modules/sha.js/LICENSE +0 -49
- package/node_modules/sha.js/README.md +0 -44
- package/node_modules/sha.js/bin.js +0 -41
- package/node_modules/sha.js/hash.js +0 -81
- package/node_modules/sha.js/index.js +0 -15
- package/node_modules/sha.js/package.json +0 -69
- package/node_modules/sha.js/sha.js +0 -94
- package/node_modules/sha.js/sha1.js +0 -99
- package/node_modules/sha.js/sha224.js +0 -53
- package/node_modules/sha.js/sha256.js +0 -135
- package/node_modules/sha.js/sha384.js +0 -57
- package/node_modules/sha.js/sha512.js +0 -260
- package/node_modules/sha.js/test/hash.js +0 -75
- package/node_modules/sha.js/test/test.js +0 -100
- package/node_modules/sha.js/test/vectors.js +0 -72
- package/node_modules/stream-browserify/.travis.yml +0 -16
- package/node_modules/stream-browserify/LICENSE +0 -20
- package/node_modules/stream-browserify/index.js +0 -127
- package/node_modules/stream-browserify/node_modules/readable-stream/.travis.yml +0 -55
- package/node_modules/stream-browserify/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- package/node_modules/stream-browserify/node_modules/readable-stream/GOVERNANCE.md +0 -136
- package/node_modules/stream-browserify/node_modules/readable-stream/LICENSE +0 -47
- package/node_modules/stream-browserify/node_modules/readable-stream/README.md +0 -58
- package/node_modules/stream-browserify/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +0 -60
- package/node_modules/stream-browserify/node_modules/readable-stream/duplex-browser.js +0 -1
- package/node_modules/stream-browserify/node_modules/readable-stream/duplex.js +0 -1
- package/node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_duplex.js +0 -131
- package/node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_passthrough.js +0 -47
- package/node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_readable.js +0 -1019
- package/node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_transform.js +0 -214
- package/node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_writable.js +0 -687
- package/node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/BufferList.js +0 -79
- package/node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -74
- package/node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/node_modules/stream-browserify/node_modules/readable-stream/node_modules/inherits/LICENSE +0 -16
- package/node_modules/stream-browserify/node_modules/readable-stream/node_modules/inherits/README.md +0 -42
- package/node_modules/stream-browserify/node_modules/readable-stream/node_modules/inherits/inherits.js +0 -7
- package/node_modules/stream-browserify/node_modules/readable-stream/node_modules/inherits/inherits_browser.js +0 -23
- package/node_modules/stream-browserify/node_modules/readable-stream/node_modules/inherits/package.json +0 -64
- package/node_modules/stream-browserify/node_modules/readable-stream/package.json +0 -84
- package/node_modules/stream-browserify/node_modules/readable-stream/passthrough.js +0 -1
- package/node_modules/stream-browserify/node_modules/readable-stream/readable-browser.js +0 -7
- package/node_modules/stream-browserify/node_modules/readable-stream/readable.js +0 -19
- package/node_modules/stream-browserify/node_modules/readable-stream/transform.js +0 -1
- package/node_modules/stream-browserify/node_modules/readable-stream/writable-browser.js +0 -1
- package/node_modules/stream-browserify/node_modules/readable-stream/writable.js +0 -8
- package/node_modules/stream-browserify/node_modules/string_decoder/.travis.yml +0 -50
- package/node_modules/stream-browserify/node_modules/string_decoder/LICENSE +0 -48
- package/node_modules/stream-browserify/node_modules/string_decoder/README.md +0 -47
- package/node_modules/stream-browserify/node_modules/string_decoder/lib/string_decoder.js +0 -296
- package/node_modules/stream-browserify/node_modules/string_decoder/package.json +0 -62
- package/node_modules/stream-browserify/package.json +0 -89
- package/node_modules/stream-browserify/readme.markdown +0 -25
- package/node_modules/stream-browserify/test/buf.js +0 -33
- package/node_modules/stream-http/.airtap.yml +0 -22
- package/node_modules/stream-http/.travis.yml +0 -7
- package/node_modules/stream-http/LICENSE +0 -24
- package/node_modules/stream-http/README.md +0 -136
- package/node_modules/stream-http/index.js +0 -85
- package/node_modules/stream-http/lib/capability.js +0 -59
- package/node_modules/stream-http/lib/request.js +0 -315
- package/node_modules/stream-http/lib/response.js +0 -207
- package/node_modules/stream-http/package.json +0 -75
- package/node_modules/stream-http/test/browser/abort.js +0 -55
- package/node_modules/stream-http/test/browser/auth.js +0 -22
- package/node_modules/stream-http/test/browser/binary-streaming.js +0 -50
- package/node_modules/stream-http/test/browser/binary.js +0 -23
- package/node_modules/stream-http/test/browser/body-empty.js +0 -29
- package/node_modules/stream-http/test/browser/cookie.js +0 -25
- package/node_modules/stream-http/test/browser/disable-fetch.js +0 -37
- package/node_modules/stream-http/test/browser/error.js.disabled +0 -12
- package/node_modules/stream-http/test/browser/headers.js +0 -116
- package/node_modules/stream-http/test/browser/lib/webworker-worker.js +0 -20
- package/node_modules/stream-http/test/browser/package.json +0 -5
- package/node_modules/stream-http/test/browser/post-binary.js +0 -29
- package/node_modules/stream-http/test/browser/post-text.js +0 -48
- package/node_modules/stream-http/test/browser/text-streaming.js +0 -40
- package/node_modules/stream-http/test/browser/text.js +0 -42
- package/node_modules/stream-http/test/browser/timeout.js +0 -43
- package/node_modules/stream-http/test/browser/webworker.js +0 -21
- package/node_modules/stream-http/test/node/http-browserify.js +0 -147
- package/node_modules/stream-http/test/server/index.js +0 -137
- package/node_modules/stream-http/test/server/static/basic.txt +0 -19
- package/node_modules/stream-http/test/server/static/browserify.png +0 -0
- package/node_modules/stream-http/test/server/static/test-polyfill.js +0 -9
- package/node_modules/string_decoder/LICENSE +0 -48
- package/node_modules/string_decoder/README.md +0 -47
- package/node_modules/string_decoder/lib/string_decoder.js +0 -296
- package/node_modules/string_decoder/package.json +0 -66
- package/node_modules/timers-browserify/CHANGELOG.md +0 -140
- package/node_modules/timers-browserify/LICENSE.md +0 -46
- package/node_modules/timers-browserify/README.md +0 -40
- package/node_modules/timers-browserify/main.js +0 -63
- package/node_modules/timers-browserify/package.json +0 -126
- package/node_modules/tty-browserify/LICENSE +0 -18
- package/node_modules/tty-browserify/index.js +0 -11
- package/node_modules/tty-browserify/package.json +0 -60
- package/node_modules/tty-browserify/readme.markdown +0 -1
- package/node_modules/url/.npmignore +0 -1
- package/node_modules/url/.travis.yml +0 -7
- package/node_modules/url/.zuul.yml +0 -16
- package/node_modules/url/LICENSE +0 -21
- package/node_modules/url/README.md +0 -108
- package/node_modules/url/node_modules/punycode/LICENSE-MIT.txt +0 -20
- package/node_modules/url/node_modules/punycode/README.md +0 -176
- package/node_modules/url/node_modules/punycode/package.json +0 -83
- package/node_modules/url/node_modules/punycode/punycode.js +0 -530
- package/node_modules/url/package.json +0 -56
- package/node_modules/url/test.js +0 -1599
- package/node_modules/url/url.js +0 -732
- package/node_modules/url/util.js +0 -16
- package/node_modules/util/CHANGELOG.md +0 -15
- package/node_modules/util/LICENSE +0 -18
- package/node_modules/util/README.md +0 -48
- package/node_modules/util/node_modules/inherits/LICENSE +0 -16
- package/node_modules/util/node_modules/inherits/README.md +0 -42
- package/node_modules/util/node_modules/inherits/inherits.js +0 -7
- package/node_modules/util/node_modules/inherits/inherits_browser.js +0 -23
- package/node_modules/util/node_modules/inherits/package.json +0 -64
- package/node_modules/util/package.json +0 -70
- package/node_modules/util/support/isBuffer.js +0 -3
- package/node_modules/util/support/isBufferBrowser.js +0 -6
- package/node_modules/util/util.js +0 -703
- package/node_modules/util-deprecate/History.md +0 -16
- package/node_modules/util-deprecate/LICENSE +0 -24
- package/node_modules/util-deprecate/README.md +0 -53
- package/node_modules/util-deprecate/browser.js +0 -67
- package/node_modules/util-deprecate/node.js +0 -6
- package/node_modules/util-deprecate/package.json +0 -60
- package/node_modules/vm-browserify/.travis.yml +0 -6
- package/node_modules/vm-browserify/CHANGELOG.md +0 -16
- package/node_modules/vm-browserify/LICENSE +0 -18
- package/node_modules/vm-browserify/example/run/bundle.js +0 -473
- package/node_modules/vm-browserify/example/run/entry.js +0 -6
- package/node_modules/vm-browserify/example/run/index.html +0 -9
- package/node_modules/vm-browserify/example/run/server.js +0 -6
- package/node_modules/vm-browserify/index.js +0 -149
- package/node_modules/vm-browserify/package.json +0 -62
- package/node_modules/vm-browserify/readme.markdown +0 -67
- package/node_modules/vm-browserify/test/vm.js +0 -35
- package/node_modules/xtend/.jshintrc +0 -30
- package/node_modules/xtend/.npmignore +0 -1
- package/node_modules/xtend/LICENCE +0 -19
- package/node_modules/xtend/Makefile +0 -4
- package/node_modules/xtend/README.md +0 -32
- package/node_modules/xtend/immutable.js +0 -19
- package/node_modules/xtend/mutable.js +0 -17
- package/node_modules/xtend/package.json +0 -89
- package/node_modules/xtend/test.js +0 -83
|
@@ -1,260 +0,0 @@
|
|
|
1
|
-
var inherits = require('inherits')
|
|
2
|
-
var Hash = require('./hash')
|
|
3
|
-
var Buffer = require('safe-buffer').Buffer
|
|
4
|
-
|
|
5
|
-
var K = [
|
|
6
|
-
0x428a2f98, 0xd728ae22, 0x71374491, 0x23ef65cd,
|
|
7
|
-
0xb5c0fbcf, 0xec4d3b2f, 0xe9b5dba5, 0x8189dbbc,
|
|
8
|
-
0x3956c25b, 0xf348b538, 0x59f111f1, 0xb605d019,
|
|
9
|
-
0x923f82a4, 0xaf194f9b, 0xab1c5ed5, 0xda6d8118,
|
|
10
|
-
0xd807aa98, 0xa3030242, 0x12835b01, 0x45706fbe,
|
|
11
|
-
0x243185be, 0x4ee4b28c, 0x550c7dc3, 0xd5ffb4e2,
|
|
12
|
-
0x72be5d74, 0xf27b896f, 0x80deb1fe, 0x3b1696b1,
|
|
13
|
-
0x9bdc06a7, 0x25c71235, 0xc19bf174, 0xcf692694,
|
|
14
|
-
0xe49b69c1, 0x9ef14ad2, 0xefbe4786, 0x384f25e3,
|
|
15
|
-
0x0fc19dc6, 0x8b8cd5b5, 0x240ca1cc, 0x77ac9c65,
|
|
16
|
-
0x2de92c6f, 0x592b0275, 0x4a7484aa, 0x6ea6e483,
|
|
17
|
-
0x5cb0a9dc, 0xbd41fbd4, 0x76f988da, 0x831153b5,
|
|
18
|
-
0x983e5152, 0xee66dfab, 0xa831c66d, 0x2db43210,
|
|
19
|
-
0xb00327c8, 0x98fb213f, 0xbf597fc7, 0xbeef0ee4,
|
|
20
|
-
0xc6e00bf3, 0x3da88fc2, 0xd5a79147, 0x930aa725,
|
|
21
|
-
0x06ca6351, 0xe003826f, 0x14292967, 0x0a0e6e70,
|
|
22
|
-
0x27b70a85, 0x46d22ffc, 0x2e1b2138, 0x5c26c926,
|
|
23
|
-
0x4d2c6dfc, 0x5ac42aed, 0x53380d13, 0x9d95b3df,
|
|
24
|
-
0x650a7354, 0x8baf63de, 0x766a0abb, 0x3c77b2a8,
|
|
25
|
-
0x81c2c92e, 0x47edaee6, 0x92722c85, 0x1482353b,
|
|
26
|
-
0xa2bfe8a1, 0x4cf10364, 0xa81a664b, 0xbc423001,
|
|
27
|
-
0xc24b8b70, 0xd0f89791, 0xc76c51a3, 0x0654be30,
|
|
28
|
-
0xd192e819, 0xd6ef5218, 0xd6990624, 0x5565a910,
|
|
29
|
-
0xf40e3585, 0x5771202a, 0x106aa070, 0x32bbd1b8,
|
|
30
|
-
0x19a4c116, 0xb8d2d0c8, 0x1e376c08, 0x5141ab53,
|
|
31
|
-
0x2748774c, 0xdf8eeb99, 0x34b0bcb5, 0xe19b48a8,
|
|
32
|
-
0x391c0cb3, 0xc5c95a63, 0x4ed8aa4a, 0xe3418acb,
|
|
33
|
-
0x5b9cca4f, 0x7763e373, 0x682e6ff3, 0xd6b2b8a3,
|
|
34
|
-
0x748f82ee, 0x5defb2fc, 0x78a5636f, 0x43172f60,
|
|
35
|
-
0x84c87814, 0xa1f0ab72, 0x8cc70208, 0x1a6439ec,
|
|
36
|
-
0x90befffa, 0x23631e28, 0xa4506ceb, 0xde82bde9,
|
|
37
|
-
0xbef9a3f7, 0xb2c67915, 0xc67178f2, 0xe372532b,
|
|
38
|
-
0xca273ece, 0xea26619c, 0xd186b8c7, 0x21c0c207,
|
|
39
|
-
0xeada7dd6, 0xcde0eb1e, 0xf57d4f7f, 0xee6ed178,
|
|
40
|
-
0x06f067aa, 0x72176fba, 0x0a637dc5, 0xa2c898a6,
|
|
41
|
-
0x113f9804, 0xbef90dae, 0x1b710b35, 0x131c471b,
|
|
42
|
-
0x28db77f5, 0x23047d84, 0x32caab7b, 0x40c72493,
|
|
43
|
-
0x3c9ebe0a, 0x15c9bebc, 0x431d67c4, 0x9c100d4c,
|
|
44
|
-
0x4cc5d4be, 0xcb3e42b6, 0x597f299c, 0xfc657e2a,
|
|
45
|
-
0x5fcb6fab, 0x3ad6faec, 0x6c44198c, 0x4a475817
|
|
46
|
-
]
|
|
47
|
-
|
|
48
|
-
var W = new Array(160)
|
|
49
|
-
|
|
50
|
-
function Sha512 () {
|
|
51
|
-
this.init()
|
|
52
|
-
this._w = W
|
|
53
|
-
|
|
54
|
-
Hash.call(this, 128, 112)
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
inherits(Sha512, Hash)
|
|
58
|
-
|
|
59
|
-
Sha512.prototype.init = function () {
|
|
60
|
-
this._ah = 0x6a09e667
|
|
61
|
-
this._bh = 0xbb67ae85
|
|
62
|
-
this._ch = 0x3c6ef372
|
|
63
|
-
this._dh = 0xa54ff53a
|
|
64
|
-
this._eh = 0x510e527f
|
|
65
|
-
this._fh = 0x9b05688c
|
|
66
|
-
this._gh = 0x1f83d9ab
|
|
67
|
-
this._hh = 0x5be0cd19
|
|
68
|
-
|
|
69
|
-
this._al = 0xf3bcc908
|
|
70
|
-
this._bl = 0x84caa73b
|
|
71
|
-
this._cl = 0xfe94f82b
|
|
72
|
-
this._dl = 0x5f1d36f1
|
|
73
|
-
this._el = 0xade682d1
|
|
74
|
-
this._fl = 0x2b3e6c1f
|
|
75
|
-
this._gl = 0xfb41bd6b
|
|
76
|
-
this._hl = 0x137e2179
|
|
77
|
-
|
|
78
|
-
return this
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
function Ch (x, y, z) {
|
|
82
|
-
return z ^ (x & (y ^ z))
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
function maj (x, y, z) {
|
|
86
|
-
return (x & y) | (z & (x | y))
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
function sigma0 (x, xl) {
|
|
90
|
-
return (x >>> 28 | xl << 4) ^ (xl >>> 2 | x << 30) ^ (xl >>> 7 | x << 25)
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
function sigma1 (x, xl) {
|
|
94
|
-
return (x >>> 14 | xl << 18) ^ (x >>> 18 | xl << 14) ^ (xl >>> 9 | x << 23)
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
function Gamma0 (x, xl) {
|
|
98
|
-
return (x >>> 1 | xl << 31) ^ (x >>> 8 | xl << 24) ^ (x >>> 7)
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
function Gamma0l (x, xl) {
|
|
102
|
-
return (x >>> 1 | xl << 31) ^ (x >>> 8 | xl << 24) ^ (x >>> 7 | xl << 25)
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
function Gamma1 (x, xl) {
|
|
106
|
-
return (x >>> 19 | xl << 13) ^ (xl >>> 29 | x << 3) ^ (x >>> 6)
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
function Gamma1l (x, xl) {
|
|
110
|
-
return (x >>> 19 | xl << 13) ^ (xl >>> 29 | x << 3) ^ (x >>> 6 | xl << 26)
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
function getCarry (a, b) {
|
|
114
|
-
return (a >>> 0) < (b >>> 0) ? 1 : 0
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
Sha512.prototype._update = function (M) {
|
|
118
|
-
var W = this._w
|
|
119
|
-
|
|
120
|
-
var ah = this._ah | 0
|
|
121
|
-
var bh = this._bh | 0
|
|
122
|
-
var ch = this._ch | 0
|
|
123
|
-
var dh = this._dh | 0
|
|
124
|
-
var eh = this._eh | 0
|
|
125
|
-
var fh = this._fh | 0
|
|
126
|
-
var gh = this._gh | 0
|
|
127
|
-
var hh = this._hh | 0
|
|
128
|
-
|
|
129
|
-
var al = this._al | 0
|
|
130
|
-
var bl = this._bl | 0
|
|
131
|
-
var cl = this._cl | 0
|
|
132
|
-
var dl = this._dl | 0
|
|
133
|
-
var el = this._el | 0
|
|
134
|
-
var fl = this._fl | 0
|
|
135
|
-
var gl = this._gl | 0
|
|
136
|
-
var hl = this._hl | 0
|
|
137
|
-
|
|
138
|
-
for (var i = 0; i < 32; i += 2) {
|
|
139
|
-
W[i] = M.readInt32BE(i * 4)
|
|
140
|
-
W[i + 1] = M.readInt32BE(i * 4 + 4)
|
|
141
|
-
}
|
|
142
|
-
for (; i < 160; i += 2) {
|
|
143
|
-
var xh = W[i - 15 * 2]
|
|
144
|
-
var xl = W[i - 15 * 2 + 1]
|
|
145
|
-
var gamma0 = Gamma0(xh, xl)
|
|
146
|
-
var gamma0l = Gamma0l(xl, xh)
|
|
147
|
-
|
|
148
|
-
xh = W[i - 2 * 2]
|
|
149
|
-
xl = W[i - 2 * 2 + 1]
|
|
150
|
-
var gamma1 = Gamma1(xh, xl)
|
|
151
|
-
var gamma1l = Gamma1l(xl, xh)
|
|
152
|
-
|
|
153
|
-
// W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16]
|
|
154
|
-
var Wi7h = W[i - 7 * 2]
|
|
155
|
-
var Wi7l = W[i - 7 * 2 + 1]
|
|
156
|
-
|
|
157
|
-
var Wi16h = W[i - 16 * 2]
|
|
158
|
-
var Wi16l = W[i - 16 * 2 + 1]
|
|
159
|
-
|
|
160
|
-
var Wil = (gamma0l + Wi7l) | 0
|
|
161
|
-
var Wih = (gamma0 + Wi7h + getCarry(Wil, gamma0l)) | 0
|
|
162
|
-
Wil = (Wil + gamma1l) | 0
|
|
163
|
-
Wih = (Wih + gamma1 + getCarry(Wil, gamma1l)) | 0
|
|
164
|
-
Wil = (Wil + Wi16l) | 0
|
|
165
|
-
Wih = (Wih + Wi16h + getCarry(Wil, Wi16l)) | 0
|
|
166
|
-
|
|
167
|
-
W[i] = Wih
|
|
168
|
-
W[i + 1] = Wil
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
for (var j = 0; j < 160; j += 2) {
|
|
172
|
-
Wih = W[j]
|
|
173
|
-
Wil = W[j + 1]
|
|
174
|
-
|
|
175
|
-
var majh = maj(ah, bh, ch)
|
|
176
|
-
var majl = maj(al, bl, cl)
|
|
177
|
-
|
|
178
|
-
var sigma0h = sigma0(ah, al)
|
|
179
|
-
var sigma0l = sigma0(al, ah)
|
|
180
|
-
var sigma1h = sigma1(eh, el)
|
|
181
|
-
var sigma1l = sigma1(el, eh)
|
|
182
|
-
|
|
183
|
-
// t1 = h + sigma1 + ch + K[j] + W[j]
|
|
184
|
-
var Kih = K[j]
|
|
185
|
-
var Kil = K[j + 1]
|
|
186
|
-
|
|
187
|
-
var chh = Ch(eh, fh, gh)
|
|
188
|
-
var chl = Ch(el, fl, gl)
|
|
189
|
-
|
|
190
|
-
var t1l = (hl + sigma1l) | 0
|
|
191
|
-
var t1h = (hh + sigma1h + getCarry(t1l, hl)) | 0
|
|
192
|
-
t1l = (t1l + chl) | 0
|
|
193
|
-
t1h = (t1h + chh + getCarry(t1l, chl)) | 0
|
|
194
|
-
t1l = (t1l + Kil) | 0
|
|
195
|
-
t1h = (t1h + Kih + getCarry(t1l, Kil)) | 0
|
|
196
|
-
t1l = (t1l + Wil) | 0
|
|
197
|
-
t1h = (t1h + Wih + getCarry(t1l, Wil)) | 0
|
|
198
|
-
|
|
199
|
-
// t2 = sigma0 + maj
|
|
200
|
-
var t2l = (sigma0l + majl) | 0
|
|
201
|
-
var t2h = (sigma0h + majh + getCarry(t2l, sigma0l)) | 0
|
|
202
|
-
|
|
203
|
-
hh = gh
|
|
204
|
-
hl = gl
|
|
205
|
-
gh = fh
|
|
206
|
-
gl = fl
|
|
207
|
-
fh = eh
|
|
208
|
-
fl = el
|
|
209
|
-
el = (dl + t1l) | 0
|
|
210
|
-
eh = (dh + t1h + getCarry(el, dl)) | 0
|
|
211
|
-
dh = ch
|
|
212
|
-
dl = cl
|
|
213
|
-
ch = bh
|
|
214
|
-
cl = bl
|
|
215
|
-
bh = ah
|
|
216
|
-
bl = al
|
|
217
|
-
al = (t1l + t2l) | 0
|
|
218
|
-
ah = (t1h + t2h + getCarry(al, t1l)) | 0
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
this._al = (this._al + al) | 0
|
|
222
|
-
this._bl = (this._bl + bl) | 0
|
|
223
|
-
this._cl = (this._cl + cl) | 0
|
|
224
|
-
this._dl = (this._dl + dl) | 0
|
|
225
|
-
this._el = (this._el + el) | 0
|
|
226
|
-
this._fl = (this._fl + fl) | 0
|
|
227
|
-
this._gl = (this._gl + gl) | 0
|
|
228
|
-
this._hl = (this._hl + hl) | 0
|
|
229
|
-
|
|
230
|
-
this._ah = (this._ah + ah + getCarry(this._al, al)) | 0
|
|
231
|
-
this._bh = (this._bh + bh + getCarry(this._bl, bl)) | 0
|
|
232
|
-
this._ch = (this._ch + ch + getCarry(this._cl, cl)) | 0
|
|
233
|
-
this._dh = (this._dh + dh + getCarry(this._dl, dl)) | 0
|
|
234
|
-
this._eh = (this._eh + eh + getCarry(this._el, el)) | 0
|
|
235
|
-
this._fh = (this._fh + fh + getCarry(this._fl, fl)) | 0
|
|
236
|
-
this._gh = (this._gh + gh + getCarry(this._gl, gl)) | 0
|
|
237
|
-
this._hh = (this._hh + hh + getCarry(this._hl, hl)) | 0
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
Sha512.prototype._hash = function () {
|
|
241
|
-
var H = Buffer.allocUnsafe(64)
|
|
242
|
-
|
|
243
|
-
function writeInt64BE (h, l, offset) {
|
|
244
|
-
H.writeInt32BE(h, offset)
|
|
245
|
-
H.writeInt32BE(l, offset + 4)
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
writeInt64BE(this._ah, this._al, 0)
|
|
249
|
-
writeInt64BE(this._bh, this._bl, 8)
|
|
250
|
-
writeInt64BE(this._ch, this._cl, 16)
|
|
251
|
-
writeInt64BE(this._dh, this._dl, 24)
|
|
252
|
-
writeInt64BE(this._eh, this._el, 32)
|
|
253
|
-
writeInt64BE(this._fh, this._fl, 40)
|
|
254
|
-
writeInt64BE(this._gh, this._gl, 48)
|
|
255
|
-
writeInt64BE(this._hh, this._hl, 56)
|
|
256
|
-
|
|
257
|
-
return H
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
module.exports = Sha512
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
var tape = require('tape')
|
|
2
|
-
var Hash = require('../hash')
|
|
3
|
-
var hex = '0A1B2C3D4E5F6G7H'
|
|
4
|
-
|
|
5
|
-
function equal (t, a, b) {
|
|
6
|
-
t.equal(a.length, b.length)
|
|
7
|
-
t.equal(a.toString('hex'), b.toString('hex'))
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
var hexBuf = Buffer.from('0A1B2C3D4E5F6G7H', 'utf8')
|
|
11
|
-
var count16 = {
|
|
12
|
-
strings: ['0A1B2C3D4E5F6G7H'],
|
|
13
|
-
buffers: [
|
|
14
|
-
hexBuf,
|
|
15
|
-
Buffer.from('80000000000000000000000000000080', 'hex')
|
|
16
|
-
]
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
var empty = {
|
|
20
|
-
strings: [''],
|
|
21
|
-
buffers: [
|
|
22
|
-
Buffer.from('80000000000000000000000000000000', 'hex')
|
|
23
|
-
]
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
var multi = {
|
|
27
|
-
strings: ['abcd', 'efhijk', 'lmnopq'],
|
|
28
|
-
buffers: [
|
|
29
|
-
Buffer.from('abcdefhijklmnopq', 'ascii'),
|
|
30
|
-
Buffer.from('80000000000000000000000000000080', 'hex')
|
|
31
|
-
]
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
var long = {
|
|
35
|
-
strings: [hex + hex],
|
|
36
|
-
buffers: [
|
|
37
|
-
hexBuf,
|
|
38
|
-
hexBuf,
|
|
39
|
-
Buffer.from('80000000000000000000000000000100', 'hex')
|
|
40
|
-
]
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function makeTest (name, data) {
|
|
44
|
-
tape(name, function (t) {
|
|
45
|
-
var h = new Hash(16, 8)
|
|
46
|
-
var hash = Buffer.alloc(20)
|
|
47
|
-
var n = 2
|
|
48
|
-
var expected = data.buffers.slice()
|
|
49
|
-
// t.plan(expected.length + 1)
|
|
50
|
-
|
|
51
|
-
h._update = function (block) {
|
|
52
|
-
var e = expected.shift()
|
|
53
|
-
equal(t, block, e)
|
|
54
|
-
|
|
55
|
-
if (n < 0) {
|
|
56
|
-
throw new Error('expecting only 2 calls to _update')
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
h._hash = function () {
|
|
60
|
-
return hash
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
data.strings.forEach(function (string) {
|
|
64
|
-
h.update(string, 'ascii')
|
|
65
|
-
})
|
|
66
|
-
|
|
67
|
-
equal(t, h.digest(), hash)
|
|
68
|
-
t.end()
|
|
69
|
-
})
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
makeTest('Hash#update 1 in 1', count16)
|
|
73
|
-
makeTest('empty Hash#update', empty)
|
|
74
|
-
makeTest('Hash#update 1 in 3', multi)
|
|
75
|
-
makeTest('Hash#update 2 in 1', long)
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
var crypto = require('crypto')
|
|
2
|
-
var tape = require('tape')
|
|
3
|
-
var Sha1 = require('../').sha1
|
|
4
|
-
|
|
5
|
-
var inputs = [
|
|
6
|
-
['', 'ascii'],
|
|
7
|
-
['abc', 'ascii'],
|
|
8
|
-
['123', 'ascii'],
|
|
9
|
-
['123456789abcdef123456789abcdef123456789abcdef123456789abcdef', 'ascii'],
|
|
10
|
-
['123456789abcdef123456789abcdef123456789abcdef123456789abc', 'ascii'],
|
|
11
|
-
['123456789abcdef123456789abcdef123456789abcdef123456789ab', 'ascii'],
|
|
12
|
-
['0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcde', 'ascii'],
|
|
13
|
-
['0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef', 'ascii'],
|
|
14
|
-
['foobarbaz', 'ascii']
|
|
15
|
-
]
|
|
16
|
-
|
|
17
|
-
tape("hash is the same as node's crypto", function (t) {
|
|
18
|
-
inputs.forEach(function (v) {
|
|
19
|
-
var a = new Sha1().update(v[0], v[1]).digest('hex')
|
|
20
|
-
var e = crypto.createHash('sha1').update(v[0], v[1]).digest('hex')
|
|
21
|
-
console.log(a, '==', e)
|
|
22
|
-
t.equal(a, e)
|
|
23
|
-
})
|
|
24
|
-
|
|
25
|
-
t.end()
|
|
26
|
-
})
|
|
27
|
-
|
|
28
|
-
tape('call update multiple times', function (t) {
|
|
29
|
-
inputs.forEach(function (v) {
|
|
30
|
-
var hash = new Sha1()
|
|
31
|
-
var _hash = crypto.createHash('sha1')
|
|
32
|
-
|
|
33
|
-
for (var i = 0; i < v[0].length; i = (i + 1) * 2) {
|
|
34
|
-
var s = v[0].substring(i, (i + 1) * 2)
|
|
35
|
-
hash.update(s, v[1])
|
|
36
|
-
_hash.update(s, v[1])
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
var a = hash.digest('hex')
|
|
40
|
-
var e = _hash.digest('hex')
|
|
41
|
-
console.log(a, '==', e)
|
|
42
|
-
t.equal(a, e)
|
|
43
|
-
})
|
|
44
|
-
t.end()
|
|
45
|
-
})
|
|
46
|
-
|
|
47
|
-
tape('call update twice', function (t) {
|
|
48
|
-
var _hash = crypto.createHash('sha1')
|
|
49
|
-
var hash = new Sha1()
|
|
50
|
-
|
|
51
|
-
_hash.update('foo', 'ascii')
|
|
52
|
-
hash.update('foo', 'ascii')
|
|
53
|
-
|
|
54
|
-
_hash.update('bar', 'ascii')
|
|
55
|
-
hash.update('bar', 'ascii')
|
|
56
|
-
|
|
57
|
-
_hash.update('baz', 'ascii')
|
|
58
|
-
hash.update('baz', 'ascii')
|
|
59
|
-
|
|
60
|
-
var a = hash.digest('hex')
|
|
61
|
-
var e = _hash.digest('hex')
|
|
62
|
-
|
|
63
|
-
t.equal(a, e)
|
|
64
|
-
t.end()
|
|
65
|
-
})
|
|
66
|
-
|
|
67
|
-
tape('hex encoding', function (t) {
|
|
68
|
-
inputs.forEach(function (v) {
|
|
69
|
-
var hash = new Sha1()
|
|
70
|
-
var _hash = crypto.createHash('sha1')
|
|
71
|
-
|
|
72
|
-
for (var i = 0; i < v[0].length; i = (i + 1) * 2) {
|
|
73
|
-
var s = v[0].substring(i, (i + 1) * 2)
|
|
74
|
-
hash.update(Buffer.from(s, 'ascii').toString('hex'), 'hex')
|
|
75
|
-
_hash.update(Buffer.from(s, 'ascii').toString('hex'), 'hex')
|
|
76
|
-
}
|
|
77
|
-
var a = hash.digest('hex')
|
|
78
|
-
var e = _hash.digest('hex')
|
|
79
|
-
|
|
80
|
-
console.log(a, '==', e)
|
|
81
|
-
t.equal(a, e)
|
|
82
|
-
})
|
|
83
|
-
|
|
84
|
-
t.end()
|
|
85
|
-
})
|
|
86
|
-
|
|
87
|
-
tape('call digest for more than MAX_UINT32 bits of data', function (t) {
|
|
88
|
-
var _hash = crypto.createHash('sha1')
|
|
89
|
-
var hash = new Sha1()
|
|
90
|
-
var bigData = Buffer.alloc(0x1ffffffff / 8)
|
|
91
|
-
|
|
92
|
-
hash.update(bigData)
|
|
93
|
-
_hash.update(bigData)
|
|
94
|
-
|
|
95
|
-
var a = hash.digest('hex')
|
|
96
|
-
var e = _hash.digest('hex')
|
|
97
|
-
|
|
98
|
-
t.equal(a, e)
|
|
99
|
-
t.end()
|
|
100
|
-
})
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
var tape = require('tape')
|
|
2
|
-
var vectors = require('hash-test-vectors')
|
|
3
|
-
// var from = require('bops/typedarray/from')
|
|
4
|
-
var Buffer = require('safe-buffer').Buffer
|
|
5
|
-
|
|
6
|
-
var createHash = require('../')
|
|
7
|
-
|
|
8
|
-
function makeTest (alg, i, verbose) {
|
|
9
|
-
var v = vectors[i]
|
|
10
|
-
|
|
11
|
-
tape(alg + ': NIST vector ' + i, function (t) {
|
|
12
|
-
if (verbose) {
|
|
13
|
-
console.log(v)
|
|
14
|
-
console.log('VECTOR', i)
|
|
15
|
-
console.log('INPUT', v.input)
|
|
16
|
-
console.log(Buffer.from(v.input, 'base64').toString('hex'))
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
var buf = Buffer.from(v.input, 'base64')
|
|
20
|
-
t.equal(createHash(alg).update(buf).digest('hex'), v[alg])
|
|
21
|
-
|
|
22
|
-
i = ~~(buf.length / 2)
|
|
23
|
-
var buf1 = buf.slice(0, i)
|
|
24
|
-
var buf2 = buf.slice(i, buf.length)
|
|
25
|
-
|
|
26
|
-
console.log(buf1.length, buf2.length, buf.length)
|
|
27
|
-
console.log(createHash(alg)._block.length)
|
|
28
|
-
|
|
29
|
-
t.equal(
|
|
30
|
-
createHash(alg)
|
|
31
|
-
.update(buf1)
|
|
32
|
-
.update(buf2)
|
|
33
|
-
.digest('hex'),
|
|
34
|
-
v[alg]
|
|
35
|
-
)
|
|
36
|
-
|
|
37
|
-
var j, buf3
|
|
38
|
-
|
|
39
|
-
i = ~~(buf.length / 3)
|
|
40
|
-
j = ~~(buf.length * 2 / 3)
|
|
41
|
-
buf1 = buf.slice(0, i)
|
|
42
|
-
buf2 = buf.slice(i, j)
|
|
43
|
-
buf3 = buf.slice(j, buf.length)
|
|
44
|
-
|
|
45
|
-
t.equal(
|
|
46
|
-
createHash(alg)
|
|
47
|
-
.update(buf1)
|
|
48
|
-
.update(buf2)
|
|
49
|
-
.update(buf3)
|
|
50
|
-
.digest('hex'),
|
|
51
|
-
v[alg]
|
|
52
|
-
)
|
|
53
|
-
|
|
54
|
-
setTimeout(function () {
|
|
55
|
-
// avoid "too much recursion" errors in tape in firefox
|
|
56
|
-
t.end()
|
|
57
|
-
})
|
|
58
|
-
})
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
if (process.argv[2]) {
|
|
62
|
-
makeTest(process.argv[2], parseInt(process.argv[3], 10), true)
|
|
63
|
-
} else {
|
|
64
|
-
vectors.forEach(function (v, i) {
|
|
65
|
-
makeTest('sha', i)
|
|
66
|
-
makeTest('sha1', i)
|
|
67
|
-
makeTest('sha224', i)
|
|
68
|
-
makeTest('sha256', i)
|
|
69
|
-
makeTest('sha384', i)
|
|
70
|
-
makeTest('sha512', i)
|
|
71
|
-
})
|
|
72
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
sudo: false
|
|
2
|
-
language: node_js
|
|
3
|
-
node_js:
|
|
4
|
-
- 'stable'
|
|
5
|
-
- '10'
|
|
6
|
-
- '9'
|
|
7
|
-
- '8'
|
|
8
|
-
- '6'
|
|
9
|
-
- '4'
|
|
10
|
-
- '0.12'
|
|
11
|
-
- '0.10'
|
|
12
|
-
- '0.8'
|
|
13
|
-
before_install:
|
|
14
|
-
# Old npm certs are untrusted https://github.com/npm/npm/issues/20191
|
|
15
|
-
- 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ] || [ "${TRAVIS_NODE_VERSION}" = "0.8" ]; then export NPM_CONFIG_STRICT_SSL=false; fi'
|
|
16
|
-
- 'nvm install-latest-npm'
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
This software is released under the MIT license:
|
|
2
|
-
|
|
3
|
-
Copyright (c) James Halliday
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
-
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
-
the Software without restriction, including without limitation the rights to
|
|
8
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
-
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
-
subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
// Copyright Joyent, Inc. and other Node contributors.
|
|
2
|
-
//
|
|
3
|
-
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
4
|
-
// copy of this software and associated documentation files (the
|
|
5
|
-
// "Software"), to deal in the Software without restriction, including
|
|
6
|
-
// without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
-
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
8
|
-
// persons to whom the Software is furnished to do so, subject to the
|
|
9
|
-
// following conditions:
|
|
10
|
-
//
|
|
11
|
-
// The above copyright notice and this permission notice shall be included
|
|
12
|
-
// in all copies or substantial portions of the Software.
|
|
13
|
-
//
|
|
14
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
15
|
-
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
17
|
-
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
18
|
-
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
19
|
-
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
20
|
-
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
21
|
-
|
|
22
|
-
module.exports = Stream;
|
|
23
|
-
|
|
24
|
-
var EE = require('events').EventEmitter;
|
|
25
|
-
var inherits = require('inherits');
|
|
26
|
-
|
|
27
|
-
inherits(Stream, EE);
|
|
28
|
-
Stream.Readable = require('readable-stream/readable.js');
|
|
29
|
-
Stream.Writable = require('readable-stream/writable.js');
|
|
30
|
-
Stream.Duplex = require('readable-stream/duplex.js');
|
|
31
|
-
Stream.Transform = require('readable-stream/transform.js');
|
|
32
|
-
Stream.PassThrough = require('readable-stream/passthrough.js');
|
|
33
|
-
|
|
34
|
-
// Backwards-compat with node 0.4.x
|
|
35
|
-
Stream.Stream = Stream;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
// old-style streams. Note that the pipe method (the only relevant
|
|
40
|
-
// part of this class) is overridden in the Readable class.
|
|
41
|
-
|
|
42
|
-
function Stream() {
|
|
43
|
-
EE.call(this);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
Stream.prototype.pipe = function(dest, options) {
|
|
47
|
-
var source = this;
|
|
48
|
-
|
|
49
|
-
function ondata(chunk) {
|
|
50
|
-
if (dest.writable) {
|
|
51
|
-
if (false === dest.write(chunk) && source.pause) {
|
|
52
|
-
source.pause();
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
source.on('data', ondata);
|
|
58
|
-
|
|
59
|
-
function ondrain() {
|
|
60
|
-
if (source.readable && source.resume) {
|
|
61
|
-
source.resume();
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
dest.on('drain', ondrain);
|
|
66
|
-
|
|
67
|
-
// If the 'end' option is not supplied, dest.end() will be called when
|
|
68
|
-
// source gets the 'end' or 'close' events. Only dest.end() once.
|
|
69
|
-
if (!dest._isStdio && (!options || options.end !== false)) {
|
|
70
|
-
source.on('end', onend);
|
|
71
|
-
source.on('close', onclose);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
var didOnEnd = false;
|
|
75
|
-
function onend() {
|
|
76
|
-
if (didOnEnd) return;
|
|
77
|
-
didOnEnd = true;
|
|
78
|
-
|
|
79
|
-
dest.end();
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
function onclose() {
|
|
84
|
-
if (didOnEnd) return;
|
|
85
|
-
didOnEnd = true;
|
|
86
|
-
|
|
87
|
-
if (typeof dest.destroy === 'function') dest.destroy();
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
// don't leave dangling pipes when there are errors.
|
|
91
|
-
function onerror(er) {
|
|
92
|
-
cleanup();
|
|
93
|
-
if (EE.listenerCount(this, 'error') === 0) {
|
|
94
|
-
throw er; // Unhandled stream error in pipe.
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
source.on('error', onerror);
|
|
99
|
-
dest.on('error', onerror);
|
|
100
|
-
|
|
101
|
-
// remove all the event listeners that were added.
|
|
102
|
-
function cleanup() {
|
|
103
|
-
source.removeListener('data', ondata);
|
|
104
|
-
dest.removeListener('drain', ondrain);
|
|
105
|
-
|
|
106
|
-
source.removeListener('end', onend);
|
|
107
|
-
source.removeListener('close', onclose);
|
|
108
|
-
|
|
109
|
-
source.removeListener('error', onerror);
|
|
110
|
-
dest.removeListener('error', onerror);
|
|
111
|
-
|
|
112
|
-
source.removeListener('end', cleanup);
|
|
113
|
-
source.removeListener('close', cleanup);
|
|
114
|
-
|
|
115
|
-
dest.removeListener('close', cleanup);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
source.on('end', cleanup);
|
|
119
|
-
source.on('close', cleanup);
|
|
120
|
-
|
|
121
|
-
dest.on('close', cleanup);
|
|
122
|
-
|
|
123
|
-
dest.emit('pipe', source);
|
|
124
|
-
|
|
125
|
-
// Allow for unix-like usage: A.pipe(B).pipe(C)
|
|
126
|
-
return dest;
|
|
127
|
-
};
|