caniuse-on-user-agent
Advanced tools
Comparing version 1.0.1-master-8ffb7b0bfffd69f0447983be5a43a7331c46015c to 1.0.1-master-c440120a04c1c4af2f725edb555f291caeb5b6ad
import * as caniuse from 'caniuse-lite'; | ||
/** | ||
* @param featureId ID of the feature on caniuse.com | ||
* @param userAgent A User-Agent string | ||
* @returns Support status of featureId by the given userAgent. Format: @see caniuse.SupportStatus | ||
*/ | ||
export declare function canIUseOnUserAgent(featureId: string, userAgent: string): caniuse.SupportStatus | null; |
@@ -14,2 +14,7 @@ "use strict"; | ||
var browserToCaniuseId_1 = require("./browserToCaniuseId"); | ||
/** | ||
* @param featureId ID of the feature on caniuse.com | ||
* @param userAgent A User-Agent string | ||
* @returns Support status of featureId by the given userAgent. Format: @see caniuse.SupportStatus | ||
*/ | ||
function canIUseOnUserAgent(featureId, userAgent) { | ||
@@ -16,0 +21,0 @@ var browser = detect_browser_1.parseUserAgent(userAgent); |
{ | ||
"name": "caniuse-on-user-agent", | ||
"version": "1.0.1-master-8ffb7b0bfffd69f0447983be5a43a7331c46015c", | ||
"version": "1.0.1-master-c440120a04c1c4af2f725edb555f291caeb5b6ad", | ||
"description": "Given a User-Agent string, find out whether a browser feature is supported", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -6,2 +6,7 @@ import { parseUserAgent, BrowserInfo, BotInfo } from 'detect-browser'; | ||
/** | ||
* @param featureId ID of the feature on caniuse.com | ||
* @param userAgent A User-Agent string | ||
* @returns Support status of featureId by the given userAgent. Format: @see caniuse.SupportStatus | ||
*/ | ||
export function canIUseOnUserAgent(featureId: string, userAgent: string): caniuse.SupportStatus | null { | ||
@@ -8,0 +13,0 @@ const browser = parseUserAgent(userAgent); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
170565
502