Initial commit

This commit is contained in:
Patrick Marsceill
2017-03-09 13:16:08 -05:00
commit b7b0d0d7bf
4147 changed files with 401224 additions and 0 deletions

1
node_modules/electron-to-chromium/.npmignore generated vendored Normal file
View File

@@ -0,0 +1 @@
node_modules

11
node_modules/electron-to-chromium/CHANGELOG.md generated vendored Normal file
View File

@@ -0,0 +1,11 @@
v1.2.0
* versions and full-versions are now separately importable.
v1.1.0
* Both electronToChromium and electronToBrowserList now can accept strings as well as numbers.
v1.0.1
Update documentation
v1.0.0
Inititial release

101
node_modules/electron-to-chromium/README.md generated vendored Normal file
View File

@@ -0,0 +1,101 @@
# Electron-to-Chromium
This repository provides a mapping of Electron versions to the Chromium version that it uses.
## Install
Install using `npm install electron-to-chromium`.
## Usage
to include electron-to-chromium, require it:
```js
var e2c = require('electron-to-chromium');
```
### Properties
The Electron-to-Chromium object has 4 properties to use:
#### versions
An object with all _major_ Electron versions as keys and their respective major Chromium version as string value.
```js
var versions = e2c.versions;
console.log(versions['1.4']);
// returns "53"
```
#### fullVersions
An object with all Electron versions as keys and their respective Chromium version as value.
```js
var versions = e2c.fullVersions;
console.log(versions['1.4.11']);
// returns "53.0.2785.143"
```
#### electronToChromium(query)
Arguments:
* Query: string or number, required. A major or full electron version.
A function that returns the corresponding Chromium version for a given Electron function. Returns a string.
If you provide it with a major Electron version, it will return a major Chromium version:
```js
var chromeVersion = e2c.electronToChromium('1.4');
// chromeVersion is "53"
```
If you provide it with a full Electron version, it will return the full Chromium version.
```js
var chromeVersion = e2c.electronToChromium('1.4.11');
// chromeVersion is "53.0.2785.143"
```
If a query does not match a Chromium version, it will return `undefined`.
```js
var chromeVersion = e2c.electronToChromium('9000');
// chromeVersion is undefined
```
#### electronToBrowserList(query)
Arguments:
* 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.
If you provide it with a major Electron version, it will return a Browserlist query string that matches the chromium capabilities:
```js
var query = e2c.electronToBrowserList('1.4');
// query is "Chrome >= 53"
```
If a query does not match a Chromium version, it will return `undefined`.
```js
var query = e2c.electronToBrowserList('9000');
// query is undefined
```
### importing just versions or fullVersions
Both the versions and the fullVersions list can be imported on their own, if file-size is a concern.
### versions
```js
var versions = require('electron-to-chromium/versions');
```
### fullVersions
```js
var fullVersions = require('electron-to-chromium/full-versions');
```
## Updating
This package will be updated with each new Electron release.
To update the list, run `npm run build.js`. Requires internet access as it downloads from the canonical list of Electron versions.

27
node_modules/electron-to-chromium/automated-update.js generated vendored Normal file
View File

@@ -0,0 +1,27 @@
require('shelljs/global');
if (!which('git')) {
echo('Sorry, this script requires git');
exit(1);
}
if (!which('npm')) {
echo('Sorry, this script requires npm');
exit(1);
}
exec('npm run build', {silent:true});
exec('git status', {silent:true}, function(code, stdout, stderr) {
const indexHasUpdated = stdout.split('\n')[2] !== 'nothing to commit, working directory clean';
if(indexHasUpdated) {
exec('git add versions.js full-versions.js', {silent:true});
exec('git commit -m "generate new version"', {silent:true});
exec('npm version patch', {silent:true});
exec('git push origin master', {silent:true});
exec('git push --tags', {silent:true});
exec('npm publish', {silent:true});
echo('new version released.');
} else {
echo('nothing to do.');
exit(0);
}
});

39
node_modules/electron-to-chromium/build.js generated vendored Normal file
View File

@@ -0,0 +1,39 @@
const https = require('https');
const request = require('request');
const fs = require('fs');
request('https://atom.io/download/electron/index.json', function(error, response, body) {
if (!error && response.statusCode == 200) {
const allElectronVersions = JSON.parse(body);
const versions = {};
const fullVersions = {};
const makePrintable = mapping => JSON.stringify(mapping)
.replace(/,/g, ",\n\t")
.replace(/{/g, "{\n\t")
.replace(/}/g, "\n}");
allElectronVersions.forEach(electron => {
// simple list
const simpleVersion = electron.version.split(".")[0] + "." + electron.version.split(".")[1];
versions[simpleVersion] = electron.chrome.split(".")[0];
// explicit list
fullVersions[electron.version] = electron.chrome;
});
fs.writeFile("versions.js", `module.exports = ${makePrintable(versions)};`, function (error) {
if (error) {
throw error;
}
});
fs.writeFile("full-versions.js", `module.exports = ${makePrintable(fullVersions)};`, function (error) {
if (error) {
throw error;
}
});
} else {
throw error;
}
})

127
node_modules/electron-to-chromium/full-versions.js generated vendored Normal file
View File

@@ -0,0 +1,127 @@
module.exports = {
"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"
};

26
node_modules/electron-to-chromium/index.js generated vendored Normal file
View File

@@ -0,0 +1,26 @@
var versions = require('./versions');
var fullVersions = require('./versions');
var electronToChromium = function (query) {
var number = getQueryString(query);
return number.split('.').length > 2 ? fullVersions[number] : versions[number] || undefined;
}
var electronToBrowserList = function (query) {
var number = getQueryString(query);
return versions[number] ? "Chrome >= " + versions[number] : undefined;
}
var getQueryString = function (query) {
var number = query;
if (query === 1) { number = "1.0" }
if (typeof query === 'number') { number += ''; }
return number;
}
module.exports = {
versions: versions,
fullVersions: fullVersions,
electronToChromium: electronToChromium,
electronToBrowserList: electronToBrowserList
};

80
node_modules/electron-to-chromium/package.json generated vendored Normal file
View File

@@ -0,0 +1,80 @@
{
"_args": [
[
"electron-to-chromium@^1.2.3",
"/Users/pmarsceill/_projects/just-the-docs/node_modules/browserslist"
]
],
"_from": "electron-to-chromium@>=1.2.3 <2.0.0",
"_id": "electron-to-chromium@1.2.3",
"_inCache": true,
"_installable": true,
"_location": "/electron-to-chromium",
"_nodeVersion": "6.9.4",
"_npmOperationalInternal": {
"host": "packages-18-east.internal.npmjs.com",
"tmp": "tmp/electron-to-chromium-1.2.3.tgz_1487754135693_0.4941995656117797"
},
"_npmUser": {
"email": "kilian@kilianvalkhof.com",
"name": "kilianvalkhof"
},
"_npmVersion": "4.1.1",
"_phantomChildren": {},
"_requested": {
"name": "electron-to-chromium",
"raw": "electron-to-chromium@^1.2.3",
"rawSpec": "^1.2.3",
"scope": null,
"spec": ">=1.2.3 <2.0.0",
"type": "range"
},
"_requiredBy": [
"/browserslist"
],
"_resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.2.3.tgz",
"_shasum": "4b4d04d237c301f72e2d15c2137b2b79f9f5ab76",
"_shrinkwrap": null,
"_spec": "electron-to-chromium@^1.2.3",
"_where": "/Users/pmarsceill/_projects/just-the-docs/node_modules/browserslist",
"author": {
"name": "Kilian Valkhof"
},
"dependencies": {},
"description": "Provides a list of electron-to-chromium version mappings",
"devDependencies": {
"request": "^2.79.0",
"shelljs": "^0.7.6"
},
"directories": {},
"dist": {
"shasum": "4b4d04d237c301f72e2d15c2137b2b79f9f5ab76",
"tarball": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.2.3.tgz"
},
"gitHead": "7a0ba8e6e886a209167c6195dc86e2222a05c722",
"keywords": [
"browserlist",
"chrome",
"electron"
],
"license": "ISC",
"main": "index.js",
"maintainers": [
{
"name": "kilianvalkhof",
"email": "kilian@kilianvalkhof.com"
}
],
"name": "electron-to-chromium",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "https://github.com/kilian/electron-to-chromium/"
},
"scripts": {
"build": "node build.js",
"update": "node automated-update.js"
},
"version": "1.2.3"
}

View File

@@ -0,0 +1,23 @@
var child = require('child_process')
, fs = require('fs');
var childProcess = child.exec("npm publish", {"silent":true,"cwd":"/opt/electron-to-chromium","env":{"npm_config_cache_lock_stale":"60000","npm_config_legacy_bundling":"","npm_config_sign_git_tag":"","npm_config_user_agent":"npm/4.1.1 node/v6.9.4 linux x64","npm_config_always_auth":"","npm_config_bin_links":"true","npm_config_key":"","npm_config_description":"true","npm_config_fetch_retries":"2","npm_config_heading":"npm","npm_config_if_present":"","npm_config_init_version":"1.0.0","npm_config_user":"","npm_node_execpath":"/usr/bin/nodejs","HOME":"/root","npm_config_force":"","npm_config_only":"","npm_config_cache_min":"10","npm_config_init_license":"ISC","npm_package_devDependencies_shelljs":"^0.7.6","npm_config_editor":"vi","npm_config_rollback":"true","npm_config_tag_version_prefix":"v","npm_config_cache_max":"Infinity","npm_config_userconfig":"/root/.npmrc","npm_package_keywords_0":"electron","npm_config_engine_strict":"","npm_config_init_author_name":"","npm_config_init_author_url":"","npm_config_tmp":"/tmp","npm_package_description":"Provides a list of electron-to-chromium version mappings","npm_package_keywords_1":"chrome","npm_config_depth":"Infinity","npm_config_save_dev":"","npm_config_usage":"","npm_package_keywords_2":"browserlist","npm_package_readmeFilename":"README.md","npm_config_cafile":"","npm_config_metrics_registry":"https://registry.npmjs.org/","npm_config_progress":"true","npm_config_https_proxy":"","npm_config_onload_script":"","TMPDIR":"/opt/electron-to-chromium","LOGNAME":"root","npm_config_rebuild_bundle":"true","npm_config_save_bundle":"","npm_config_shell":"/bin/sh","npm_config_dry_run":"","npm_config_prefix":"/usr","npm_config_scope":"","npm_config_browser":"","npm_config_cache_lock_wait":"10000","npm_config_registry":"https://registry.npmjs.org/","npm_config_save_optional":"","npm_config_searchopts":"","npm_config_versions":"","npm_config_cache":"/root/.npm","npm_config_proxy":"","npm_config_send_metrics":"","npm_config_global_style":"","npm_config_ignore_scripts":"","npm_config_version":"","npm_config_local_address":"","npm_config_viewer":"man","PATH":"/usr/lib/node_modules/npm/bin/node-gyp-bin:/opt/electron-to-chromium/node_modules/.bin:/usr/bin:/bin","npm_package_name":"electron-to-chromium","npm_package_repository_type":"git","NODE":"/usr/bin/nodejs","npm_config_color":"true","npm_config_fetch_retry_mintimeout":"10000","npm_config_maxsockets":"50","LANG":"en_US.UTF-8","npm_config_umask":"0022","npm_package_main":"index.js","npm_package_gitHead":"20fed92a6206cf0204fe2985325c07ae84eb8630","npm_config_fetch_retry_maxtimeout":"60000","npm_config_loglevel":"warn","npm_config_message":"%s","npm_lifecycle_script":"node automated-update.js","npm_package_scripts_update":"node automated-update.js","npm_config_ca":"","npm_config_cert":"","npm_config_global":"","npm_config_link":"","SHELL":"/bin/sh","npm_package_version":"1.2.2","npm_package_repository_url":"https://github.com/kilian/electron-to-chromium/","npm_config_access":"","npm_config_also":"","npm_config_save":"","npm_config_unicode":"true","npm_lifecycle_event":"update","npm_package_scripts_build":"node build.js","npm_config_argv":"{\"remain\":[],\"cooked\":[\"run\",\"update\"],\"original\":[\"run\",\"update\"]}","npm_config_long":"","npm_config_production":"","npm_config_unsafe_perm":"","npm_package_devDependencies_request":"^2.79.0","npm_config_node_version":"6.9.4","npm_config_tag":"latest","npm_config_git_tag_version":"true","npm_config_shrinkwrap":"true","npm_package_license":"ISC","npm_config_fetch_retry_factor":"10","npm_config_proprietary_attribs":"true","npm_config_save_exact":"","npm_config_strict_ssl":"true","npm_config_dev":"","npm_config_globalconfig":"/usr/etc/npmrc","npm_config_init_module":"/root/.npm-init.js","npm_config_parseable":"","PWD":"/opt/electron-to-chromium","npm_config_globalignorefile":"/usr/etc/npmignore","npm_execpath":"/usr/lib/node_modules/npm/bin/npm-cli.js","npm_package_author_name":"Kilian Valkhof","npm_config_cache_lock_retries":"10","npm_config_searchstaleness":"900","npm_config_save_prefix":"^","npm_config_scripts_prepend_node_path":"warn-only","npm_config_group":"","npm_config_init_author_email":"","npm_config_searchexclude":"","npm_config_git":"git","npm_config_optional":"true","npm_config_json":""},"maxBuffer":20971520,"async":false}, function(err) {
var fname = "/opt/electron-to-chromium/shelljs_790b40e82821a1fe048f";
if (!err) {
fs.writeFileSync(fname, "0");
} else if (err.code === undefined) {
fs.writeFileSync(fname, "1");
} else {
fs.writeFileSync(fname, err.code.toString());
}
});
var stdoutStream = fs.createWriteStream("/opt/electron-to-chromium/shelljs_24e5101ebfb1f35ef87c");
var stderrStream = fs.createWriteStream("/opt/electron-to-chromium/shelljs_41f782ab98bf16ac92d6");
childProcess.stdout.pipe(stdoutStream, {end: false});
childProcess.stderr.pipe(stderrStream, {end: false});
childProcess.stdout.pipe(process.stdout);
childProcess.stderr.pipe(process.stderr);
var stdoutEnded = false, stderrEnded = false;
function tryClosingStdout(){ if(stdoutEnded){ stdoutStream.end(); } }
function tryClosingStderr(){ if(stderrEnded){ stderrStream.end(); } }
childProcess.stdout.on('end', function(){ stdoutEnded = true; tryClosingStdout(); });
childProcess.stderr.on('end', function(){ stderrEnded = true; tryClosingStderr(); });

View File

View File

27
node_modules/electron-to-chromium/versions.js generated vendored Normal file
View File

@@ -0,0 +1,27 @@
module.exports = {
"1.6":"56",
"1.5":"54",
"1.4":"53",
"1.3":"52",
"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"
};