Socket
Socket
Sign inDemoInstall

@particle-network/provider

Package Overview
Dependencies
Maintainers
2
Versions
138
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@particle-network/provider - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

13

es/index.js

@@ -82,3 +82,3 @@ var __defProp = Object.defineProperty;

name = "@particle-network/provider";
version = "1.1.1";
version = "1.2.0";
files = [

@@ -106,3 +106,3 @@ "es",

devDependencies = {
"@particle-network/auth": "^1.1.1",
"@particle-network/auth": "*",
"@types/uuid": "^8.3.4",

@@ -146,2 +146,3 @@ "ts-loader": "^9.3.1",

import { chains } from "@particle-network/chains";
import { Buffer as Buffer2 } from "buffer";

@@ -300,3 +301,3 @@ // src/types.ts

if (typeof typedData === "string" && !typedData.startsWith("0x")) {
typedData = addHexPrefix(Buffer.from(typedData).toString("hex"));
typedData = addHexPrefix(Buffer2.from(typedData).toString("hex"));
}

@@ -311,3 +312,3 @@ return this.auth.sign(request.method, this.legacyToString(typedData));

if (typeof typedData === "string" && !typedData.startsWith("0x")) {
typedData = addHexPrefix(Buffer.from(typedData).toString("hex"));
typedData = addHexPrefix(Buffer2.from(typedData).toString("hex"));
}

@@ -349,6 +350,6 @@ return this.auth.sign(request.method, this.legacyToString(typedData));

} else {
message = addHexPrefix(Buffer.from(params).toString("hex"));
message = addHexPrefix(Buffer2.from(params).toString("hex"));
}
} else {
message = addHexPrefix(Buffer.from(JSON.stringify(params)).toString("hex"));
message = addHexPrefix(Buffer2.from(JSON.stringify(params)).toString("hex"));
}

@@ -355,0 +356,0 @@ return message;

@@ -89,3 +89,3 @@ "use strict";

name = "@particle-network/provider";
version = "1.1.1";
version = "1.2.0";
files = [

@@ -113,3 +113,3 @@ "es",

devDependencies = {
"@particle-network/auth": "^1.1.1",
"@particle-network/auth": "*",
"@types/uuid": "^8.3.4",

@@ -161,2 +161,3 @@ "ts-loader": "^9.3.1",

var import_chains = require("@particle-network/chains");
var import_buffer = require("buffer");

@@ -315,3 +316,3 @@ // src/types.ts

if (typeof typedData === "string" && !typedData.startsWith("0x")) {
typedData = (0, import_auth.addHexPrefix)(Buffer.from(typedData).toString("hex"));
typedData = (0, import_auth.addHexPrefix)(import_buffer.Buffer.from(typedData).toString("hex"));
}

@@ -326,3 +327,3 @@ return this.auth.sign(request.method, this.legacyToString(typedData));

if (typeof typedData === "string" && !typedData.startsWith("0x")) {
typedData = (0, import_auth.addHexPrefix)(Buffer.from(typedData).toString("hex"));
typedData = (0, import_auth.addHexPrefix)(import_buffer.Buffer.from(typedData).toString("hex"));
}

@@ -364,6 +365,6 @@ return this.auth.sign(request.method, this.legacyToString(typedData));

} else {
message = (0, import_auth.addHexPrefix)(Buffer.from(params).toString("hex"));
message = (0, import_auth.addHexPrefix)(import_buffer.Buffer.from(params).toString("hex"));
}
} else {
message = (0, import_auth.addHexPrefix)(Buffer.from(JSON.stringify(params)).toString("hex"));
message = (0, import_auth.addHexPrefix)(import_buffer.Buffer.from(JSON.stringify(params)).toString("hex"));
}

@@ -370,0 +371,0 @@ return message;

{
"name": "@particle-network/provider",
"version": "1.1.1",
"version": "1.2.0",
"files": [

@@ -26,3 +26,3 @@ "es",

"devDependencies": {
"@particle-network/auth": "^1.1.1",
"@particle-network/auth": "*",
"@types/uuid": "^8.3.4",

@@ -39,3 +39,3 @@ "ts-loader": "^9.3.1",

},
"gitHead": "3de7bb12f29ad46547f9045dc1a8aee8d945d667"
"gitHead": "90f6ac321b4b4b70d6ed5a4a17b473a4cdaadef7"
}

Sorry, the diff of this file is not supported yet

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