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

electron-to-chromium

Package Overview
Dependencies
Maintainers
1
Versions
1814
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.2.8 to 1.3.0

chromium-versions.js

3

CHANGELOG.md

@@ -0,1 +1,4 @@

v1.3.0
* Additionally include chromium to electron mappings
v1.2.0

@@ -2,0 +5,0 @@ * versions and full-versions are now separately importable.

258

full-versions.js
module.exports = {
"1.6.4":"56.0.2924.87",
"1.3.14":"52.0.2743.82",
"1.6.3":"56.0.2924.87",
"1.6.2":"56.0.2924.87",
"1.6.1":"56.0.2924.87",
"1.6.0":"56.0.2924.87",
"1.5.1":"54.0.2840.101",
"1.5.0":"54.0.2840.101",
"1.4.15":"53.0.2785.143",
"1.4.14":"53.0.2785.143",
"1.4.13":"53.0.2785.143",
"1.4.12":"54.0.2840.51",
"1.4.11":"53.0.2785.143",
"1.3.13":"52.0.2743.82",
"1.4.10":"53.0.2785.143",
"1.4.9":"53.0.2785.143",
"1.4.8":"53.0.2785.143",
"1.3.10":"52.0.2743.82",
"1.3.9":"52.0.2743.82",
"1.4.7":"53.0.2785.143",
"1.4.6":"53.0.2785.143",
"1.4.5":"53.0.2785.113",
"1.4.4":"53.0.2785.113",
"1.4.3":"53.0.2785.113",
"1.4.2":"53.0.2785.113",
"1.3.7":"52.0.2743.82",
"1.4.1":"53.0.2785.113",
"1.4.0":"53.0.2785.113",
"1.3.6":"52.0.2743.82",
"1.3.5":"52.0.2743.82",
"1.3.4":"52.0.2743.82",
"1.3.3":"52.0.2743.82",
"1.3.2":"52.0.2743.82",
"1.3.1":"52.0.2743.82",
"1.3.0":"52.0.2743.82",
"1.2.8":"51.0.2704.106",
"1.2.7":"51.0.2704.106",
"1.2.6":"51.0.2704.106",
"1.2.5":"51.0.2704.103",
"1.2.4":"51.0.2704.103",
"1.2.3":"51.0.2704.84",
"1.2.2":"51.0.2704.84",
"1.2.1":"51.0.2704.63",
"1.2.0":"51.0.2704.63",
"1.1.3":"50.0.2661.102",
"1.1.2":"50.0.2661.102",
"1.1.1":"50.0.2661.102",
"1.1.0":"50.0.2661.102",
"1.0.2":"49.0.2623.75",
"1.0.1":"49.0.2623.75",
"1.0.0":"49.0.2623.75",
"0.37.8":"49.0.2623.75",
"0.37.7":"49.0.2623.75",
"0.37.6":"49.0.2623.75",
"0.37.5":"49.0.2623.75",
"0.37.4":"49.0.2623.75",
"0.37.3":"49.0.2623.75",
"0.36.12":"47.0.2526.110",
"0.37.1":"49.0.2623.75",
"0.37.0":"49.0.2623.75",
"0.36.11":"47.0.2526.110",
"0.36.10":"47.0.2526.110",
"0.36.9":"47.0.2526.110",
"0.36.8":"47.0.2526.110",
"0.36.7":"47.0.2526.110",
"0.36.6":"47.0.2526.110",
"0.36.5":"47.0.2526.110",
"0.36.4":"47.0.2526.73",
"0.36.3":"47.0.2526.73",
"0.35.5":"45.0.2454.85",
"0.36.2":"47.0.2526.73",
"0.36.0":"47.0.2526.73",
"0.35.4":"45.0.2454.85",
"0.35.3":"45.0.2454.85",
"0.35.2":"45.0.2454.85",
"0.34.4":"45.0.2454.85",
"0.35.1":"45.0.2454.85",
"0.34.3":"45.0.2454.85",
"0.34.2":"45.0.2454.85",
"0.34.1":"45.0.2454.85",
"0.34.0":"45.0.2454.85",
"0.33.9":"45.0.2454.85",
"0.33.8":"45.0.2454.85",
"0.33.7":"45.0.2454.85",
"0.33.6":"45.0.2454.85",
"0.33.4":"45.0.2454.85",
"0.33.3":"45.0.2454.85",
"0.33.2":"45.0.2454.85",
"0.33.1":"45.0.2454.85",
"0.33.0":"45.0.2454.85",
"0.32.3":"45.0.2454.85",
"0.32.2":"45.0.2454.85",
"0.31.2":"45.0.2454.85",
"0.31.0":"44.0.2403.125",
"0.30.4":"44.0.2403.125",
"0.29.2":"43.0.2357.65",
"0.29.1":"43.0.2357.65",
"0.28.3":"43.0.2357.65",
"0.28.2":"43.0.2357.65",
"0.28.1":"43.0.2357.65",
"0.28.0":"43.0.2357.65",
"0.27.3":"43.0.2357.65",
"0.27.2":"43.0.2357.65",
"0.27.1":"42.0.2311.107",
"0.27.0":"42.0.2311.107",
"0.26.1":"42.0.2311.107",
"0.26.0":"42.0.2311.107",
"0.25.3":"42.0.2311.107",
"0.25.2":"42.0.2311.107",
"0.25.1":"42.0.2311.107",
"0.25.0":"42.0.2311.107",
"0.24.0":"41.0.2272.76",
"0.23.0":"41.0.2272.76",
"0.22.3":"41.0.2272.76",
"0.22.2":"41.0.2272.76",
"0.22.1":"41.0.2272.76",
"0.21.3":"41.0.2272.76",
"0.21.2":"40.0.2214.91",
"0.21.1":"40.0.2214.91",
"0.21.0":"40.0.2214.91",
"0.20.8":"39.0.2171.65",
"0.20.7":"39.0.2171.65",
"0.20.6":"39.0.2171.65",
"0.20.5":"39.0.2171.65",
"0.20.4":"39.0.2171.65",
"0.20.3":"39.0.2171.65",
"0.20.2":"39.0.2171.65",
"0.20.1":"39.0.2171.65",
"0.20.0":"39.0.2171.65"
"1.6.4": "56.0.2924.87",
"1.3.14": "52.0.2743.82",
"1.6.3": "56.0.2924.87",
"1.6.2": "56.0.2924.87",
"1.6.1": "56.0.2924.87",
"1.6.0": "56.0.2924.87",
"1.5.1": "54.0.2840.101",
"1.5.0": "54.0.2840.101",
"1.4.15": "53.0.2785.143",
"1.4.14": "53.0.2785.143",
"1.4.13": "53.0.2785.143",
"1.4.12": "54.0.2840.51",
"1.4.11": "53.0.2785.143",
"1.3.13": "52.0.2743.82",
"1.4.10": "53.0.2785.143",
"1.4.9": "53.0.2785.143",
"1.4.8": "53.0.2785.143",
"1.3.10": "52.0.2743.82",
"1.3.9": "52.0.2743.82",
"1.4.7": "53.0.2785.143",
"1.4.6": "53.0.2785.143",
"1.4.5": "53.0.2785.113",
"1.4.4": "53.0.2785.113",
"1.4.3": "53.0.2785.113",
"1.4.2": "53.0.2785.113",
"1.3.7": "52.0.2743.82",
"1.4.1": "53.0.2785.113",
"1.4.0": "53.0.2785.113",
"1.3.6": "52.0.2743.82",
"1.3.5": "52.0.2743.82",
"1.3.4": "52.0.2743.82",
"1.3.3": "52.0.2743.82",
"1.3.2": "52.0.2743.82",
"1.3.1": "52.0.2743.82",
"1.3.0": "52.0.2743.82",
"1.2.8": "51.0.2704.106",
"1.2.7": "51.0.2704.106",
"1.2.6": "51.0.2704.106",
"1.2.5": "51.0.2704.103",
"1.2.4": "51.0.2704.103",
"1.2.3": "51.0.2704.84",
"1.2.2": "51.0.2704.84",
"1.2.1": "51.0.2704.63",
"1.2.0": "51.0.2704.63",
"1.1.3": "50.0.2661.102",
"1.1.2": "50.0.2661.102",
"1.1.1": "50.0.2661.102",
"1.1.0": "50.0.2661.102",
"1.0.2": "49.0.2623.75",
"1.0.1": "49.0.2623.75",
"1.0.0": "49.0.2623.75",
"0.37.8": "49.0.2623.75",
"0.37.7": "49.0.2623.75",
"0.37.6": "49.0.2623.75",
"0.37.5": "49.0.2623.75",
"0.37.4": "49.0.2623.75",
"0.37.3": "49.0.2623.75",
"0.36.12": "47.0.2526.110",
"0.37.1": "49.0.2623.75",
"0.37.0": "49.0.2623.75",
"0.36.11": "47.0.2526.110",
"0.36.10": "47.0.2526.110",
"0.36.9": "47.0.2526.110",
"0.36.8": "47.0.2526.110",
"0.36.7": "47.0.2526.110",
"0.36.6": "47.0.2526.110",
"0.36.5": "47.0.2526.110",
"0.36.4": "47.0.2526.73",
"0.36.3": "47.0.2526.73",
"0.35.5": "45.0.2454.85",
"0.36.2": "47.0.2526.73",
"0.36.0": "47.0.2526.73",
"0.35.4": "45.0.2454.85",
"0.35.3": "45.0.2454.85",
"0.35.2": "45.0.2454.85",
"0.34.4": "45.0.2454.85",
"0.35.1": "45.0.2454.85",
"0.34.3": "45.0.2454.85",
"0.34.2": "45.0.2454.85",
"0.34.1": "45.0.2454.85",
"0.34.0": "45.0.2454.85",
"0.33.9": "45.0.2454.85",
"0.33.8": "45.0.2454.85",
"0.33.7": "45.0.2454.85",
"0.33.6": "45.0.2454.85",
"0.33.4": "45.0.2454.85",
"0.33.3": "45.0.2454.85",
"0.33.2": "45.0.2454.85",
"0.33.1": "45.0.2454.85",
"0.33.0": "45.0.2454.85",
"0.32.3": "45.0.2454.85",
"0.32.2": "45.0.2454.85",
"0.31.2": "45.0.2454.85",
"0.31.0": "44.0.2403.125",
"0.30.4": "44.0.2403.125",
"0.29.2": "43.0.2357.65",
"0.29.1": "43.0.2357.65",
"0.28.3": "43.0.2357.65",
"0.28.2": "43.0.2357.65",
"0.28.1": "43.0.2357.65",
"0.28.0": "43.0.2357.65",
"0.27.3": "43.0.2357.65",
"0.27.2": "43.0.2357.65",
"0.27.1": "42.0.2311.107",
"0.27.0": "42.0.2311.107",
"0.26.1": "42.0.2311.107",
"0.26.0": "42.0.2311.107",
"0.25.3": "42.0.2311.107",
"0.25.2": "42.0.2311.107",
"0.25.1": "42.0.2311.107",
"0.25.0": "42.0.2311.107",
"0.24.0": "41.0.2272.76",
"0.23.0": "41.0.2272.76",
"0.22.3": "41.0.2272.76",
"0.22.2": "41.0.2272.76",
"0.22.1": "41.0.2272.76",
"0.21.3": "41.0.2272.76",
"0.21.2": "40.0.2214.91",
"0.21.1": "40.0.2214.91",
"0.21.0": "40.0.2214.91",
"0.20.8": "39.0.2171.65",
"0.20.7": "39.0.2171.65",
"0.20.6": "39.0.2171.65",
"0.20.5": "39.0.2171.65",
"0.20.4": "39.0.2171.65",
"0.20.3": "39.0.2171.65",
"0.20.2": "39.0.2171.65",
"0.20.1": "39.0.2171.65",
"0.20.0": "39.0.2171.65"
};
var versions = require('./versions');
var fullVersions = require('./full-versions');
var chromiumVersions = require('./chromium-versions');
var fullChromeVersions = require('./full-chrome-versions');

@@ -7,8 +9,13 @@ var electronToChromium = function (query) {

return number.split('.').length > 2 ? fullVersions[number] : versions[number] || undefined;
}
};
var chromiumToElectron = function (query) {
var number = getQueryString(query);
return number.split('.').length > 2 ? fullChromeVersions[number] : chromeVersions[number] || undefined;
};
var electronToBrowserList = function (query) {
var number = getQueryString(query);
return versions[number] ? "Chrome >= " + versions[number] : undefined;
}
};

@@ -20,3 +27,3 @@ var getQueryString = function (query) {

return number;
}
};

@@ -26,4 +33,7 @@ module.exports = {

fullVersions: fullVersions,
chromiumVersions: chromiumVersions,
fullChromiumVersions: fullChromiumVersions,
electronToChromium: electronToChromium,
electronToBrowserList: electronToBrowserList
electronToBrowserList: electronToBrowserList,
chromiumToElectron: chromiumToElectron
};
{
"name": "electron-to-chromium",
"version": "1.2.8",
"version": "1.3.0",
"description": "Provides a list of electron-to-chromium version mappings",
"main": "index.js",
"files": [
"versions.js",
"full-versions.js",
"chromium-versions.js",
"full-chromium-versions.js"
],
"scripts": {

@@ -7,0 +13,0 @@ "build": "node build.js",

@@ -20,3 +20,3 @@ # Electron-to-Chromium

#### versions
An object with all _major_ Electron versions as keys and their respective major Chromium version as string value.
An object of key-value pairs with a _major_ Electron version as the key, and the respective major Chromium version as the value.

@@ -30,3 +30,3 @@ ```js

#### fullVersions
An object with all Electron versions as keys and their respective Chromium version as value.
An object of key-value pairs with a Electron version as the key, and the respective full Chromium version as the value.

@@ -39,2 +39,20 @@ ```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.
```js
var versions = e2c.chromiumVersions;
console.log(versions['54']);
// returns "1.4"
```
#### 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.
```js
var versions = e2c.fullChromiumVersions;
console.log(versions['54.0.2840.101']);
// returns ["1.5.1", "1.5.0"]
```
#### electronToChromium(query)

@@ -67,2 +85,30 @@ Arguments:

#### chromiumToElectron(query)
Arguments:
* Query: string or number, required. A major or full chromium version.
Returns a string with the corresponding Electron version for a given Chromium query.
If you provide it with a major Chromium version, it will return a major Electron version:
```js
var electronVersion = e2c.chromiumToElectron('54');
// electronVersion is "1.4"
```
If you provide it with a full Chrome version, it will return an array of full Electron versions.
```js
var electronVersions = e2c.chromiumToElectron('56.0.2924.87');
// electronVersions is ["1.6.3", "1.6.2", "1.6.1", "1.6.0"]
```
If a query does not match an Electron version, it will return `undefined`.
```js
var electronVersion = e2c.chromiumToElectron('10');
// chromeVersion is undefined
```
#### electronToBrowserList(query) **DEPRECATED**

@@ -90,4 +136,4 @@ Arguments:

### importing just versions or fullVersions
Both the versions and the fullVersions list can be imported on their own, if file-size is a concern.
### importing just versions, fullVersions, chromiumVersions and fullChromiumVersions
all list can be imported on their own, if file-size is a concern.

@@ -105,4 +151,14 @@ ### versions

```
### chromiumVersions
```js
var chromiumVersions = require('electron-to-chromium/chromium-versions');
```
### fullChromiumVersions
```js
var fullChromiumVersions = require('electron-to-chromium/full-chromium-versions');
```
## Updating

@@ -109,0 +165,0 @@ This package will be updated with each new Electron release.

module.exports = {
"1.6":"56",
"1.3":"52",
"1.5":"54",
"1.4":"53",
"1.2":"51",
"1.1":"50",
"1.0":"49",
"0.37":"49",
"0.36":"47",
"0.35":"45",
"0.34":"45",
"0.33":"45",
"0.32":"45",
"0.31":"44",
"0.30":"44",
"0.29":"43",
"0.28":"43",
"0.27":"42",
"0.26":"42",
"0.25":"42",
"0.24":"41",
"0.23":"41",
"0.22":"41",
"0.21":"40",
"0.20":"39"
"1.6": "56",
"1.3": "52",
"1.5": "54",
"1.4": "53",
"1.2": "51",
"1.1": "50",
"1.0": "49",
"0.37": "49",
"0.36": "47",
"0.35": "45",
"0.34": "45",
"0.33": "45",
"0.32": "45",
"0.31": "44",
"0.30": "44",
"0.29": "43",
"0.28": "43",
"0.27": "42",
"0.26": "42",
"0.25": "42",
"0.24": "41",
"0.23": "41",
"0.22": "41",
"0.21": "40",
"0.20": "39"
};
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