fugu-api-data 1.5.2 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fugu-api-data",
3
- "version": "1.5.2",
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
@@ -135,6 +135,15 @@ const patterns = {
135
135
  documentation: 'https://web.dev/registering-a-web-based-payment-app/',
136
136
  blinkFeatureID: 2397,
137
137
  },
138
+ 'WebMIDI': {
139
+ regEx: /navigator\.requestMIDIAccess\s*\(/g,
140
+ where: 'JavaScript',
141
+ supported: (async () => 'requestMIDIAccess' in navigator)(),
142
+ featureDetection: `(async () => 'requestMIDIAccess' in navigator)()`,
143
+ documentation:
144
+ 'https://developer.mozilla.org/en-US/docs/Web/API/Web_MIDI_API',
145
+ blinkFeatureID: 2029,
146
+ },
138
147
  'WebBluetooth': {
139
148
  regEx: /navigator\.bluetooth\.requestDevice\s*\(/g,
140
149
  where: 'JavaScript',
@@ -457,14 +466,6 @@ const patterns = {
457
466
  documentation: 'https://web.dev/generic-sensor/',
458
467
  blinkFeatureID: 1901,
459
468
  },
460
- 'File Handling': {
461
- regEx: /launchQueue\.setConsumer\s*\(/g,
462
- where: 'JavaScript',
463
- supported: (async () => 'launchQueue' in self)(),
464
- featureDetection: `(async () => 'launchQueue' in self)()`,
465
- documentation: 'https://web.dev/file-handling/',
466
- blinkFeatureID: 3875,
467
- },
468
469
  'Notification Triggers': {
469
470
  regEx: /showTrigger\s*\:\s*new\s+TimestampTrigger\s*\(/g,
470
471
  where: 'JavaScript',
@@ -621,4 +622,22 @@ const patterns = {
621
622
  documentation: 'https://web.dev/url-protocol-handler/',
622
623
  blinkFeatureID: 3884,
623
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
+ },
634
+ 'Launch Handler': {
635
+ regEx: /"launch_handler"/g,
636
+ where: 'Web App Manifest',
637
+ supported: (async () =>
638
+ 'launchQueue' in self && 'targetURL' in LaunchParams.prototype)(),
639
+ featureDetection: `(async () => 'launchQueue' in self && 'targetURL' in LaunchParams.prototype)()`,
640
+ documentation: 'https://web.dev/launch-handler/',
641
+ blinkFeatureID: undefined,
642
+ },
624
643
  };
package/patterns.mjs CHANGED
@@ -135,6 +135,15 @@ export default {
135
135
  documentation: 'https://web.dev/registering-a-web-based-payment-app/',
136
136
  blinkFeatureID: 2397,
137
137
  },
138
+ 'WebMIDI': {
139
+ regEx: /navigator\.requestMIDIAccess\s*\(/g,
140
+ where: 'JavaScript',
141
+ supported: (async () => 'requestMIDIAccess' in navigator)(),
142
+ featureDetection: `(async () => 'requestMIDIAccess' in navigator)()`,
143
+ documentation:
144
+ 'https://developer.mozilla.org/en-US/docs/Web/API/Web_MIDI_API',
145
+ blinkFeatureID: 2029,
146
+ },
138
147
  'WebBluetooth': {
139
148
  regEx: /navigator\.bluetooth\.requestDevice\s*\(/g,
140
149
  where: 'JavaScript',
@@ -457,14 +466,6 @@ export default {
457
466
  documentation: 'https://web.dev/generic-sensor/',
458
467
  blinkFeatureID: 1901,
459
468
  },
460
- 'File Handling': {
461
- regEx: /launchQueue\.setConsumer\s*\(/g,
462
- where: 'JavaScript',
463
- supported: (async () => 'launchQueue' in self)(),
464
- featureDetection: `(async () => 'launchQueue' in self)()`,
465
- documentation: 'https://web.dev/file-handling/',
466
- blinkFeatureID: 3875,
467
- },
468
469
  'Notification Triggers': {
469
470
  regEx: /showTrigger\s*\:\s*new\s+TimestampTrigger\s*\(/g,
470
471
  where: 'JavaScript',
@@ -621,4 +622,22 @@ export default {
621
622
  documentation: 'https://web.dev/url-protocol-handler/',
622
623
  blinkFeatureID: 3884,
623
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
+ },
634
+ 'Launch Handler': {
635
+ regEx: /"launch_handler"/g,
636
+ where: 'Web App Manifest',
637
+ supported: (async () =>
638
+ 'launchQueue' in self && 'targetURL' in LaunchParams.prototype)(),
639
+ featureDetection: `(async () => 'launchQueue' in self && 'targetURL' in LaunchParams.prototype)()`,
640
+ documentation: 'https://web.dev/launch-handler/',
641
+ blinkFeatureID: undefined,
642
+ },
624
643
  };