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

@scallop-io/sui-package-kit

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scallop-io/sui-package-kit - npm Package Compare versions

Comparing version 0.33.1 to 0.33.2

16

./dist/index.js

@@ -394,5 +394,7 @@ "use strict";

* @param suiBin, the path to the `sui` binary, if not provided, it will use the `sui` in the `PATH`
* @param networkType the network type: `testnet` | `mainnet` | 'devnet' | 'localhost'
*/
constructor(suiBin) {
this.packagePublisher = new SuiPackagePublisher(suiBin);
constructor(params) {
this.networkType = params.networkType;
this.packagePublisher = new SuiPackagePublisher(params.suiBin);
}

@@ -403,3 +405,2 @@ /**

* @param signer the `RawSigner` from the @mysten/sui.js
* @param networkType the network type: `testnet` | `mainnet` | 'devnet' | 'localhost'
* @param option

@@ -412,4 +413,4 @@ * option.enforce: if true, the package will be published even if it's already published for the networkType

*/
async publishPackage(pkgPath, signer, networkType) {
return await publishPackageEmpower(this.packagePublisher, pkgPath, signer, networkType);
async publishPackage(pkgPath, signer, option) {
return await publishPackageEmpower(this.packagePublisher, pkgPath, signer, this.networkType, option);
}

@@ -420,6 +421,5 @@ /**

* @param signer the `RawSigner` from the @mysten/sui.js
* @param networkType the network type: `testnet` | `mainnet` | 'devnet' | 'localhost'
*/
async publishPackageBatch(packageBatch, signer, networkType) {
return await publishPackageBatch(this.packagePublisher, packageBatch, signer, networkType);
async publishPackageBatch(packageBatch, signer) {
return await publishPackageBatch(this.packagePublisher, packageBatch, signer, this.networkType);
}

@@ -426,0 +426,0 @@ };

@@ -394,5 +394,7 @@ "use strict";

* @param suiBin, the path to the `sui` binary, if not provided, it will use the `sui` in the `PATH`
* @param networkType the network type: `testnet` | `mainnet` | 'devnet' | 'localhost'
*/
constructor(suiBin) {
this.packagePublisher = new SuiPackagePublisher(suiBin);
constructor(params) {
this.networkType = params.networkType;
this.packagePublisher = new SuiPackagePublisher(params.suiBin);
}

@@ -403,3 +405,2 @@ /**

* @param signer the `RawSigner` from the @mysten/sui.js
* @param networkType the network type: `testnet` | `mainnet` | 'devnet' | 'localhost'
* @param option

@@ -412,4 +413,4 @@ * option.enforce: if true, the package will be published even if it's already published for the networkType

*/
async publishPackage(pkgPath, signer, networkType) {
return await publishPackageEmpower(this.packagePublisher, pkgPath, signer, networkType);
async publishPackage(pkgPath, signer, option) {
return await publishPackageEmpower(this.packagePublisher, pkgPath, signer, this.networkType, option);
}

@@ -420,6 +421,5 @@ /**

* @param signer the `RawSigner` from the @mysten/sui.js
* @param networkType the network type: `testnet` | `mainnet` | 'devnet' | 'localhost'
*/
async publishPackageBatch(packageBatch, signer, networkType) {
return await publishPackageBatch(this.packagePublisher, packageBatch, signer, networkType);
async publishPackageBatch(packageBatch, signer) {
return await publishPackageBatch(this.packagePublisher, packageBatch, signer, this.networkType);
}

@@ -426,0 +426,0 @@ };

@@ -5,2 +5,3 @@ import { RawSigner } from "@mysten/sui.js";

import { PackageBatch } from "./publish-package-batch";
import { PublishPackageOption } from "./publish-package-empower";
/**

@@ -16,7 +17,12 @@ * This is an advance version of the `SuiPackagePublisher` class

packagePublisher: SuiPackagePublisher;
networkType: NetworkType;
/**
* Create a `SuiPackageAdvancePublisher` instance
* @param suiBin, the path to the `sui` binary, if not provided, it will use the `sui` in the `PATH`
* @param networkType the network type: `testnet` | `mainnet` | 'devnet' | 'localhost'
*/
constructor(suiBin?: string);
constructor(params: {
suiBin?: string;
networkType: NetworkType;
});
/**

@@ -26,3 +32,2 @@ * Publish the move package and provide options to write toml and save objectIds

* @param signer the `RawSigner` from the @mysten/sui.js
* @param networkType the network type: `testnet` | `mainnet` | 'devnet' | 'localhost'
* @param option

@@ -35,3 +40,3 @@ * option.enforce: if true, the package will be published even if it's already published for the networkType

*/
publishPackage(pkgPath: string, signer: RawSigner, networkType: NetworkType): Promise<import("../publish-package").PackagePublishResult | undefined>;
publishPackage(pkgPath: string, signer: RawSigner, option?: PublishPackageOption): Promise<import("../publish-package").PackagePublishResult | undefined>;
/**

@@ -41,5 +46,4 @@ * Publish a batch of packages in order

* @param signer the `RawSigner` from the @mysten/sui.js
* @param networkType the network type: `testnet` | `mainnet` | 'devnet' | 'localhost'
*/
publishPackageBatch(packageBatch: PackageBatch, signer: RawSigner, networkType: NetworkType): Promise<void>;
publishPackageBatch(packageBatch: PackageBatch, signer: RawSigner): Promise<void>;
}
{
"name": "@scallop-io/sui-package-kit",
"version": "0.33.1",
"version": "0.33.2",
"description": "Tookit for publish/upgrade/build SUI packages",

@@ -5,0 +5,0 @@ "keywords": [

@@ -5,3 +5,3 @@ import { RawSigner } from "@mysten/sui.js"

import { publishPackageBatch, PackageBatch } from "./publish-package-batch"
import { publishPackageEmpower } from "./publish-package-empower"
import { publishPackageEmpower, PublishPackageOption } from "./publish-package-empower"

@@ -18,2 +18,3 @@ /**

public packagePublisher: SuiPackagePublisher
public networkType: NetworkType;

@@ -23,5 +24,7 @@ /**

* @param suiBin, the path to the `sui` binary, if not provided, it will use the `sui` in the `PATH`
* @param networkType the network type: `testnet` | `mainnet` | 'devnet' | 'localhost'
*/
constructor(suiBin?: string) {
this.packagePublisher = new SuiPackagePublisher(suiBin);
constructor(params: {suiBin?: string, networkType: NetworkType}) {
this.networkType = params.networkType;
this.packagePublisher = new SuiPackagePublisher(params.suiBin);
}

@@ -33,3 +36,2 @@

* @param signer the `RawSigner` from the @mysten/sui.js
* @param networkType the network type: `testnet` | `mainnet` | 'devnet' | 'localhost'
* @param option

@@ -42,4 +44,4 @@ * option.enforce: if true, the package will be published even if it's already published for the networkType

*/
public async publishPackage(pkgPath: string, signer: RawSigner, networkType: NetworkType) {
return await publishPackageEmpower(this.packagePublisher, pkgPath, signer, networkType);
public async publishPackage(pkgPath: string, signer: RawSigner, option?: PublishPackageOption) {
return await publishPackageEmpower(this.packagePublisher, pkgPath, signer, this.networkType, option);
}

@@ -51,7 +53,6 @@

* @param signer the `RawSigner` from the @mysten/sui.js
* @param networkType the network type: `testnet` | `mainnet` | 'devnet' | 'localhost'
*/
public async publishPackageBatch(packageBatch: PackageBatch, signer: RawSigner, networkType: NetworkType) {
return await publishPackageBatch(this.packagePublisher, packageBatch, signer, networkType);
public async publishPackageBatch(packageBatch: PackageBatch, signer: RawSigner) {
return await publishPackageBatch(this.packagePublisher, packageBatch, signer, this.networkType);
}
}

Sorry, the diff of this file is not supported yet

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