fugu-api-data 1.14.0 → 1.15.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.14.0",
3
+ "version": "1.15.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.3.0",
27
- "prettier": "^2.8.3"
26
+ "node-fetch": "^3.3.1",
27
+ "prettier": "^2.8.6"
28
28
  }
29
29
  }
package/patterns.js CHANGED
@@ -516,6 +516,15 @@ const patterns = {
516
516
  'https://github.com/WICG/pwa-url-handler/blob/main/handle_links/explainer.md',
517
517
  blinkFeatureID: undefined,
518
518
  },
519
+ 'Web Audio': {
520
+ regEx: /new\s+AudioContext\s*\(/g,
521
+ where: 'JavaScript',
522
+ supported: (async () => 'AudioContext' in self)(),
523
+ featureDetection: `(async () => 'AudioContext' in self)()`,
524
+ documentation:
525
+ 'https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API',
526
+ blinkFeatureID: 1698,
527
+ },
519
528
  'Web Share': {
520
529
  regEx: /navigator\.share\s*\(/g,
521
530
  where: 'JavaScript',
@@ -548,7 +557,7 @@ const patterns = {
548
557
  documentation: 'https://developer.chrome.com/articles/web-share-target/',
549
558
  blinkFeatureID: undefined,
550
559
  },
551
- 'WebBluetooth': {
560
+ 'Web Bluetooth': {
552
561
  regEx: /navigator\.bluetooth\.requestDevice\s*\(/g,
553
562
  where: 'JavaScript',
554
563
  supported: (async () => 'bluetooth' in navigator)(),
@@ -580,7 +589,7 @@ const patterns = {
580
589
  documentation: 'https://developer.chrome.com/articles/hid/',
581
590
  blinkFeatureID: 2866,
582
591
  },
583
- 'WebMIDI': {
592
+ 'Web MIDI': {
584
593
  regEx: /navigator\.requestMIDIAccess\s*\(/g,
585
594
  where: 'JavaScript',
586
595
  supported: (async () => 'requestMIDIAccess' in navigator)(),
@@ -589,7 +598,7 @@ const patterns = {
589
598
  'https://developer.mozilla.org/en-US/docs/Web/API/Web_MIDI_API',
590
599
  blinkFeatureID: 2029,
591
600
  },
592
- 'WebNFC': {
601
+ 'Web NFC': {
593
602
  regEx: /new\s+NDEFReader\s*\(/g,
594
603
  where: 'JavaScript',
595
604
  supported: (async () => 'NDEFReader' in self)(),
@@ -605,7 +614,7 @@ const patterns = {
605
614
  documentation: 'https://web.dev/web-otp/',
606
615
  blinkFeatureID: 2880,
607
616
  },
608
- 'WebSerial': {
617
+ 'Web Serial': {
609
618
  regEx: /navigator\.serial\.requestPort\s*\(/g,
610
619
  where: 'JavaScript',
611
620
  supported: (async () => 'serial' in navigator)(),
package/patterns.mjs CHANGED
@@ -516,6 +516,15 @@ export default {
516
516
  'https://github.com/WICG/pwa-url-handler/blob/main/handle_links/explainer.md',
517
517
  blinkFeatureID: undefined,
518
518
  },
519
+ 'Web Audio': {
520
+ regEx: /new\s+AudioContext\s*\(/g,
521
+ where: 'JavaScript',
522
+ supported: (async () => 'AudioContext' in self)(),
523
+ featureDetection: `(async () => 'AudioContext' in self)()`,
524
+ documentation:
525
+ 'https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API',
526
+ blinkFeatureID: 1698,
527
+ },
519
528
  'Web Share': {
520
529
  regEx: /navigator\.share\s*\(/g,
521
530
  where: 'JavaScript',
@@ -548,7 +557,7 @@ export default {
548
557
  documentation: 'https://developer.chrome.com/articles/web-share-target/',
549
558
  blinkFeatureID: undefined,
550
559
  },
551
- 'WebBluetooth': {
560
+ 'Web Bluetooth': {
552
561
  regEx: /navigator\.bluetooth\.requestDevice\s*\(/g,
553
562
  where: 'JavaScript',
554
563
  supported: (async () => 'bluetooth' in navigator)(),
@@ -580,7 +589,7 @@ export default {
580
589
  documentation: 'https://developer.chrome.com/articles/hid/',
581
590
  blinkFeatureID: 2866,
582
591
  },
583
- 'WebMIDI': {
592
+ 'Web MIDI': {
584
593
  regEx: /navigator\.requestMIDIAccess\s*\(/g,
585
594
  where: 'JavaScript',
586
595
  supported: (async () => 'requestMIDIAccess' in navigator)(),
@@ -589,7 +598,7 @@ export default {
589
598
  'https://developer.mozilla.org/en-US/docs/Web/API/Web_MIDI_API',
590
599
  blinkFeatureID: 2029,
591
600
  },
592
- 'WebNFC': {
601
+ 'Web NFC': {
593
602
  regEx: /new\s+NDEFReader\s*\(/g,
594
603
  where: 'JavaScript',
595
604
  supported: (async () => 'NDEFReader' in self)(),
@@ -605,7 +614,7 @@ export default {
605
614
  documentation: 'https://web.dev/web-otp/',
606
615
  blinkFeatureID: 2880,
607
616
  },
608
- 'WebSerial': {
617
+ 'Web Serial': {
609
618
  regEx: /navigator\.serial\.requestPort\s*\(/g,
610
619
  where: 'JavaScript',
611
620
  supported: (async () => 'serial' in navigator)(),