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

otter-bridge

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

otter-bridge - npm Package Compare versions

Comparing version

to
0.0.3-alpha.5

2

dist/index.d.ts

@@ -17,2 +17,3 @@ declare enum GameType {

showAd: string;
openAppPage: string;
};

@@ -24,2 +25,3 @@ private _gameName;

openUrl(url: string, params?: any): Promise<any>;
openAppPage(url: string): Promise<any>;
share(): Promise<any>;

@@ -26,0 +28,0 @@ getSid(): Promise<string>;

@@ -111,2 +111,10 @@ "use strict";

}
openAppPage(url) {
return __async(this, null, function* () {
return yield OtterBridge.instance.callHandler(
_BridgeHandler.HANDLER_ENUM.openAppPage,
{ url }
);
});
}
share() {

@@ -182,3 +190,4 @@ return __async(this, null, function* () {

checkAdStatus: "checkAdStatus",
showAd: "showAd"
showAd: "showAd",
openAppPage: "openAppPage"
};

@@ -185,0 +194,0 @@ var BridgeHandler = _BridgeHandler;

2

package.json
{
"name": "otter-bridge",
"version": "0.0.3-alpha.4",
"version": "0.0.3-alpha.5",
"description": "Otter game web jsbridge",

@@ -5,0 +5,0 @@ "files": [

@@ -39,2 +39,3 @@ import URI from "urijs";

showAd: "showAd",
openAppPage: 'openAppPage'
};

@@ -68,2 +69,9 @@

async openAppPage(url: string) {
return await OtterBridge.instance.callHandler(
BridgeHandler.HANDLER_ENUM.openAppPage,
{ url: url },
);
}
async share() {

@@ -70,0 +78,0 @@ return await OtterBridge.instance.callHandler(

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet