fugu-api-data 1.5.1 → 1.5.5
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 +1 -1
- package/patterns.js +20 -6
- package/patterns.mjs +20 -6
package/package.json
CHANGED
package/patterns.js
CHANGED
|
@@ -18,7 +18,7 @@ const patterns = {
|
|
|
18
18
|
blinkFeatureID: 3022,
|
|
19
19
|
},
|
|
20
20
|
'Push': {
|
|
21
|
-
regEx:
|
|
21
|
+
regEx: /\.pushManager\.subscribe\s*\(/g,
|
|
22
22
|
where: 'JavaScript',
|
|
23
23
|
supported: (async () =>
|
|
24
24
|
'serviceWorker' in navigator &&
|
|
@@ -31,11 +31,8 @@ const patterns = {
|
|
|
31
31
|
'Add to Home Screen': {
|
|
32
32
|
regEx: /["']beforeinstallprompt["']|\.onbeforeinstallprompt/g,
|
|
33
33
|
where: 'JavaScript',
|
|
34
|
-
supported: (async () =>
|
|
35
|
-
|
|
36
|
-
document.createElement('link').relList.supports('manifest') &&
|
|
37
|
-
'onbeforeinstallprompt' in self)(),
|
|
38
|
-
featureDetection: `(async () => 'relList' in HTMLLinkElement.prototype && document.createElement('link').relList.supports('manifest') && 'onbeforeinstallprompt' in self)()`,
|
|
34
|
+
supported: (async () => 'BeforeInstallPromptEvent' in self)(),
|
|
35
|
+
featureDetection: `(async () => 'BeforeInstallPromptEvent' in self)()`,
|
|
39
36
|
documentation:
|
|
40
37
|
'https://developer.mozilla.org/en-US/docs/Web/API/BeforeInstallPromptEvent',
|
|
41
38
|
blinkFeatureID: 1436,
|
|
@@ -138,6 +135,15 @@ const patterns = {
|
|
|
138
135
|
documentation: 'https://web.dev/registering-a-web-based-payment-app/',
|
|
139
136
|
blinkFeatureID: 2397,
|
|
140
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
|
+
},
|
|
141
147
|
'WebBluetooth': {
|
|
142
148
|
regEx: /navigator\.bluetooth\.requestDevice\s*\(/g,
|
|
143
149
|
where: 'JavaScript',
|
|
@@ -624,4 +630,12 @@ const patterns = {
|
|
|
624
630
|
documentation: 'https://web.dev/url-protocol-handler/',
|
|
625
631
|
blinkFeatureID: 3884,
|
|
626
632
|
},
|
|
633
|
+
'Launch Handler': {
|
|
634
|
+
regEx: /"launch_handler"/g,
|
|
635
|
+
where: 'Web App Manifest',
|
|
636
|
+
supported: (async () => undefined)(),
|
|
637
|
+
featureDetection: `(async () => undefined)()`,
|
|
638
|
+
documentation: 'https://web.dev/launch-handler/',
|
|
639
|
+
blinkFeatureID: undefined,
|
|
640
|
+
},
|
|
627
641
|
};
|
package/patterns.mjs
CHANGED
|
@@ -18,7 +18,7 @@ export default {
|
|
|
18
18
|
blinkFeatureID: 3022,
|
|
19
19
|
},
|
|
20
20
|
'Push': {
|
|
21
|
-
regEx:
|
|
21
|
+
regEx: /\.pushManager\.subscribe\s*\(/g,
|
|
22
22
|
where: 'JavaScript',
|
|
23
23
|
supported: (async () =>
|
|
24
24
|
'serviceWorker' in navigator &&
|
|
@@ -31,11 +31,8 @@ export default {
|
|
|
31
31
|
'Add to Home Screen': {
|
|
32
32
|
regEx: /["']beforeinstallprompt["']|\.onbeforeinstallprompt/g,
|
|
33
33
|
where: 'JavaScript',
|
|
34
|
-
supported: (async () =>
|
|
35
|
-
|
|
36
|
-
document.createElement('link').relList.supports('manifest') &&
|
|
37
|
-
'onbeforeinstallprompt' in self)(),
|
|
38
|
-
featureDetection: `(async () => 'relList' in HTMLLinkElement.prototype && document.createElement('link').relList.supports('manifest') && 'onbeforeinstallprompt' in self)()`,
|
|
34
|
+
supported: (async () => 'BeforeInstallPromptEvent' in self)(),
|
|
35
|
+
featureDetection: `(async () => 'BeforeInstallPromptEvent' in self)()`,
|
|
39
36
|
documentation:
|
|
40
37
|
'https://developer.mozilla.org/en-US/docs/Web/API/BeforeInstallPromptEvent',
|
|
41
38
|
blinkFeatureID: 1436,
|
|
@@ -138,6 +135,15 @@ export default {
|
|
|
138
135
|
documentation: 'https://web.dev/registering-a-web-based-payment-app/',
|
|
139
136
|
blinkFeatureID: 2397,
|
|
140
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
|
+
},
|
|
141
147
|
'WebBluetooth': {
|
|
142
148
|
regEx: /navigator\.bluetooth\.requestDevice\s*\(/g,
|
|
143
149
|
where: 'JavaScript',
|
|
@@ -624,4 +630,12 @@ export default {
|
|
|
624
630
|
documentation: 'https://web.dev/url-protocol-handler/',
|
|
625
631
|
blinkFeatureID: 3884,
|
|
626
632
|
},
|
|
633
|
+
'Launch Handler': {
|
|
634
|
+
regEx: /"launch_handler"/g,
|
|
635
|
+
where: 'Web App Manifest',
|
|
636
|
+
supported: (async () => undefined)(),
|
|
637
|
+
featureDetection: `(async () => undefined)()`,
|
|
638
|
+
documentation: 'https://web.dev/launch-handler/',
|
|
639
|
+
blinkFeatureID: undefined,
|
|
640
|
+
},
|
|
627
641
|
};
|