Socket
Socket
Sign inDemoInstall

sse4_crc32

Package Overview
Dependencies
2
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.1.0

5

package.json

@@ -13,3 +13,3 @@ {

],
"version": "2.0.0",
"version": "2.1.0",
"author": "Anand Suresh <anandsuresh@gmail.com> (https://github.com/anandsuresh)",

@@ -34,4 +34,3 @@ "licenses": [

"bindings": "~1.1.1",
"nan": "~0.6.0",
"node-gyp": "~0.12.2"
"nan": "~0.6.0"
},

@@ -38,0 +37,0 @@ "devDependencies": {

7

sse4_crc32.js

@@ -44,7 +44,8 @@ var sse4_crc32 = require("bindings")("sse4_crc32");

* @param input The input string for which the CRC is to be calculated
* @param initial_crc The initial CRC passed in [optional]
*
* @returns {Integer}
*/
function calculate(input) {
return sse4_crc32.calculate(input, 0);
function calculate(input, initial_crc) {
return sse4_crc32.calculate(input, initial_crc || 0);
}

@@ -56,2 +57,2 @@

calculate: calculate
};
};

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc