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

@mokahr/cache-manage-plugin

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mokahr/cache-manage-plugin - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

4

CacheManagePlugin.js

@@ -11,3 +11,3 @@ "use strict";

this.options.cacheHash = this.options.cacheHash;
this.options.dependanceCachePaths = this.options.dependanceCachePaths || [];
this.options.dependencyCachePaths = this.options.dependencyCachePaths || [];
this.recordPath = this.options.cacheRecordPath + 'cacheRecord.json';

@@ -34,3 +34,3 @@ this.apply = this.apply.bind(this);

needRemoveHashList.forEach(function (hash) {
_this.options.dependanceCachePaths.forEach(function (_path) {
_this.options.dependencyCachePaths.forEach(function (_path) {
var fullPath = _path + "/" + hash;

@@ -37,0 +37,0 @@ console.log('remove overdue cache', fullPath);

{
"name": "@mokahr/cache-manage-plugin",
"version": "1.0.1",
"version": "1.0.2",
"description": "A webpack plugin used to mange muilti dependencies loader/plugin cache",

@@ -5,0 +5,0 @@ "main": "CacheManagePlugin.js",

@@ -37,3 +37,3 @@ # cache-manage-plugin

cacheHash: someHash,
dependanceCachePaths: [`node_modules/.cache/babel-loader/${someHash}`],
dependencyCachePaths: [`node_modules/.cache/babel-loader/${someHash}`],
}),

@@ -54,3 +54,3 @@ ]

### [optional] options.cacheHash: string
### [required] options.cacheHash: string

@@ -63,5 +63,5 @@ cacheHash mast provide;

### [optional] options.dependanceCachePaths:
### [optional] options.dependencyCachePaths:
need to manage cache's cacheDirectory list, default value is `[]`
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