@tonconnect/sdk 0.0.45 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WrongAddressError = void 0;
4
- const errors_1 = require("..");
5
- class WrongAddressError extends errors_1.TonConnectError {
4
+ const ton_connect_error_1 = require("../ton-connect.error");
5
+ /**
6
+ * Thrown when passed address is in incorrect format.
7
+ */
8
+ class WrongAddressError extends ton_connect_error_1.TonConnectError {
6
9
  constructor(...args) {
7
10
  super(...args);
8
11
  Object.setPrototypeOf(this, WrongAddressError.prototype);
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ParseHexError = exports.Base64EncodeError = void 0;
4
- var base64_encode_error_1 = require("./base64-encode.error");
5
- Object.defineProperty(exports, "Base64EncodeError", { enumerable: true, get: function () { return base64_encode_error_1.Base64EncodeError; } });
3
+ exports.ParseHexError = void 0;
6
4
  var parse_hex_error_1 = require("./parse-hex.error");
7
5
  Object.defineProperty(exports, "ParseHexError", { enumerable: true, get: function () { return parse_hex_error_1.ParseHexError; } });
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ParseHexError = void 0;
4
- const errors_1 = require("..");
5
- class ParseHexError extends errors_1.TonConnectError {
4
+ const ton_connect_error_1 = require("../ton-connect.error");
5
+ /**
6
+ * Thrown when passed hex is in incorrect format.
7
+ */
8
+ class ParseHexError extends ton_connect_error_1.TonConnectError {
6
9
  constructor(...args) {
7
10
  super(...args);
8
11
  Object.setPrototypeOf(this, ParseHexError.prototype);
@@ -1,4 +1,7 @@
1
- import { TonConnectError } from "..";
1
+ import { TonConnectError } from "../ton-connect.error";
2
+ /**
3
+ * Thrown when passed address is in incorrect format.
4
+ */
2
5
  export class WrongAddressError extends TonConnectError {
3
6
  constructor(...args) {
4
7
  super(...args);
@@ -1,2 +1 @@
1
- export { Base64EncodeError } from './base64-encode.error';
2
1
  export { ParseHexError } from './parse-hex.error';
@@ -1,4 +1,7 @@
1
- import { TonConnectError } from "..";
1
+ import { TonConnectError } from "../ton-connect.error";
2
+ /**
3
+ * Thrown when passed hex is in incorrect format.
4
+ */
2
5
  export class ParseHexError extends TonConnectError {
3
6
  constructor(...args) {
4
7
  super(...args);
@@ -1,4 +1,7 @@
1
- import { TonConnectError } from "..";
1
+ import { TonConnectError } from "../ton-connect.error";
2
+ /**
3
+ * Thrown when passed address is in incorrect format.
4
+ */
2
5
  export declare class WrongAddressError extends TonConnectError {
3
- constructor(...args: ConstructorParameters<typeof Error>);
6
+ constructor(...args: ConstructorParameters<typeof TonConnectError>);
4
7
  }
@@ -1,2 +1 @@
1
- export { Base64EncodeError } from './base64-encode.error';
2
1
  export { ParseHexError } from './parse-hex.error';
@@ -1,4 +1,7 @@
1
- import { TonConnectError } from "..";
1
+ import { TonConnectError } from "../ton-connect.error";
2
+ /**
3
+ * Thrown when passed hex is in incorrect format.
4
+ */
2
5
  export declare class ParseHexError extends TonConnectError {
3
- constructor(...args: ConstructorParameters<typeof Error>);
6
+ constructor(...args: ConstructorParameters<typeof TonConnectError>);
4
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tonconnect/sdk",
3
- "version": "0.0.45",
3
+ "version": "2.0.1",
4
4
  "scripts": {
5
5
  "build": "npx rimraf lib && ttsc --outDir ./lib/cjs && ttsc --module esnext --outDir ./lib/esm && npx rimraf dist && webpack --mode development",
6
6
  "build:production": "npx rimraf lib && ttsc --project tsconfig.cjs.json --sourceMap false && ttsc --project tsconfig.esm.json --sourceMap false && npx rimraf dist && webpack --mode production"
@@ -28,7 +28,7 @@
28
28
  "tweetnacl": "^1.0.3",
29
29
  "eventsource": "^2.0.2",
30
30
  "node-fetch": "^2.6.7",
31
- "@tonconnect/protocol": "^0.0.25"
31
+ "@tonconnect/protocol": "^2.0.0"
32
32
  },
33
33
  "files": [
34
34
  "lib",
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Base64EncodeError = void 0;
4
- const errors_1 = require("..");
5
- class Base64EncodeError extends errors_1.TonConnectError {
6
- constructor(...args) {
7
- super(...args);
8
- Object.setPrototypeOf(this, Base64EncodeError.prototype);
9
- }
10
- }
11
- exports.Base64EncodeError = Base64EncodeError;
@@ -1,7 +0,0 @@
1
- import { TonConnectError } from "..";
2
- export class Base64EncodeError extends TonConnectError {
3
- constructor(...args) {
4
- super(...args);
5
- Object.setPrototypeOf(this, Base64EncodeError.prototype);
6
- }
7
- }
@@ -1,4 +0,0 @@
1
- import { TonConnectError } from "..";
2
- export declare class Base64EncodeError extends TonConnectError {
3
- constructor(...args: ConstructorParameters<typeof Error>);
4
- }