fugu-api-data 1.5.5 → 1.8.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 +3 -3
  2. package/patterns.js +21 -10
  3. package/patterns.mjs +21 -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.8.0",
4
4
  "description": "Data about Project Fugu 🐡 APIs.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "homepage": "https://github.com/tomayac/fugu-api-data#readme",
25
25
  "devDependencies": {
26
- "node-fetch": "^3.1.0",
27
- "prettier": "^2.4.1"
26
+ "node-fetch": "^3.2.0",
27
+ "prettier": "^2.5.1"
28
28
  }
29
29
  }
package/patterns.js CHANGED
@@ -28,6 +28,15 @@ const patterns = {
28
28
  documentation: 'https://developer.mozilla.org/en-US/docs/Web/API/Push_API',
29
29
  blinkFeatureID: 769,
30
30
  },
31
+ 'HapticsDevice': {
32
+ regEx: /\.haptics\.play\s*\(/g,
33
+ where: 'JavaScript',
34
+ supported: (async () => 'HapticsDevice' in self)(),
35
+ featureDetection: `(async () => 'HapticsDevice' in self)()`,
36
+ documentation:
37
+ 'https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/HapticsDevice/explainer.md',
38
+ blinkFeatureID: undefined,
39
+ },
31
40
  'Add to Home Screen': {
32
41
  regEx: /["']beforeinstallprompt["']|\.onbeforeinstallprompt/g,
33
42
  where: 'JavaScript',
@@ -466,14 +475,6 @@ const patterns = {
466
475
  documentation: 'https://web.dev/generic-sensor/',
467
476
  blinkFeatureID: 1901,
468
477
  },
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
478
  'Notification Triggers': {
478
479
  regEx: /showTrigger\s*\:\s*new\s+TimestampTrigger\s*\(/g,
479
480
  where: 'JavaScript',
@@ -630,11 +631,21 @@ const patterns = {
630
631
  documentation: 'https://web.dev/url-protocol-handler/',
631
632
  blinkFeatureID: 3884,
632
633
  },
634
+ 'File Handling': {
635
+ regEx: /"file_handlers"/g,
636
+ where: 'Web App Manifest',
637
+ supported: (async () =>
638
+ 'launchQueue' in self && 'files' in LaunchParams.prototype)(),
639
+ featureDetection: `(async () => 'launchQueue' in self && 'files' in LaunchParams.prototype)()`,
640
+ documentation: 'https://web.dev/file-handling/',
641
+ blinkFeatureID: 3875,
642
+ },
633
643
  'Launch Handler': {
634
644
  regEx: /"launch_handler"/g,
635
645
  where: 'Web App Manifest',
636
- supported: (async () => undefined)(),
637
- featureDetection: `(async () => undefined)()`,
646
+ supported: (async () =>
647
+ 'launchQueue' in self && 'targetURL' in LaunchParams.prototype)(),
648
+ featureDetection: `(async () => 'launchQueue' in self && 'targetURL' in LaunchParams.prototype)()`,
638
649
  documentation: 'https://web.dev/launch-handler/',
639
650
  blinkFeatureID: undefined,
640
651
  },
package/patterns.mjs CHANGED
@@ -28,6 +28,15 @@ export default {
28
28
  documentation: 'https://developer.mozilla.org/en-US/docs/Web/API/Push_API',
29
29
  blinkFeatureID: 769,
30
30
  },
31
+ 'HapticsDevice': {
32
+ regEx: /\.haptics\.play\s*\(/g,
33
+ where: 'JavaScript',
34
+ supported: (async () => 'HapticsDevice' in self)(),
35
+ featureDetection: `(async () => 'HapticsDevice' in self)()`,
36
+ documentation:
37
+ 'https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/HapticsDevice/explainer.md',
38
+ blinkFeatureID: undefined,
39
+ },
31
40
  'Add to Home Screen': {
32
41
  regEx: /["']beforeinstallprompt["']|\.onbeforeinstallprompt/g,
33
42
  where: 'JavaScript',
@@ -466,14 +475,6 @@ export default {
466
475
  documentation: 'https://web.dev/generic-sensor/',
467
476
  blinkFeatureID: 1901,
468
477
  },
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
478
  'Notification Triggers': {
478
479
  regEx: /showTrigger\s*\:\s*new\s+TimestampTrigger\s*\(/g,
479
480
  where: 'JavaScript',
@@ -630,11 +631,21 @@ export default {
630
631
  documentation: 'https://web.dev/url-protocol-handler/',
631
632
  blinkFeatureID: 3884,
632
633
  },
634
+ 'File Handling': {
635
+ regEx: /"file_handlers"/g,
636
+ where: 'Web App Manifest',
637
+ supported: (async () =>
638
+ 'launchQueue' in self && 'files' in LaunchParams.prototype)(),
639
+ featureDetection: `(async () => 'launchQueue' in self && 'files' in LaunchParams.prototype)()`,
640
+ documentation: 'https://web.dev/file-handling/',
641
+ blinkFeatureID: 3875,
642
+ },
633
643
  'Launch Handler': {
634
644
  regEx: /"launch_handler"/g,
635
645
  where: 'Web App Manifest',
636
- supported: (async () => undefined)(),
637
- featureDetection: `(async () => undefined)()`,
646
+ supported: (async () =>
647
+ 'launchQueue' in self && 'targetURL' in LaunchParams.prototype)(),
648
+ featureDetection: `(async () => 'launchQueue' in self && 'targetURL' in LaunchParams.prototype)()`,
638
649
  documentation: 'https://web.dev/launch-handler/',
639
650
  blinkFeatureID: undefined,
640
651
  },