From 0924a14f52c0d86abb15697254461e1b01b4aabb Mon Sep 17 00:00:00 2001 From: Yury Shapkarin Date: Mon, 6 Jul 2020 01:09:04 +0300 Subject: [PATCH 01/11] add global with get-browser-globals.js script (resolves #164) --- globals.json | 268 +++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 240 insertions(+), 28 deletions(-) diff --git a/globals.json b/globals.json index e2375e8..b36d991 100644 --- a/globals.json +++ b/globals.json @@ -227,20 +227,24 @@ "browser": { "AbortController": false, "AbortSignal": false, - "addEventListener": false, + "AbsoluteOrientationSensor": false, + "Accelerometer": false, "alert": false, "AnalyserNode": false, "Animation": false, - "AnimationEffectReadOnly": false, - "AnimationEffectTiming": false, - "AnimationEffectTimingReadOnly": false, + "AnimationEffect": false, "AnimationEvent": false, - "AnimationPlaybackEvent": false, - "AnimationTimeline": false, + "appendParam": false, "applicationCache": false, "ApplicationCache": false, "ApplicationCacheErrorEvent": false, + "Array": false, + "ArrayBuffer": false, + "assert": false, + "assertInstanceof": false, + "assertNotReached": false, "atob": false, + "Atomics": false, "Attr": false, "Audio": false, "AudioBuffer": false, @@ -250,22 +254,32 @@ "AudioListener": false, "AudioNode": false, "AudioParam": false, + "AudioParamMap": false, "AudioProcessingEvent": false, "AudioScheduledSourceNode": false, - "AudioWorkletGlobalScope ": false, + "AudioWorklet": false, "AudioWorkletNode": false, - "AudioWorkletProcessor": false, + "AuthenticatorAssertionResponse": false, + "AuthenticatorAttestationResponse": false, + "AuthenticatorResponse": false, + "BackgroundFetchManager": false, + "BackgroundFetchRecord": false, + "BackgroundFetchRegistration": false, + "BarcodeDetector": false, "BarProp": false, "BaseAudioContext": false, "BatteryManager": false, "BeforeUnloadEvent": false, + "BigInt": false, + "BigInt64Array": false, + "BigUint64Array": false, "BiquadFilterNode": false, "Blob": false, "BlobEvent": false, "blur": false, + "Boolean": false, "BroadcastChannel": false, "btoa": false, - "BudgetService": false, "ByteLengthQueuingStrategy": false, "Cache": false, "caches": false, @@ -282,54 +296,92 @@ "clearInterval": false, "clearTimeout": false, "clientInformation": false, + "Clipboard": false, "ClipboardEvent": false, + "ClipboardItem": false, "close": false, "closed": false, "CloseEvent": false, "Comment": false, "CompositionEvent": false, + "CompressionStream": false, "confirm": false, "console": false, "ConstantSourceNode": false, "ConvolverNode": false, "CountQueuingStrategy": false, + "cr": false, + "createElementWithClassName": false, "createImageBitmap": false, "Credential": false, "CredentialsContainer": false, - "crypto": false, "Crypto": false, + "crypto": false, "CryptoKey": false, "CSS": false, "CSSConditionRule": false, "CSSFontFaceRule": false, "CSSGroupingRule": false, + "CSSImageValue": false, "CSSImportRule": false, "CSSKeyframeRule": false, "CSSKeyframesRule": false, + "CSSKeywordValue": false, + "CSSMathInvert": false, + "CSSMathMax": false, + "CSSMathMin": false, + "CSSMathNegate": false, + "CSSMathProduct": false, + "CSSMathSum": false, + "CSSMathValue": false, + "CSSMatrixComponent": false, "CSSMediaRule": false, "CSSNamespaceRule": false, + "CSSNumericArray": false, + "CSSNumericValue": false, "CSSPageRule": false, + "CSSPerspective": false, + "CSSPositionValue": false, + "CSSRotate": false, "CSSRule": false, "CSSRuleList": false, + "CSSScale": false, + "CSSSkew": false, + "CSSSkewX": false, + "CSSSkewY": false, "CSSStyleDeclaration": false, "CSSStyleRule": false, "CSSStyleSheet": false, + "CSSStyleValue": false, "CSSSupportsRule": false, + "CSSTransformComponent": false, + "CSSTransformValue": false, + "CSSTranslate": false, + "CSSUnitValue": false, + "CSSUnparsedValue": false, + "CSSVariableReferenceValue": false, "CustomElementRegistry": false, "customElements": false, "CustomEvent": false, "DataTransfer": false, "DataTransferItem": false, "DataTransferItemList": false, - "defaultstatus": false, + "DataView": false, + "Date": false, + "decodeURI": false, + "decodeURIComponent": false, + "DecompressionStream": false, "defaultStatus": false, + "defaultstatus": false, "DelayNode": false, "DeviceMotionEvent": false, + "DeviceMotionEventAcceleration": false, + "DeviceMotionEventRotationRate": false, "DeviceOrientationEvent": false, "devicePixelRatio": false, - "dispatchEvent": false, - "document": false, + "disableTextSelectAndDrag": false, "Document": false, + "document": false, "DocumentFragment": false, "DocumentType": false, "DOMError": false, @@ -342,6 +394,7 @@ "DOMPointReadOnly": false, "DOMQuad": false, "DOMRect": false, + "DOMRectList": false, "DOMRectReadOnly": false, "DOMStringList": false, "DOMStringMap": false, @@ -349,34 +402,65 @@ "DragEvent": false, "DynamicsCompressorNode": false, "Element": false, + "ElementInternals": false, + "elide": false, + "encodeURI": false, + "encodeURIComponent": false, + "ensureTransitionEndEvent": false, + "EnterPictureInPictureEvent": false, + "Error": false, "ErrorEvent": false, - "event": false, + "escape": false, + "eval": false, + "EvalError": false, "Event": false, + "event": false, "EventSource": false, "EventTarget": false, + "External": false, "external": false, + "FeaturePolicy": false, + "FederatedCredential": false, "fetch": false, "File": false, "FileList": false, "FileReader": false, "find": false, + "findAncestor": false, + "findAncestorByClass": false, + "Float32Array": false, + "Float64Array": false, "focus": false, "FocusEvent": false, "FontFace": false, "FontFaceSetLoadEvent": false, "FormData": false, + "FormDataEvent": false, + "FragmentDirective": false, "frameElement": false, "frames": false, + "Function": false, "GainNode": false, "Gamepad": false, "GamepadButton": false, "GamepadEvent": false, + "GamepadHapticActuator": false, + "Geolocation": false, + "GeolocationCoordinates": false, + "GeolocationPosition": false, + "GeolocationPositionError": false, "getComputedStyle": false, + "getDeepActiveElement": false, + "getRequiredElement": false, "getSelection": false, + "getSVGElement": false, + "globalThis": false, + "Gyroscope": false, "HashChangeEvent": false, + "hasKeyModifiers": false, "Headers": false, - "history": false, "History": false, + "history": false, "HTMLAllCollection": false, "HTMLAnchorElement": false, "HTMLAreaElement": false, @@ -398,6 +482,7 @@ "HTMLDocument": false, "HTMLElement": false, "HTMLEmbedElement": false, + "HTMLEscape": false, "HTMLFieldSetElement": false, "HTMLFontElement": false, "HTMLFormControlsCollection": false, @@ -474,35 +559,59 @@ "ImageCapture": false, "ImageData": false, "indexedDB": false, + "Infinity": false, "innerHeight": false, "innerWidth": false, + "InputDeviceInfo": false, "InputEvent": false, + "Int16Array": false, + "Int32Array": false, + "Int8Array": false, "IntersectionObserver": false, "IntersectionObserverEntry": false, "Intl": false, + "isFinite": false, + "isNaN": false, + "isRTL": false, "isSecureContext": false, + "isTextInputElement": false, + "JSCompiler_renameProperty": false, + "JSON": false, + "Keyboard": false, "KeyboardEvent": false, + "KeyboardLayoutMap": false, "KeyframeEffect": false, - "KeyframeEffectReadOnly": false, + "LargestContentfulPaint": false, + "LayoutShift": false, "length": false, + "LinearAccelerationSensor": false, + "listenOnce": false, "localStorage": false, - "location": true, "Location": false, + "location": false, "locationbar": false, + "Lock": false, + "LockManager": false, + "Map": false, "matchMedia": false, + "Math": false, + "MediaCapabilities": false, "MediaDeviceInfo": false, "MediaDevices": false, "MediaElementAudioSourceNode": false, "MediaEncryptedEvent": false, "MediaError": false, "MediaKeyMessageEvent": false, + "MediaKeys": false, "MediaKeySession": false, "MediaKeyStatusMap": false, "MediaKeySystemAccess": false, "MediaList": false, + "MediaMetadata": false, "MediaQueryList": false, "MediaQueryListEvent": false, "MediaRecorder": false, + "MediaSession": false, "MediaSettingsRange": false, "MediaSource": false, "MediaStream": false, @@ -533,19 +642,23 @@ "MutationRecord": false, "name": false, "NamedNodeMap": false, + "NaN": false, "NavigationPreloadManager": false, - "navigator": false, "Navigator": false, + "navigator": false, "NetworkInformation": false, "Node": false, "NodeFilter": false, "NodeIterator": false, "NodeList": false, "Notification": false, + "Number": false, + "Object": false, "OfflineAudioCompletionEvent": false, "OfflineAudioContext": false, "offscreenBuffering": false, - "OffscreenCanvas": true, + "OffscreenCanvas": false, + "OffscreenCanvasRenderingContext2D": false, "onabort": true, "onafterprint": true, "onanimationend": true, @@ -581,6 +694,7 @@ "onended": true, "onerror": true, "onfocus": true, + "onformdata": true, "ongotpointercapture": true, "onhashchange": true, "oninput": true, @@ -618,6 +732,7 @@ "onpointermove": true, "onpointerout": true, "onpointerover": true, + "onpointerrawupdate": true, "onpointerup": true, "onpopstate": true, "onprogress": true, @@ -630,6 +745,8 @@ "onseeked": true, "onseeking": true, "onselect": true, + "onselectionchange": true, + "onselectstart": true, "onstalled": true, "onstorage": true, "onsubmit": true, @@ -641,28 +758,42 @@ "onunload": true, "onvolumechange": true, "onwaiting": true, + "onwebkitanimationend": true, + "onwebkitanimationiteration": true, + "onwebkitanimationstart": true, + "onwebkittransitionend": true, "onwheel": true, "open": false, "openDatabase": false, "opener": false, "Option": false, + "OrientationSensor": false, "origin": false, "OscillatorNode": false, "outerHeight": false, "outerWidth": false, + "OverconstrainedError": false, "PageTransitionEvent": false, "pageXOffset": false, "pageYOffset": false, "PannerNode": false, "parent": false, + "parseFloat": false, + "parseInt": false, + "PasswordCredential": false, "Path2D": false, "PaymentAddress": false, + "PaymentInstruments": false, + "PaymentManager": false, + "PaymentMethodChangeEvent": false, "PaymentRequest": false, "PaymentRequestUpdateEvent": false, "PaymentResponse": false, - "performance": false, "Performance": false, + "performance": false, + "PerformanceElementTiming": false, "PerformanceEntry": false, + "PerformanceEventTiming": false, "PerformanceLongTaskTiming": false, "PerformanceMark": false, "PerformanceMeasure": false, @@ -672,12 +803,15 @@ "PerformanceObserverEntryList": false, "PerformancePaintTiming": false, "PerformanceResourceTiming": false, + "PerformanceServerTiming": false, "PerformanceTiming": false, + "PeriodicSyncManager": false, "PeriodicWave": false, "Permissions": false, "PermissionStatus": false, "personalbar": false, "PhotoCapabilities": false, + "PictureInPictureWindow": false, "Plugin": false, "PluginArray": false, "PointerEvent": false, @@ -694,18 +828,28 @@ "print": false, "ProcessingInstruction": false, "ProgressEvent": false, + "Promise": false, "PromiseRejectionEvent": false, "prompt": false, + "Proxy": false, + "PublicKeyCredential": false, "PushManager": false, "PushSubscription": false, "PushSubscriptionOptions": false, + "queryRequiredElement": false, "queueMicrotask": false, + "quoteString": false, "RadioNodeList": false, "Range": false, + "RangeError": false, "ReadableStream": false, - "registerProcessor": false, + "ReadableStreamDefaultReader": false, + "ReferenceError": false, + "Reflect": false, + "RegExp": false, + "RelativeOrientationSensor": false, "RemotePlayback": false, - "removeEventListener": false, + "ReportingObserver": false, "Request": false, "requestAnimationFrame": false, "requestIdleCallback": false, @@ -718,20 +862,24 @@ "RTCDataChannel": false, "RTCDataChannelEvent": false, "RTCDtlsTransport": false, + "RTCDTMFSender": false, + "RTCDTMFToneChangeEvent": false, + "RTCError": false, + "RTCErrorEvent": false, "RTCIceCandidate": false, - "RTCIceGatherer": false, "RTCIceTransport": false, "RTCPeerConnection": false, + "RTCPeerConnectionIceErrorEvent": false, "RTCPeerConnectionIceEvent": false, - "RTCRtpContributingSource": false, "RTCRtpReceiver": false, "RTCRtpSender": false, + "RTCRtpTransceiver": false, "RTCSctpTransport": false, "RTCSessionDescription": false, "RTCStatsReport": false, "RTCTrackEvent": false, - "screen": false, "Screen": false, + "screen": false, "screenLeft": false, "ScreenOrientation": false, "screenTop": false, @@ -741,23 +889,33 @@ "scroll": false, "scrollbars": false, "scrollBy": false, + "scrollLeftForDocument": false, "scrollTo": false, + "scrollTopForDocument": false, "scrollX": false, "scrollY": false, "SecurityPolicyViolationEvent": false, "Selection": false, "self": false, + "Sensor": false, + "SensorErrorEvent": false, "ServiceWorker": false, "ServiceWorkerContainer": false, "ServiceWorkerRegistration": false, "sessionStorage": false, + "Set": false, "setInterval": false, + "setScrollLeftForDocument": false, + "setScrollTopForDocument": false, "setTimeout": false, "ShadowRoot": false, + "ShadyCSS": false, + "SharedArrayBuffer": false, "SharedWorker": false, "SourceBuffer": false, "SourceBufferList": false, "speechSynthesis": false, + "SpeechSynthesisErrorEvent": false, "SpeechSynthesisEvent": false, "SpeechSynthesisUtterance": false, "StaticRange": false, @@ -768,9 +926,13 @@ "Storage": false, "StorageEvent": false, "StorageManager": false, + "String": false, "styleMedia": false, + "StylePropertyMap": false, + "StylePropertyMapReadOnly": false, "StyleSheet": false, "StyleSheetList": false, + "SubmitEvent": false, "SubtleCrypto": false, "SVGAElement": false, "SVGAngle": false, @@ -795,7 +957,6 @@ "SVGComponentTransferFunctionElement": false, "SVGDefsElement": false, "SVGDescElement": false, - "SVGDiscardElement": false, "SVGElement": false, "SVGEllipseElement": false, "SVGFEBlendElement": false, @@ -870,10 +1031,14 @@ "SVGUnitTypes": false, "SVGUseElement": false, "SVGViewElement": false, + "Symbol": false, + "SyntaxError": false, "TaskAttributionTiming": false, "Text": false, "TextDecoder": false, + "TextDecoderStream": false, "TextEncoder": false, + "TextEncoderStream": false, "TextEvent": false, "TextMetrics": false, "TextTrack": false, @@ -887,16 +1052,35 @@ "TouchEvent": false, "TouchList": false, "TrackEvent": false, + "TransformStream": false, "TransitionEvent": false, "TreeWalker": false, + "TrustedHTML": false, + "TrustedScript": false, + "TrustedScriptURL": false, + "TrustedTypePolicy": false, + "TrustedTypePolicyFactory": false, + "trustedTypes": false, + "TypeError": false, "UIEvent": false, + "Uint16Array": false, + "Uint32Array": false, + "Uint8Array": false, + "Uint8ClampedArray": false, + "undefined": false, + "unescape": false, + "URIError": false, "URL": false, "URLSearchParams": false, + "UserActivation": false, "ValidityState": false, - "visualViewport": false, + "VideoPlaybackQuality": false, "VisualViewport": false, + "visualViewport": false, "VTTCue": false, "WaveShaperNode": false, + "WeakMap": false, + "WeakSet": false, "WebAssembly": false, "WebGL2RenderingContext": false, "WebGLActiveInfo": false, @@ -916,11 +1100,14 @@ "WebGLUniformLocation": false, "WebGLVertexArrayObject": false, "WebSocket": false, + "WebUIListener": false, "WheelEvent": false, - "window": false, "Window": false, + "window": false, "Worker": false, + "Worklet": false, "WritableStream": false, + "WritableStreamDefaultWriter": false, "XMLDocument": false, "XMLHttpRequest": false, "XMLHttpRequestEventTarget": false, @@ -929,6 +1116,31 @@ "XPathEvaluator": false, "XPathExpression": false, "XPathResult": false, + "XRBoundedReferenceSpace": false, + "XRDOMOverlayState": false, + "XRFrame": false, + "XRHitTestResult": false, + "XRHitTestSource": false, + "XRInputSource": false, + "XRInputSourceArray": false, + "XRInputSourceEvent": false, + "XRInputSourcesChangeEvent": false, + "XRPose": false, + "XRRay": false, + "XRReferenceSpace": false, + "XRReferenceSpaceEvent": false, + "XRRenderState": false, + "XRRigidTransform": false, + "XRSession": false, + "XRSessionEvent": false, + "XRSpace": false, + "XRSystem": false, + "XRTransientInputHitTestResult": false, + "XRTransientInputHitTestSource": false, + "XRView": false, + "XRViewerPose": false, + "XRViewport": false, + "XRWebGLLayer": false, "XSLTProcessor": false }, "worker": { From 3c74fcef6aae1d37e47383f35276270ae6ae2715 Mon Sep 17 00:00:00 2001 From: Yury Shapkarin Date: Mon, 6 Jul 2020 01:41:22 +0300 Subject: [PATCH 02/11] fix get-browser-globals.js script to pass the alphabetical order test closes #166 --- get-browser-globals.js | 2 +- globals.json | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/get-browser-globals.js b/get-browser-globals.js index 73d849a..8be2304 100644 --- a/get-browser-globals.js +++ b/get-browser-globals.js @@ -43,7 +43,7 @@ const blacklist = [ ]; const globals = Object.getOwnPropertyNames(window) - .sort((a, b) => a.toLowerCase().localeCompare(b.toLowerCase())) + .sort((a, b) => a.localeCompare(b)) .filter(global => { for (const pattern of blacklist) { if (typeof pattern === 'string') { diff --git a/globals.json b/globals.json index b36d991..2e66ee1 100644 --- a/globals.json +++ b/globals.json @@ -315,8 +315,8 @@ "createImageBitmap": false, "Credential": false, "CredentialsContainer": false, - "Crypto": false, "crypto": false, + "Crypto": false, "CryptoKey": false, "CSS": false, "CSSConditionRule": false, @@ -371,8 +371,8 @@ "decodeURI": false, "decodeURIComponent": false, "DecompressionStream": false, - "defaultStatus": false, "defaultstatus": false, + "defaultStatus": false, "DelayNode": false, "DeviceMotionEvent": false, "DeviceMotionEventAcceleration": false, @@ -380,8 +380,8 @@ "DeviceOrientationEvent": false, "devicePixelRatio": false, "disableTextSelectAndDrag": false, - "Document": false, "document": false, + "Document": false, "DocumentFragment": false, "DocumentType": false, "DOMError": false, @@ -413,12 +413,12 @@ "escape": false, "eval": false, "EvalError": false, - "Event": false, "event": false, + "Event": false, "EventSource": false, "EventTarget": false, - "External": false, "external": false, + "External": false, "FeaturePolicy": false, "FederatedCredential": false, "fetch": false, @@ -459,8 +459,8 @@ "HashChangeEvent": false, "hasKeyModifiers": false, "Headers": false, - "History": false, "history": false, + "History": false, "HTMLAllCollection": false, "HTMLAnchorElement": false, "HTMLAreaElement": false, @@ -587,8 +587,8 @@ "LinearAccelerationSensor": false, "listenOnce": false, "localStorage": false, - "Location": false, "location": false, + "Location": false, "locationbar": false, "Lock": false, "LockManager": false, @@ -644,8 +644,8 @@ "NamedNodeMap": false, "NaN": false, "NavigationPreloadManager": false, - "Navigator": false, "navigator": false, + "Navigator": false, "NetworkInformation": false, "Node": false, "NodeFilter": false, @@ -789,8 +789,8 @@ "PaymentRequest": false, "PaymentRequestUpdateEvent": false, "PaymentResponse": false, - "Performance": false, "performance": false, + "Performance": false, "PerformanceElementTiming": false, "PerformanceEntry": false, "PerformanceEventTiming": false, @@ -878,8 +878,8 @@ "RTCSessionDescription": false, "RTCStatsReport": false, "RTCTrackEvent": false, - "Screen": false, "screen": false, + "Screen": false, "screenLeft": false, "ScreenOrientation": false, "screenTop": false, @@ -1075,8 +1075,8 @@ "UserActivation": false, "ValidityState": false, "VideoPlaybackQuality": false, - "VisualViewport": false, "visualViewport": false, + "VisualViewport": false, "VTTCue": false, "WaveShaperNode": false, "WeakMap": false, @@ -1102,8 +1102,8 @@ "WebSocket": false, "WebUIListener": false, "WheelEvent": false, - "Window": false, "window": false, + "Window": false, "Worker": false, "Worklet": false, "WritableStream": false, From 64a645ba6ef30198afd40727fd0a2e27f20ce445 Mon Sep 17 00:00:00 2001 From: Yury Shapkarin Date: Mon, 6 Jul 2020 03:12:50 +0300 Subject: [PATCH 03/11] change the way it gets browsers globals variables with get-browser-globals.js script #166 #164 --- .gitignore | 1 + get-browser-globals.js | 20 +- globals.json | 702 +++++------------------------------------ package.json | 1 + readme.md | 2 +- 5 files changed, 89 insertions(+), 637 deletions(-) diff --git a/.gitignore b/.gitignore index 239ecff..0687a95 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules yarn.lock +browser_vars.json diff --git a/get-browser-globals.js b/get-browser-globals.js index 8be2304..9fd6dfa 100644 --- a/get-browser-globals.js +++ b/get-browser-globals.js @@ -1,5 +1,10 @@ 'use strict'; +const fs = require('fs'); + +const { browser } = require('jshint/src/vars.js'); + + const blacklist = [ /^webkit/i, 'BeforeInstallPromptEvent', @@ -42,7 +47,7 @@ const blacklist = [ 'values' ]; -const globals = Object.getOwnPropertyNames(window) +const globals = Object.getOwnPropertyNames(browser) .sort((a, b) => a.localeCompare(b)) .filter(global => { for (const pattern of blacklist) { @@ -65,11 +70,8 @@ for (const key of globals) { ret[key] = key.startsWith('on'); } -copy(JSON.stringify(ret, null, '\t')); - -/* - -Usage: -Open an Incognito window in Chrome Canary and paste the above into the console. You'll now have a new object in your clipboard for the `browser` field in `globals.json`. You still need to manually filter out items from the `builtin` list. - -*/ +fs.writeFile('./browser_vars.json', JSON.stringify(ret, null, '\t'), (error) => { + if (error) { + return console.log(error); + } +}); diff --git a/globals.json b/globals.json index 2e66ee1..b55027c 100644 --- a/globals.json +++ b/globals.json @@ -225,253 +225,67 @@ "WeakSet": false }, "browser": { - "AbortController": false, - "AbortSignal": false, - "AbsoluteOrientationSensor": false, - "Accelerometer": false, - "alert": false, - "AnalyserNode": false, - "Animation": false, - "AnimationEffect": false, - "AnimationEvent": false, - "appendParam": false, + "addEventListener": false, "applicationCache": false, - "ApplicationCache": false, - "ApplicationCacheErrorEvent": false, - "Array": false, - "ArrayBuffer": false, - "assert": false, - "assertInstanceof": false, - "assertNotReached": false, "atob": false, - "Atomics": false, - "Attr": false, "Audio": false, - "AudioBuffer": false, - "AudioBufferSourceNode": false, - "AudioContext": false, - "AudioDestinationNode": false, - "AudioListener": false, - "AudioNode": false, - "AudioParam": false, - "AudioParamMap": false, - "AudioProcessingEvent": false, - "AudioScheduledSourceNode": false, - "AudioWorklet": false, - "AudioWorkletNode": false, - "AuthenticatorAssertionResponse": false, - "AuthenticatorAttestationResponse": false, - "AuthenticatorResponse": false, - "BackgroundFetchManager": false, - "BackgroundFetchRecord": false, - "BackgroundFetchRegistration": false, - "BarcodeDetector": false, - "BarProp": false, - "BaseAudioContext": false, - "BatteryManager": false, - "BeforeUnloadEvent": false, - "BigInt": false, - "BigInt64Array": false, - "BigUint64Array": false, - "BiquadFilterNode": false, "Blob": false, - "BlobEvent": false, "blur": false, - "Boolean": false, - "BroadcastChannel": false, "btoa": false, - "ByteLengthQueuingStrategy": false, - "Cache": false, - "caches": false, - "CacheStorage": false, "cancelAnimationFrame": false, - "cancelIdleCallback": false, - "CanvasCaptureMediaStreamTrack": false, "CanvasGradient": false, "CanvasPattern": false, "CanvasRenderingContext2D": false, - "ChannelMergerNode": false, - "ChannelSplitterNode": false, - "CharacterData": false, "clearInterval": false, "clearTimeout": false, - "clientInformation": false, - "Clipboard": false, - "ClipboardEvent": false, - "ClipboardItem": false, "close": false, "closed": false, - "CloseEvent": false, "Comment": false, "CompositionEvent": false, - "CompressionStream": false, - "confirm": false, - "console": false, - "ConstantSourceNode": false, - "ConvolverNode": false, - "CountQueuingStrategy": false, - "cr": false, - "createElementWithClassName": false, "createImageBitmap": false, - "Credential": false, - "CredentialsContainer": false, - "crypto": false, - "Crypto": false, - "CryptoKey": false, "CSS": false, - "CSSConditionRule": false, - "CSSFontFaceRule": false, "CSSGroupingRule": false, - "CSSImageValue": false, "CSSImportRule": false, - "CSSKeyframeRule": false, - "CSSKeyframesRule": false, - "CSSKeywordValue": false, - "CSSMathInvert": false, - "CSSMathMax": false, - "CSSMathMin": false, - "CSSMathNegate": false, - "CSSMathProduct": false, - "CSSMathSum": false, - "CSSMathValue": false, - "CSSMatrixComponent": false, + "CSSMarginRule": false, "CSSMediaRule": false, "CSSNamespaceRule": false, - "CSSNumericArray": false, - "CSSNumericValue": false, "CSSPageRule": false, - "CSSPerspective": false, - "CSSPositionValue": false, - "CSSRotate": false, "CSSRule": false, "CSSRuleList": false, - "CSSScale": false, - "CSSSkew": false, - "CSSSkewX": false, - "CSSSkewY": false, "CSSStyleDeclaration": false, "CSSStyleRule": false, "CSSStyleSheet": false, - "CSSStyleValue": false, - "CSSSupportsRule": false, - "CSSTransformComponent": false, - "CSSTransformValue": false, - "CSSTranslate": false, - "CSSUnitValue": false, - "CSSUnparsedValue": false, - "CSSVariableReferenceValue": false, - "CustomElementRegistry": false, - "customElements": false, "CustomEvent": false, - "DataTransfer": false, - "DataTransferItem": false, - "DataTransferItemList": false, - "DataView": false, - "Date": false, - "decodeURI": false, - "decodeURIComponent": false, - "DecompressionStream": false, - "defaultstatus": false, "defaultStatus": false, - "DelayNode": false, - "DeviceMotionEvent": false, - "DeviceMotionEventAcceleration": false, - "DeviceMotionEventRotationRate": false, - "DeviceOrientationEvent": false, - "devicePixelRatio": false, - "disableTextSelectAndDrag": false, + "dispatchEvent": false, "document": false, "Document": false, "DocumentFragment": false, - "DocumentType": false, - "DOMError": false, - "DOMException": false, - "DOMImplementation": false, - "DOMMatrix": false, - "DOMMatrixReadOnly": false, "DOMParser": false, - "DOMPoint": false, - "DOMPointReadOnly": false, - "DOMQuad": false, - "DOMRect": false, - "DOMRectList": false, - "DOMRectReadOnly": false, - "DOMStringList": false, - "DOMStringMap": false, - "DOMTokenList": false, - "DragEvent": false, - "DynamicsCompressorNode": false, "Element": false, - "ElementInternals": false, - "elide": false, - "encodeURI": false, - "encodeURIComponent": false, - "ensureTransitionEndEvent": false, - "EnterPictureInPictureEvent": false, - "Error": false, - "ErrorEvent": false, - "escape": false, - "eval": false, - "EvalError": false, + "ElementTimeControl": false, "event": false, "Event": false, - "EventSource": false, - "EventTarget": false, - "external": false, - "External": false, - "FeaturePolicy": false, - "FederatedCredential": false, "fetch": false, "File": false, "FileList": false, "FileReader": false, - "find": false, - "findAncestor": false, - "findAncestorByClass": false, - "Float32Array": false, - "Float64Array": false, "focus": false, - "FocusEvent": false, - "FontFace": false, - "FontFaceSetLoadEvent": false, "FormData": false, - "FormDataEvent": false, - "FragmentDirective": false, - "frameElement": false, "frames": false, - "Function": false, - "GainNode": false, - "Gamepad": false, - "GamepadButton": false, - "GamepadEvent": false, - "GamepadHapticActuator": false, - "Geolocation": false, - "GeolocationCoordinates": false, - "GeolocationPosition": false, - "GeolocationPositionError": false, "getComputedStyle": false, - "getDeepActiveElement": false, - "getRequiredElement": false, - "getSelection": false, - "getSVGElement": false, - "globalThis": false, - "Gyroscope": false, - "HashChangeEvent": false, - "hasKeyModifiers": false, "Headers": false, "history": false, - "History": false, - "HTMLAllCollection": false, "HTMLAnchorElement": false, "HTMLAreaElement": false, "HTMLAudioElement": false, "HTMLBaseElement": false, + "HTMLBlockquoteElement": false, "HTMLBodyElement": false, "HTMLBRElement": false, "HTMLButtonElement": false, "HTMLCanvasElement": false, "HTMLCollection": false, - "HTMLContentElement": false, "HTMLDataElement": false, "HTMLDataListElement": false, "HTMLDetailsElement": false, @@ -479,13 +293,10 @@ "HTMLDirectoryElement": false, "HTMLDivElement": false, "HTMLDListElement": false, - "HTMLDocument": false, "HTMLElement": false, "HTMLEmbedElement": false, - "HTMLEscape": false, "HTMLFieldSetElement": false, "HTMLFontElement": false, - "HTMLFormControlsCollection": false, "HTMLFormElement": false, "HTMLFrameElement": false, "HTMLFrameSetElement": false, @@ -496,7 +307,9 @@ "HTMLIFrameElement": false, "HTMLImageElement": false, "HTMLInputElement": false, + "HTMLIsIndexElement": false, "HTMLLabelElement": false, + "HTMLLayerElement": false, "HTMLLegendElement": false, "HTMLLIElement": false, "HTMLLinkElement": false, @@ -511,8 +324,6 @@ "HTMLOListElement": false, "HTMLOptGroupElement": false, "HTMLOptionElement": false, - "HTMLOptionsCollection": false, - "HTMLOutputElement": false, "HTMLParagraphElement": false, "HTMLParamElement": false, "HTMLPictureElement": false, @@ -521,10 +332,8 @@ "HTMLQuoteElement": false, "HTMLScriptElement": false, "HTMLSelectElement": false, - "HTMLShadowElement": false, "HTMLSlotElement": false, "HTMLSourceElement": false, - "HTMLSpanElement": false, "HTMLStyleElement": false, "HTMLTableCaptionElement": false, "HTMLTableCellElement": false, @@ -538,404 +347,69 @@ "HTMLTitleElement": false, "HTMLTrackElement": false, "HTMLUListElement": false, - "HTMLUnknownElement": false, "HTMLVideoElement": false, - "IDBCursor": false, - "IDBCursorWithValue": false, - "IDBDatabase": false, - "IDBFactory": false, - "IDBIndex": false, - "IDBKeyRange": false, - "IDBObjectStore": false, - "IDBOpenDBRequest": false, - "IDBRequest": false, - "IDBTransaction": false, - "IDBVersionChangeEvent": false, - "IdleDeadline": false, - "IIRFilterNode": false, "Image": false, - "ImageBitmap": false, - "ImageBitmapRenderingContext": false, - "ImageCapture": false, - "ImageData": false, - "indexedDB": false, - "Infinity": false, - "innerHeight": false, - "innerWidth": false, - "InputDeviceInfo": false, - "InputEvent": false, - "Int16Array": false, - "Int32Array": false, - "Int8Array": false, "IntersectionObserver": false, - "IntersectionObserverEntry": false, "Intl": false, - "isFinite": false, - "isNaN": false, - "isRTL": false, - "isSecureContext": false, - "isTextInputElement": false, - "JSCompiler_renameProperty": false, - "JSON": false, - "Keyboard": false, - "KeyboardEvent": false, - "KeyboardLayoutMap": false, - "KeyframeEffect": false, - "LargestContentfulPaint": false, - "LayoutShift": false, "length": false, - "LinearAccelerationSensor": false, - "listenOnce": false, "localStorage": false, "location": false, - "Location": false, - "locationbar": false, - "Lock": false, - "LockManager": false, - "Map": false, "matchMedia": false, - "Math": false, - "MediaCapabilities": false, - "MediaDeviceInfo": false, - "MediaDevices": false, - "MediaElementAudioSourceNode": false, - "MediaEncryptedEvent": false, - "MediaError": false, - "MediaKeyMessageEvent": false, - "MediaKeys": false, - "MediaKeySession": false, - "MediaKeyStatusMap": false, - "MediaKeySystemAccess": false, "MediaList": false, - "MediaMetadata": false, - "MediaQueryList": false, - "MediaQueryListEvent": false, "MediaRecorder": false, - "MediaSession": false, - "MediaSettingsRange": false, - "MediaSource": false, - "MediaStream": false, - "MediaStreamAudioDestinationNode": false, - "MediaStreamAudioSourceNode": false, - "MediaStreamEvent": false, - "MediaStreamTrack": false, - "MediaStreamTrackEvent": false, - "menubar": false, "MessageChannel": false, "MessageEvent": false, "MessagePort": false, - "MIDIAccess": false, - "MIDIConnectionEvent": false, - "MIDIInput": false, - "MIDIInputMap": false, - "MIDIMessageEvent": false, - "MIDIOutput": false, - "MIDIOutputMap": false, - "MIDIPort": false, - "MimeType": false, - "MimeTypeArray": false, "MouseEvent": false, "moveBy": false, "moveTo": false, - "MutationEvent": false, "MutationObserver": false, - "MutationRecord": false, "name": false, - "NamedNodeMap": false, - "NaN": false, - "NavigationPreloadManager": false, "navigator": false, - "Navigator": false, - "NetworkInformation": false, "Node": false, "NodeFilter": false, - "NodeIterator": false, "NodeList": false, "Notification": false, - "Number": false, - "Object": false, - "OfflineAudioCompletionEvent": false, - "OfflineAudioContext": false, - "offscreenBuffering": false, - "OffscreenCanvas": false, - "OffscreenCanvasRenderingContext2D": false, - "onabort": true, - "onafterprint": true, - "onanimationend": true, - "onanimationiteration": true, - "onanimationstart": true, - "onappinstalled": true, - "onauxclick": true, - "onbeforeinstallprompt": true, - "onbeforeprint": true, "onbeforeunload": true, "onblur": true, - "oncancel": true, - "oncanplay": true, - "oncanplaythrough": true, - "onchange": true, - "onclick": true, - "onclose": true, - "oncontextmenu": true, - "oncuechange": true, - "ondblclick": true, - "ondevicemotion": true, - "ondeviceorientation": true, - "ondeviceorientationabsolute": true, - "ondrag": true, - "ondragend": true, - "ondragenter": true, - "ondragleave": true, - "ondragover": true, - "ondragstart": true, - "ondrop": true, - "ondurationchange": true, - "onemptied": true, - "onended": true, "onerror": true, "onfocus": true, - "onformdata": true, - "ongotpointercapture": true, - "onhashchange": true, - "oninput": true, - "oninvalid": true, - "onkeydown": true, - "onkeypress": true, - "onkeyup": true, - "onlanguagechange": true, "onload": true, - "onloadeddata": true, - "onloadedmetadata": true, - "onloadstart": true, - "onlostpointercapture": true, - "onmessage": true, - "onmessageerror": true, - "onmousedown": true, - "onmouseenter": true, - "onmouseleave": true, - "onmousemove": true, - "onmouseout": true, - "onmouseover": true, - "onmouseup": true, - "onmousewheel": true, - "onoffline": true, - "ononline": true, - "onpagehide": true, - "onpageshow": true, - "onpause": true, - "onplay": true, - "onplaying": true, - "onpointercancel": true, - "onpointerdown": true, - "onpointerenter": true, - "onpointerleave": true, - "onpointermove": true, - "onpointerout": true, - "onpointerover": true, - "onpointerrawupdate": true, - "onpointerup": true, - "onpopstate": true, - "onprogress": true, - "onratechange": true, - "onrejectionhandled": true, - "onreset": true, "onresize": true, - "onscroll": true, - "onsearch": true, - "onseeked": true, - "onseeking": true, - "onselect": true, - "onselectionchange": true, - "onselectstart": true, - "onstalled": true, - "onstorage": true, - "onsubmit": true, - "onsuspend": true, - "ontimeupdate": true, - "ontoggle": true, - "ontransitionend": true, - "onunhandledrejection": true, "onunload": true, - "onvolumechange": true, - "onwaiting": true, - "onwebkitanimationend": true, - "onwebkitanimationiteration": true, - "onwebkitanimationstart": true, - "onwebkittransitionend": true, - "onwheel": true, "open": false, "openDatabase": false, "opener": false, "Option": false, - "OrientationSensor": false, "origin": false, - "OscillatorNode": false, - "outerHeight": false, - "outerWidth": false, - "OverconstrainedError": false, - "PageTransitionEvent": false, - "pageXOffset": false, - "pageYOffset": false, - "PannerNode": false, "parent": false, - "parseFloat": false, - "parseInt": false, - "PasswordCredential": false, - "Path2D": false, - "PaymentAddress": false, - "PaymentInstruments": false, - "PaymentManager": false, - "PaymentMethodChangeEvent": false, - "PaymentRequest": false, - "PaymentRequestUpdateEvent": false, - "PaymentResponse": false, "performance": false, - "Performance": false, - "PerformanceElementTiming": false, - "PerformanceEntry": false, - "PerformanceEventTiming": false, - "PerformanceLongTaskTiming": false, - "PerformanceMark": false, - "PerformanceMeasure": false, - "PerformanceNavigation": false, - "PerformanceNavigationTiming": false, - "PerformanceObserver": false, - "PerformanceObserverEntryList": false, - "PerformancePaintTiming": false, - "PerformanceResourceTiming": false, - "PerformanceServerTiming": false, - "PerformanceTiming": false, - "PeriodicSyncManager": false, - "PeriodicWave": false, - "Permissions": false, - "PermissionStatus": false, - "personalbar": false, - "PhotoCapabilities": false, - "PictureInPictureWindow": false, - "Plugin": false, - "PluginArray": false, - "PointerEvent": false, - "PopStateEvent": false, - "postMessage": false, - "Presentation": false, - "PresentationAvailability": false, - "PresentationConnection": false, - "PresentationConnectionAvailableEvent": false, - "PresentationConnectionCloseEvent": false, - "PresentationConnectionList": false, - "PresentationReceiver": false, - "PresentationRequest": false, "print": false, - "ProcessingInstruction": false, - "ProgressEvent": false, - "Promise": false, - "PromiseRejectionEvent": false, - "prompt": false, - "Proxy": false, - "PublicKeyCredential": false, - "PushManager": false, - "PushSubscription": false, - "PushSubscriptionOptions": false, - "queryRequiredElement": false, "queueMicrotask": false, - "quoteString": false, - "RadioNodeList": false, "Range": false, - "RangeError": false, - "ReadableStream": false, - "ReadableStreamDefaultReader": false, - "ReferenceError": false, - "Reflect": false, - "RegExp": false, - "RelativeOrientationSensor": false, - "RemotePlayback": false, - "ReportingObserver": false, + "removeEventListener": false, "Request": false, "requestAnimationFrame": false, - "requestIdleCallback": false, "resizeBy": false, - "ResizeObserver": false, - "ResizeObserverEntry": false, "resizeTo": false, "Response": false, - "RTCCertificate": false, - "RTCDataChannel": false, - "RTCDataChannelEvent": false, - "RTCDtlsTransport": false, - "RTCDTMFSender": false, - "RTCDTMFToneChangeEvent": false, - "RTCError": false, - "RTCErrorEvent": false, - "RTCIceCandidate": false, - "RTCIceTransport": false, - "RTCPeerConnection": false, - "RTCPeerConnectionIceErrorEvent": false, - "RTCPeerConnectionIceEvent": false, - "RTCRtpReceiver": false, - "RTCRtpSender": false, - "RTCRtpTransceiver": false, - "RTCSctpTransport": false, - "RTCSessionDescription": false, - "RTCStatsReport": false, - "RTCTrackEvent": false, "screen": false, - "Screen": false, - "screenLeft": false, - "ScreenOrientation": false, - "screenTop": false, - "screenX": false, - "screenY": false, - "ScriptProcessorNode": false, "scroll": false, - "scrollbars": false, "scrollBy": false, - "scrollLeftForDocument": false, "scrollTo": false, - "scrollTopForDocument": false, - "scrollX": false, - "scrollY": false, - "SecurityPolicyViolationEvent": false, - "Selection": false, - "self": false, - "Sensor": false, - "SensorErrorEvent": false, - "ServiceWorker": false, - "ServiceWorkerContainer": false, - "ServiceWorkerRegistration": false, "sessionStorage": false, - "Set": false, "setInterval": false, - "setScrollLeftForDocument": false, - "setScrollTopForDocument": false, "setTimeout": false, - "ShadowRoot": false, - "ShadyCSS": false, - "SharedArrayBuffer": false, "SharedWorker": false, - "SourceBuffer": false, - "SourceBufferList": false, - "speechSynthesis": false, - "SpeechSynthesisErrorEvent": false, - "SpeechSynthesisEvent": false, - "SpeechSynthesisUtterance": false, - "StaticRange": false, "status": false, - "statusbar": false, - "StereoPannerNode": false, - "stop": false, "Storage": false, - "StorageEvent": false, - "StorageManager": false, - "String": false, - "styleMedia": false, - "StylePropertyMap": false, - "StylePropertyMapReadOnly": false, "StyleSheet": false, - "StyleSheetList": false, - "SubmitEvent": false, - "SubtleCrypto": false, "SVGAElement": false, + "SVGAltGlyphDefElement": false, + "SVGAltGlyphElement": false, + "SVGAltGlyphItemElement": false, "SVGAngle": false, + "SVGAnimateColorElement": false, "SVGAnimatedAngle": false, "SVGAnimatedBoolean": false, "SVGAnimatedEnumeration": false, @@ -944,6 +418,8 @@ "SVGAnimatedLengthList": false, "SVGAnimatedNumber": false, "SVGAnimatedNumberList": false, + "SVGAnimatedPathData": false, + "SVGAnimatedPoints": false, "SVGAnimatedPreserveAspectRatio": false, "SVGAnimatedRect": false, "SVGAnimatedString": false, @@ -954,11 +430,20 @@ "SVGAnimationElement": false, "SVGCircleElement": false, "SVGClipPathElement": false, + "SVGColor": false, + "SVGColorProfileElement": false, + "SVGColorProfileRule": false, "SVGComponentTransferFunctionElement": false, + "SVGCSSRule": false, + "SVGCursorElement": false, "SVGDefsElement": false, "SVGDescElement": false, + "SVGDocument": false, "SVGElement": false, + "SVGElementInstance": false, + "SVGElementInstanceList": false, "SVGEllipseElement": false, + "SVGExternalResourcesRequired": false, "SVGFEBlendElement": false, "SVGFEColorMatrixElement": false, "SVGFEComponentTransferElement": false, @@ -967,7 +452,6 @@ "SVGFEDiffuseLightingElement": false, "SVGFEDisplacementMapElement": false, "SVGFEDistantLightElement": false, - "SVGFEDropShadowElement": false, "SVGFEFloodElement": false, "SVGFEFuncAElement": false, "SVGFEFuncBElement": false, @@ -985,24 +469,59 @@ "SVGFETileElement": false, "SVGFETurbulenceElement": false, "SVGFilterElement": false, + "SVGFilterPrimitiveStandardAttributes": false, + "SVGFitToViewBox": false, + "SVGFontElement": false, + "SVGFontFaceElement": false, + "SVGFontFaceFormatElement": false, + "SVGFontFaceNameElement": false, + "SVGFontFaceSrcElement": false, + "SVGFontFaceUriElement": false, "SVGForeignObjectElement": false, "SVGGElement": false, - "SVGGeometryElement": false, + "SVGGlyphElement": false, + "SVGGlyphRefElement": false, "SVGGradientElement": false, - "SVGGraphicsElement": false, + "SVGHKernElement": false, + "SVGICCColor": false, "SVGImageElement": false, + "SVGLangSpace": false, "SVGLength": false, "SVGLengthList": false, "SVGLinearGradientElement": false, "SVGLineElement": false, + "SVGLocatable": false, "SVGMarkerElement": false, "SVGMaskElement": false, "SVGMatrix": false, "SVGMetadataElement": false, + "SVGMissingGlyphElement": false, "SVGMPathElement": false, "SVGNumber": false, "SVGNumberList": false, + "SVGPaint": false, "SVGPathElement": false, + "SVGPathSeg": false, + "SVGPathSegArcAbs": false, + "SVGPathSegArcRel": false, + "SVGPathSegClosePath": false, + "SVGPathSegCurvetoCubicAbs": false, + "SVGPathSegCurvetoCubicRel": false, + "SVGPathSegCurvetoCubicSmoothAbs": false, + "SVGPathSegCurvetoCubicSmoothRel": false, + "SVGPathSegCurvetoQuadraticAbs": false, + "SVGPathSegCurvetoQuadraticRel": false, + "SVGPathSegCurvetoQuadraticSmoothAbs": false, + "SVGPathSegCurvetoQuadraticSmoothRel": false, + "SVGPathSegLinetoAbs": false, + "SVGPathSegLinetoHorizontalAbs": false, + "SVGPathSegLinetoHorizontalRel": false, + "SVGPathSegLinetoRel": false, + "SVGPathSegLinetoVerticalAbs": false, + "SVGPathSegLinetoVerticalRel": false, + "SVGPathSegList": false, + "SVGPathSegMovetoAbs": false, + "SVGPathSegMovetoRel": false, "SVGPatternElement": false, "SVGPoint": false, "SVGPointList": false, @@ -1012,136 +531,65 @@ "SVGRadialGradientElement": false, "SVGRect": false, "SVGRectElement": false, + "SVGRenderingIntent": false, "SVGScriptElement": false, "SVGSetElement": false, "SVGStopElement": false, "SVGStringList": false, + "SVGStylable": false, "SVGStyleElement": false, "SVGSVGElement": false, "SVGSwitchElement": false, "SVGSymbolElement": false, + "SVGTests": false, "SVGTextContentElement": false, "SVGTextElement": false, "SVGTextPathElement": false, "SVGTextPositioningElement": false, "SVGTitleElement": false, "SVGTransform": false, + "SVGTransformable": false, "SVGTransformList": false, + "SVGTRefElement": false, "SVGTSpanElement": false, "SVGUnitTypes": false, + "SVGURIReference": false, "SVGUseElement": false, "SVGViewElement": false, - "Symbol": false, - "SyntaxError": false, - "TaskAttributionTiming": false, + "SVGViewSpec": false, + "SVGVKernElement": false, + "SVGZoomAndPan": false, "Text": false, "TextDecoder": false, - "TextDecoderStream": false, "TextEncoder": false, - "TextEncoderStream": false, - "TextEvent": false, - "TextMetrics": false, - "TextTrack": false, - "TextTrackCue": false, - "TextTrackCueList": false, - "TextTrackList": false, - "TimeRanges": false, - "toolbar": false, + "TimeEvent": false, "top": false, - "Touch": false, - "TouchEvent": false, - "TouchList": false, - "TrackEvent": false, - "TransformStream": false, - "TransitionEvent": false, - "TreeWalker": false, - "TrustedHTML": false, - "TrustedScript": false, - "TrustedScriptURL": false, - "TrustedTypePolicy": false, - "TrustedTypePolicyFactory": false, - "trustedTypes": false, - "TypeError": false, - "UIEvent": false, - "Uint16Array": false, - "Uint32Array": false, - "Uint8Array": false, - "Uint8ClampedArray": false, - "undefined": false, - "unescape": false, - "URIError": false, "URL": false, - "URLSearchParams": false, - "UserActivation": false, - "ValidityState": false, - "VideoPlaybackQuality": false, - "visualViewport": false, - "VisualViewport": false, - "VTTCue": false, - "WaveShaperNode": false, - "WeakMap": false, - "WeakSet": false, - "WebAssembly": false, - "WebGL2RenderingContext": false, "WebGLActiveInfo": false, "WebGLBuffer": false, "WebGLContextEvent": false, "WebGLFramebuffer": false, "WebGLProgram": false, - "WebGLQuery": false, "WebGLRenderbuffer": false, "WebGLRenderingContext": false, - "WebGLSampler": false, "WebGLShader": false, "WebGLShaderPrecisionFormat": false, - "WebGLSync": false, "WebGLTexture": false, - "WebGLTransformFeedback": false, "WebGLUniformLocation": false, - "WebGLVertexArrayObject": false, "WebSocket": false, - "WebUIListener": false, - "WheelEvent": false, "window": false, "Window": false, "Worker": false, - "Worklet": false, - "WritableStream": false, - "WritableStreamDefaultWriter": false, + "XDomainRequest": false, "XMLDocument": false, "XMLHttpRequest": false, - "XMLHttpRequestEventTarget": false, - "XMLHttpRequestUpload": false, "XMLSerializer": false, "XPathEvaluator": false, + "XPathException": false, "XPathExpression": false, - "XPathResult": false, - "XRBoundedReferenceSpace": false, - "XRDOMOverlayState": false, - "XRFrame": false, - "XRHitTestResult": false, - "XRHitTestSource": false, - "XRInputSource": false, - "XRInputSourceArray": false, - "XRInputSourceEvent": false, - "XRInputSourcesChangeEvent": false, - "XRPose": false, - "XRRay": false, - "XRReferenceSpace": false, - "XRReferenceSpaceEvent": false, - "XRRenderState": false, - "XRRigidTransform": false, - "XRSession": false, - "XRSessionEvent": false, - "XRSpace": false, - "XRSystem": false, - "XRTransientInputHitTestResult": false, - "XRTransientInputHitTestSource": false, - "XRView": false, - "XRViewerPose": false, - "XRViewport": false, - "XRWebGLLayer": false, - "XSLTProcessor": false + "XPathNamespace": false, + "XPathNSResolver": false, + "XPathResult": false }, "worker": { "addEventListener": false, diff --git a/package.json b/package.json index 3f6f52d..5ad1fc7 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ }, "devDependencies": { "ava": "^2.2.0", + "jshint": "git+https://git@github.com/shapkarin/jshint.git#master", "tsd": "^0.9.0", "xo": "^0.25.3" }, diff --git a/readme.md b/readme.md index fdcfa08..c33345f 100644 --- a/readme.md +++ b/readme.md @@ -2,7 +2,7 @@ > Global identifiers from different JavaScript environments -Extracted from [JSHint](https://github.com/jshint/jshint/blob/3a8efa979dbb157bfb5c10b5826603a55a33b9ad/src/vars.js) and [ESLint](https://github.com/eslint/eslint/blob/b648406218f8a2d7302b98f5565e23199f44eb31/conf/environments.json) and merged. +Extracted from [JSHint](https://github.com/jshint/jshint/blob/1013d51d8ca8cfe4ed3d8b54835c9c181c5ac7b7/src/vars.js#L74). It's just a [JSON file](globals.json), so use it in whatever environment you like. From aad6d7a8e565d22229c68999ca15b86d0343120e Mon Sep 17 00:00:00 2001 From: Yury Shapkarin Date: Mon, 6 Jul 2020 03:57:12 +0300 Subject: [PATCH 04/11] automate update browsers default scope [wip] #164 #166 --- package.json | 4 +- update/get-browser-globals/browser.js | 68 +++++++++++++++++++ update/get-browser-globals/combine.js | 7 ++ .../get-browser-globals/jshint.js | 6 +- update/get-browser-globals/readme.md | 6 ++ 5 files changed, 85 insertions(+), 6 deletions(-) create mode 100644 update/get-browser-globals/browser.js create mode 100644 update/get-browser-globals/combine.js rename get-browser-globals.js => update/get-browser-globals/jshint.js (88%) create mode 100644 update/get-browser-globals/readme.md diff --git a/package.json b/package.json index 5ad1fc7..cec5dac 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,9 @@ "node": ">=8" }, "scripts": { - "test": "xo && ava" + "test": "xo && ava", + "get-jshint-browser": "node ./update/get-browser-globals/jshint.js", + "combine-jshint-browser": "node ./update/get-browser-globals/combine.js" }, "files": [ "index.js", diff --git a/update/get-browser-globals/browser.js b/update/get-browser-globals/browser.js new file mode 100644 index 0000000..18fdd5b --- /dev/null +++ b/update/get-browser-globals/browser.js @@ -0,0 +1,68 @@ +'use strict'; + +const blacklist = [ + /^webkit/i, + 'BeforeInstallPromptEvent', + /^Bluetooth/, + 'CDATASection', + 'captureEvents', + 'InputDeviceCapabilities', + 'releaseEvents', + 'SyncManager', + /^USB/, + + // DevTools globals + 'chrome', + '$_', + '$0', + '$1', + '$2', + '$3', + '$4', + '$', + '$$', + '$x', + 'clear', + 'copy', + 'debug', + 'dir', + 'dirxml', + 'getEventListeners', + 'inspect', + 'keys', + 'monitor', + 'monitorEvents', + 'profile', + 'profileEnd', + 'queryObjects', + 'table', + 'undebug', + 'unmonitor', + 'unmonitorEvents', + 'values' +]; + +const globals = Object.getOwnPropertyNames(window) + .sort((a, b) => a.toLowerCase().localeCompare(b.toLowerCase())) + .filter(global => { + for (const pattern of blacklist) { + if (typeof pattern === 'string') { + if (global === pattern) { + return false; + } + } else { + if (pattern.test(global)) { + return false; + } + } + } + + return true; + }); + +const ret = {}; +for (const key of globals) { + ret[key] = key.startsWith('on'); +} + +copy(JSON.stringify(ret, null, '\t')); diff --git a/update/get-browser-globals/combine.js b/update/get-browser-globals/combine.js new file mode 100644 index 0000000..e66ebe7 --- /dev/null +++ b/update/get-browser-globals/combine.js @@ -0,0 +1,7 @@ +'use strict'; + +const fs = require('fs'); + +const file = fs.readFileSync('./browser_vars.json'); + +console.log(file); diff --git a/get-browser-globals.js b/update/get-browser-globals/jshint.js similarity index 88% rename from get-browser-globals.js rename to update/get-browser-globals/jshint.js index 9fd6dfa..d106546 100644 --- a/get-browser-globals.js +++ b/update/get-browser-globals/jshint.js @@ -70,8 +70,4 @@ for (const key of globals) { ret[key] = key.startsWith('on'); } -fs.writeFile('./browser_vars.json', JSON.stringify(ret, null, '\t'), (error) => { - if (error) { - return console.log(error); - } -}); +fs.writeFileSync('./browser_vars.json', `{ "jshint": \n\t${JSON.stringify(ret, null, '\t\t')}}`); diff --git a/update/get-browser-globals/readme.md b/update/get-browser-globals/readme.md new file mode 100644 index 0000000..c072f60 --- /dev/null +++ b/update/get-browser-globals/readme.md @@ -0,0 +1,6 @@ +### Usage +- Run `npm run get-jshint-browser' +- Open an Incognito window in Chrome Canary and paste the above into the console. + You'll now have a new object in your clipboard for the `browser` field in `globals.json`. +- You still need to manually filter out items from the `builtin` list. +- Paste the reult to the `globals.json` to the `browser` section. From f32d1825cff6df3cebc97659d5812c3b4107a3ef Mon Sep 17 00:00:00 2001 From: Yury Shapkarin Date: Mon, 6 Jul 2020 04:05:03 +0300 Subject: [PATCH 05/11] update docs how to update the browsers score [WIP] #164 #166 --- package.json | 2 +- update/get-browser-globals/readme.md | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index cec5dac..4a74623 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "scripts": { "test": "xo && ava", "get-jshint-browser": "node ./update/get-browser-globals/jshint.js", - "combine-jshint-browser": "node ./update/get-browser-globals/combine.js" + "combine-browser": "node ./update/get-browser-globals/combine.js" }, "files": [ "index.js", diff --git a/update/get-browser-globals/readme.md b/update/get-browser-globals/readme.md index c072f60..e848974 100644 --- a/update/get-browser-globals/readme.md +++ b/update/get-browser-globals/readme.md @@ -1,6 +1,7 @@ ### Usage -- Run `npm run get-jshint-browser' +- Run `npm run get-jshint-browser'. - Open an Incognito window in Chrome Canary and paste the above into the console. - You'll now have a new object in your clipboard for the `browser` field in `globals.json`. -- You still need to manually filter out items from the `builtin` list. -- Paste the reult to the `globals.json` to the `browser` section. +- You'll now have a new object in your clipboard. +- Paste yours current clipboard to the field `my_browser` field at the root of the project. +- run `npm run combine-browser` +- Copy and paste the result from the `browser_vars.json` to the field `browser` at the `globals.json` From 86b7c9f75576be93b2c73227f93670973db6eca8 Mon Sep 17 00:00:00 2001 From: Yury Shapkarin Date: Mon, 6 Jul 2020 05:23:54 +0300 Subject: [PATCH 06/11] some adds to the get-jshint-browser script and fix readme --- update/get-browser-globals/combine.js | 2 -- update/get-browser-globals/jshint.js | 2 +- update/get-browser-globals/readme.md | 5 +++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/update/get-browser-globals/combine.js b/update/get-browser-globals/combine.js index e66ebe7..33090b5 100644 --- a/update/get-browser-globals/combine.js +++ b/update/get-browser-globals/combine.js @@ -3,5 +3,3 @@ const fs = require('fs'); const file = fs.readFileSync('./browser_vars.json'); - -console.log(file); diff --git a/update/get-browser-globals/jshint.js b/update/get-browser-globals/jshint.js index d106546..b29babe 100644 --- a/update/get-browser-globals/jshint.js +++ b/update/get-browser-globals/jshint.js @@ -70,4 +70,4 @@ for (const key of globals) { ret[key] = key.startsWith('on'); } -fs.writeFileSync('./browser_vars.json', `{ "jshint": \n\t${JSON.stringify(ret, null, '\t\t')}}`); +fs.writeFileSync('./browser_vars.json', `{ "jshint": \n\t${JSON.stringify(ret, null, '\t\t')},\n"my":\n\t{}\n}`); diff --git a/update/get-browser-globals/readme.md b/update/get-browser-globals/readme.md index e848974..73074ef 100644 --- a/update/get-browser-globals/readme.md +++ b/update/get-browser-globals/readme.md @@ -1,7 +1,8 @@ ### Usage -- Run `npm run get-jshint-browser'. +- Run `npm run get-jshint-browser`. - Open an Incognito window in Chrome Canary and paste the above into the console. - You'll now have a new object in your clipboard. -- Paste yours current clipboard to the field `my_browser` field at the root of the project. +- Open file `browser_vars.json` +- Paste yours current clipboard to the field `my` at the root of the project. - run `npm run combine-browser` - Copy and paste the result from the `browser_vars.json` to the field `browser` at the `globals.json` From 0416765bdddde78d700eb06ec566f7da681eb106 Mon Sep 17 00:00:00 2001 From: Yury Shapkarin Date: Mon, 6 Jul 2020 05:24:29 +0300 Subject: [PATCH 07/11] leave globals.json as it was --- globals.json | 486 +++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 413 insertions(+), 73 deletions(-) diff --git a/globals.json b/globals.json index b55027c..e2375e8 100644 --- a/globals.json +++ b/globals.json @@ -225,28 +225,87 @@ "WeakSet": false }, "browser": { + "AbortController": false, + "AbortSignal": false, "addEventListener": false, + "alert": false, + "AnalyserNode": false, + "Animation": false, + "AnimationEffectReadOnly": false, + "AnimationEffectTiming": false, + "AnimationEffectTimingReadOnly": false, + "AnimationEvent": false, + "AnimationPlaybackEvent": false, + "AnimationTimeline": false, "applicationCache": false, + "ApplicationCache": false, + "ApplicationCacheErrorEvent": false, "atob": false, + "Attr": false, "Audio": false, + "AudioBuffer": false, + "AudioBufferSourceNode": false, + "AudioContext": false, + "AudioDestinationNode": false, + "AudioListener": false, + "AudioNode": false, + "AudioParam": false, + "AudioProcessingEvent": false, + "AudioScheduledSourceNode": false, + "AudioWorkletGlobalScope ": false, + "AudioWorkletNode": false, + "AudioWorkletProcessor": false, + "BarProp": false, + "BaseAudioContext": false, + "BatteryManager": false, + "BeforeUnloadEvent": false, + "BiquadFilterNode": false, "Blob": false, + "BlobEvent": false, "blur": false, + "BroadcastChannel": false, "btoa": false, + "BudgetService": false, + "ByteLengthQueuingStrategy": false, + "Cache": false, + "caches": false, + "CacheStorage": false, "cancelAnimationFrame": false, + "cancelIdleCallback": false, + "CanvasCaptureMediaStreamTrack": false, "CanvasGradient": false, "CanvasPattern": false, "CanvasRenderingContext2D": false, + "ChannelMergerNode": false, + "ChannelSplitterNode": false, + "CharacterData": false, "clearInterval": false, "clearTimeout": false, + "clientInformation": false, + "ClipboardEvent": false, "close": false, "closed": false, + "CloseEvent": false, "Comment": false, "CompositionEvent": false, + "confirm": false, + "console": false, + "ConstantSourceNode": false, + "ConvolverNode": false, + "CountQueuingStrategy": false, "createImageBitmap": false, + "Credential": false, + "CredentialsContainer": false, + "crypto": false, + "Crypto": false, + "CryptoKey": false, "CSS": false, + "CSSConditionRule": false, + "CSSFontFaceRule": false, "CSSGroupingRule": false, "CSSImportRule": false, - "CSSMarginRule": false, + "CSSKeyframeRule": false, + "CSSKeyframesRule": false, "CSSMediaRule": false, "CSSNamespaceRule": false, "CSSPageRule": false, @@ -255,37 +314,80 @@ "CSSStyleDeclaration": false, "CSSStyleRule": false, "CSSStyleSheet": false, + "CSSSupportsRule": false, + "CustomElementRegistry": false, + "customElements": false, "CustomEvent": false, + "DataTransfer": false, + "DataTransferItem": false, + "DataTransferItemList": false, + "defaultstatus": false, "defaultStatus": false, + "DelayNode": false, + "DeviceMotionEvent": false, + "DeviceOrientationEvent": false, + "devicePixelRatio": false, "dispatchEvent": false, "document": false, "Document": false, "DocumentFragment": false, + "DocumentType": false, + "DOMError": false, + "DOMException": false, + "DOMImplementation": false, + "DOMMatrix": false, + "DOMMatrixReadOnly": false, "DOMParser": false, + "DOMPoint": false, + "DOMPointReadOnly": false, + "DOMQuad": false, + "DOMRect": false, + "DOMRectReadOnly": false, + "DOMStringList": false, + "DOMStringMap": false, + "DOMTokenList": false, + "DragEvent": false, + "DynamicsCompressorNode": false, "Element": false, - "ElementTimeControl": false, + "ErrorEvent": false, "event": false, "Event": false, + "EventSource": false, + "EventTarget": false, + "external": false, "fetch": false, "File": false, "FileList": false, "FileReader": false, + "find": false, "focus": false, + "FocusEvent": false, + "FontFace": false, + "FontFaceSetLoadEvent": false, "FormData": false, + "frameElement": false, "frames": false, + "GainNode": false, + "Gamepad": false, + "GamepadButton": false, + "GamepadEvent": false, "getComputedStyle": false, + "getSelection": false, + "HashChangeEvent": false, "Headers": false, "history": false, + "History": false, + "HTMLAllCollection": false, "HTMLAnchorElement": false, "HTMLAreaElement": false, "HTMLAudioElement": false, "HTMLBaseElement": false, - "HTMLBlockquoteElement": false, "HTMLBodyElement": false, "HTMLBRElement": false, "HTMLButtonElement": false, "HTMLCanvasElement": false, "HTMLCollection": false, + "HTMLContentElement": false, "HTMLDataElement": false, "HTMLDataListElement": false, "HTMLDetailsElement": false, @@ -293,10 +395,12 @@ "HTMLDirectoryElement": false, "HTMLDivElement": false, "HTMLDListElement": false, + "HTMLDocument": false, "HTMLElement": false, "HTMLEmbedElement": false, "HTMLFieldSetElement": false, "HTMLFontElement": false, + "HTMLFormControlsCollection": false, "HTMLFormElement": false, "HTMLFrameElement": false, "HTMLFrameSetElement": false, @@ -307,9 +411,7 @@ "HTMLIFrameElement": false, "HTMLImageElement": false, "HTMLInputElement": false, - "HTMLIsIndexElement": false, "HTMLLabelElement": false, - "HTMLLayerElement": false, "HTMLLegendElement": false, "HTMLLIElement": false, "HTMLLinkElement": false, @@ -324,6 +426,8 @@ "HTMLOListElement": false, "HTMLOptGroupElement": false, "HTMLOptionElement": false, + "HTMLOptionsCollection": false, + "HTMLOutputElement": false, "HTMLParagraphElement": false, "HTMLParamElement": false, "HTMLPictureElement": false, @@ -332,8 +436,10 @@ "HTMLQuoteElement": false, "HTMLScriptElement": false, "HTMLSelectElement": false, + "HTMLShadowElement": false, "HTMLSlotElement": false, "HTMLSourceElement": false, + "HTMLSpanElement": false, "HTMLStyleElement": false, "HTMLTableCaptionElement": false, "HTMLTableCellElement": false, @@ -347,69 +453,327 @@ "HTMLTitleElement": false, "HTMLTrackElement": false, "HTMLUListElement": false, + "HTMLUnknownElement": false, "HTMLVideoElement": false, + "IDBCursor": false, + "IDBCursorWithValue": false, + "IDBDatabase": false, + "IDBFactory": false, + "IDBIndex": false, + "IDBKeyRange": false, + "IDBObjectStore": false, + "IDBOpenDBRequest": false, + "IDBRequest": false, + "IDBTransaction": false, + "IDBVersionChangeEvent": false, + "IdleDeadline": false, + "IIRFilterNode": false, "Image": false, + "ImageBitmap": false, + "ImageBitmapRenderingContext": false, + "ImageCapture": false, + "ImageData": false, + "indexedDB": false, + "innerHeight": false, + "innerWidth": false, + "InputEvent": false, "IntersectionObserver": false, + "IntersectionObserverEntry": false, "Intl": false, + "isSecureContext": false, + "KeyboardEvent": false, + "KeyframeEffect": false, + "KeyframeEffectReadOnly": false, "length": false, "localStorage": false, - "location": false, + "location": true, + "Location": false, + "locationbar": false, "matchMedia": false, + "MediaDeviceInfo": false, + "MediaDevices": false, + "MediaElementAudioSourceNode": false, + "MediaEncryptedEvent": false, + "MediaError": false, + "MediaKeyMessageEvent": false, + "MediaKeySession": false, + "MediaKeyStatusMap": false, + "MediaKeySystemAccess": false, "MediaList": false, + "MediaQueryList": false, + "MediaQueryListEvent": false, "MediaRecorder": false, + "MediaSettingsRange": false, + "MediaSource": false, + "MediaStream": false, + "MediaStreamAudioDestinationNode": false, + "MediaStreamAudioSourceNode": false, + "MediaStreamEvent": false, + "MediaStreamTrack": false, + "MediaStreamTrackEvent": false, + "menubar": false, "MessageChannel": false, "MessageEvent": false, "MessagePort": false, + "MIDIAccess": false, + "MIDIConnectionEvent": false, + "MIDIInput": false, + "MIDIInputMap": false, + "MIDIMessageEvent": false, + "MIDIOutput": false, + "MIDIOutputMap": false, + "MIDIPort": false, + "MimeType": false, + "MimeTypeArray": false, "MouseEvent": false, "moveBy": false, "moveTo": false, + "MutationEvent": false, "MutationObserver": false, + "MutationRecord": false, "name": false, + "NamedNodeMap": false, + "NavigationPreloadManager": false, "navigator": false, + "Navigator": false, + "NetworkInformation": false, "Node": false, "NodeFilter": false, + "NodeIterator": false, "NodeList": false, "Notification": false, + "OfflineAudioCompletionEvent": false, + "OfflineAudioContext": false, + "offscreenBuffering": false, + "OffscreenCanvas": true, + "onabort": true, + "onafterprint": true, + "onanimationend": true, + "onanimationiteration": true, + "onanimationstart": true, + "onappinstalled": true, + "onauxclick": true, + "onbeforeinstallprompt": true, + "onbeforeprint": true, "onbeforeunload": true, "onblur": true, + "oncancel": true, + "oncanplay": true, + "oncanplaythrough": true, + "onchange": true, + "onclick": true, + "onclose": true, + "oncontextmenu": true, + "oncuechange": true, + "ondblclick": true, + "ondevicemotion": true, + "ondeviceorientation": true, + "ondeviceorientationabsolute": true, + "ondrag": true, + "ondragend": true, + "ondragenter": true, + "ondragleave": true, + "ondragover": true, + "ondragstart": true, + "ondrop": true, + "ondurationchange": true, + "onemptied": true, + "onended": true, "onerror": true, "onfocus": true, + "ongotpointercapture": true, + "onhashchange": true, + "oninput": true, + "oninvalid": true, + "onkeydown": true, + "onkeypress": true, + "onkeyup": true, + "onlanguagechange": true, "onload": true, + "onloadeddata": true, + "onloadedmetadata": true, + "onloadstart": true, + "onlostpointercapture": true, + "onmessage": true, + "onmessageerror": true, + "onmousedown": true, + "onmouseenter": true, + "onmouseleave": true, + "onmousemove": true, + "onmouseout": true, + "onmouseover": true, + "onmouseup": true, + "onmousewheel": true, + "onoffline": true, + "ononline": true, + "onpagehide": true, + "onpageshow": true, + "onpause": true, + "onplay": true, + "onplaying": true, + "onpointercancel": true, + "onpointerdown": true, + "onpointerenter": true, + "onpointerleave": true, + "onpointermove": true, + "onpointerout": true, + "onpointerover": true, + "onpointerup": true, + "onpopstate": true, + "onprogress": true, + "onratechange": true, + "onrejectionhandled": true, + "onreset": true, "onresize": true, + "onscroll": true, + "onsearch": true, + "onseeked": true, + "onseeking": true, + "onselect": true, + "onstalled": true, + "onstorage": true, + "onsubmit": true, + "onsuspend": true, + "ontimeupdate": true, + "ontoggle": true, + "ontransitionend": true, + "onunhandledrejection": true, "onunload": true, + "onvolumechange": true, + "onwaiting": true, + "onwheel": true, "open": false, "openDatabase": false, "opener": false, "Option": false, "origin": false, + "OscillatorNode": false, + "outerHeight": false, + "outerWidth": false, + "PageTransitionEvent": false, + "pageXOffset": false, + "pageYOffset": false, + "PannerNode": false, "parent": false, + "Path2D": false, + "PaymentAddress": false, + "PaymentRequest": false, + "PaymentRequestUpdateEvent": false, + "PaymentResponse": false, "performance": false, + "Performance": false, + "PerformanceEntry": false, + "PerformanceLongTaskTiming": false, + "PerformanceMark": false, + "PerformanceMeasure": false, + "PerformanceNavigation": false, + "PerformanceNavigationTiming": false, + "PerformanceObserver": false, + "PerformanceObserverEntryList": false, + "PerformancePaintTiming": false, + "PerformanceResourceTiming": false, + "PerformanceTiming": false, + "PeriodicWave": false, + "Permissions": false, + "PermissionStatus": false, + "personalbar": false, + "PhotoCapabilities": false, + "Plugin": false, + "PluginArray": false, + "PointerEvent": false, + "PopStateEvent": false, + "postMessage": false, + "Presentation": false, + "PresentationAvailability": false, + "PresentationConnection": false, + "PresentationConnectionAvailableEvent": false, + "PresentationConnectionCloseEvent": false, + "PresentationConnectionList": false, + "PresentationReceiver": false, + "PresentationRequest": false, "print": false, + "ProcessingInstruction": false, + "ProgressEvent": false, + "PromiseRejectionEvent": false, + "prompt": false, + "PushManager": false, + "PushSubscription": false, + "PushSubscriptionOptions": false, "queueMicrotask": false, + "RadioNodeList": false, "Range": false, + "ReadableStream": false, + "registerProcessor": false, + "RemotePlayback": false, "removeEventListener": false, "Request": false, "requestAnimationFrame": false, + "requestIdleCallback": false, "resizeBy": false, + "ResizeObserver": false, + "ResizeObserverEntry": false, "resizeTo": false, "Response": false, + "RTCCertificate": false, + "RTCDataChannel": false, + "RTCDataChannelEvent": false, + "RTCDtlsTransport": false, + "RTCIceCandidate": false, + "RTCIceGatherer": false, + "RTCIceTransport": false, + "RTCPeerConnection": false, + "RTCPeerConnectionIceEvent": false, + "RTCRtpContributingSource": false, + "RTCRtpReceiver": false, + "RTCRtpSender": false, + "RTCSctpTransport": false, + "RTCSessionDescription": false, + "RTCStatsReport": false, + "RTCTrackEvent": false, "screen": false, + "Screen": false, + "screenLeft": false, + "ScreenOrientation": false, + "screenTop": false, + "screenX": false, + "screenY": false, + "ScriptProcessorNode": false, "scroll": false, + "scrollbars": false, "scrollBy": false, "scrollTo": false, + "scrollX": false, + "scrollY": false, + "SecurityPolicyViolationEvent": false, + "Selection": false, + "self": false, + "ServiceWorker": false, + "ServiceWorkerContainer": false, + "ServiceWorkerRegistration": false, "sessionStorage": false, "setInterval": false, "setTimeout": false, + "ShadowRoot": false, "SharedWorker": false, + "SourceBuffer": false, + "SourceBufferList": false, + "speechSynthesis": false, + "SpeechSynthesisEvent": false, + "SpeechSynthesisUtterance": false, + "StaticRange": false, "status": false, + "statusbar": false, + "StereoPannerNode": false, + "stop": false, "Storage": false, + "StorageEvent": false, + "StorageManager": false, + "styleMedia": false, "StyleSheet": false, + "StyleSheetList": false, + "SubtleCrypto": false, "SVGAElement": false, - "SVGAltGlyphDefElement": false, - "SVGAltGlyphElement": false, - "SVGAltGlyphItemElement": false, "SVGAngle": false, - "SVGAnimateColorElement": false, "SVGAnimatedAngle": false, "SVGAnimatedBoolean": false, "SVGAnimatedEnumeration": false, @@ -418,8 +782,6 @@ "SVGAnimatedLengthList": false, "SVGAnimatedNumber": false, "SVGAnimatedNumberList": false, - "SVGAnimatedPathData": false, - "SVGAnimatedPoints": false, "SVGAnimatedPreserveAspectRatio": false, "SVGAnimatedRect": false, "SVGAnimatedString": false, @@ -430,20 +792,12 @@ "SVGAnimationElement": false, "SVGCircleElement": false, "SVGClipPathElement": false, - "SVGColor": false, - "SVGColorProfileElement": false, - "SVGColorProfileRule": false, "SVGComponentTransferFunctionElement": false, - "SVGCSSRule": false, - "SVGCursorElement": false, "SVGDefsElement": false, "SVGDescElement": false, - "SVGDocument": false, + "SVGDiscardElement": false, "SVGElement": false, - "SVGElementInstance": false, - "SVGElementInstanceList": false, "SVGEllipseElement": false, - "SVGExternalResourcesRequired": false, "SVGFEBlendElement": false, "SVGFEColorMatrixElement": false, "SVGFEComponentTransferElement": false, @@ -452,6 +806,7 @@ "SVGFEDiffuseLightingElement": false, "SVGFEDisplacementMapElement": false, "SVGFEDistantLightElement": false, + "SVGFEDropShadowElement": false, "SVGFEFloodElement": false, "SVGFEFuncAElement": false, "SVGFEFuncBElement": false, @@ -469,59 +824,24 @@ "SVGFETileElement": false, "SVGFETurbulenceElement": false, "SVGFilterElement": false, - "SVGFilterPrimitiveStandardAttributes": false, - "SVGFitToViewBox": false, - "SVGFontElement": false, - "SVGFontFaceElement": false, - "SVGFontFaceFormatElement": false, - "SVGFontFaceNameElement": false, - "SVGFontFaceSrcElement": false, - "SVGFontFaceUriElement": false, "SVGForeignObjectElement": false, "SVGGElement": false, - "SVGGlyphElement": false, - "SVGGlyphRefElement": false, + "SVGGeometryElement": false, "SVGGradientElement": false, - "SVGHKernElement": false, - "SVGICCColor": false, + "SVGGraphicsElement": false, "SVGImageElement": false, - "SVGLangSpace": false, "SVGLength": false, "SVGLengthList": false, "SVGLinearGradientElement": false, "SVGLineElement": false, - "SVGLocatable": false, "SVGMarkerElement": false, "SVGMaskElement": false, "SVGMatrix": false, "SVGMetadataElement": false, - "SVGMissingGlyphElement": false, "SVGMPathElement": false, "SVGNumber": false, "SVGNumberList": false, - "SVGPaint": false, "SVGPathElement": false, - "SVGPathSeg": false, - "SVGPathSegArcAbs": false, - "SVGPathSegArcRel": false, - "SVGPathSegClosePath": false, - "SVGPathSegCurvetoCubicAbs": false, - "SVGPathSegCurvetoCubicRel": false, - "SVGPathSegCurvetoCubicSmoothAbs": false, - "SVGPathSegCurvetoCubicSmoothRel": false, - "SVGPathSegCurvetoQuadraticAbs": false, - "SVGPathSegCurvetoQuadraticRel": false, - "SVGPathSegCurvetoQuadraticSmoothAbs": false, - "SVGPathSegCurvetoQuadraticSmoothRel": false, - "SVGPathSegLinetoAbs": false, - "SVGPathSegLinetoHorizontalAbs": false, - "SVGPathSegLinetoHorizontalRel": false, - "SVGPathSegLinetoRel": false, - "SVGPathSegLinetoVerticalAbs": false, - "SVGPathSegLinetoVerticalRel": false, - "SVGPathSegList": false, - "SVGPathSegMovetoAbs": false, - "SVGPathSegMovetoRel": false, "SVGPatternElement": false, "SVGPoint": false, "SVGPointList": false, @@ -531,65 +851,85 @@ "SVGRadialGradientElement": false, "SVGRect": false, "SVGRectElement": false, - "SVGRenderingIntent": false, "SVGScriptElement": false, "SVGSetElement": false, "SVGStopElement": false, "SVGStringList": false, - "SVGStylable": false, "SVGStyleElement": false, "SVGSVGElement": false, "SVGSwitchElement": false, "SVGSymbolElement": false, - "SVGTests": false, "SVGTextContentElement": false, "SVGTextElement": false, "SVGTextPathElement": false, "SVGTextPositioningElement": false, "SVGTitleElement": false, "SVGTransform": false, - "SVGTransformable": false, "SVGTransformList": false, - "SVGTRefElement": false, "SVGTSpanElement": false, "SVGUnitTypes": false, - "SVGURIReference": false, "SVGUseElement": false, "SVGViewElement": false, - "SVGViewSpec": false, - "SVGVKernElement": false, - "SVGZoomAndPan": false, + "TaskAttributionTiming": false, "Text": false, "TextDecoder": false, "TextEncoder": false, - "TimeEvent": false, + "TextEvent": false, + "TextMetrics": false, + "TextTrack": false, + "TextTrackCue": false, + "TextTrackCueList": false, + "TextTrackList": false, + "TimeRanges": false, + "toolbar": false, "top": false, + "Touch": false, + "TouchEvent": false, + "TouchList": false, + "TrackEvent": false, + "TransitionEvent": false, + "TreeWalker": false, + "UIEvent": false, "URL": false, + "URLSearchParams": false, + "ValidityState": false, + "visualViewport": false, + "VisualViewport": false, + "VTTCue": false, + "WaveShaperNode": false, + "WebAssembly": false, + "WebGL2RenderingContext": false, "WebGLActiveInfo": false, "WebGLBuffer": false, "WebGLContextEvent": false, "WebGLFramebuffer": false, "WebGLProgram": false, + "WebGLQuery": false, "WebGLRenderbuffer": false, "WebGLRenderingContext": false, + "WebGLSampler": false, "WebGLShader": false, "WebGLShaderPrecisionFormat": false, + "WebGLSync": false, "WebGLTexture": false, + "WebGLTransformFeedback": false, "WebGLUniformLocation": false, + "WebGLVertexArrayObject": false, "WebSocket": false, + "WheelEvent": false, "window": false, "Window": false, "Worker": false, - "XDomainRequest": false, + "WritableStream": false, "XMLDocument": false, "XMLHttpRequest": false, + "XMLHttpRequestEventTarget": false, + "XMLHttpRequestUpload": false, "XMLSerializer": false, "XPathEvaluator": false, - "XPathException": false, "XPathExpression": false, - "XPathNamespace": false, - "XPathNSResolver": false, - "XPathResult": false + "XPathResult": false, + "XSLTProcessor": false }, "worker": { "addEventListener": false, From 214f522c435e9da422c8ef5343606caf8c4a36a7 Mon Sep 17 00:00:00 2001 From: Yury Shapkarin Date: Mon, 6 Jul 2020 05:38:57 +0300 Subject: [PATCH 08/11] fix #166 issue again --- update/get-browser-globals/browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update/get-browser-globals/browser.js b/update/get-browser-globals/browser.js index 18fdd5b..a87d936 100644 --- a/update/get-browser-globals/browser.js +++ b/update/get-browser-globals/browser.js @@ -43,7 +43,7 @@ const blacklist = [ ]; const globals = Object.getOwnPropertyNames(window) - .sort((a, b) => a.toLowerCase().localeCompare(b.toLowerCase())) + .sort((a, b) => a.localeCompare(b)) .filter(global => { for (const pattern of blacklist) { if (typeof pattern === 'string') { From 6d26f177692ebab95cc0aa2a3268e9ffeb65ab68 Mon Sep 17 00:00:00 2001 From: Yury Shapkarin Date: Mon, 6 Jul 2020 06:22:33 +0300 Subject: [PATCH 09/11] update/get-browser-globals/combine.js WIP #166 --- .gitignore | 1 + update/get-browser-globals/combine.js | 17 ++++++++++++++++- update/get-browser-globals/jshint.js | 2 +- update/get-browser-globals/readme.md | 2 +- 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 0687a95..460b56a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules yarn.lock browser_vars.json +result_browser_vars.json diff --git a/update/get-browser-globals/combine.js b/update/get-browser-globals/combine.js index 33090b5..1285880 100644 --- a/update/get-browser-globals/combine.js +++ b/update/get-browser-globals/combine.js @@ -2,4 +2,19 @@ const fs = require('fs'); -const file = fs.readFileSync('./browser_vars.json'); +const json = require('../../browser_vars.json'); + +const diff_array = function(oneObj, otherObj){ + const defaultKeys = Object.keys(oneObj); + const yours = Object.keys(otherObj); + + return defaultKeys.filter(key => !yours.includes(key)); +}; + +const browser = json['jshint']; +const my = json['my']; + +const difference = diff_array(browser, my).reduce(name => `\n${name}: true,\n`, ''); + +fs.writeFileSync('./result_browser_vars.json', `{ "result": \n\t${JSON.stringify(difference, null, '\t\t')}`); + diff --git a/update/get-browser-globals/jshint.js b/update/get-browser-globals/jshint.js index b29babe..4eec46d 100644 --- a/update/get-browser-globals/jshint.js +++ b/update/get-browser-globals/jshint.js @@ -70,4 +70,4 @@ for (const key of globals) { ret[key] = key.startsWith('on'); } -fs.writeFileSync('./browser_vars.json', `{ "jshint": \n\t${JSON.stringify(ret, null, '\t\t')},\n"my":\n\t{}\n}`); +fs.writeFileSync('./browser_vars.json', `{ "jshint": \n\t${JSON.stringify(ret, null, '\t\t')},\n"my":\n\n}`); diff --git a/update/get-browser-globals/readme.md b/update/get-browser-globals/readme.md index 73074ef..a9bffe0 100644 --- a/update/get-browser-globals/readme.md +++ b/update/get-browser-globals/readme.md @@ -5,4 +5,4 @@ - Open file `browser_vars.json` - Paste yours current clipboard to the field `my` at the root of the project. - run `npm run combine-browser` -- Copy and paste the result from the `browser_vars.json` to the field `browser` at the `globals.json` +- Copy and paste the result from the `result_browser_vars.json` to the field `browser` at the `globals.json` From 61febb91e7022ec4898cfe6cb70027c07499a66e Mon Sep 17 00:00:00 2001 From: Yury Shapkarin Date: Mon, 6 Jul 2020 06:53:09 +0300 Subject: [PATCH 10/11] finish npm run combine-browser script first version and update globals.browser with it's help --- globals.json | 1287 +++++++++++++------------ update/get-browser-globals/combine.js | 12 +- 2 files changed, 688 insertions(+), 611 deletions(-) diff --git a/globals.json b/globals.json index e2375e8..1a12d46 100644 --- a/globals.json +++ b/globals.json @@ -224,327 +224,332 @@ "WeakMap": false, "WeakSet": false }, - "browser": { - "AbortController": false, - "AbortSignal": false, - "addEventListener": false, - "alert": false, - "AnalyserNode": false, - "Animation": false, - "AnimationEffectReadOnly": false, - "AnimationEffectTiming": false, - "AnimationEffectTimingReadOnly": false, - "AnimationEvent": false, - "AnimationPlaybackEvent": false, - "AnimationTimeline": false, - "applicationCache": false, - "ApplicationCache": false, - "ApplicationCacheErrorEvent": false, - "atob": false, - "Attr": false, - "Audio": false, - "AudioBuffer": false, - "AudioBufferSourceNode": false, - "AudioContext": false, - "AudioDestinationNode": false, - "AudioListener": false, - "AudioNode": false, - "AudioParam": false, - "AudioProcessingEvent": false, - "AudioScheduledSourceNode": false, - "AudioWorkletGlobalScope ": false, - "AudioWorkletNode": false, - "AudioWorkletProcessor": false, - "BarProp": false, - "BaseAudioContext": false, - "BatteryManager": false, - "BeforeUnloadEvent": false, - "BiquadFilterNode": false, - "Blob": false, - "BlobEvent": false, - "blur": false, - "BroadcastChannel": false, - "btoa": false, - "BudgetService": false, - "ByteLengthQueuingStrategy": false, - "Cache": false, - "caches": false, - "CacheStorage": false, - "cancelAnimationFrame": false, - "cancelIdleCallback": false, - "CanvasCaptureMediaStreamTrack": false, - "CanvasGradient": false, - "CanvasPattern": false, - "CanvasRenderingContext2D": false, - "ChannelMergerNode": false, - "ChannelSplitterNode": false, - "CharacterData": false, - "clearInterval": false, - "clearTimeout": false, - "clientInformation": false, - "ClipboardEvent": false, - "close": false, - "closed": false, - "CloseEvent": false, - "Comment": false, - "CompositionEvent": false, - "confirm": false, - "console": false, - "ConstantSourceNode": false, - "ConvolverNode": false, - "CountQueuingStrategy": false, - "createImageBitmap": false, - "Credential": false, - "CredentialsContainer": false, - "crypto": false, - "Crypto": false, - "CryptoKey": false, - "CSS": false, - "CSSConditionRule": false, - "CSSFontFaceRule": false, - "CSSGroupingRule": false, - "CSSImportRule": false, - "CSSKeyframeRule": false, - "CSSKeyframesRule": false, - "CSSMediaRule": false, - "CSSNamespaceRule": false, - "CSSPageRule": false, - "CSSRule": false, - "CSSRuleList": false, - "CSSStyleDeclaration": false, - "CSSStyleRule": false, - "CSSStyleSheet": false, - "CSSSupportsRule": false, - "CustomElementRegistry": false, - "customElements": false, - "CustomEvent": false, - "DataTransfer": false, - "DataTransferItem": false, - "DataTransferItemList": false, - "defaultstatus": false, - "defaultStatus": false, - "DelayNode": false, - "DeviceMotionEvent": false, - "DeviceOrientationEvent": false, - "devicePixelRatio": false, - "dispatchEvent": false, - "document": false, - "Document": false, - "DocumentFragment": false, - "DocumentType": false, - "DOMError": false, - "DOMException": false, - "DOMImplementation": false, - "DOMMatrix": false, - "DOMMatrixReadOnly": false, - "DOMParser": false, - "DOMPoint": false, - "DOMPointReadOnly": false, - "DOMQuad": false, - "DOMRect": false, - "DOMRectReadOnly": false, - "DOMStringList": false, - "DOMStringMap": false, - "DOMTokenList": false, - "DragEvent": false, - "DynamicsCompressorNode": false, - "Element": false, - "ErrorEvent": false, - "event": false, - "Event": false, - "EventSource": false, - "EventTarget": false, - "external": false, - "fetch": false, - "File": false, - "FileList": false, - "FileReader": false, - "find": false, - "focus": false, - "FocusEvent": false, - "FontFace": false, - "FontFaceSetLoadEvent": false, - "FormData": false, - "frameElement": false, - "frames": false, - "GainNode": false, - "Gamepad": false, - "GamepadButton": false, - "GamepadEvent": false, - "getComputedStyle": false, - "getSelection": false, - "HashChangeEvent": false, - "Headers": false, - "history": false, - "History": false, - "HTMLAllCollection": false, - "HTMLAnchorElement": false, - "HTMLAreaElement": false, - "HTMLAudioElement": false, - "HTMLBaseElement": false, - "HTMLBodyElement": false, - "HTMLBRElement": false, - "HTMLButtonElement": false, - "HTMLCanvasElement": false, - "HTMLCollection": false, - "HTMLContentElement": false, - "HTMLDataElement": false, - "HTMLDataListElement": false, - "HTMLDetailsElement": false, - "HTMLDialogElement": false, - "HTMLDirectoryElement": false, - "HTMLDivElement": false, - "HTMLDListElement": false, - "HTMLDocument": false, - "HTMLElement": false, - "HTMLEmbedElement": false, - "HTMLFieldSetElement": false, - "HTMLFontElement": false, - "HTMLFormControlsCollection": false, - "HTMLFormElement": false, - "HTMLFrameElement": false, - "HTMLFrameSetElement": false, - "HTMLHeadElement": false, - "HTMLHeadingElement": false, - "HTMLHRElement": false, - "HTMLHtmlElement": false, - "HTMLIFrameElement": false, - "HTMLImageElement": false, - "HTMLInputElement": false, - "HTMLLabelElement": false, - "HTMLLegendElement": false, - "HTMLLIElement": false, - "HTMLLinkElement": false, - "HTMLMapElement": false, - "HTMLMarqueeElement": false, - "HTMLMediaElement": false, - "HTMLMenuElement": false, - "HTMLMetaElement": false, - "HTMLMeterElement": false, - "HTMLModElement": false, - "HTMLObjectElement": false, - "HTMLOListElement": false, - "HTMLOptGroupElement": false, - "HTMLOptionElement": false, - "HTMLOptionsCollection": false, - "HTMLOutputElement": false, - "HTMLParagraphElement": false, - "HTMLParamElement": false, - "HTMLPictureElement": false, - "HTMLPreElement": false, - "HTMLProgressElement": false, - "HTMLQuoteElement": false, - "HTMLScriptElement": false, - "HTMLSelectElement": false, - "HTMLShadowElement": false, - "HTMLSlotElement": false, - "HTMLSourceElement": false, - "HTMLSpanElement": false, - "HTMLStyleElement": false, - "HTMLTableCaptionElement": false, - "HTMLTableCellElement": false, - "HTMLTableColElement": false, - "HTMLTableElement": false, - "HTMLTableRowElement": false, - "HTMLTableSectionElement": false, - "HTMLTemplateElement": false, - "HTMLTextAreaElement": false, - "HTMLTimeElement": false, - "HTMLTitleElement": false, - "HTMLTrackElement": false, - "HTMLUListElement": false, - "HTMLUnknownElement": false, - "HTMLVideoElement": false, - "IDBCursor": false, - "IDBCursorWithValue": false, - "IDBDatabase": false, - "IDBFactory": false, - "IDBIndex": false, - "IDBKeyRange": false, - "IDBObjectStore": false, - "IDBOpenDBRequest": false, - "IDBRequest": false, - "IDBTransaction": false, - "IDBVersionChangeEvent": false, - "IdleDeadline": false, - "IIRFilterNode": false, - "Image": false, - "ImageBitmap": false, - "ImageBitmapRenderingContext": false, - "ImageCapture": false, - "ImageData": false, - "indexedDB": false, - "innerHeight": false, - "innerWidth": false, - "InputEvent": false, - "IntersectionObserver": false, - "IntersectionObserverEntry": false, - "Intl": false, - "isSecureContext": false, - "KeyboardEvent": false, - "KeyframeEffect": false, - "KeyframeEffectReadOnly": false, - "length": false, - "localStorage": false, + "browser": { + "AbortController": true, + "AbortSignal": true, + "addEventListener": true, + "alert": true, + "AnalyserNode": true, + "Animation": true, + "AnimationEffectReadOnly": true, + "AnimationEffectTiming": true, + "AnimationEffectTimingReadOnly": true, + "AnimationEvent": true, + "AnimationPlaybackEvent": true, + "AnimationTimeline": true, + "applicationCache": true, + "ApplicationCache": true, + "ApplicationCacheErrorEvent": true, + "atob": true, + "Attr": true, + "Audio": true, + "AudioBuffer": true, + "AudioBufferSourceNode": true, + "AudioContext": true, + "AudioDestinationNode": true, + "AudioListener": true, + "AudioNode": true, + "AudioParam": true, + "AudioProcessingEvent": true, + "AudioScheduledSourceNode": true, + "AudioWorkletGlobalScope ": true, + "AudioWorkletNode": true, + "AudioWorkletProcessor": true, + "BarProp": true, + "BaseAudioContext": true, + "BatteryManager": true, + "BeforeUnloadEvent": true, + "BiquadFilterNode": true, + "Blob": true, + "BlobEvent": true, + "blur": true, + "BroadcastChannel": true, + "btoa": true, + "BudgetService": true, + "ByteLengthQueuingStrategy": true, + "Cache": true, + "caches": true, + "CacheStorage": true, + "cancelAnimationFrame": true, + "cancelIdleCallback": true, + "CanvasCaptureMediaStreamTrack": true, + "CanvasGradient": true, + "CanvasPattern": true, + "CanvasRenderingContext2D": true, + "ChannelMergerNode": true, + "ChannelSplitterNode": true, + "CharacterData": true, + "clearInterval": true, + "clearTimeout": true, + "clientInformation": true, + "ClipboardEvent": true, + "close": true, + "closed": true, + "CloseEvent": true, + "Comment": true, + "CompositionEvent": true, + "confirm": true, + "console": true, + "ConstantSourceNode": true, + "ConvolverNode": true, + "CountQueuingStrategy": true, + "createImageBitmap": true, + "Credential": true, + "CredentialsContainer": true, + "crypto": true, + "Crypto": true, + "CryptoKey": true, + "CSS": true, + "CSSConditionRule": true, + "CSSFontFaceRule": true, + "CSSGroupingRule": true, + "CSSImportRule": true, + "CSSKeyframeRule": true, + "CSSKeyframesRule": true, + "CSSMarginRule": true, + "CSSMediaRule": true, + "CSSNamespaceRule": true, + "CSSPageRule": true, + "CSSRule": true, + "CSSRuleList": true, + "CSSStyleDeclaration": true, + "CSSStyleRule": true, + "CSSStyleSheet": true, + "CSSSupportsRule": true, + "CustomElementRegistry": true, + "customElements": true, + "CustomEvent": true, + "DataTransfer": true, + "DataTransferItem": true, + "DataTransferItemList": true, + "defaultstatus": true, + "defaultStatus": true, + "DelayNode": true, + "DeviceMotionEvent": true, + "DeviceOrientationEvent": true, + "devicePixelRatio": true, + "dispatchEvent": true, + "document": true, + "Document": true, + "DocumentFragment": true, + "DocumentType": true, + "DOMError": true, + "DOMException": true, + "DOMImplementation": true, + "DOMMatrix": true, + "DOMMatrixReadOnly": true, + "DOMParser": true, + "DOMPoint": true, + "DOMPointReadOnly": true, + "DOMQuad": true, + "DOMRect": true, + "DOMRectReadOnly": true, + "DOMStringList": true, + "DOMStringMap": true, + "DOMTokenList": true, + "DragEvent": true, + "DynamicsCompressorNode": true, + "Element": true, + "ElementTimeControl": true, + "ErrorEvent": true, + "event": true, + "Event": true, + "EventSource": true, + "EventTarget": true, + "external": true, + "fetch": true, + "File": true, + "FileList": true, + "FileReader": true, + "find": true, + "focus": true, + "FocusEvent": true, + "FontFace": true, + "FontFaceSetLoadEvent": true, + "FormData": true, + "frameElement": true, + "frames": true, + "GainNode": true, + "Gamepad": true, + "GamepadButton": true, + "GamepadEvent": true, + "getComputedStyle": true, + "getSelection": true, + "HashChangeEvent": true, + "Headers": true, + "history": true, + "History": true, + "HTMLAllCollection": true, + "HTMLAnchorElement": true, + "HTMLAreaElement": true, + "HTMLAudioElement": true, + "HTMLBaseElement": true, + "HTMLBlockquoteElement": true, + "HTMLBodyElement": true, + "HTMLBRElement": true, + "HTMLButtonElement": true, + "HTMLCanvasElement": true, + "HTMLCollection": true, + "HTMLContentElement": true, + "HTMLDataElement": true, + "HTMLDataListElement": true, + "HTMLDetailsElement": true, + "HTMLDialogElement": true, + "HTMLDirectoryElement": true, + "HTMLDivElement": true, + "HTMLDListElement": true, + "HTMLDocument": true, + "HTMLElement": true, + "HTMLEmbedElement": true, + "HTMLFieldSetElement": true, + "HTMLFontElement": true, + "HTMLFormControlsCollection": true, + "HTMLFormElement": true, + "HTMLFrameElement": true, + "HTMLFrameSetElement": true, + "HTMLHeadElement": true, + "HTMLHeadingElement": true, + "HTMLHRElement": true, + "HTMLHtmlElement": true, + "HTMLIFrameElement": true, + "HTMLImageElement": true, + "HTMLInputElement": true, + "HTMLIsIndexElement": true, + "HTMLLabelElement": true, + "HTMLLayerElement": true, + "HTMLLegendElement": true, + "HTMLLIElement": true, + "HTMLLinkElement": true, + "HTMLMapElement": true, + "HTMLMarqueeElement": true, + "HTMLMediaElement": true, + "HTMLMenuElement": true, + "HTMLMetaElement": true, + "HTMLMeterElement": true, + "HTMLModElement": true, + "HTMLObjectElement": true, + "HTMLOListElement": true, + "HTMLOptGroupElement": true, + "HTMLOptionElement": true, + "HTMLOptionsCollection": true, + "HTMLOutputElement": true, + "HTMLParagraphElement": true, + "HTMLParamElement": true, + "HTMLPictureElement": true, + "HTMLPreElement": true, + "HTMLProgressElement": true, + "HTMLQuoteElement": true, + "HTMLScriptElement": true, + "HTMLSelectElement": true, + "HTMLShadowElement": true, + "HTMLSlotElement": true, + "HTMLSourceElement": true, + "HTMLSpanElement": true, + "HTMLStyleElement": true, + "HTMLTableCaptionElement": true, + "HTMLTableCellElement": true, + "HTMLTableColElement": true, + "HTMLTableElement": true, + "HTMLTableRowElement": true, + "HTMLTableSectionElement": true, + "HTMLTemplateElement": true, + "HTMLTextAreaElement": true, + "HTMLTimeElement": true, + "HTMLTitleElement": true, + "HTMLTrackElement": true, + "HTMLUListElement": true, + "HTMLUnknownElement": true, + "HTMLVideoElement": true, + "IDBCursor": true, + "IDBCursorWithValue": true, + "IDBDatabase": true, + "IDBFactory": true, + "IDBIndex": true, + "IDBKeyRange": true, + "IDBObjectStore": true, + "IDBOpenDBRequest": true, + "IDBRequest": true, + "IDBTransaction": true, + "IDBVersionChangeEvent": true, + "IdleDeadline": true, + "IIRFilterNode": true, + "Image": true, + "ImageBitmap": true, + "ImageBitmapRenderingContext": true, + "ImageCapture": true, + "ImageData": true, + "indexedDB": true, + "innerHeight": true, + "innerWidth": true, + "InputEvent": true, + "IntersectionObserver": true, + "IntersectionObserverEntry": true, + "Intl": true, + "isSecureContext": true, + "KeyboardEvent": true, + "KeyframeEffect": true, + "KeyframeEffectReadOnly": true, + "length": true, + "localStorage": true, "location": true, - "Location": false, - "locationbar": false, - "matchMedia": false, - "MediaDeviceInfo": false, - "MediaDevices": false, - "MediaElementAudioSourceNode": false, - "MediaEncryptedEvent": false, - "MediaError": false, - "MediaKeyMessageEvent": false, - "MediaKeySession": false, - "MediaKeyStatusMap": false, - "MediaKeySystemAccess": false, - "MediaList": false, - "MediaQueryList": false, - "MediaQueryListEvent": false, - "MediaRecorder": false, - "MediaSettingsRange": false, - "MediaSource": false, - "MediaStream": false, - "MediaStreamAudioDestinationNode": false, - "MediaStreamAudioSourceNode": false, - "MediaStreamEvent": false, - "MediaStreamTrack": false, - "MediaStreamTrackEvent": false, - "menubar": false, - "MessageChannel": false, - "MessageEvent": false, - "MessagePort": false, - "MIDIAccess": false, - "MIDIConnectionEvent": false, - "MIDIInput": false, - "MIDIInputMap": false, - "MIDIMessageEvent": false, - "MIDIOutput": false, - "MIDIOutputMap": false, - "MIDIPort": false, - "MimeType": false, - "MimeTypeArray": false, - "MouseEvent": false, - "moveBy": false, - "moveTo": false, - "MutationEvent": false, - "MutationObserver": false, - "MutationRecord": false, - "name": false, - "NamedNodeMap": false, - "NavigationPreloadManager": false, - "navigator": false, - "Navigator": false, - "NetworkInformation": false, - "Node": false, - "NodeFilter": false, - "NodeIterator": false, - "NodeList": false, - "Notification": false, - "OfflineAudioCompletionEvent": false, - "OfflineAudioContext": false, - "offscreenBuffering": false, + "Location": true, + "locationbar": true, + "matchMedia": true, + "MediaDeviceInfo": true, + "MediaDevices": true, + "MediaElementAudioSourceNode": true, + "MediaEncryptedEvent": true, + "MediaError": true, + "MediaKeyMessageEvent": true, + "MediaKeySession": true, + "MediaKeyStatusMap": true, + "MediaKeySystemAccess": true, + "MediaList": true, + "MediaQueryList": true, + "MediaQueryListEvent": true, + "MediaRecorder": true, + "MediaSettingsRange": true, + "MediaSource": true, + "MediaStream": true, + "MediaStreamAudioDestinationNode": true, + "MediaStreamAudioSourceNode": true, + "MediaStreamEvent": true, + "MediaStreamTrack": true, + "MediaStreamTrackEvent": true, + "menubar": true, + "MessageChannel": true, + "MessageEvent": true, + "MessagePort": true, + "MIDIAccess": true, + "MIDIConnectionEvent": true, + "MIDIInput": true, + "MIDIInputMap": true, + "MIDIMessageEvent": true, + "MIDIOutput": true, + "MIDIOutputMap": true, + "MIDIPort": true, + "MimeType": true, + "MimeTypeArray": true, + "MouseEvent": true, + "moveBy": true, + "moveTo": true, + "MutationEvent": true, + "MutationObserver": true, + "MutationRecord": true, + "name": true, + "NamedNodeMap": true, + "NavigationPreloadManager": true, + "navigator": true, + "Navigator": true, + "NetworkInformation": true, + "Node": true, + "NodeFilter": true, + "NodeIterator": true, + "NodeList": true, + "Notification": true, + "OfflineAudioCompletionEvent": true, + "OfflineAudioContext": true, + "offscreenBuffering": true, "OffscreenCanvas": true, "onabort": true, "onafterprint": true, @@ -642,294 +647,360 @@ "onvolumechange": true, "onwaiting": true, "onwheel": true, - "open": false, - "openDatabase": false, - "opener": false, - "Option": false, - "origin": false, - "OscillatorNode": false, - "outerHeight": false, - "outerWidth": false, - "PageTransitionEvent": false, - "pageXOffset": false, - "pageYOffset": false, - "PannerNode": false, - "parent": false, - "Path2D": false, - "PaymentAddress": false, - "PaymentRequest": false, - "PaymentRequestUpdateEvent": false, - "PaymentResponse": false, - "performance": false, - "Performance": false, - "PerformanceEntry": false, - "PerformanceLongTaskTiming": false, - "PerformanceMark": false, - "PerformanceMeasure": false, - "PerformanceNavigation": false, - "PerformanceNavigationTiming": false, - "PerformanceObserver": false, - "PerformanceObserverEntryList": false, - "PerformancePaintTiming": false, - "PerformanceResourceTiming": false, - "PerformanceTiming": false, - "PeriodicWave": false, - "Permissions": false, - "PermissionStatus": false, - "personalbar": false, - "PhotoCapabilities": false, - "Plugin": false, - "PluginArray": false, - "PointerEvent": false, - "PopStateEvent": false, - "postMessage": false, - "Presentation": false, - "PresentationAvailability": false, - "PresentationConnection": false, - "PresentationConnectionAvailableEvent": false, - "PresentationConnectionCloseEvent": false, - "PresentationConnectionList": false, - "PresentationReceiver": false, - "PresentationRequest": false, - "print": false, - "ProcessingInstruction": false, - "ProgressEvent": false, - "PromiseRejectionEvent": false, - "prompt": false, - "PushManager": false, - "PushSubscription": false, - "PushSubscriptionOptions": false, - "queueMicrotask": false, - "RadioNodeList": false, - "Range": false, - "ReadableStream": false, - "registerProcessor": false, - "RemotePlayback": false, - "removeEventListener": false, - "Request": false, - "requestAnimationFrame": false, - "requestIdleCallback": false, - "resizeBy": false, - "ResizeObserver": false, - "ResizeObserverEntry": false, - "resizeTo": false, - "Response": false, - "RTCCertificate": false, - "RTCDataChannel": false, - "RTCDataChannelEvent": false, - "RTCDtlsTransport": false, - "RTCIceCandidate": false, - "RTCIceGatherer": false, - "RTCIceTransport": false, - "RTCPeerConnection": false, - "RTCPeerConnectionIceEvent": false, - "RTCRtpContributingSource": false, - "RTCRtpReceiver": false, - "RTCRtpSender": false, - "RTCSctpTransport": false, - "RTCSessionDescription": false, - "RTCStatsReport": false, - "RTCTrackEvent": false, - "screen": false, - "Screen": false, - "screenLeft": false, - "ScreenOrientation": false, - "screenTop": false, - "screenX": false, - "screenY": false, - "ScriptProcessorNode": false, - "scroll": false, - "scrollbars": false, - "scrollBy": false, - "scrollTo": false, - "scrollX": false, - "scrollY": false, - "SecurityPolicyViolationEvent": false, - "Selection": false, - "self": false, - "ServiceWorker": false, - "ServiceWorkerContainer": false, - "ServiceWorkerRegistration": false, - "sessionStorage": false, - "setInterval": false, - "setTimeout": false, - "ShadowRoot": false, - "SharedWorker": false, - "SourceBuffer": false, - "SourceBufferList": false, - "speechSynthesis": false, - "SpeechSynthesisEvent": false, - "SpeechSynthesisUtterance": false, - "StaticRange": false, - "status": false, - "statusbar": false, - "StereoPannerNode": false, - "stop": false, - "Storage": false, - "StorageEvent": false, - "StorageManager": false, - "styleMedia": false, - "StyleSheet": false, - "StyleSheetList": false, - "SubtleCrypto": false, - "SVGAElement": false, - "SVGAngle": false, - "SVGAnimatedAngle": false, - "SVGAnimatedBoolean": false, - "SVGAnimatedEnumeration": false, - "SVGAnimatedInteger": false, - "SVGAnimatedLength": false, - "SVGAnimatedLengthList": false, - "SVGAnimatedNumber": false, - "SVGAnimatedNumberList": false, - "SVGAnimatedPreserveAspectRatio": false, - "SVGAnimatedRect": false, - "SVGAnimatedString": false, - "SVGAnimatedTransformList": false, - "SVGAnimateElement": false, - "SVGAnimateMotionElement": false, - "SVGAnimateTransformElement": false, - "SVGAnimationElement": false, - "SVGCircleElement": false, - "SVGClipPathElement": false, - "SVGComponentTransferFunctionElement": false, - "SVGDefsElement": false, - "SVGDescElement": false, - "SVGDiscardElement": false, - "SVGElement": false, - "SVGEllipseElement": false, - "SVGFEBlendElement": false, - "SVGFEColorMatrixElement": false, - "SVGFEComponentTransferElement": false, - "SVGFECompositeElement": false, - "SVGFEConvolveMatrixElement": false, - "SVGFEDiffuseLightingElement": false, - "SVGFEDisplacementMapElement": false, - "SVGFEDistantLightElement": false, - "SVGFEDropShadowElement": false, - "SVGFEFloodElement": false, - "SVGFEFuncAElement": false, - "SVGFEFuncBElement": false, - "SVGFEFuncGElement": false, - "SVGFEFuncRElement": false, - "SVGFEGaussianBlurElement": false, - "SVGFEImageElement": false, - "SVGFEMergeElement": false, - "SVGFEMergeNodeElement": false, - "SVGFEMorphologyElement": false, - "SVGFEOffsetElement": false, - "SVGFEPointLightElement": false, - "SVGFESpecularLightingElement": false, - "SVGFESpotLightElement": false, - "SVGFETileElement": false, - "SVGFETurbulenceElement": false, - "SVGFilterElement": false, - "SVGForeignObjectElement": false, - "SVGGElement": false, - "SVGGeometryElement": false, - "SVGGradientElement": false, - "SVGGraphicsElement": false, - "SVGImageElement": false, - "SVGLength": false, - "SVGLengthList": false, - "SVGLinearGradientElement": false, - "SVGLineElement": false, - "SVGMarkerElement": false, - "SVGMaskElement": false, - "SVGMatrix": false, - "SVGMetadataElement": false, - "SVGMPathElement": false, - "SVGNumber": false, - "SVGNumberList": false, - "SVGPathElement": false, - "SVGPatternElement": false, - "SVGPoint": false, - "SVGPointList": false, - "SVGPolygonElement": false, - "SVGPolylineElement": false, - "SVGPreserveAspectRatio": false, - "SVGRadialGradientElement": false, - "SVGRect": false, - "SVGRectElement": false, - "SVGScriptElement": false, - "SVGSetElement": false, - "SVGStopElement": false, - "SVGStringList": false, - "SVGStyleElement": false, - "SVGSVGElement": false, - "SVGSwitchElement": false, - "SVGSymbolElement": false, - "SVGTextContentElement": false, - "SVGTextElement": false, - "SVGTextPathElement": false, - "SVGTextPositioningElement": false, - "SVGTitleElement": false, - "SVGTransform": false, - "SVGTransformList": false, - "SVGTSpanElement": false, - "SVGUnitTypes": false, - "SVGUseElement": false, - "SVGViewElement": false, - "TaskAttributionTiming": false, - "Text": false, - "TextDecoder": false, - "TextEncoder": false, - "TextEvent": false, - "TextMetrics": false, - "TextTrack": false, - "TextTrackCue": false, - "TextTrackCueList": false, - "TextTrackList": false, - "TimeRanges": false, - "toolbar": false, - "top": false, - "Touch": false, - "TouchEvent": false, - "TouchList": false, - "TrackEvent": false, - "TransitionEvent": false, - "TreeWalker": false, - "UIEvent": false, - "URL": false, - "URLSearchParams": false, - "ValidityState": false, - "visualViewport": false, - "VisualViewport": false, - "VTTCue": false, - "WaveShaperNode": false, - "WebAssembly": false, - "WebGL2RenderingContext": false, - "WebGLActiveInfo": false, - "WebGLBuffer": false, - "WebGLContextEvent": false, - "WebGLFramebuffer": false, - "WebGLProgram": false, - "WebGLQuery": false, - "WebGLRenderbuffer": false, - "WebGLRenderingContext": false, - "WebGLSampler": false, - "WebGLShader": false, - "WebGLShaderPrecisionFormat": false, - "WebGLSync": false, - "WebGLTexture": false, - "WebGLTransformFeedback": false, - "WebGLUniformLocation": false, - "WebGLVertexArrayObject": false, - "WebSocket": false, - "WheelEvent": false, - "window": false, - "Window": false, - "Worker": false, - "WritableStream": false, - "XMLDocument": false, - "XMLHttpRequest": false, - "XMLHttpRequestEventTarget": false, - "XMLHttpRequestUpload": false, - "XMLSerializer": false, - "XPathEvaluator": false, - "XPathExpression": false, - "XPathResult": false, - "XSLTProcessor": false + "open": true, + "openDatabase": true, + "opener": true, + "Option": true, + "origin": true, + "OscillatorNode": true, + "outerHeight": true, + "outerWidth": true, + "PageTransitionEvent": true, + "pageXOffset": true, + "pageYOffset": true, + "PannerNode": true, + "parent": true, + "Path2D": true, + "PaymentAddress": true, + "PaymentRequest": true, + "PaymentRequestUpdateEvent": true, + "PaymentResponse": true, + "performance": true, + "Performance": true, + "PerformanceEntry": true, + "PerformanceLongTaskTiming": true, + "PerformanceMark": true, + "PerformanceMeasure": true, + "PerformanceNavigation": true, + "PerformanceNavigationTiming": true, + "PerformanceObserver": true, + "PerformanceObserverEntryList": true, + "PerformancePaintTiming": true, + "PerformanceResourceTiming": true, + "PerformanceTiming": true, + "PeriodicWave": true, + "Permissions": true, + "PermissionStatus": true, + "personalbar": true, + "PhotoCapabilities": true, + "Plugin": true, + "PluginArray": true, + "PointerEvent": true, + "PopStateEvent": true, + "postMessage": true, + "Presentation": true, + "PresentationAvailability": true, + "PresentationConnection": true, + "PresentationConnectionAvailableEvent": true, + "PresentationConnectionCloseEvent": true, + "PresentationConnectionList": true, + "PresentationReceiver": true, + "PresentationRequest": true, + "print": true, + "ProcessingInstruction": true, + "ProgressEvent": true, + "PromiseRejectionEvent": true, + "prompt": true, + "PushManager": true, + "PushSubscription": true, + "PushSubscriptionOptions": true, + "queueMicrotask": true, + "RadioNodeList": true, + "Range": true, + "ReadableStream": true, + "registerProcessor": true, + "RemotePlayback": true, + "removeEventListener": true, + "Request": true, + "requestAnimationFrame": true, + "requestIdleCallback": true, + "resizeBy": true, + "ResizeObserver": true, + "ResizeObserverEntry": true, + "resizeTo": true, + "Response": true, + "RTCCertificate": true, + "RTCDataChannel": true, + "RTCDataChannelEvent": true, + "RTCDtlsTransport": true, + "RTCIceCandidate": true, + "RTCIceGatherer": true, + "RTCIceTransport": true, + "RTCPeerConnection": true, + "RTCPeerConnectionIceEvent": true, + "RTCRtpContributingSource": true, + "RTCRtpReceiver": true, + "RTCRtpSender": true, + "RTCSctpTransport": true, + "RTCSessionDescription": true, + "RTCStatsReport": true, + "RTCTrackEvent": true, + "screen": true, + "Screen": true, + "screenLeft": true, + "ScreenOrientation": true, + "screenTop": true, + "screenX": true, + "screenY": true, + "ScriptProcessorNode": true, + "scroll": true, + "scrollbars": true, + "scrollBy": true, + "scrollTo": true, + "scrollX": true, + "scrollY": true, + "SecurityPolicyViolationEvent": true, + "Selection": true, + "self": true, + "ServiceWorker": true, + "ServiceWorkerContainer": true, + "ServiceWorkerRegistration": true, + "sessionStorage": true, + "setInterval": true, + "setTimeout": true, + "ShadowRoot": true, + "SharedWorker": true, + "SourceBuffer": true, + "SourceBufferList": true, + "speechSynthesis": true, + "SpeechSynthesisEvent": true, + "SpeechSynthesisUtterance": true, + "StaticRange": true, + "status": true, + "statusbar": true, + "StereoPannerNode": true, + "stop": true, + "Storage": true, + "StorageEvent": true, + "StorageManager": true, + "styleMedia": true, + "StyleSheet": true, + "StyleSheetList": true, + "SubtleCrypto": true, + "SVGAElement": true, + "SVGAltGlyphDefElement": true, + "SVGAltGlyphElement": true, + "SVGAltGlyphItemElement": true, + "SVGAngle": true, + "SVGAnimateColorElement": true, + "SVGAnimatedAngle": true, + "SVGAnimatedBoolean": true, + "SVGAnimatedEnumeration": true, + "SVGAnimatedInteger": true, + "SVGAnimatedLength": true, + "SVGAnimatedLengthList": true, + "SVGAnimatedNumber": true, + "SVGAnimatedNumberList": true, + "SVGAnimatedPathData": true, + "SVGAnimatedPoints": true, + "SVGAnimatedPreserveAspectRatio": true, + "SVGAnimatedRect": true, + "SVGAnimatedString": true, + "SVGAnimatedTransformList": true, + "SVGAnimateElement": true, + "SVGAnimateMotionElement": true, + "SVGAnimateTransformElement": true, + "SVGAnimationElement": true, + "SVGCircleElement": true, + "SVGClipPathElement": true, + "SVGColor": true, + "SVGColorProfileElement": true, + "SVGColorProfileRule": true, + "SVGComponentTransferFunctionElement": true, + "SVGCSSRule": true, + "SVGCursorElement": true, + "SVGDefsElement": true, + "SVGDescElement": true, + "SVGDiscardElement": true, + "SVGDocument": true, + "SVGElement": true, + "SVGElementInstance": true, + "SVGElementInstanceList": true, + "SVGEllipseElement": true, + "SVGExternalResourcesRequired": true, + "SVGFEBlendElement": true, + "SVGFEColorMatrixElement": true, + "SVGFEComponentTransferElement": true, + "SVGFECompositeElement": true, + "SVGFEConvolveMatrixElement": true, + "SVGFEDiffuseLightingElement": true, + "SVGFEDisplacementMapElement": true, + "SVGFEDistantLightElement": true, + "SVGFEDropShadowElement": true, + "SVGFEFloodElement": true, + "SVGFEFuncAElement": true, + "SVGFEFuncBElement": true, + "SVGFEFuncGElement": true, + "SVGFEFuncRElement": true, + "SVGFEGaussianBlurElement": true, + "SVGFEImageElement": true, + "SVGFEMergeElement": true, + "SVGFEMergeNodeElement": true, + "SVGFEMorphologyElement": true, + "SVGFEOffsetElement": true, + "SVGFEPointLightElement": true, + "SVGFESpecularLightingElement": true, + "SVGFESpotLightElement": true, + "SVGFETileElement": true, + "SVGFETurbulenceElement": true, + "SVGFilterElement": true, + "SVGFilterPrimitiveStandardAttributes": true, + "SVGFitToViewBox": true, + "SVGFontElement": true, + "SVGFontFaceElement": true, + "SVGFontFaceFormatElement": true, + "SVGFontFaceNameElement": true, + "SVGFontFaceSrcElement": true, + "SVGFontFaceUriElement": true, + "SVGForeignObjectElement": true, + "SVGGElement": true, + "SVGGeometryElement": true, + "SVGGlyphElement": true, + "SVGGlyphRefElement": true, + "SVGGradientElement": true, + "SVGGraphicsElement": true, + "SVGHKernElement": true, + "SVGICCColor": true, + "SVGImageElement": true, + "SVGLangSpace": true, + "SVGLength": true, + "SVGLengthList": true, + "SVGLinearGradientElement": true, + "SVGLineElement": true, + "SVGLocatable": true, + "SVGMarkerElement": true, + "SVGMaskElement": true, + "SVGMatrix": true, + "SVGMetadataElement": true, + "SVGMissingGlyphElement": true, + "SVGMPathElement": true, + "SVGNumber": true, + "SVGNumberList": true, + "SVGPaint": true, + "SVGPathElement": true, + "SVGPathSeg": true, + "SVGPathSegArcAbs": true, + "SVGPathSegArcRel": true, + "SVGPathSegClosePath": true, + "SVGPathSegCurvetoCubicAbs": true, + "SVGPathSegCurvetoCubicRel": true, + "SVGPathSegCurvetoCubicSmoothAbs": true, + "SVGPathSegCurvetoCubicSmoothRel": true, + "SVGPathSegCurvetoQuadraticAbs": true, + "SVGPathSegCurvetoQuadraticRel": true, + "SVGPathSegCurvetoQuadraticSmoothAbs": true, + "SVGPathSegCurvetoQuadraticSmoothRel": true, + "SVGPathSegLinetoAbs": true, + "SVGPathSegLinetoHorizontalAbs": true, + "SVGPathSegLinetoHorizontalRel": true, + "SVGPathSegLinetoRel": true, + "SVGPathSegLinetoVerticalAbs": true, + "SVGPathSegLinetoVerticalRel": true, + "SVGPathSegList": true, + "SVGPathSegMovetoAbs": true, + "SVGPathSegMovetoRel": true, + "SVGPatternElement": true, + "SVGPoint": true, + "SVGPointList": true, + "SVGPolygonElement": true, + "SVGPolylineElement": true, + "SVGPreserveAspectRatio": true, + "SVGRadialGradientElement": true, + "SVGRect": true, + "SVGRectElement": true, + "SVGRenderingIntent": true, + "SVGScriptElement": true, + "SVGSetElement": true, + "SVGStopElement": true, + "SVGStringList": true, + "SVGStylable": true, + "SVGStyleElement": true, + "SVGSVGElement": true, + "SVGSwitchElement": true, + "SVGSymbolElement": true, + "SVGTests": true, + "SVGTextContentElement": true, + "SVGTextElement": true, + "SVGTextPathElement": true, + "SVGTextPositioningElement": true, + "SVGTitleElement": true, + "SVGTransform": true, + "SVGTransformable": true, + "SVGTransformList": true, + "SVGTRefElement": true, + "SVGTSpanElement": true, + "SVGUnitTypes": true, + "SVGURIReference": true, + "SVGUseElement": true, + "SVGViewElement": true, + "SVGViewSpec": true, + "SVGVKernElement": true, + "SVGZoomAndPan": true, + "TaskAttributionTiming": true, + "Text": true, + "TextDecoder": true, + "TextEncoder": true, + "TextEvent": true, + "TextMetrics": true, + "TextTrack": true, + "TextTrackCue": true, + "TextTrackCueList": true, + "TextTrackList": true, + "TimeEvent": true, + "TimeRanges": true, + "toolbar": true, + "top": true, + "Touch": true, + "TouchEvent": true, + "TouchList": true, + "TrackEvent": true, + "TransitionEvent": true, + "TreeWalker": true, + "UIEvent": true, + "URL": true, + "URLSearchParams": true, + "ValidityState": true, + "visualViewport": true, + "VisualViewport": true, + "VTTCue": true, + "WaveShaperNode": true, + "WebAssembly": true, + "WebGL2RenderingContext": true, + "WebGLActiveInfo": true, + "WebGLBuffer": true, + "WebGLContextEvent": true, + "WebGLFramebuffer": true, + "WebGLProgram": true, + "WebGLQuery": true, + "WebGLRenderbuffer": true, + "WebGLRenderingContext": true, + "WebGLSampler": true, + "WebGLShader": true, + "WebGLShaderPrecisionFormat": true, + "WebGLSync": true, + "WebGLTexture": true, + "WebGLTransformFeedback": true, + "WebGLUniformLocation": true, + "WebGLVertexArrayObject": true, + "WebSocket": true, + "WheelEvent": true, + "window": true, + "Window": true, + "Worker": true, + "WritableStream": true, + "XDomainRequest": true, + "XMLDocument": true, + "XMLHttpRequest": true, + "XMLHttpRequestEventTarget": true, + "XMLHttpRequestUpload": true, + "XMLSerializer": true, + "XPathEvaluator": true, + "XPathException": true, + "XPathExpression": true, + "XPathNamespace": true, + "XPathNSResolver": true, + "XPathResult": true, + "XSLTProcessor": true }, "worker": { "addEventListener": false, diff --git a/update/get-browser-globals/combine.js b/update/get-browser-globals/combine.js index 1285880..cabe964 100644 --- a/update/get-browser-globals/combine.js +++ b/update/get-browser-globals/combine.js @@ -11,10 +11,16 @@ const diff_array = function(oneObj, otherObj){ return defaultKeys.filter(key => !yours.includes(key)); }; -const browser = json['jshint']; +const jshint = json['jshint']; const my = json['my']; -const difference = diff_array(browser, my).reduce(name => `\n${name}: true,\n`, ''); +const difference = diff_array(jshint, my); +const { browser } = require('../../globals.json'); -fs.writeFileSync('./result_browser_vars.json', `{ "result": \n\t${JSON.stringify(difference, null, '\t\t')}`); +// todo: refact +const result = [...Object.keys(browser), ...difference] + .sort((a, b) => a.localeCompare(b)) + .reduce((acc, cur) => ({ ...acc, [cur]: true}), {}); + +fs.writeFileSync('./result_browser_vars.json', `{ "result": \n\t${JSON.stringify(result, null, '\t\t')}\n}`); From f1e0a90cb24021a5a5004081771235f90e5513ff Mon Sep 17 00:00:00 2001 From: Yury Shapkarin Date: Mon, 6 Jul 2020 06:56:04 +0300 Subject: [PATCH 11/11] add xo ignores for the update scripts --- package.json | 4 +++- update/get-browser-globals/combine.js | 5 ++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 4a74623..549f30d 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,9 @@ }, "xo": { "ignores": [ - "get-browser-globals.js" + "update/get-browser-globals/browser.js", + "update/get-browser-globals/combine.js", + "update/get-browser-globals/jshint.js" ] }, "tsd": { diff --git a/update/get-browser-globals/combine.js b/update/get-browser-globals/combine.js index cabe964..0e20d9c 100644 --- a/update/get-browser-globals/combine.js +++ b/update/get-browser-globals/combine.js @@ -4,7 +4,7 @@ const fs = require('fs'); const json = require('../../browser_vars.json'); -const diff_array = function(oneObj, otherObj){ +const diffArray = function(oneObj, otherObj){ const defaultKeys = Object.keys(oneObj); const yours = Object.keys(otherObj); @@ -14,10 +14,9 @@ const diff_array = function(oneObj, otherObj){ const jshint = json['jshint']; const my = json['my']; -const difference = diff_array(jshint, my); +const difference = diffArray(jshint, my); const { browser } = require('../../globals.json'); -// todo: refact const result = [...Object.keys(browser), ...difference] .sort((a, b) => a.localeCompare(b)) .reduce((acc, cur) => ({ ...acc, [cur]: true}), {});