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

@goldfishjs/bridge

Package Overview
Dependencies
Maintainers
2
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@goldfishjs/bridge - npm Package Compare versions

Comparing version 2.22.0 to 2.23.0-alpha.0

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

# [2.23.0-alpha.0](https://github.com/alipay/goldfish/compare/v2.22.0...v2.23.0-alpha.0) (2022-12-28)
**Note:** Version bump only for package @goldfishjs/bridge
# [2.22.0](https://github.com/alipay/goldfish/compare/v2.22.0-alpha.1...v2.22.0) (2022-11-16)

@@ -8,0 +16,0 @@

90

lib/bridge.js

@@ -11,19 +11,17 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";

return _regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
return _context.abrupt("return", new Promise(function (resolve, reject) {
if (typeof my[api] === 'function') {
my[api](_objectSpread(_objectSpread({}, params), {}, {
success: function success(res) {
resolve(res);
},
fail: reject
}));
}
}));
case 1:
case "end":
return _context.stop();
}
while (1) switch (_context.prev = _context.next) {
case 0:
return _context.abrupt("return", new Promise(function (resolve, reject) {
if (typeof my[api] === 'function') {
my[api](_objectSpread(_objectSpread({}, params), {}, {
success: function success(res) {
resolve(res);
},
fail: reject
}));
}
}));
case 1:
case "end":
return _context.stop();
}

@@ -41,14 +39,12 @@ }, _callee);

return _regeneratorRuntime.wrap(function _callee2$(_context2) {
while (1) {
switch (_context2.prev = _context2.next) {
case 0:
return _context2.abrupt("return", new Promise(function (resolve) {
my.call(api, params, function (result) {
resolve(result);
});
}));
case 1:
case "end":
return _context2.stop();
}
while (1) switch (_context2.prev = _context2.next) {
case 0:
return _context2.abrupt("return", new Promise(function (resolve) {
my.call(api, params, function (result) {
resolve(result);
});
}));
case 1:
case "end":
return _context2.stop();
}

@@ -66,21 +62,19 @@ }, _callee2);

return _regeneratorRuntime.wrap(function _callee3$(_context3) {
while (1) {
switch (_context3.prev = _context3.next) {
case 0:
return _context3.abrupt("return", new Promise(function (resolve, reject) {
if (typeof my[api] === 'function' && params) {
my[api](_objectSpread(_objectSpread({}, params), {}, {
success: function success(res) {
resolve(res);
},
fail: function fail() {
reject();
}
}));
}
}));
case 1:
case "end":
return _context3.stop();
}
while (1) switch (_context3.prev = _context3.next) {
case 0:
return _context3.abrupt("return", new Promise(function (resolve, reject) {
if (typeof my[api] === 'function' && params) {
my[api](_objectSpread(_objectSpread({}, params), {}, {
success: function success(res) {
resolve(res);
},
fail: function fail() {
reject();
}
}));
}
}));
case 1:
case "end":
return _context3.stop();
}

@@ -87,0 +81,0 @@ }, _callee3);

@@ -24,10 +24,8 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";

return _regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
return _context.abrupt("return", mockServer(host, api, params));
case 1:
case "end":
return _context.stop();
}
while (1) switch (_context.prev = _context.next) {
case 0:
return _context.abrupt("return", mockServer(host, api, params));
case 1:
case "end":
return _context.stop();
}

@@ -45,10 +43,8 @@ }, _callee);

return _regeneratorRuntime.wrap(function _callee2$(_context2) {
while (1) {
switch (_context2.prev = _context2.next) {
case 0:
return _context2.abrupt("return", mockServer(host, api, params));
case 1:
case "end":
return _context2.stop();
}
while (1) switch (_context2.prev = _context2.next) {
case 0:
return _context2.abrupt("return", mockServer(host, api, params));
case 1:
case "end":
return _context2.stop();
}

@@ -66,10 +62,8 @@ }, _callee2);

return _regeneratorRuntime.wrap(function _callee3$(_context3) {
while (1) {
switch (_context3.prev = _context3.next) {
case 0:
return _context3.abrupt("return", mockServer(host, api, params));
case 1:
case "end":
return _context3.stop();
}
while (1) switch (_context3.prev = _context3.next) {
case 0:
return _context3.abrupt("return", mockServer(host, api, params));
case 1:
case "end":
return _context3.stop();
}

@@ -76,0 +70,0 @@ }, _callee3);

{
"name": "@goldfishjs/bridge",
"version": "2.22.0",
"version": "2.23.0-alpha.0",
"description": "goldfish-bridge",

@@ -17,3 +17,3 @@ "main": "lib/index.js",

"dependencies": {
"@goldfishjs/module-usage": "^2.22.0",
"@goldfishjs/module-usage": "^2.23.0-alpha.0",
"mini-types": "^0.1.3"

@@ -20,0 +20,0 @@ },

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