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

@ant-design/moment-webpack-plugin

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ant-design/moment-webpack-plugin - npm Package Compare versions

Comparing version 0.0.4 to 1.0.0

11

index.d.ts

@@ -1,14 +0,11 @@

import type { Plugin } from "webpack";
import type { Plugin, Compiler } from "webpack";
declare namespace AntdMomentWebpackPlugin {
interface Options {
disableDayjsAlias?: boolean;
}
}
declare class AntdMomentWebpackPlugin extends Plugin {
constructor(
options?: AntdMomentWebpackPlugin.Options
);
constructor();
apply(compiler: Compiler): void;
}
export = AntdMomentWebpackPlugin;

@@ -7,17 +7,6 @@ const generateRegExp = /generate\/dayjs/;

class Plugin {
constructor (options) {
constructor(options) {
this.options = options || {};
}
apply(compiler) {
const { disableDayjsAlias } = this.options;
const { alias } = compiler.options.resolve;
if (!disableDayjsAlias) {
if (alias) {
alias.dayjs = 'moment';
} else {
compiler.options.resolve.alias = {
dayjs: 'moment',
};
}
}
apply (compiler) {
compiler.hooks.normalModuleFactory.tap(plugin, (factory) => {

@@ -24,0 +13,0 @@ factory.hooks.beforeResolve.tap(plugin, (result) => {

{
"name": "@ant-design/moment-webpack-plugin",
"version": "0.0.4",
"version": "1.0.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "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