Socket
Socket
Sign inDemoInstall

offline-plugin

Package Overview
Dependencies
12
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.8.4 to 4.8.5

13

lib/index.js

@@ -291,4 +291,11 @@ 'use strict';

var runtimeTemplatePath = _path3['default'].resolve(__dirname, '../tpls/runtime-template.js');
var hasRuntime = true;
if (compilation.fileDependencies.indexOf(runtimeTemplatePath) === -1 && !_this2.__tests.ignoreRuntime) {
if (compilation.fileDependencies.indexOf) {
hasRuntime = compilation.fileDependencies.indexOf(runtimeTemplatePath) !== -1;
} else if (compilation.fileDependencies.has) {
hasRuntime = compilation.fileDependencies.has(runtimeTemplatePath);
}
if (!hasRuntime && !_this2.__tests.ignoreRuntime) {
compilation.errors.push(new Error('OfflinePlugin: Plugin\'s runtime wasn\'t added to one of your bundle entries. See this https://goo.gl/YwewYp for details.'));

@@ -334,3 +341,3 @@ callback();

if (this.options.safeToUseOptionalCaches !== true && (caches.additional && caches.additional.length || caches.optional && caches.optional.length)) {
compilation.warnings.push(new Error('OfflinePlugin: Cache sections `additional` and `optional` could be used ' + 'only when each asset passed to it has unique name (e.g. hash or version in it) and ' + 'is permanently available for given URL. If you think that it\' your case, ' + 'set `safeToUseOptionalCaches` option to `true`, to remove this warning.'));
compilation.warnings.push(new Error('OfflinePlugin: Cache sections `additional` and `optional` could be used ' + 'only when each asset passed to it has unique name (e.g. hash or version in it) and ' + 'is permanently available for given URL. If you think that it\'s your case, ' + 'set `safeToUseOptionalCaches` option to `true`, to remove this warning.'));
}

@@ -437,3 +444,3 @@

compilation.warnings.push(new Error('OfflinePlugin: Cache asset [' + cacheKey + '] is not found in the output assets,' + 'if the asset is not processed by webpack, move it to the |externals| option to remove this warning.'));
compilation.warnings.push(new Error('OfflinePlugin: Cache asset [' + cacheKey + '] is not found in the output assets, ' + 'if the asset is not processed by webpack, move it to the |externals| option to remove this warning.'));
} else {

@@ -440,0 +447,0 @@ assets.splice(index, 1);

{
"name": "offline-plugin",
"version": "4.8.4",
"version": "4.8.5",
"description": "offline-plugin for webpack",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc