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

@33cn/wallet-js-bridge

Package Overview
Dependencies
Maintainers
9
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@33cn/wallet-js-bridge - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

8

dist/fe33-jsbridge.js

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

if ("function" == typeof c) {
//document.write("window.dscb=>" + window.dscb)
var g = "dscb" + window.dscb++;

@@ -110,6 +109,2 @@ win[g] = c;

a = JSON.stringify(a);
if (c) {
//document.write("window._dsbridge=>", window._dsbridge.call(b, a));
// document.write(b, ",", a, ",", c, ",", String(window.dscb));
}
if (window._dsbridge)

@@ -137,7 +132,5 @@ e = window._dsbridge.call(b, a);

Android_registerAsyn(b, a) {
document.write("22222222");
this.Android_register(b, a, !0);
}
Android_hasNativeMethod(b, a) {
document.write("33333333333");
return this.Android_call("_dsb.hasNativeMethod", {

@@ -149,3 +142,2 @@ name: b,

Android_disableJavascriptDialogBlock(b) {
document.write("444444444");
this.Android_call("_dsb.disableJavascriptDialogBlock", {

@@ -152,0 +144,0 @@ disable: !1 !== b

2

package.json
{
"name": "@33cn/wallet-js-bridge",
"version": "1.0.1",
"version": "1.0.2",
"description": "",

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

# fe33cn_libs_ts
wallet项目的jsbridge
当前仅限于wallet项目的jsbridge

@@ -5,0 +5,0 @@ ``` bash

@@ -128,3 +128,2 @@ const ANDROID = 1;

if ("function" == typeof c) {
//document.write("window.dscb=>" + window.dscb)
var g = "dscb" + window.dscb++;

@@ -135,6 +134,2 @@ win[g] = c;

a = JSON.stringify(a);
if(c){
//document.write("window._dsbridge=>", window._dsbridge.call(b, a));
// document.write(b, ",", a, ",", c, ",", String(window.dscb));
}
if (window._dsbridge) e = window._dsbridge.call(b, a);

@@ -160,7 +155,5 @@ else if (window._dswk || -1 != navigator.userAgent.indexOf("_dsbridge")) e = prompt("_dsbridge=" + b, a);

Android_registerAsyn(b: any, a: any) {
document.write("22222222");
this.Android_register(b, a, !0)
}
Android_hasNativeMethod(b: any, a: any) {
document.write("33333333333");
return this.Android_call("_dsb.hasNativeMethod", {

@@ -172,3 +165,2 @@ name: b,

Android_disableJavascriptDialogBlock(b: any) {
document.write("444444444");
this.Android_call("_dsb.disableJavascriptDialogBlock", {

@@ -175,0 +167,0 @@ disable: !1 !== b

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