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

@tonconnect/sdk

Package Overview
Dependencies
Maintainers
3
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tonconnect/sdk - npm Package Compare versions

Comparing version 0.0.38 to 0.0.39

lib/errors/wallet/wallet-not-support-feature.error.d.ts

1

lib/ton-connect.d.ts

@@ -69,3 +69,4 @@ import { TonConnectError } from "./errors/ton-connect.error";

private checkConnection;
private checkFeatureSupport;
private createConnectRequest;
}

@@ -30,2 +30,3 @@ "use strict";

const wallet_not_connected_error_1 = require("./errors/wallet/wallet-not-connected.error");
const wallet_not_support_feature_error_1 = require("./errors/wallet/wallet-not-support-feature.error");
const wallet_connection_source_1 = require("./models/wallet/wallet-connection-source");

@@ -148,4 +149,5 @@ const connect_errors_parser_1 = require("./parsers/connect-errors-parser");

return __awaiter(this, void 0, void 0, function* () {
this.checkConnection();
this.checkFeatureSupport('SendTransaction');
const { validUntil } = transaction, tx = __rest(transaction, ["validUntil"]);
this.checkConnection();
const response = yield this.provider.sendRequest(send_transaction_parser_1.sendTransactionParser.convertToRpcRequest(Object.assign(Object.assign({}, tx), { valid_until: validUntil })));

@@ -231,2 +233,8 @@ if (send_transaction_parser_1.sendTransactionParser.isError(response)) {

}
checkFeatureSupport(feature) {
var _a;
if (!((_a = this.wallet) === null || _a === void 0 ? void 0 : _a.device.features.includes(feature))) {
throw new wallet_not_support_feature_error_1.WalletNotSupportFeatureError();
}
}
createConnectRequest(request) {

@@ -233,0 +241,0 @@ const items = [

2

package.json
{
"name": "@tonconnect/sdk",
"version": "0.0.38",
"version": "0.0.39",
"scripts": {

@@ -5,0 +5,0 @@ "build": "npx rimraf lib && ttsc && npx rimraf dist && webpack --mode development",

Sorry, the diff of this file is too big to display

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