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

mb-js-bridge

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mb-js-bridge - npm Package Compare versions

Comparing version 0.1.2 to 0.2.0

HISTORY.md

26

index.js

@@ -10,2 +10,26 @@ /**

var JS_BRIDGE_GET_USER = 'JS_BRIDGE_GET_USER';
if (process.env.NODE_ENV !== "production") {
p = function (message, defaultData) {
if (message === JS_BRIDGE_GET_USER) {
var se = window.localStorage.getItem('JS_BRIDGE_CACHE');
if (se) {
console.info("Get bridge information from cache");
return se;
} else {
var da = window.prompt(JS_BRIDGE_GET_USER);
console.info("Set bridge information to cache");
window.localStorage.setItem('JS_BRIDGE_CACHE', da);
return da;
}
}
return window.prompt(message, defaultData);
}
}
var Bridge = {

@@ -16,3 +40,3 @@ /**

getUser: function () {
return p('JS_BRIDGE_GET_USER');
return p(JS_BRIDGE_GET_USER);
},

@@ -19,0 +43,0 @@

8

package.json
{
"name": "mb-js-bridge",
"version": "0.1.2",
"version": "0.2.0",
"description": "",

@@ -11,7 +11,3 @@ "main": "index.js",

"author": "Jerry Bendy <jerry@icewingcc.com>",
"license": "ISC",
"dependencies": {
"events": "^1.1.1",
"object-assign": "^4.1.0"
}
"license": "ISC"
}

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