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

bigbrother-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bigbrother-webpack-plugin - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

6

History.md
1.1.4 / 2018-11-30
==================
* fix: 外层 try catch
* fix: 在 await 时进行 try catch
1.1.3 / 2018-11-29

@@ -3,0 +9,0 @@ ==================

24

lib/adapter/satori.js

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

return tslib_1.__awaiter(this, void 0, void 0, function () {
var _1;
return tslib_1.__generator(this, function (_a) {

@@ -19,6 +20,13 @@ switch (_a.label) {

}
_a.label = 1;
case 1:
_a.trys.push([1, 3, , 4]);
return [4 /*yield*/, this.satoriClient.postFrontendBuildInfo(args)];
case 1:
case 2:
_a.sent();
return [2 /*return*/];
return [3 /*break*/, 4];
case 3:
_1 = _a.sent();
return [3 /*break*/, 4];
case 4: return [2 /*return*/];
}

@@ -40,9 +48,15 @@ });

return tslib_1.__awaiter(this, void 0, void 0, function () {
var url;
var url, _2;
return tslib_1.__generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, this.satoriClient.uploadShameimaru(JSON.stringify(shameimaru))];
case 0:
_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, this.satoriClient.uploadShameimaru(JSON.stringify(shameimaru))];
case 1:
url = _a.sent();
return [2 /*return*/, url];
return [3 /*break*/, 3];
case 2:
_2 = _a.sent();
return [3 /*break*/, 3];
case 3: return [2 /*return*/, url];
}

@@ -49,0 +63,0 @@ });

@@ -38,15 +38,17 @@ "use strict";

return tslib_1.__awaiter(this, void 0, void 0, function () {
var data, fun;
var data, fun, _1;
return tslib_1.__generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, this.getReportData(stats)];
case 0:
_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, this.getReportData(stats)];
case 1:
data = _a.sent();
fun = process.env.NODE_ENV === 'development' ? 'postDev' : 'postBuild';
try {
this.satori[fun](data);
}
catch (_) {
}
return [2 /*return*/];
this.satori[fun](data);
return [3 /*break*/, 3];
case 2:
_1 = _a.sent();
return [3 /*break*/, 3];
case 3: return [2 /*return*/];
}

@@ -58,3 +60,3 @@ });

return tslib_1.__awaiter(this, void 0, void 0, function () {
var _a, node, _b, alinode, depTreeOssUrl, depTree, _1;
var _a, node, _b, alinode, depTreeOssUrl, depTree, _2;
return tslib_1.__generator(this, function (_c) {

@@ -75,3 +77,3 @@ switch (_c.label) {

case 4:
_1 = _c.sent();
_2 = _c.sent();
depTreeOssUrl = '';

@@ -78,0 +80,0 @@ return [3 /*break*/, 5];

{
"name": "bigbrother-webpack-plugin",
"version": "1.1.3",
"version": "1.1.4",
"description": "bigbrother client",

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

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