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

bigbrother-webpack-plugin

Package Overview
Dependencies
Maintainers
2
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.7.6 to 1.7.7

5

lib/BigBrotherWebpackPlugin.d.ts

@@ -0,3 +1,4 @@

import { Compiler } from 'webpack';
import { IOptions, ITYPETOOL } from './typings';
import SatoriAdapter from './adapter/satori';
import { IOptions, ITYPETOOL } from './typings';
declare class BigBrotherWebpackPlugin implements IOptions {

@@ -10,3 +11,3 @@ cwd: string;

constructor(options: any);
apply(compiler: any): void;
apply(compiler: Compiler): void;
report(stats: any): Promise<void>;

@@ -13,0 +14,0 @@ simepleReport(stats: any): void;

14

lib/BigBrotherWebpackPlugin.js

@@ -6,7 +6,7 @@ "use strict";

var uuid_1 = require("uuid");
var satori_1 = require("./adapter/satori");
var utils_1 = require("./utils");
var debug = require("debug");
var path_1 = require("path");
var fs_1 = require("fs");
var utils_1 = require("./utils");
var satori_1 = require("./adapter/satori");
var log = debug('bigbrother-webpack-plugin:BigBrotherWebpackPlugin');

@@ -32,10 +32,6 @@ var BigBrotherWebpackPlugin = /** @class */ (function () {

if (compiler.hooks) {
compiler.hooks.done.tapAsync('monitor', function (stats, callback) {
compiler.hooks.done.tap('monitor', function (stats) {
// 若有错误,不上传依赖树,需要延迟一秒(防止进程退出导致构建失败信息上报不了)
if (stats && stats.hasErrors()) {
_this.simepleReport(stats);
setImmediate(function () { return tslib_1.__awaiter(_this, void 0, void 0, function () { return tslib_1.__generator(this, function (_a) {
callback();
return [2 /*return*/];
}); }); });
return;

@@ -46,6 +42,2 @@ }

: _this.simepleReport(stats);
setImmediate(function () { return tslib_1.__awaiter(_this, void 0, void 0, function () { return tslib_1.__generator(this, function (_a) {
callback();
return [2 /*return*/];
}); }); });
});

@@ -52,0 +44,0 @@ return;

{
"name": "bigbrother-webpack-plugin",
"version": "1.7.6",
"version": "1.7.7",
"description": "bigbrother client",

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

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