@docusaurus/plugin-pwa 0.0.0-4685 → 0.0.0-4687

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -150,7 +150,7 @@ function pluginPWA(context, options) {
150
150
  '**/*.{woff,woff2,eot,ttf,otf}',
151
151
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
152
152
  // @ts-ignore
153
- ...(workbox_build_1.injectManifest.globPatterns || []),
153
+ ...(workbox_build_1.injectManifest.globPatterns ?? []),
154
154
  ],
155
155
  // those attributes are not overrideable
156
156
  swDest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/plugin-pwa",
3
- "version": "0.0.0-4685",
3
+ "version": "0.0.0-4687",
4
4
  "description": "Docusaurus Plugin to add PWA support.",
5
5
  "main": "lib/index.js",
6
6
  "types": "src/plugin-pwa.d.ts",
@@ -22,11 +22,11 @@
22
22
  "dependencies": {
23
23
  "@babel/core": "^7.17.5",
24
24
  "@babel/preset-env": "^7.16.11",
25
- "@docusaurus/core": "0.0.0-4685",
26
- "@docusaurus/theme-common": "0.0.0-4685",
27
- "@docusaurus/theme-translations": "0.0.0-4685",
28
- "@docusaurus/utils": "0.0.0-4685",
29
- "@docusaurus/utils-validation": "0.0.0-4685",
25
+ "@docusaurus/core": "0.0.0-4687",
26
+ "@docusaurus/theme-common": "0.0.0-4687",
27
+ "@docusaurus/theme-translations": "0.0.0-4687",
28
+ "@docusaurus/utils": "0.0.0-4687",
29
+ "@docusaurus/utils-validation": "0.0.0-4687",
30
30
  "babel-loader": "^8.2.3",
31
31
  "clsx": "^1.1.1",
32
32
  "core-js": "^3.21.0",
@@ -39,12 +39,12 @@
39
39
  "workbox-window": "^6.5.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@docusaurus/module-type-aliases": "0.0.0-4685",
42
+ "@docusaurus/module-type-aliases": "0.0.0-4687",
43
43
  "fs-extra": "^10.0.1"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "react": "^16.8.4 || ^17.0.0",
47
47
  "react-dom": "^16.8.4 || ^17.0.0"
48
48
  },
49
- "gitHead": "3a492428ff3bf2051bc6b660803a735d67c8ae66"
49
+ "gitHead": "07732e16aa86d21c9c5713e03c7159201c2457de"
50
50
  }
package/src/index.ts CHANGED
@@ -191,7 +191,7 @@ export default function pluginPWA(
191
191
  '**/*.{woff,woff2,eot,ttf,otf}',
192
192
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
193
193
  // @ts-ignore
194
- ...(injectManifest.globPatterns || []),
194
+ ...(injectManifest.globPatterns ?? []),
195
195
  ],
196
196
  // those attributes are not overrideable
197
197
  swDest,