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

@pixeleye/cli-devices

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pixeleye/cli-devices - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

33

dist/index.js

@@ -1,1 +0,32 @@

import{devices as r}from"playwright-core";var t={chromium:"chrome",firefox:"firefox",webkit:"safari"},c=e=>["Desktop Edge","Desktop Edge HiDPI"].includes(e.name)?"edge":t[e.defaultBrowserType],D=Object.keys(r).reduce((e,i)=>{e[i]={...r[i],name:i};let o=c(e[i]);return e[i].icon=o,e},{});export{D as devices,c as getDeviceIcon};
// src/devices.ts
import { devices as playwrightDevices } from "playwright-core";
var icons = {
chromium: "chrome",
firefox: "firefox",
webkit: "safari"
};
var getDeviceIcon = (device) => {
if (["Desktop Edge", "Desktop Edge HiDPI"].includes(device.name)) {
return "edge";
}
const icon = icons[device.defaultBrowserType];
return icon;
};
var devices = Object.keys(
playwrightDevices
).reduce(
(acc, name) => {
acc[name] = {
...playwrightDevices[name],
name
};
const icon = getDeviceIcon(acc[name]);
acc[name].icon = icon;
return acc;
},
{}
);
export {
devices,
getDeviceIcon
};

2

package.json
{
"name": "@pixeleye/cli-devices",
"version": "0.4.0",
"version": "0.4.1",
"private": false,

@@ -5,0 +5,0 @@ "license": "AGPL-3.0",

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