fugu-api-data 1.5.3 → 1.7.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.5.3",
3
+ "version": "1.7.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 window)(),
35
+ featureDetection: `(async () => 'HapticsDevice' in window)()`,
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',
@@ -136,7 +145,7 @@ const patterns = {
136
145
  blinkFeatureID: 2397,
137
146
  },
138
147
  'WebMIDI': {
139
- regEx: /navigator\.requestMIDIAccess\s*\(\)/g,
148
+ regEx: /navigator\.requestMIDIAccess\s*\(/g,
140
149
  where: 'JavaScript',
141
150
  supported: (async () => 'requestMIDIAccess' in navigator)(),
142
151
  featureDetection: `(async () => 'requestMIDIAccess' in navigator)()`,
@@ -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,4 +631,22 @@ 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
+ },
643
+ 'Launch Handler': {
644
+ regEx: /"launch_handler"/g,
645
+ where: 'Web App Manifest',
646
+ supported: (async () =>
647
+ 'launchQueue' in self && 'targetURL' in LaunchParams.prototype)(),
648
+ featureDetection: `(async () => 'launchQueue' in self && 'targetURL' in LaunchParams.prototype)()`,
649
+ documentation: 'https://web.dev/launch-handler/',
650
+ blinkFeatureID: undefined,
651
+ },
633
652
  };
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 window)(),
35
+ featureDetection: `(async () => 'HapticsDevice' in window)()`,
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',
@@ -136,7 +145,7 @@ export default {
136
145
  blinkFeatureID: 2397,
137
146
  },
138
147
  'WebMIDI': {
139
- regEx: /navigator\.requestMIDIAccess\s*\(\)/g,
148
+ regEx: /navigator\.requestMIDIAccess\s*\(/g,
140
149
  where: 'JavaScript',
141
150
  supported: (async () => 'requestMIDIAccess' in navigator)(),
142
151
  featureDetection: `(async () => 'requestMIDIAccess' in navigator)()`,
@@ -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,4 +631,22 @@ 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
+ },
643
+ 'Launch Handler': {
644
+ regEx: /"launch_handler"/g,
645
+ where: 'Web App Manifest',
646
+ supported: (async () =>
647
+ 'launchQueue' in self && 'targetURL' in LaunchParams.prototype)(),
648
+ featureDetection: `(async () => 'launchQueue' in self && 'targetURL' in LaunchParams.prototype)()`,
649
+ documentation: 'https://web.dev/launch-handler/',
650
+ blinkFeatureID: undefined,
651
+ },
633
652
  };