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

offline-plugin-patched

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

offline-plugin-patched - npm Package Compare versions

Comparing version 4.8.1 to 4.8.3

4

CHANGELOG.md
# CHANGELOG
### 4.8.1
* Fix TypeScript typings
### 4.8.0

@@ -4,0 +8,0 @@

2

lib/index.js

@@ -435,3 +435,3 @@ 'use strict';

compilation.warnings.push(new Error('OfflinePlugin: Cache asset [' + cacheKey + '] is not found in the output assets,' + 'if it\'s an external asset, put 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 {

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

@@ -132,2 +132,3 @@ 'use strict';

url.search = '';
url.hash = '';

@@ -239,9 +240,10 @@ return url.toString();

self.addEventListener('fetch', function (event) {
var requestUrl = event.request.url;
var url = new URL(requestUrl);
var urlString = undefined;
var url = new URL(event.request.url);
url.hash = '';
if (externals.indexOf(requestUrl) !== -1) {
urlString = requestUrl;
} else {
var urlString = url.toString();
// Not external, so search part of the URL should be stripped,
// if it's external URL, the search part should be kept
if (externals.indexOf(urlString) === -1) {
url.search = '';

@@ -407,7 +409,6 @@ urlString = url.toString();

url.hash = '';
if (externals.indexOf(path) === -1) {
url.search = '';
} else {
// Remove hash from possible passed externals
url.hash = '';
}

@@ -423,7 +424,6 @@

url.hash = '';
if (externals.indexOf(path) === -1) {
url.search = '';
} else {
// Remove hash from possible passed externals
url.hash = '';
}

@@ -438,2 +438,3 @@

url.search = '';
url.hash = '';

@@ -440,0 +441,0 @@ result[hash] = url.toString();

{
"name": "offline-plugin-patched",
"version": "4.8.1",
"version": "4.8.3",
"description": "offline-plugin for webpack, patched for AppCache fixes",

@@ -34,3 +34,3 @@ "main": "lib/index.js",

"type": "git",
"url": "https://github.com/NekR/offline-plugin.git"
"url": "https://github.com/jampy81/offline-plugin.git"
},

@@ -37,0 +37,0 @@ "author": "Arthur Stolyar <nekr.fabula@gmail.com>",

@@ -138,2 +138,3 @@ <div align="center">

* [Omroep West (_Proof of Concept_)](https://omroep-west.now.sh/)
* [Online Board](https://onlineboard.sonnywebdesign.com/) ([source](https://github.com/andreasonny83/online-board))

@@ -140,0 +141,0 @@

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