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

@nuxtjs/workbox

Package Overview
Dependencies
Maintainers
5
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuxtjs/workbox - npm Package Compare versions

Comparing version 3.0.0-beta.1 to 3.0.0-beta.2

12

CHANGELOG.md

@@ -6,2 +6,14 @@ # Change Log

# [3.0.0-beta.2](https://github.com/nuxt-community/pwa-module/compare/v3.0.0-beta.1...v3.0.0-beta.2) (2019-02-07)
### Features
* offlineAnalytics ([#55](https://github.com/nuxt-community/pwa-module/issues/55)) ([4c4d3ff](https://github.com/nuxt-community/pwa-module/commit/4c4d3ff))
* workboxExtensions and extension reading fixes ([5c56484](https://github.com/nuxt-community/pwa-module/commit/5c56484))
# [3.0.0-beta.1](https://github.com/nuxt-community/pwa-module/compare/v3.0.0-beta.0...v3.0.0-beta.1) (2019-02-07)

@@ -8,0 +20,0 @@

2

lib/defaults.js

@@ -13,2 +13,4 @@ module.exports = {

offlineAnalytics: false,
cachingExtensions: [],

@@ -15,0 +17,0 @@ routingExtensions: [],

5

lib/module.js

@@ -30,4 +30,5 @@ const path = require('path')

...options,
routingExtensions: readJSFiles(options.routingExtensions),
cachingExtensions: readJSFiles(options.cachingExtensions)
routingExtensions: readJSFiles.call(this, options.routingExtensions),
cachingExtensions: readJSFiles.call(this, options.cachingExtensions),
workboxExtensions: readJSFiles.call(this, options.workboxExtensions)
}

@@ -34,0 +35,0 @@ })

@@ -5,5 +5,4 @@ const { readFileSync, existsSync } = require('fs')

return Array.from(files)
.map(Boolean)
.map(path => {
path = this.nuxt.resolveAlias(path)
path = this.nuxt.resolver.resolvePath(path)
if (path && existsSync(path)) {

@@ -10,0 +9,0 @@ return readFileSync(path, 'utf8')

{
"name": "@nuxtjs/workbox",
"version": "3.0.0-beta.1",
"version": "3.0.0-beta.2",
"license": "MIT",

@@ -11,5 +11,5 @@ "main": "lib/module.js",

"dependencies": {
"@nuxtjs/pwa-utils": "3.0.0-beta.1"
"@nuxtjs/pwa-utils": "3.0.0-beta.2"
},
"gitHead": "9ce84a1ef64b58cecd2637af6dd2b7897cf60c55"
"gitHead": "9f34d27170e899aeeb6f5932ad74f006671ceffc"
}

@@ -22,2 +22,12 @@ importScripts(<%= [options.workboxURL, ...options.importScripts].map((i) => `'${i}'`).join(', ') %>)

<% if (options.offlineAnalytics) { %>
// Enable offline Google Analytics tracking
workbox.googleAnalytics.initialize()
<% } %>
<% if (options.workboxExtensions) { %>
// -- Start of workboxExtensions --
<%= options.workboxExtensions %>// -- End of workboxExtensions --
<% } %>
// --------------------------------------------------

@@ -40,12 +50,10 @@ // Precaches

// --------------------------------------------------
// Runtime Caching
// --------------------------------------------------
<% if (options.cachingExtensions) { %>
// -- Start of cachingExtensions --
<%= options.cachingExtensions %>
// -- End of cachingExtensions --
<%= options.cachingExtensions %>// -- End of cachingExtensions --
<% } %>
// --------------------------------------------------
// Runtime Caching
// --------------------------------------------------
// Register route handlers for runtimeCaching

@@ -64,4 +72,3 @@ <% options.runtimeCaching.forEach(r => { %>workbox.routing.registerRoute(new RegExp('<%= r.urlPattern %>'), workbox.strategies.<%= r.handler %> (<%= JSON.stringify(r.strategyOptions || {}) %>), '<%= r.method %>')

// -- Start of routingExtensions --
<%= options.routingExtensions %>
// -- End of routingExtensions --
<%= options.routingExtensions %>// -- End of routingExtensions --
<% } %>
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