workbox-build
Advanced tools
Comparing version 4.0.0-rc.0 to 4.0.0-rc.1
@@ -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 @@ |
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
15
130668
75
3239
Updatedworkbox-core@^4.0.0-rc.1
Updatedworkbox-routing@^4.0.0-rc.1
Updatedworkbox-streams@^4.0.0-rc.1
Updatedworkbox-sw@^4.0.0-rc.1
Updatedworkbox-window@^4.0.0-rc.1