Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@evervault/sdk

Package Overview
Dependencies
Maintainers
5
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@evervault/sdk - npm Package Compare versions

Comparing version 0.3.5 to 0.3.6

5

index.js

@@ -8,2 +8,3 @@ /** @format */

let _privateKey = undefined;
this.subtle = Utils.getSubtleCrypto();

@@ -13,3 +14,3 @@ this.encryptString = (str) => {

const iv = window.crypto.getRandomValues(new Uint8Array(12));
return window.crypto.subtle
return this.subtle
.encrypt(

@@ -34,3 +35,3 @@ {

const ivBuffer = Utils.b64ToBuffer(parsedData.iv);
return window.crypto.subtle
return this.subtle
.decrypt(

@@ -37,0 +38,0 @@ {

2

package.json
{
"name": "@evervault/sdk",
"version": "0.3.5",
"version": "0.3.6",
"description": "evervault Browser SDK",

@@ -5,0 +5,0 @@ "repository": {

@@ -6,3 +6,3 @@ /** @format */

const privateKeyBuffer = this.b64ToBuffer(privateKey);
return window.crypto.subtle.importKey(
return this.getSubtleCrypto().importKey(
'raw',

@@ -159,2 +159,9 @@ privateKeyBuffer,

}
static getSubtleCrypto() {
if (!window.crypto.subtle && window.crypto.webkitSubtle) {
return window.crypto.webkitSubtle;
}
return window.crypto.subtle;
}
};
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