New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

arc-hash

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arc-hash - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

26

index.js

@@ -48,4 +48,28 @@ import crypto from 'crypto';

}
static base64Encode(_string) {
if (typeof window !== 'undefined' && window.btoa) {
// Browser environment
return window.btoa(_string);
}
if(typeof Buffer !== 'undefined') {
// Node.js environment
return Buffer.from(_string).toString('base64');
}
}
static base64Decode(_string) {
if (typeof window !== 'undefined' && window.atob) {
// Browser environment
return window.atob(_string);
}
if (typeof Buffer !== 'undefined') {
// Node.js environment
return Buffer.from(_string, 'base64').toString('utf-8');
}
}
}
export default ArcHash;
export default ArcHash;

2

package.json
{
"name": "arc-hash",
"version": "3.0.0",
"version": "3.1.0",
"description": "ES6 convenience library for hashing arrays, objects, strings as md5 or sha256",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc