🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

time-analytics-webpack-plugin

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

time-analytics-webpack-plugin - npm Package Compare versions

Comparing version

to
0.1.14

@@ -1,5 +0,2 @@

import * as path from 'path';
export const PACKAGE_NAME = 'time-analytics-webpack-plugin';
export const PACKAGE_LOADER_PATH = path.join(PACKAGE_NAME, 'dist', 'loader');

@@ -6,0 +3,0 @@ /**

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.WEBPACK_WEAK_MAP_ID_KEY = exports.PACKAGE_LOADER_PATH = exports.PACKAGE_NAME = void 0;
const path = __importStar(require("path"));
exports.WEBPACK_WEAK_MAP_ID_KEY = exports.PACKAGE_NAME = void 0;
exports.PACKAGE_NAME = 'time-analytics-webpack-plugin';
exports.PACKAGE_LOADER_PATH = path.join(exports.PACKAGE_NAME, 'dist', 'loader');
/**

@@ -31,0 +6,0 @@ * Only `compilation`/`compiler` will have this unqiue key

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

const loaderPath = require.resolve('./loader', { paths: [__dirname] });
console.log(loaderPath);
rule.use.unshift(loaderPath);

@@ -26,0 +25,0 @@ }

@@ -17,2 +17,4 @@ "use strict";

this.cachedProxyForHooksProvider = new Map();
// TODO: remove webpack 4 support
this.isWebpack4WarnLogged = false;
this.cachedProxyForHooks = new Map();

@@ -80,3 +82,6 @@ this.cachedProxyForHookMap = new Map();

// TODO: remove this support
utils_1.ConsoleHelper.warn('You are using Webpack 4 and Time Analyzer Plugin together. However, this plugin is designed for Webpack 5.');
if (!that.isWebpack4WarnLogged) {
utils_1.ConsoleHelper.warn('It seems you are using Webpack 4. However, this plugin is designed for Webpack 5.');
that.isWebpack4WarnLogged = true;
}
hookObject = originHooks;

@@ -83,0 +88,0 @@ }

import type { RuleSetRule } from 'webpack';
import { PACKAGE_LOADER_PATH, PACKAGE_NAME } from './const';
import { PACKAGE_NAME } from './const';
import { fail } from './utils';

@@ -22,3 +22,2 @@

const loaderPath = require.resolve('./loader', { paths: [__dirname] });
console.log(loaderPath);
rule.use.unshift(loaderPath);

@@ -25,0 +24,0 @@ }

{
"name": "time-analytics-webpack-plugin",
"version": "0.1.13",
"version": "0.1.14",
"description": "analytize the time of each part of webpack",

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

@@ -81,2 +81,5 @@ /* eslint-disable @typescript-eslint/no-this-alias */ // use function, so that we could put logic firstly

// TODO: remove webpack 4 support
private isWebpack4WarnLogged = false;
private _proxyForHooksProvider(

@@ -100,3 +103,6 @@ hooksProvider: any, // @types/webpack does not export all the types. Use `any` for now.

// TODO: remove this support
ConsoleHelper.warn('You are using Webpack 4 and Time Analyzer Plugin together. However, this plugin is designed for Webpack 5.');
if (!that.isWebpack4WarnLogged) {
ConsoleHelper.warn('It seems you are using Webpack 4. However, this plugin is designed for Webpack 5.');
that.isWebpack4WarnLogged = true;
}
hookObject = originHooks;

@@ -103,0 +109,0 @@ }

export declare const PACKAGE_NAME = "time-analytics-webpack-plugin";
export declare const PACKAGE_LOADER_PATH: string;
/**

@@ -4,0 +3,0 @@ * Only `compilation`/`compiler` will have this unqiue key

@@ -14,2 +14,3 @@ import type { Compiler } from 'webpack';

_proxyForHookProviderCandidates(candidate: any): any;
private isWebpack4WarnLogged;
private _proxyForHooksProvider;

@@ -16,0 +17,0 @@ private cachedProxyForHooks;

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