Compare commits

...
Author SHA1 Message Date
Daniel-Graham-SL1298 64aaa11a04 v1.14.2 2019-08-19 09:45:50 -07:00
Dan Graham 0c141aa6ef Check that pruned shrinkwrap has same dependencies as unpruned shrinkwrap (#13053) 2019-08-19 09:37:27 -07:00
Daniel-Graham-SL1298 47d4bedf8c Fix shrinkwrap 2019-08-08 09:11:19 -07:00
Daniel-Graham-SL1298 27fda5c0e5 v1.14.2-rc.0 2019-08-08 09:07:56 -07:00
Daniel-Graham-SL1298 5c5c7814cc Release 1.14.1 2019-07-31 12:01:08 -07:00
Daniel-Graham-SL1298 1ac8d2d2d7 Update YouI Enginer Driver 1.2.1 2019-07-31 10:35:43 -07:00
Umut Uzgur 9c325d3d35 Release 1.14.0 2019-07-04 18:41:25 +02:00
Umut Uzgur ad9988facb Bump up the version 2019-06-24 17:17:53 +02:00
Umut Uzgur f0b39a1cdc Bump up the version 2019-06-24 17:15:52 +02:00
Umut Uzgur 0927126820 Bump up the version 2019-06-24 17:10:35 +02:00
Umut Uzgur 6d792ed4d3 Add npm shrinkwrap 2019-06-24 17:08:40 +02:00
3 changed files with 12407 additions and 4 deletions
+20
View File
@@ -0,0 +1,20 @@
const _ = require('lodash');
const { asyncify } = require('asyncbox');
const { fs, logger } = require('appium-support');
const path = require('path');
const log = new logger.getLogger('ShrinkwrapValidator');
async function main () {
const backupShrinkwrap = JSON.parse(await fs.readFile(path.resolve('npm-shrinkwrap-backup.json')));
const shrinkwrap = JSON.parse(await fs.readFile(path.resolve('npm-shrinkwrap.json')));
log.info('Checking that pruned shrinkwrap is a subset of primary shrinkwrap');
if (!_.isMatch(backupShrinkwrap, shrinkwrap)) {
log.errorAndThrow('Pruned shrinkwrap (shrinkwrap with dev dependencies removed) is not a subset of the original npm-shrinkwrap.json');
}
log.info('Shrinkwrap check passed');
}
if (require.main === module) {
asyncify(main);
}
+12381
View File
File diff suppressed because it is too large Load Diff
+6 -4
View File
@@ -11,7 +11,7 @@
"firefoxos",
"testing"
],
"version": "1.14.0-beta.1",
"version": "1.14.2",
"author": "https://github.com/appium",
"license": "Apache-2.0",
"repository": {
@@ -54,7 +54,7 @@
"appium-uiautomator2-driver": "1.x",
"appium-windows-driver": "1.x",
"appium-xcuitest-driver": "^2.116.3",
"appium-youiengine-driver": "^1.2.0",
"appium-youiengine-driver": "^1.2.1",
"argparse": "^1.0.10",
"async-lock": "^1.0.0",
"asyncbox": "2.x",
@@ -78,8 +78,10 @@
"prepublish": "gulp prepublish",
"prepublishOnly": "npm run prune-shrinkwrap && gulp fixShrinkwrap",
"postpublish": "npm run restore-shrinkwrap",
"prune-shrinkwrap": "!(test -e npm-shrinkwrap.json) || (npm ci --production --ignore-scripts && npm shrinkwrap && npm install --only=dev --no-shrinkwrap)",
"restore-shrinkwrap": "git checkout HEAD -- npm-shrinkwrap.json",
"prune-shrinkwrap": "!(test -e npm-shrinkwrap.json) || (npm ci --production --ignore-scripts && npm run backup-shrinkwrap && npm shrinkwrap && npm install --only=dev --no-shrinkwrap) && npm run check-pruned-shrinkwrap",
"restore-shrinkwrap": "mv npm-shrinkwrap-backup.json npm-shrinkwrap.json",
"backup-shrinkwrap": "mv npm-shrinkwrap.json npm-shrinkwrap-backup.json",
"check-pruned-shrinkwrap": "node check-pruned-shrinkwrap.js",
"test": "gulp once",
"e2e-test": "gulp e2e-test",
"watch": "gulp watch",