workbox-build
Advanced tools
Comparing version 4.2.0 to 4.3.0
@@ -5,3 +5,3 @@ { | ||
"releasesDir": "releases", | ||
"latestVersion": "4.2.0" | ||
"latestVersion": "4.3.0" | ||
} |
@@ -101,9 +101,6 @@ "use strict"; | ||
const channelName = pluginConfig.channelName; | ||
pluginCode = `new ${pluginString}(${JSON.stringify(channelName)}`; | ||
if ('options' in pluginConfig) { | ||
pluginCode += `, ${stringifyWithoutComments(pluginConfig.options)}`; | ||
} | ||
pluginCode += `)`; | ||
const opts = Object.assign({ | ||
channelName | ||
}, pluginConfig.options); | ||
pluginCode = `new ${pluginString}(${stringifyWithoutComments(opts)})`; | ||
break; | ||
@@ -110,0 +107,0 @@ } |
@@ -10,2 +10,3 @@ "use strict"; | ||
*/ | ||
// All workbox references must come after the workboxSWImport/importScripts block | ||
module.exports = `/** | ||
@@ -24,4 +25,2 @@ * Welcome to your Workbox-powered service worker! | ||
<% if (navigationPreload) { %>workbox.navigationPreload.enable();<% } %> | ||
<% if (workboxSWImport) { %> | ||
@@ -37,2 +36,4 @@ importScripts(<%= JSON.stringify(workboxSWImport) %>); | ||
<% if (navigationPreload) { %>workbox.navigationPreload.enable();<% } %> | ||
<% if (cacheId) { %>workbox.core.setCacheNameDetails({prefix: <%= JSON.stringify(cacheId) %>});<% } %> | ||
@@ -39,0 +40,0 @@ |
{ | ||
"name": "workbox-build", | ||
"version": "4.2.0", | ||
"version": "4.3.0", | ||
"description": "A module that integrates into your build process, helping you generate a manifest of local files that workbox-sw should precache.", | ||
@@ -32,16 +32,16 @@ "keywords": [ | ||
"strip-comments": "^1.0.2", | ||
"workbox-background-sync": "^4.2.0", | ||
"workbox-broadcast-update": "^4.2.0", | ||
"workbox-cacheable-response": "^4.2.0", | ||
"workbox-core": "^4.2.0", | ||
"workbox-expiration": "^4.2.0", | ||
"workbox-google-analytics": "^4.2.0", | ||
"workbox-navigation-preload": "^4.2.0", | ||
"workbox-precaching": "^4.2.0", | ||
"workbox-range-requests": "^4.2.0", | ||
"workbox-routing": "^4.2.0", | ||
"workbox-strategies": "^4.2.0", | ||
"workbox-streams": "^4.2.0", | ||
"workbox-sw": "^4.2.0", | ||
"workbox-window": "^4.2.0" | ||
"workbox-background-sync": "^4.3.0", | ||
"workbox-broadcast-update": "^4.3.0", | ||
"workbox-cacheable-response": "^4.3.0", | ||
"workbox-core": "^4.3.0", | ||
"workbox-expiration": "^4.3.0", | ||
"workbox-google-analytics": "^4.3.0", | ||
"workbox-navigation-preload": "^4.3.0", | ||
"workbox-precaching": "^4.3.0", | ||
"workbox-range-requests": "^4.3.0", | ||
"workbox-routing": "^4.3.0", | ||
"workbox-strategies": "^4.3.0", | ||
"workbox-streams": "^4.3.0", | ||
"workbox-sw": "^4.3.0", | ||
"workbox-window": "^4.3.0" | ||
}, | ||
@@ -57,3 +57,3 @@ "main": "build/index.js", | ||
}, | ||
"gitHead": "60f99c8c017b62ffe90b591b7f4be37dc44d92f6" | ||
"gitHead": "7c873eb2b7e4530fb554c41d9c425c5167e45de7" | ||
} |
@@ -5,3 +5,3 @@ { | ||
"releasesDir": "releases", | ||
"latestVersion": "4.2.0" | ||
"latestVersion": "4.3.0" | ||
} |
@@ -84,7 +84,4 @@ /* | ||
const channelName = pluginConfig.channelName; | ||
pluginCode = `new ${pluginString}(${JSON.stringify(channelName)}`; | ||
if ('options' in pluginConfig) { | ||
pluginCode += `, ${stringifyWithoutComments(pluginConfig.options)}`; | ||
} | ||
pluginCode += `)`; | ||
const opts = Object.assign({channelName}, pluginConfig.options); | ||
pluginCode = `new ${pluginString}(${stringifyWithoutComments(opts)})`; | ||
@@ -91,0 +88,0 @@ break; |
@@ -9,2 +9,4 @@ /* | ||
// All workbox references must come after the workboxSWImport/importScripts block | ||
module.exports = `/** | ||
@@ -23,4 +25,2 @@ * Welcome to your Workbox-powered service worker! | ||
<% if (navigationPreload) { %>workbox.navigationPreload.enable();<% } %> | ||
<% if (workboxSWImport) { %> | ||
@@ -36,2 +36,4 @@ importScripts(<%= JSON.stringify(workboxSWImport) %>); | ||
<% if (navigationPreload) { %>workbox.navigationPreload.enable();<% } %> | ||
<% if (cacheId) { %>workbox.core.setCacheNameDetails({prefix: <%= JSON.stringify(cacheId) %>});<% } %> | ||
@@ -38,0 +40,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
132124
3279
Updatedworkbox-core@^4.3.0
Updatedworkbox-expiration@^4.3.0
Updatedworkbox-precaching@^4.3.0
Updatedworkbox-routing@^4.3.0
Updatedworkbox-strategies@^4.3.0
Updatedworkbox-streams@^4.3.0
Updatedworkbox-sw@^4.3.0
Updatedworkbox-window@^4.3.0