Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

workbox-build

Package Overview
Dependencies
Maintainers
4
Versions
101
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 4.0.0-rc.0 to 4.0.0-rc.1

2

build/cdn-details.json

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

"releasesDir": "releases",
"latestVersion": "4.0.0-rc.0"
"latestVersion": "4.0.0-rc.1"
}

@@ -18,9 +18,6 @@ "use strict";

const errors = require('./errors');
const errors = require('./errors'); // Used to filter the libraries to copy based on our package.json dependencies.
const useBuildType = require('./use-build-type'); // Used to filter the libraries to copy based on our package.json dependencies.
const WORKBOX_PREFIX = 'workbox-';
const BUILD_TYPES = ['dev', 'prod'];
/**

@@ -69,22 +66,3 @@ * This copies over a set of runtime libraries used by Workbox into a

const library = _step.value;
const pkg = require(`${library}/package.json`);
const defaultPathToLibrary = require.resolve(`${library}/${pkg.main}`);
for (var _i = 0; _i < BUILD_TYPES.length; _i++) {
const buildType = BUILD_TYPES[_i];
// Special-case logic for workbox-sw, which only has a single build type.
// This prevents a race condition with two identical copy promises;
// see https://github.com/GoogleChrome/workbox/issues/1180
if (library === 'workbox-sw' && buildType === BUILD_TYPES[0]) {
continue;
}
const srcPath = useBuildType(defaultPathToLibrary, buildType);
const destPath = path.join(workboxDirectoryPath, path.basename(srcPath));
copyPromises.push(fse.copy(srcPath, destPath));
copyPromises.push(fse.copy(`${srcPath}.map`, `${destPath}.map`));
}
copyPromises.push(fse.copy(path.join('packages', library, 'build'), workboxDirectoryPath));
}

@@ -91,0 +69,0 @@ } catch (err) {

{
"name": "workbox-build",
"version": "4.0.0-rc.0",
"version": "4.0.0-rc.1",
"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.0.0-rc.0",
"workbox-broadcast-update": "^4.0.0-rc.0",
"workbox-cacheable-response": "^4.0.0-rc.0",
"workbox-core": "^4.0.0-rc.0",
"workbox-expiration": "^4.0.0-rc.0",
"workbox-google-analytics": "^4.0.0-rc.0",
"workbox-navigation-preload": "^4.0.0-rc.0",
"workbox-precaching": "^4.0.0-rc.0",
"workbox-range-requests": "^4.0.0-rc.0",
"workbox-routing": "^4.0.0-rc.0",
"workbox-strategies": "^4.0.0-rc.0",
"workbox-streams": "^4.0.0-rc.0",
"workbox-sw": "^4.0.0-rc.0",
"workbox-window": "^4.0.0-rc.0"
"workbox-background-sync": "^4.0.0-rc.1",
"workbox-broadcast-update": "^4.0.0-rc.1",
"workbox-cacheable-response": "^4.0.0-rc.1",
"workbox-core": "^4.0.0-rc.1",
"workbox-expiration": "^4.0.0-rc.1",
"workbox-google-analytics": "^4.0.0-rc.1",
"workbox-navigation-preload": "^4.0.0-rc.1",
"workbox-precaching": "^4.0.0-rc.1",
"workbox-range-requests": "^4.0.0-rc.1",
"workbox-routing": "^4.0.0-rc.1",
"workbox-strategies": "^4.0.0-rc.1",
"workbox-streams": "^4.0.0-rc.1",
"workbox-sw": "^4.0.0-rc.1",
"workbox-window": "^4.0.0-rc.1"
},

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

},
"gitHead": "895940b985bea024e086713c319af216f7c5ee95"
"gitHead": "5e19e1c192d867f0db97e23f1262c3cab19bf6c6"
}

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

"releasesDir": "releases",
"latestVersion": "4.0.0-rc.0"
"latestVersion": "4.0.0-rc.1"
}

@@ -11,12 +11,7 @@ /*

const path = require('path');
const errors = require('./errors');
const useBuildType = require('./use-build-type');
// Used to filter the libraries to copy based on our package.json dependencies.
const WORKBOX_PREFIX = 'workbox-';
const BUILD_TYPES = [
'dev',
'prod',
];

@@ -57,19 +52,4 @@ /**

for (const library of librariesToCopy) {
const pkg = require(`${library}/package.json`);
const defaultPathToLibrary = require.resolve(`${library}/${pkg.main}`);
for (const buildType of BUILD_TYPES) {
// Special-case logic for workbox-sw, which only has a single build type.
// This prevents a race condition with two identical copy promises;
// see https://github.com/GoogleChrome/workbox/issues/1180
if (library === 'workbox-sw' && buildType === BUILD_TYPES[0]) {
continue;
}
const srcPath = useBuildType(defaultPathToLibrary, buildType);
const destPath = path.join(workboxDirectoryPath,
path.basename(srcPath));
copyPromises.push(fse.copy(srcPath, destPath));
copyPromises.push(fse.copy(`${srcPath}.map`, `${destPath}.map`));
}
copyPromises.push(fse.copy(
path.join('packages', library, 'build'), workboxDirectoryPath));
}

@@ -76,0 +56,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