Socket
Socket
Sign inDemoInstall

@marinade.finance/web3js-common

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@marinade.finance/web3js-common - npm Package Compare versions

Comparing version 2.0.16 to 2.0.17

6

package.json
{
"name": "@marinade.finance/web3js-common",
"version": "2.0.16",
"version": "2.0.17",
"description": "Web3 JS reusable utilities",

@@ -25,3 +25,3 @@ "repository": {

"@solana/web3.js": "^1.78.5",
"@marinade.finance/ts-common": "2.0.16",
"@marinade.finance/ts-common": "2.0.17",
"bn.js": "^5.2.1",

@@ -33,3 +33,3 @@ "borsh": "^0.7.0",

"@solana/web3.js": "^1.78.5",
"@marinade.finance/ts-common": "2.0.16",
"@marinade.finance/ts-common": "2.0.17",
"bn.js": "^5.2.1",

@@ -36,0 +36,0 @@ "borsh": "^0.7.0",

import { Keypair } from '@solana/web3.js';
export declare function createTempFileKeypair(seed?: Keypair): Promise<{
export declare function createTempFileKeypair(seed?: Keypair, tmpPathPrefix?: string): Promise<{
path: string;

@@ -4,0 +4,0 @@ cleanup: () => Promise<void>;

@@ -32,5 +32,5 @@ "use strict";

const path = __importStar(require("path"));
async function createTempFileKeypair(seed) {
async function createTempFileKeypair(seed, tmpPathPrefix = 'tmp-keypair') {
const keypair = seed !== null && seed !== void 0 ? seed : new web3_js_1.Keypair();
const folderPath = path.join((0, os_1.tmpdir)(), 'marinade-cli-');
const folderPath = path.join((0, os_1.tmpdir)(), tmpPathPrefix);
const folder = await (0, promises_1.mkdtemp)(folderPath);

@@ -37,0 +37,0 @@ const keypairPath = path.join(folder, 'keypair.json');

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