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 0.0.3-alpha.14 to 0.0.3-alpha.15

9

dist/index.d.ts

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

showRewardDialog: string;
getUserProperty: string;
};

@@ -32,2 +33,3 @@ private _gameName;

reportFirebase(params: IFirebaseLogParams): Promise<any>;
getUserProperty(): Promise<IPropertyRes | null>;
reportUserLog(params: IUserLogParams): Promise<any>;

@@ -68,3 +70,3 @@ reportTrailLog(params: ITrailParams): Promise<any>;

logkey: string;
gmkey: 'CLK' | 'EXP';
gmkey: "CLK" | "EXP";
gokey: Object;

@@ -97,3 +99,8 @@ }

}
interface IPropertyRes {
status: number;
coinNum: number;
diamondNum: number;
}
export { GameType, BridgeHandler as default };

@@ -85,3 +85,6 @@ "use strict";

}
return yield window.flutter_inappwebview.callHandler(handlerName, params);
return yield window.flutter_inappwebview.callHandler(
handlerName,
params
);
});

@@ -122,2 +125,10 @@ }

}
getUserProperty() {
return __async(this, null, function* () {
return yield OtterBridge.instance.callHandler(
_BridgeHandler.HANDLER_ENUM.getUserProperty,
{}
);
});
}
reportUserLog(params) {

@@ -244,3 +255,4 @@ return __async(this, null, function* () {

env: "env",
showRewardDialog: "showRewardDialog"
showRewardDialog: "showRewardDialog",
getUserProperty: "getUserProperty"
};

@@ -247,0 +259,0 @@ var BridgeHandler = _BridgeHandler;

2

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

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

@@ -24,3 +24,6 @@ import URI from "urijs";

}
return await (window as any).flutter_inappwebview.callHandler(handlerName, params);
return await (window as any).flutter_inappwebview.callHandler(
handlerName,
params,
);
}

@@ -40,8 +43,9 @@ }

showAd: "showAd",
openAppPage: 'openAppPage',
reportFirebase: 'reportFirebase',
reportUserLog: 'reportUserLog',
reportTrailLog: 'reportTrailLog',
env: 'env',
showRewardDialog: 'showRewardDialog'
openAppPage: "openAppPage",
reportFirebase: "reportFirebase",
reportUserLog: "reportUserLog",
reportTrailLog: "reportTrailLog",
env: "env",
showRewardDialog: "showRewardDialog",
getUserProperty: "getUserProperty",
};

@@ -65,6 +69,6 @@

try {
const sidRes = await OtterBridge.instance.callHandler(
BridgeHandler.HANDLER_ENUM.getSid,
);
this._sid = sidRes;
const sidRes = await OtterBridge.instance.callHandler(
BridgeHandler.HANDLER_ENUM.getSid,
);
this._sid = sidRes;
} catch {}

@@ -86,2 +90,9 @@ }

async getUserProperty(): Promise<IPropertyRes | null> {
return await OtterBridge.instance.callHandler(
BridgeHandler.HANDLER_ENUM.getUserProperty,
{},
);
}
async reportUserLog(params: IUserLogParams) {

@@ -94,3 +105,3 @@ return await OtterBridge.instance.callHandler(

async reportTrailLog(params:ITrailParams) {
async reportTrailLog(params: ITrailParams) {
return await OtterBridge.instance.callHandler(

@@ -172,3 +183,5 @@ BridgeHandler.HANDLER_ENUM.reportTrailLog,

async showRewardDialog(params: IRewardInfo): Promise<{ status: string; rawInfo: string }> {
async showRewardDialog(
params: IRewardInfo,
): Promise<{ status: string; rawInfo: string }> {
return await OtterBridge.instance.callHandler(

@@ -199,3 +212,3 @@ BridgeHandler.HANDLER_ENUM.showRewardDialog,

logkey: string;
gmkey: 'CLK' | 'EXP';
gmkey: "CLK" | "EXP";
gokey: Object;

@@ -209,3 +222,2 @@ }

interface envResult {

@@ -233,2 +245,8 @@ language: string;

taskDesc: string;
}
}
interface IPropertyRes {
status: number;
coinNum: number;
diamondNum: number;
}

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

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