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

ton-watcher

Package Overview
Dependencies
Maintainers
0
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ton-watcher - npm Package Compare versions

Comparing version 1.2.3 to 1.2.4

4

build/modules/process/runProcess.js

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

try {
if (!ton_1.Address.isAddress(address)) {
if (!address || !ton.isValidAddress(address)) {
const event = {

@@ -206,3 +206,3 @@ data: { error: 'Address invalid', req_id },

const jetton_settings = jettons[jetton_name];
if (!ton_1.Address.isAddress(address)) {
if (!address || !ton.isValidAddress(address)) {
const event = {

@@ -209,0 +209,0 @@ data: { error: 'Address invalid', req_id },

@@ -7,2 +7,3 @@ import { TonTxWatcher } from './modules/txs/tonTxWatcher';

import { Address } from '@ton/core';
export * from '@ton/core';
export * from './utils/safeJson';

@@ -9,0 +10,0 @@ export * from './modules/txs/tonTxWatcher';

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

const core_1 = require("@ton/core");
__exportStar(require("@ton/core"), exports);
__exportStar(require("./utils/safeJson"), exports);

@@ -27,0 +28,0 @@ __exportStar(require("./modules/txs/tonTxWatcher"), exports);

{
"name": "ton-watcher",
"version": "1.2.3",
"version": "1.2.4",
"description": "",

@@ -5,0 +5,0 @@ "main": "build/index.js",

@@ -49,3 +49,3 @@ import { getHttpV4Endpoint } from "@orbs-network/ton-access";

const address = wallet.address;
axiosThrottle.use(axios, { requestsPerSecond: isTestnet ? 2 : 5 });

@@ -220,3 +220,3 @@ // const endpoint = isTestnet ? 'https://testnet.toncenter.com/api/v2/jsonRPC' : await getHttpEndpoint({ network: init.network });

try {
if (!Address.isAddress(address)) {
if (!address || !ton.isValidAddress(address)) {
const event: TonProcessEvents<'resJTonBalance'> = {

@@ -252,3 +252,3 @@ data: { error: 'Address invalid', req_id },

if (!Address.isAddress(address)) {
if (!address || !ton.isValidAddress(address)) {
const event: TonProcessEvents<'resJTonBalance'> = {

@@ -255,0 +255,0 @@ data: { error: 'Address invalid', req_id },

@@ -10,2 +10,3 @@ import { parse_tx } from './modules/txs/Transaction';

export * from '@ton/core';
export * from './utils/safeJson';

@@ -12,0 +13,0 @@ export * from './modules/txs/tonTxWatcher';

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