From bbff7403fbf46f9ad92240ac213df8d30ef31b64 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 20 Sep 2018 02:56:13 +0200 Subject: update packages --- node_modules/sha.js/.npmignore | 1 - node_modules/sha.js/LICENSE | 71 +++++++++++++++++++++++++++------------- node_modules/sha.js/hash.js | 2 +- node_modules/sha.js/package.json | 4 +-- node_modules/sha.js/test/test.js | 2 +- 5 files changed, 53 insertions(+), 27 deletions(-) delete mode 100644 node_modules/sha.js/.npmignore (limited to 'node_modules/sha.js') diff --git a/node_modules/sha.js/.npmignore b/node_modules/sha.js/.npmignore deleted file mode 100644 index 2bfa6a4d9..000000000 --- a/node_modules/sha.js/.npmignore +++ /dev/null @@ -1 +0,0 @@ -tests/ diff --git a/node_modules/sha.js/LICENSE b/node_modules/sha.js/LICENSE index 92ba9d30d..11888c135 100644 --- a/node_modules/sha.js/LICENSE +++ b/node_modules/sha.js/LICENSE @@ -1,22 +1,49 @@ -Copyright (c) 2013-2014 sha.js contributors - -Permission is hereby granted, free of charge, -to any person obtaining a copy of this software and -associated documentation files (the "Software"), to -deal in the Software without restriction, including -without limitation the rights to use, copy, modify, -merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom -the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice -shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR -ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +Copyright (c) 2013-2018 sha.js contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +Copyright (c) 1998 - 2009, Paul Johnston & Contributors +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +Redistributions of source code must retain the above copyright notice, this +list of conditions and the following disclaimer. + +Redistributions in binary form must reproduce the above copyright notice, this +list of conditions and the following disclaimer in the documentation and/or +other materials provided with the distribution. + +Neither the name of the author nor the names of its contributors may be used to +endorse or promote products derived from this software without specific prior +written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + diff --git a/node_modules/sha.js/hash.js b/node_modules/sha.js/hash.js index f7cbd0714..013537a97 100644 --- a/node_modules/sha.js/hash.js +++ b/node_modules/sha.js/hash.js @@ -61,7 +61,7 @@ Hash.prototype.digest = function (enc) { // uint64 } else { - var lowBits = bits & 0xffffffff + var lowBits = (bits & 0xffffffff) >>> 0 var highBits = (bits - lowBits) / 0x100000000 this._block.writeUInt32BE(highBits, this._blockSize - 8) diff --git a/node_modules/sha.js/package.json b/node_modules/sha.js/package.json index a344cfaaa..bfe633b2a 100644 --- a/node_modules/sha.js/package.json +++ b/node_modules/sha.js/package.json @@ -1,7 +1,7 @@ { "name": "sha.js", "description": "Streamable SHA hashes in pure javascript", - "version": "2.4.9", + "version": "2.4.11", "homepage": "https://github.com/crypto-browserify/sha.js", "repository": { "type": "git", @@ -26,5 +26,5 @@ "unit": "set -e; for t in test/*.js; do node $t; done;" }, "author": "Dominic Tarr (dominictarr.com)", - "license": "MIT" + "license": "(MIT AND BSD-3-Clause)" } diff --git a/node_modules/sha.js/test/test.js b/node_modules/sha.js/test/test.js index 623899ddb..dac8580ba 100644 --- a/node_modules/sha.js/test/test.js +++ b/node_modules/sha.js/test/test.js @@ -87,7 +87,7 @@ tape('hex encoding', function (t) { tape('call digest for more than MAX_UINT32 bits of data', function (t) { var _hash = crypto.createHash('sha1') var hash = new Sha1() - var bigData = Buffer.alloc(Math.pow(2, 32) / 8) + var bigData = Buffer.alloc(0x1ffffffff / 8) hash.update(bigData) _hash.update(bigData) -- cgit v1.2.3