fugu-api-data 1.5.5 → 1.6.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.
Files changed (3) hide show
  1. package/package.json +2 -2
  2. package/patterns.js +12 -10
  3. package/patterns.mjs +12 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fugu-api-data",
3
- "version": "1.5.5",
3
+ "version": "1.6.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.1.0",
27
- "prettier": "^2.4.1"
27
+ "prettier": "^2.5.1"
28
28
  }
29
29
  }
package/patterns.js CHANGED
@@ -466,14 +466,6 @@ const patterns = {
466
466
  documentation: 'https://web.dev/generic-sensor/',
467
467
  blinkFeatureID: 1901,
468
468
  },
469
- 'File Handling': {
470
- regEx: /launchQueue\.setConsumer\s*\(/g,
471
- where: 'JavaScript',
472
- supported: (async () => 'launchQueue' in self)(),
473
- featureDetection: `(async () => 'launchQueue' in self)()`,
474
- documentation: 'https://web.dev/file-handling/',
475
- blinkFeatureID: 3875,
476
- },
477
469
  'Notification Triggers': {
478
470
  regEx: /showTrigger\s*\:\s*new\s+TimestampTrigger\s*\(/g,
479
471
  where: 'JavaScript',
@@ -630,11 +622,21 @@ const patterns = {
630
622
  documentation: 'https://web.dev/url-protocol-handler/',
631
623
  blinkFeatureID: 3884,
632
624
  },
625
+ 'File Handling': {
626
+ regEx: /"file_handlers"/g,
627
+ where: 'Web App Manifest',
628
+ supported: (async () =>
629
+ 'launchQueue' in self && 'files' in LaunchParams.prototype)(),
630
+ featureDetection: `(async () => 'launchQueue' in self && 'files' in LaunchParams.prototype)()`,
631
+ documentation: 'https://web.dev/file-handling/',
632
+ blinkFeatureID: 3875,
633
+ },
633
634
  'Launch Handler': {
634
635
  regEx: /"launch_handler"/g,
635
636
  where: 'Web App Manifest',
636
- supported: (async () => undefined)(),
637
- featureDetection: `(async () => undefined)()`,
637
+ supported: (async () =>
638
+ 'launchQueue' in self && 'targetURL' in LaunchParams.prototype)(),
639
+ featureDetection: `(async () => 'launchQueue' in self && 'targetURL' in LaunchParams.prototype)()`,
638
640
  documentation: 'https://web.dev/launch-handler/',
639
641
  blinkFeatureID: undefined,
640
642
  },
package/patterns.mjs CHANGED
@@ -466,14 +466,6 @@ export default {
466
466
  documentation: 'https://web.dev/generic-sensor/',
467
467
  blinkFeatureID: 1901,
468
468
  },
469
- 'File Handling': {
470
- regEx: /launchQueue\.setConsumer\s*\(/g,
471
- where: 'JavaScript',
472
- supported: (async () => 'launchQueue' in self)(),
473
- featureDetection: `(async () => 'launchQueue' in self)()`,
474
- documentation: 'https://web.dev/file-handling/',
475
- blinkFeatureID: 3875,
476
- },
477
469
  'Notification Triggers': {
478
470
  regEx: /showTrigger\s*\:\s*new\s+TimestampTrigger\s*\(/g,
479
471
  where: 'JavaScript',
@@ -630,11 +622,21 @@ export default {
630
622
  documentation: 'https://web.dev/url-protocol-handler/',
631
623
  blinkFeatureID: 3884,
632
624
  },
625
+ 'File Handling': {
626
+ regEx: /"file_handlers"/g,
627
+ where: 'Web App Manifest',
628
+ supported: (async () =>
629
+ 'launchQueue' in self && 'files' in LaunchParams.prototype)(),
630
+ featureDetection: `(async () => 'launchQueue' in self && 'files' in LaunchParams.prototype)()`,
631
+ documentation: 'https://web.dev/file-handling/',
632
+ blinkFeatureID: 3875,
633
+ },
633
634
  'Launch Handler': {
634
635
  regEx: /"launch_handler"/g,
635
636
  where: 'Web App Manifest',
636
- supported: (async () => undefined)(),
637
- featureDetection: `(async () => undefined)()`,
637
+ supported: (async () =>
638
+ 'launchQueue' in self && 'targetURL' in LaunchParams.prototype)(),
639
+ featureDetection: `(async () => 'launchQueue' in self && 'targetURL' in LaunchParams.prototype)()`,
638
640
  documentation: 'https://web.dev/launch-handler/',
639
641
  blinkFeatureID: undefined,
640
642
  },