fugu-api-data 1.11.0 → 1.12.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 +1 -1
  2. package/patterns.js +12 -10
  3. package/patterns.mjs +12 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fugu-api-data",
3
- "version": "1.11.0",
3
+ "version": "1.12.0",
4
4
  "description": "Data about Project Fugu 🐡 APIs.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/patterns.js CHANGED
@@ -373,16 +373,18 @@ const patterns = {
373
373
  regEx: /unadjustedMovement\s*\:\s*/g,
374
374
  where: 'JavaScript',
375
375
  supported: (async () =>
376
- await (async () => {
377
- try {
378
- return !!(await document
379
- .createElement('p')
380
- .requestPointerLock({ unadjustedMovement: true }));
381
- } catch {
382
- return 'requestPointerLock' in HTMLParagraphElement.prototype;
383
- }
384
- })())(),
385
- featureDetection: `(async () => await (async () => { try { return !!await document.createElement("p").requestPointerLock({ unadjustedMovement: true }) } catch { return 'requestPointerLock' in HTMLParagraphElement.prototype } })())()`,
376
+ 'HTMLParagraphElement' in self
377
+ ? await (async () => {
378
+ try {
379
+ return !!(await document
380
+ .createElement('p')
381
+ .requestPointerLock({ unadjustedMovement: true }));
382
+ } catch {
383
+ return 'requestPointerLock' in HTMLParagraphElement.prototype;
384
+ }
385
+ })()
386
+ : undefined)(),
387
+ featureDetection: `(async () => 'HTMLParagraphElement' in self ? await (async () => { try { return !!await document.createElement("p").requestPointerLock({ unadjustedMovement: true }) } catch { return 'requestPointerLock' in HTMLParagraphElement.prototype } })() : undefined)()`,
386
388
  documentation: 'https://web.dev/disable-mouse-acceleration/',
387
389
  blinkFeatureID: 3027,
388
390
  },
package/patterns.mjs CHANGED
@@ -373,16 +373,18 @@ export default {
373
373
  regEx: /unadjustedMovement\s*\:\s*/g,
374
374
  where: 'JavaScript',
375
375
  supported: (async () =>
376
- await (async () => {
377
- try {
378
- return !!(await document
379
- .createElement('p')
380
- .requestPointerLock({ unadjustedMovement: true }));
381
- } catch {
382
- return 'requestPointerLock' in HTMLParagraphElement.prototype;
383
- }
384
- })())(),
385
- featureDetection: `(async () => await (async () => { try { return !!await document.createElement("p").requestPointerLock({ unadjustedMovement: true }) } catch { return 'requestPointerLock' in HTMLParagraphElement.prototype } })())()`,
376
+ 'HTMLParagraphElement' in self
377
+ ? await (async () => {
378
+ try {
379
+ return !!(await document
380
+ .createElement('p')
381
+ .requestPointerLock({ unadjustedMovement: true }));
382
+ } catch {
383
+ return 'requestPointerLock' in HTMLParagraphElement.prototype;
384
+ }
385
+ })()
386
+ : undefined)(),
387
+ featureDetection: `(async () => 'HTMLParagraphElement' in self ? await (async () => { try { return !!await document.createElement("p").requestPointerLock({ unadjustedMovement: true }) } catch { return 'requestPointerLock' in HTMLParagraphElement.prototype } })() : undefined)()`,
386
388
  documentation: 'https://web.dev/disable-mouse-acceleration/',
387
389
  blinkFeatureID: 3027,
388
390
  },