Socket
Socket
Sign inDemoInstall

electron-to-chromium

Package Overview
Dependencies
Maintainers
1
Versions
1772
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-to-chromium - npm Package Compare versions

Comparing version 1.3.8 to 1.3.9

21

full-chromium-versions.js
module.exports = {
"56.0.2924.87": [
"1.6.8",
"1.6.7",
"1.6.6",
"1.6.5",
"1.6.4",
"1.6.3",
"1.6.2",
"1.6.1",
"1.6.0"
],
"52.0.2743.82": [

@@ -17,12 +28,2 @@ "1.3.15",

],
"56.0.2924.87": [
"1.6.7",
"1.6.6",
"1.6.5",
"1.6.4",
"1.6.3",
"1.6.2",
"1.6.1",
"1.6.0"
],
"53.0.2785.143": [

@@ -29,0 +30,0 @@ "1.4.16",

module.exports = {
"1.6.8": "56.0.2924.87",
"1.3.15": "52.0.2743.82",

@@ -3,0 +4,0 @@ "1.6.7": "56.0.2924.87",

{
"name": "electron-to-chromium",
"version": "1.3.8",
"version": "1.3.9",
"description": "Provides a list of electron-to-chromium version mappings",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -5,3 +5,3 @@ # Electron-to-Chromium [![npm](https://img.shields.io/npm/v/electron-to-chromium.svg)](https://www.npmjs.com/package/electron-to-chromium) [![travis](https://img.shields.io/travis/Kilian/electron-to-chromium/master.svg)](https://travis-ci.org/Kilian/electron-to-chromium) [![npm-downloads](https://img.shields.io/npm/dm/electron-to-chromium.svg)](https://www.npmjs.com/package/electron-to-chromium) [![codecov](https://codecov.io/gh/Kilian/electron-to-chromium/branch/master/graph/badge.svg)](https://codecov.io/gh/Kilian/electron-to-chromium)

This package is used in [Browserslist](https://github.com/ai/browserslist), so you can use e.g. `electron >= 1.4` in [Autoprefixer](https://github.com/postcss/autoprefixer), [Stylelint](https://github.com/stylelint/stylelint), [babel-present-env](https://github.com/babel/babel-preset-env) and [eslint-plugin-compat](https://github.com/amilajack/eslint-plugin-compat).
This package is used in [Browserslist](https://github.com/ai/browserslist), so you can use e.g. `electron >= 1.4` in [Autoprefixer](https://github.com/postcss/autoprefixer), [Stylelint](https://github.com/stylelint/stylelint), [babel-preset-env](https://github.com/babel/babel-preset-env) and [eslint-plugin-compat](https://github.com/amilajack/eslint-plugin-compat).

@@ -12,3 +12,3 @@ ## Install

## Usage
to include electron-to-chromium, require it:
To include Electron-to-Chromium, require it:

@@ -22,4 +22,4 @@ ```js

#### versions
An object of key-value pairs with a _major_ Electron version as the key, and the respective major Chromium version as the value.
#### `versions`
An object of key-value pairs with a _major_ Electron version as the key, and the corresponding major Chromium version as the value.

@@ -32,4 +32,4 @@ ```js

#### fullVersions
An object of key-value pairs with a Electron version as the key, and the respective full Chromium version as the value.
#### `fullVersions`
An object of key-value pairs with a Electron version as the key, and the corresponding full Chromium version as the value.

@@ -42,4 +42,4 @@ ```js

#### chromiumVersions
An object of key-value pairs with a _major_ Chromium version as the key, and the respective major Electron version as the value.
#### `chromiumVersions`
An object of key-value pairs with a _major_ Chromium version as the key, and the corresponding major Electron version as the value.

@@ -52,4 +52,4 @@ ```js

#### fullChromiumVersions
An object of key-value pairs with a Chromium version as the key, and an array of the respective major Electron versions as the value.
#### `fullChromiumVersions`
An object of key-value pairs with a Chromium version as the key, and an array of the corresponding major Electron versions as the value.

@@ -61,6 +61,7 @@ ```js

```
### Functions
#### electronToChromium(query)
#### `electronToChromium(query)`
Arguments:
* Query: string or number, required. A major or full electron version.
* Query: string or number, required. A major or full Electron version.

@@ -90,5 +91,5 @@ A function that returns the corresponding Chromium version for a given Electron function. Returns a string.

#### chromiumToElectron(query)
#### `chromiumToElectron(query)`
Arguments:
* Query: string or number, required. A major or full chromium version.
* Query: string or number, required. A major or full Chromium version.

@@ -111,3 +112,2 @@ Returns a string with the corresponding Electron version for a given Chromium query.

If a query does not match an Electron version, it will return `undefined`.

@@ -120,3 +120,3 @@

#### electronToBrowserList(query) **DEPRECATED**
#### `electronToBrowserList(query)` **DEPRECATED**
Arguments:

@@ -127,5 +127,5 @@ * Query: string or number, required. A major Electron version.

A function that returns a [Browserlist](https://github.com/ai/browserslist) query that matches the given major Electron version. Returns a string.
A function that returns a [Browserslist](https://github.com/ai/browserslist) query that matches the given major Electron version. Returns a string.
If you provide it with a major Electron version, it will return a Browserlist query string that matches the chromium capabilities:
If you provide it with a major Electron version, it will return a Browserlist query string that matches the Chromium capabilities:

@@ -144,6 +144,6 @@ ```js

### importing just versions, fullVersions, chromiumVersions and fullChromiumVersions
all list can be imported on their own, if file-size is a concern.
### Importing just versions, fullVersions, chromiumVersions and fullChromiumVersions
All lists can be imported on their own, if file size is a concern.
### versions
#### `versions`

@@ -154,3 +154,3 @@ ```js

### fullVersions
#### `fullVersions`

@@ -160,4 +160,5 @@ ```js

```
### chromiumVersions
#### `chromiumVersions`
```js

@@ -167,3 +168,3 @@ var chromiumVersions = require('electron-to-chromium/chromium-versions');

### fullChromiumVersions
#### `fullChromiumVersions`

@@ -179,2 +180,2 @@ ```js

to verify correct behaviour, run `npm test`;
To verify correct behaviour, run `npm test`.
module.exports = {
"1.6": "56",
"1.3": "52",
"1.6": "56",
"1.4": "53",

@@ -5,0 +5,0 @@ "1.5": "54",

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