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

@particle-network/auth

Package Overview
Dependencies
Maintainers
1
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@particle-network/auth - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

7

lib/auth.js

@@ -171,2 +171,5 @@ "use strict";

}
if (typeof chain.name !== "string" || typeof chain.id !== "number") {
throw types_1.AuthError.paramsError();
}
if (!Object.keys(types_1.supportChains).includes(chain.name)) {

@@ -311,4 +314,4 @@ throw types_1.AuthError.unsupportedChain();

}).ciphertext;
const value = crypto_js_1.default.enc.Hex.stringify(cipherText).toUpperCase() + this.secretKey;
const url = `${schema}?params=${value}#${path}`;
const value = encodeURIComponent(crypto_js_1.default.enc.Base64.stringify(cipherText)) + this.secretKey;
const url = `${schema}?params=${value}&encoding=base64#${path}`;
return url;

@@ -315,0 +318,0 @@ }

{
"name": "@particle-network/auth",
"version": "0.4.0",
"version": "0.4.1",
"files": [

@@ -5,0 +5,0 @@ "lib",

Sorry, the diff of this file is not supported yet

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