New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ton-watcher

Package Overview
Dependencies
Maintainers
1
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.0.5 to 1.0.6

1

build/index.d.ts

@@ -6,2 +6,3 @@ export * from './modules/txs/tonTxWatcher';

export * from './modules/queue/Queue';
export * from './utils/safeJson';
import { TonTxWatcher } from './modules/txs/tonTxWatcher';

@@ -8,0 +9,0 @@ import { JettonsDepo } from './modules/Jetons/JetonInfo';

14

build/index.js

@@ -16,5 +16,2 @@ "use strict";

};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -27,2 +24,3 @@ exports.runWatcher = runWatcher;

__exportStar(require("./modules/queue/Queue"), exports);
__exportStar(require("./utils/safeJson"), exports);
const Transaction_1 = require("./modules/txs/Transaction");

@@ -35,3 +33,3 @@ const tonTxWatcher_1 = require("./modules/txs/tonTxWatcher");

const ton_1 = require("@ton/ton");
const safeJson_1 = __importDefault(require("utils/safeJson"));
const safeJson_1 = require("utils/safeJson");
exports.default = {

@@ -55,5 +53,5 @@ parse_tx: Transaction_1.parse_tx,

const txWatcher = new tonTxWatcher_1.TonTxWatcher(client, address, init.last_lt, init.last_hash, undefined, {
tonBalance: (data) => { process.send && process.send((0, safeJson_1.default)({ data, event: 'tonBalance' })); },
jettonBalance: (data) => { process.send && process.send((0, safeJson_1.default)({ data, event: 'jettonBalance' })); },
jettonDeposit: (data) => { process.send && process.send((0, safeJson_1.default)({ data, event: 'jettonDeposit' })); },
tonBalance: (data) => { process.send && process.send((0, safeJson_1.safeJSONStringify)({ data, event: 'tonBalance' })); },
jettonBalance: (data) => { process.send && process.send((0, safeJson_1.safeJSONStringify)({ data, event: 'jettonBalance' })); },
jettonDeposit: (data) => { process.send && process.send((0, safeJson_1.safeJSONStringify)({ data, event: 'jettonDeposit' })); },
});

@@ -63,3 +61,3 @@ txWatcher.start();

catch (e) {
process.send && process.send((0, safeJson_1.default)({ event: 'error', data: e }));
process.send && process.send((0, safeJson_1.safeJSONStringify)({ event: 'error', data: e }));
}

@@ -66,0 +64,0 @@ return await new Promise(() => { });

@@ -1,1 +0,1 @@

export default function safeJSONStringify(obj: unknown): string;
export declare function safeJSONStringify(obj: unknown): string;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = safeJSONStringify;
exports.safeJSONStringify = safeJSONStringify;
function getCircularReplacer() {

@@ -5,0 +5,0 @@ const seen = new WeakSet();

{
"name": "ton-watcher",
"version": "1.0.5",
"version": "1.0.6",
"description": "",

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

@@ -6,2 +6,3 @@ export * from './modules/txs/tonTxWatcher';

export * from './modules/queue/Queue';
export * from './utils/safeJson';

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

import { TonClient } from '@ton/ton';
import safeJSONStringify from 'utils/safeJson';
import { safeJSONStringify } from 'utils/safeJson';

@@ -18,0 +19,0 @@ export default {

@@ -12,4 +12,4 @@ function getCircularReplacer() {

export default function safeJSONStringify(obj: unknown): string {
export function safeJSONStringify(obj: unknown): string {
return JSON.stringify(obj, getCircularReplacer());
}

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