Socket
Socket
Sign inDemoInstall

caniuse-on-user-agent

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

caniuse-on-user-agent - npm Package Compare versions

Comparing version 1.0.1-master-8ffb7b0bfffd69f0447983be5a43a7331c46015c to 1.0.1-master-c440120a04c1c4af2f725edb555f291caeb5b6ad

5

dist/src/caniuseOnUseragent.d.ts
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);

2

package.json
{
"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);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc