Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

detect-gpu

Package Overview
Dependencies
Maintainers
1
Versions
201
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detect-gpu - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

14

dist/types/index.d.ts

@@ -1,2 +0,14 @@

import { IGetGPUTier } from './types';
export interface IGetGPUTier {
glContext?: WebGLRenderingContext | WebGL2RenderingContext;
mobileBenchmarkPercentages?: number[];
desktopBenchmarkPercentages?: number[];
failIfMajorPerformanceCaveat?: boolean;
forceRendererString?: string;
forceMobile?: boolean;
}
export declare type TRank = [number, string] | [undefined, undefined];
export interface IRankWithDistance {
rank: TRank;
distance: number;
}
export declare const getGPUTier: ({ mobileBenchmarkPercentages, desktopBenchmarkPercentages, forceRendererString, forceMobile, glContext, failIfMajorPerformanceCaveat, }?: IGetGPUTier) => {

@@ -3,0 +15,0 @@ tier: string;

2

package.json
{
"name": "detect-gpu",
"version": "1.5.0",
"version": "1.5.1",
"description": "Classify GPU's based on their benchmark score in order to provide an adaptive experience.",

@@ -5,0 +5,0 @@ "main": "dist/detect-gpu.cjs.js",

@@ -18,4 +18,17 @@ // Generated data

// Types
import { IGetGPUTier, TRank, IRankWithDistance } from './types';
export interface IGetGPUTier {
glContext?: WebGLRenderingContext | WebGL2RenderingContext;
mobileBenchmarkPercentages?: number[];
desktopBenchmarkPercentages?: number[];
failIfMajorPerformanceCaveat?: boolean;
forceRendererString?: string;
forceMobile?: boolean;
}
export type TRank = [number, string] | [undefined, undefined];
export interface IRankWithDistance {
rank: TRank;
distance: number;
}
export const getGPUTier = ({

@@ -22,0 +35,0 @@ mobileBenchmarkPercentages = [

Sorry, the diff of this file is not supported yet

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