fugu-api-data 1.16.0 → 1.17.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fugu-api-data",
3
- "version": "1.16.0",
3
+ "version": "1.17.0",
4
4
  "description": "Data about Project Fugu 🐡 APIs.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -24,6 +24,6 @@
24
24
  "homepage": "https://github.com/tomayac/fugu-api-data#readme",
25
25
  "devDependencies": {
26
26
  "node-fetch": "^3.3.2",
27
- "prettier": "^3.0.3"
27
+ "prettier": "^3.1.1"
28
28
  }
29
29
  }
package/patterns.js CHANGED
@@ -341,8 +341,9 @@ const patterns = {
341
341
  'Origin Private File System': {
342
342
  regEx: /navigator\.storage\.getDirectory\s*\(\)/g,
343
343
  where: 'JavaScript',
344
- supported: (async () => 'getDirectory' in StorageManager.prototype)(),
345
- featureDetection: `(async () => 'getDirectory' in StorageManager.prototype)()`,
344
+ supported: (async () =>
345
+ 'StorageManager' in self && 'getDirectory' in StorageManager.prototype)(),
346
+ featureDetection: `(async () => 'StorageManager' in self && 'getDirectory' in StorageManager.prototype)()`,
346
347
  documentation: 'https://web.dev/origin-private-file-system/',
347
348
  blinkFeatureID: 3428,
348
349
  },
package/patterns.mjs CHANGED
@@ -341,8 +341,9 @@ export default {
341
341
  'Origin Private File System': {
342
342
  regEx: /navigator\.storage\.getDirectory\s*\(\)/g,
343
343
  where: 'JavaScript',
344
- supported: (async () => 'getDirectory' in StorageManager.prototype)(),
345
- featureDetection: `(async () => 'getDirectory' in StorageManager.prototype)()`,
344
+ supported: (async () =>
345
+ 'StorageManager' in self && 'getDirectory' in StorageManager.prototype)(),
346
+ featureDetection: `(async () => 'StorageManager' in self && 'getDirectory' in StorageManager.prototype)()`,
346
347
  documentation: 'https://web.dev/origin-private-file-system/',
347
348
  blinkFeatureID: 3428,
348
349
  },