@tonconnect/sdk
Advanced tools
Comparing version 0.0.30 to 0.0.31
@@ -17,4 +17,3 @@ "use strict"; | ||
const url_1 = require("../../utils/url"); | ||
const web_api_1 = require("../../utils/web-api"); | ||
if ((0, web_api_1.isNode)()) { | ||
if ((0, protocol_1.isNode)()) { | ||
try { | ||
@@ -21,0 +20,0 @@ eval("global.EventSource = require('eventsource')"); |
import { DappMetadata } from "../models"; | ||
export declare function getWindow(): Window | undefined; | ||
export declare function getDocument(): Document | undefined; | ||
export declare function isNode(): boolean; | ||
export declare function getWebPageMetadata(): DappMetadata; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getWebPageMetadata = exports.isNode = exports.getDocument = exports.getWindow = void 0; | ||
exports.getWebPageMetadata = exports.getDocument = exports.getWindow = void 0; | ||
function getWindow() { | ||
@@ -18,6 +18,2 @@ if (typeof window === 'undefined') { | ||
exports.getDocument = getDocument; | ||
function isNode() { | ||
return typeof require === 'function' && typeof global === 'object'; | ||
} | ||
exports.isNode = isNode; | ||
function getWebPageMetadata() { | ||
@@ -24,0 +20,0 @@ var _a, _b; |
{ | ||
"name": "@tonconnect/sdk", | ||
"version": "0.0.30", | ||
"version": "0.0.31", | ||
"scripts": { | ||
@@ -31,3 +31,3 @@ "build": "npx rimraf lib && ttsc", | ||
"node-fetch": "^2.6.7", | ||
"@tonconnect/protocol": "^0.0.17" | ||
"@tonconnect/protocol": "^0.0.18" | ||
}, | ||
@@ -34,0 +34,0 @@ "files": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
101252
1921
+ Added@tonconnect/protocol@0.0.18(transitive)
- Removed@tonconnect/protocol@0.0.17(transitive)
Updated@tonconnect/protocol@^0.0.18