Socket
Socket
Sign inDemoInstall

workbox-build

Package Overview
Dependencies
Maintainers
4
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

workbox-build - npm Package Compare versions

Comparing version 5.0.0 to 5.1.0

2

build/cdn-details.json

@@ -5,3 +5,3 @@ {

"releasesDir": "releases",
"latestVersion": "5.0.0"
"latestVersion": "5.1.0"
}

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

*
* @param {Object<string, string>} [config.modifyURLPrefix] A mapping of prefixes
* @param {object<string, string>} [config.modifyURLPrefix] A mapping of prefixes
* that, if present in an entry in the precache manifest, will be replaced with

@@ -130,0 +130,0 @@ * the corresponding value. This can be used to, for example, remove or add a

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

*
* @param {Object<string, string>} [config.modifyURLPrefix] A mapping of prefixes
* @param {object<string, string>} [config.modifyURLPrefix] A mapping of prefixes
* that, if present in an entry in the precache manifest, will be replaced with

@@ -76,0 +76,0 @@ * the corresponding value. This can be used to, for example, remove or add a

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

*
* @param {Object<string, string>} [config.modifyURLPrefix] A mapping of prefixes
* @param {object<string, string>} [config.modifyURLPrefix] A mapping of prefixes
* that, if present in an entry in the precache manifest, will be replaced with

@@ -111,0 +111,0 @@ * the corresponding value. This can be used to, for example, remove or add a

@@ -30,5 +30,5 @@ "use strict";

const replace = require('rollup-plugin-replace');
const replace = require('@rollup/plugin-replace');
const resolve = require('rollup-plugin-node-resolve');
const resolve = require('@rollup/plugin-node-resolve');

@@ -35,0 +35,0 @@ const tempy = require('tempy');

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

for (let fileDetails of dependencyDetails) {
for (const fileDetails of dependencyDetails) {
totalSize += fileDetails.size;

@@ -19,0 +19,0 @@ compositeHash += fileDetails.hash;

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

if (templatedURLs) {
for (let url of Object.keys(templatedURLs)) {
for (const url of Object.keys(templatedURLs)) {
assert(!fileSet.has(url), errors['templated-url-matches-glob']);

@@ -81,0 +81,0 @@ const dependencies = templatedURLs[url];

@@ -16,2 +16,3 @@ "use strict";

* service worker script.
*
* @private

@@ -18,0 +19,0 @@ */

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

});
let transformsToApply = [];
const transformsToApply = [];

@@ -94,0 +94,0 @@ if (maximumFileSizeToCacheInBytes) {

@@ -14,2 +14,3 @@ "use strict";

clientsClaim: false,
compileSrc: true,
disableDevLogs: false,

@@ -16,0 +17,0 @@ exclude: [/\.map$/, /^manifest.*\.js$/],

@@ -16,2 +16,4 @@ "use strict";

const defaults = require('../defaults');
const injectPartial = require('../partials/inject');

@@ -32,3 +34,7 @@

const supportedOptions = Object.assign({
webpackCompilationPlugins: joi.array().items(joi.object())
compileSrc: joi.boolean().default(defaults.compileSrc),
webpackCompilationPlugins: joi.array().items(joi.object()).when('compileSrc', {
is: false,
then: joi.forbidden()
})
}, basePartial, injectPartial, webpackPartial);

@@ -35,0 +41,0 @@ module.exports = joi.object().keys(supportedOptions).keys({

{
"name": "workbox-build",
"version": "5.0.0",
"version": "5.1.0",
"description": "A module that integrates into your build process, helping you generate a manifest of local files that workbox-sw should precache.",

@@ -23,38 +23,38 @@ "keywords": [

"dependencies": {
"@babel/core": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"@babel/runtime": "^7.5.5",
"@babel/core": "^7.8.4",
"@babel/preset-env": "^7.8.4",
"@babel/runtime": "^7.8.4",
"@hapi/joi": "^15.1.0",
"@rollup/plugin-node-resolve": "^7.1.1",
"@rollup/plugin-replace": "^2.3.1",
"@surma/rollup-plugin-off-main-thread": "^1.1.1",
"common-tags": "^1.8.0",
"fast-json-stable-stringify": "^2.0.0",
"fast-json-stable-stringify": "^2.1.0",
"fs-extra": "^8.1.0",
"glob": "^7.1.4",
"glob": "^7.1.6",
"lodash.template": "^4.5.0",
"pretty-bytes": "^5.2.0",
"rollup": "^1.17.0",
"pretty-bytes": "^5.3.0",
"rollup": "^1.31.1",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-terser": "^5.1.1",
"rollup-plugin-terser": "^5.2.0",
"source-map": "^0.7.3",
"source-map-url": "^0.4.0",
"stringify-object": "^3.3.0",
"strip-comments": "^1.0.2",
"strip-comments": "^2.0.1",
"tempy": "^0.3.0",
"upath": "^1.1.2",
"workbox-background-sync": "^5.0.0",
"workbox-broadcast-update": "^5.0.0",
"workbox-cacheable-response": "^5.0.0",
"workbox-core": "^5.0.0",
"workbox-expiration": "^5.0.0",
"workbox-google-analytics": "^5.0.0",
"workbox-navigation-preload": "^5.0.0",
"workbox-precaching": "^5.0.0",
"workbox-range-requests": "^5.0.0",
"workbox-routing": "^5.0.0",
"workbox-strategies": "^5.0.0",
"workbox-streams": "^5.0.0",
"workbox-sw": "^5.0.0",
"workbox-window": "^5.0.0"
"upath": "^1.2.0",
"workbox-background-sync": "^5.1.0",
"workbox-broadcast-update": "^5.1.0",
"workbox-cacheable-response": "^5.1.0",
"workbox-core": "^5.1.0",
"workbox-expiration": "^5.1.0",
"workbox-google-analytics": "^5.1.0",
"workbox-navigation-preload": "^5.1.0",
"workbox-precaching": "^5.1.0",
"workbox-range-requests": "^5.1.0",
"workbox-routing": "^5.1.0",
"workbox-strategies": "^5.1.0",
"workbox-streams": "^5.1.0",
"workbox-sw": "^5.1.0",
"workbox-window": "^5.1.0"
},

@@ -70,3 +70,3 @@ "main": "build/index.js",

},
"gitHead": "571ffded1872309a305f108a99a5a36982fde342"
"gitHead": "2a6b84b892b5c404671b898e926bf37b65d261da"
}

@@ -13,6 +13,6 @@ /*

* @typedef {Object} ManifestEntry
* @property {String} url The URL to the asset in the manifest.
* @property {String} [revision] The revision details for the file. This is a
* @property {string} url The URL to the asset in the manifest.
* @property {string} [revision] The revision details for the file. This is a
* hash generated by node based on the file contents.
* @property {String} [integrity] Integrity metadata that will be used when
* @property {string} [integrity] Integrity metadata that will be used when
* making the network request for the URL.

@@ -19,0 +19,0 @@ *

@@ -5,3 +5,3 @@ {

"releasesDir": "releases",
"latestVersion": "5.0.0"
"latestVersion": "5.1.0"
}

@@ -124,3 +124,3 @@ /*

*
* @param {Object<string, string>} [config.modifyURLPrefix] A mapping of prefixes
* @param {object<string, string>} [config.modifyURLPrefix] A mapping of prefixes
* that, if present in an entry in the precache manifest, will be replaced with

@@ -127,0 +127,0 @@ * the corresponding value. This can be used to, for example, remove or add a

@@ -71,3 +71,3 @@ /*

*
* @param {Object<string, string>} [config.modifyURLPrefix] A mapping of prefixes
* @param {object<string, string>} [config.modifyURLPrefix] A mapping of prefixes
* that, if present in an entry in the precache manifest, will be replaced with

@@ -74,0 +74,0 @@ * the corresponding value. This can be used to, for example, remove or add a

@@ -99,3 +99,3 @@ /*

*
* @param {Object<string, string>} [config.modifyURLPrefix] A mapping of prefixes
* @param {object<string, string>} [config.modifyURLPrefix] A mapping of prefixes
* that, if present in an entry in the precache manifest, will be replaced with

@@ -102,0 +102,0 @@ * the corresponding value. This can be used to, for example, remove or add a

@@ -16,4 +16,4 @@ /*

const presetEnv = require('@babel/preset-env');
const replace = require('rollup-plugin-replace');
const resolve = require('rollup-plugin-node-resolve');
const replace = require('@rollup/plugin-replace');
const resolve = require('@rollup/plugin-node-resolve');
const tempy = require('tempy');

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

@@ -15,3 +15,3 @@ /*

for (let fileDetails of dependencyDetails) {
for (const fileDetails of dependencyDetails) {
totalSize += fileDetails.size;

@@ -18,0 +18,0 @@ compositeHash += fileDetails.hash;

@@ -70,3 +70,3 @@ /*

if (templatedURLs) {
for (let url of Object.keys(templatedURLs)) {
for (const url of Object.keys(templatedURLs)) {
assert(!fileSet.has(url), errors['templated-url-matches-glob']);

@@ -73,0 +73,0 @@

@@ -15,2 +15,3 @@ /*

* service worker script.
*
* @private

@@ -17,0 +18,0 @@ */

@@ -54,3 +54,3 @@ /*

`"ignoreURLParametersMatching": [` +
`${ignoreURLParametersMatching.join(', ')}]`
`${ignoreURLParametersMatching.join(', ')}]`,
);

@@ -57,0 +57,0 @@ }

@@ -90,3 +90,3 @@ /*

let transformsToApply = [];
const transformsToApply = [];

@@ -93,0 +93,0 @@ if (maximumFileSizeToCacheInBytes) {

@@ -13,2 +13,3 @@ /*

clientsClaim: false,
compileSrc: true,
disableDevLogs: false,

@@ -15,0 +16,0 @@ exclude: [

@@ -42,3 +42,3 @@ /*

'POST',
'PUT'
'PUT',
),

@@ -45,0 +45,0 @@ urlPattern: [regExpObject, joi.string(), joi.func()],

@@ -13,2 +13,3 @@ /*

const basePartial = require('../partials/base');
const defaults = require('../defaults');
const injectPartial = require('../partials/inject');

@@ -26,3 +27,5 @@ const webpackPartial = require('../partials/webpack');

const supportedOptions = Object.assign({
webpackCompilationPlugins: joi.array().items(joi.object()),
compileSrc: joi.boolean().default(defaults.compileSrc),
webpackCompilationPlugins: joi.array().items(joi.object()).when(
'compileSrc', {is: false, then: joi.forbidden()}),
}, basePartial, injectPartial, webpackPartial);

@@ -29,0 +32,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