Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update (most) dependencies + (some) samples #583

Merged
merged 14 commits into from
Mar 28, 2018
2 changes: 1 addition & 1 deletion appengine/analytics/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function trackEvent (category, action, label, value, cb) {
}

app.get('/', (req, res, next) => {
// Event value must be numeric.
// Event value must be numeric.
trackEvent('Example category', 'Example action', 'Example label', '100')
.then(() => {
res.status(200).send('Event tracked.').end();
Expand Down
6 changes: 3 additions & 3 deletions appengine/analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"e2e-test": "repo-tools test deploy"
},
"dependencies": {
"express": "4.16.0",
"got": "7.1.0"
"express": "4.16.2",
"got": "8.2.0"
},
"devDependencies": {
"@google-cloud/nodejs-repo-tools": "2.0.4"
"@google-cloud/nodejs-repo-tools": "2.2.1"
},
"cloud-repo-tools": {
"test": {
Expand Down
31 changes: 16 additions & 15 deletions appengine/cloudsql/createTables.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,21 @@ prompt.get(FIELDS, (err, config) => {
const knex = Knex({ client: 'mysql', connection: config });

// Create the "visits" table
knex.schema.createTable('visits', (table) => {
table.increments();
table.timestamp('timestamp');
table.string('userIp');
})
.then(() => {
console.log(`Successfully created 'visits' table.`);
return knex.destroy();
})
.catch((err) => {
console.error(`Failed to create 'visits' table:`, err);
if (knex) {
knex.destroy();
}
});
knex.schema.createTable('visits',
(table) => {
table.increments();
table.timestamp('timestamp');
table.string('userIp');
})
.then(() => {
console.log(`Successfully created 'visits' table.`);
return knex.destroy();
})
.catch((err) => {
console.error(`Failed to create 'visits' table:`, err);
if (knex) {
knex.destroy();
}
});
});
// [END createTables]
20 changes: 10 additions & 10 deletions appengine/cloudsql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,26 @@
},
"scripts": {
"deploy": "gcloud app deploy",
"lint": "samples lint",
"lint": "repo-tools lint",
"pretest": "npm run lint",
"unit-test": "ava --verbose test/*.test.js",
"start-proxy": "! pgrep cloud_sql_proxy > /dev/null && cloud_sql_proxy -instances=$INSTANCE_CONNECTION_NAME=tcp:$SQL_PORT &",
"system-test": "samples test app",
"system-test": "repo-tools test app -- server.js",
"system-test-proxy": "npm run start-proxy; npm run system-test",
"all-test": "npm run unit-test && npm run system-test",
"test": "samples test run --cmd npm -- run all-test",
"e2e-test": "samples test deploy"
"test": "repo-tools test run --cmd npm -- run all-test",
"e2e-test": "repo-tools test deploy"
},
"dependencies": {
"async": "2.5.0",
"express": "4.15.4",
"knex": "0.13.0",
"mysql": "2.14.1",
"async": "2.6.0",
"express": "4.16.3",
"knex": "0.14.4",
"mysql": "2.15.0",
"prompt": "1.0.0"
},
"devDependencies": {
"@google-cloud/nodejs-repo-tools": "1.4.17",
"ava": "0.22.0"
"@google-cloud/nodejs-repo-tools": "2.2.5",
"ava": "0.25.0"
},
"cloud-repo-tools": {
"requiresKeyFile": true,
Expand Down
20 changes: 10 additions & 10 deletions appengine/cloudsql_postgresql/createTables.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ prompt.get(FIELDS, (err, config) => {
table.timestamp('timestamp');
table.string('userIp');
})
.then(() => {
console.log(`Successfully created 'visits' table.`);
return knex.destroy();
})
.catch((err) => {
console.error(`Failed to create 'visits' table:`, err);
if (knex) {
knex.destroy();
}
});
.then(() => {
console.log(`Successfully created 'visits' table.`);
return knex.destroy();
})
.catch((err) => {
console.error(`Failed to create 'visits' table:`, err);
if (knex) {
knex.destroy();
}
});
});
// [END createTables]
20 changes: 10 additions & 10 deletions appengine/cloudsql_postgresql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,26 @@
},
"scripts": {
"deploy": "gcloud app deploy",
"lint": "samples lint",
"lint": "repo-tools lint",
"pretest": "npm run lint",
"unit-test": "ava --verbose test/*.test.js",
"start-proxy": "! pgrep cloud_sql_proxy > /dev/null && cloud_sql_proxy -instances=$INSTANCE_CONNECTION_NAME=tcp:$SQL_PORT &",
"system-test": "samples test app",
"system-test": "repo-tools test app -- server.js",
"system-test-proxy": "npm run start-proxy; npm run system-test",
"all-test": "npm run unit-test && npm run system-test",
"test": "samples test run --cmd npm -- run all-test",
"e2e-test": "samples test deploy"
"test": "repo-tools test run --cmd npm -- run all-test",
"e2e-test": "repo-tools test deploy"
},
"dependencies": {
"async": "2.5.0",
"express": "4.15.4",
"knex": "0.13.0",
"pg": "7.3.0",
"async": "2.6.0",
"express": "4.16.2",
"knex": "0.14.4",
"pg": "7.4.1",
"prompt": "1.0.0"
},
"devDependencies": {
"@google-cloud/nodejs-repo-tools": "1.4.17",
"ava": "0.22.0"
"@google-cloud/nodejs-repo-tools": "2.2.1",
"ava": "0.25.0"
},
"cloud-repo-tools": {
"requiresKeyFile": true,
Expand Down
2 changes: 1 addition & 1 deletion appengine/cloudtasks/createTask.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function createTask (project, location, queue, options) {
}

const request = {
parent: `projects/${project}/locations/${location}/queues/${queue}`, // TODO: Update placeholder value.
parent: `projects/${project}/locations/${location}/queues/${queue}`, // TODO: Update placeholder value.
resource: {
task: task
},
Expand Down
10 changes: 5 additions & 5 deletions appengine/cloudtasks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
"dependencies": {
"body-parser": "1.18.2",
"express": "4.16.2",
"googleapis": "22.2.0",
"yargs": "10.0.3"
"googleapis": "27.0.0",
"yargs": "11.0.0"
},
"devDependencies": {
"@google-cloud/nodejs-repo-tools": "2.1.1",
"proxyquire": "1.8.0",
"sinon": "4.0.2"
"@google-cloud/nodejs-repo-tools": "2.2.1",
"proxyquire": "2.0.0",
"sinon": "4.4.2"
},
"cloud-repo-tools": {
"requiresKeyFile": true,
Expand Down
12 changes: 6 additions & 6 deletions appengine/datastore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@
"scripts": {
"deploy": "gcloud app deploy",
"start": "node app.js",
"lint": "samples lint",
"lint": "repo-tools lint",
"pretest": "npm run lint",
"system-test": "samples test app",
"system-test": "repo-tools test app",
"test": "npm run system-test",
"e2e-test": "samples test deploy"
"e2e-test": "repo-tools test deploy"
},
"dependencies": {
"@google-cloud/datastore": "1.1.0",
"express": "4.15.4"
"@google-cloud/datastore": "1.3.4",
"express": "4.16.2"
},
"devDependencies": {
"@google-cloud/nodejs-repo-tools": "1.4.17"
"@google-cloud/nodejs-repo-tools": "2.2.1"
},
"cloud-repo-tools": {
"test": {
Expand Down
16 changes: 8 additions & 8 deletions appengine/endpoints/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@
"scripts": {
"deploy": "gcloud app deploy",
"start": "node app.js",
"lint": "samples lint",
"lint": "repo-tools lint",
"pretest": "npm run lint",
"unit-test": "ava --verbose test/*.test.js",
"system-test": "samples test app",
"system-test": "repo-tools test app",
"all-test": "npm run unit-test && npm run system-test",
"test": "samples test run --cmd npm -- run all-test",
"e2e-test": "samples test deploy"
"test": "repo-tools test run --cmd npm -- run all-test",
"e2e-test": "repo-tools test deploy"
},
"dependencies": {
"body-parser": "1.17.2",
"express": "4.15.4",
"body-parser": "1.18.2",
"express": "4.16.2",
"safe-buffer": "5.1.1"
},
"devDependencies": {
"@google-cloud/nodejs-repo-tools": "1.4.17",
"ava": "0.21.0"
"@google-cloud/nodejs-repo-tools": "2.2.1",
"ava": "0.25.0"
},
"cloud-repo-tools": {
"test": {
Expand Down
18 changes: 9 additions & 9 deletions appengine/errorreporting/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@
"scripts": {
"deploy": "gcloud app deploy",
"start": "node app.js",
"lint": "samples lint",
"lint": "repo-tools lint",
"pretest": "npm run lint",
"unit-test": "ava --verbose test/*.test.js",
"system-test": "samples test app",
"system-test": "repo-tools test app",
"test": "npm run unit-test && npm run system-test",
"e2e-test": "samples test deploy"
"e2e-test": "repo-tools test deploy"
},
"dependencies": {
"@google-cloud/error-reporting": "0.2.1",
"express": "4.15.4"
"@google-cloud/error-reporting": "0.2.3",
"express": "4.16.2"
},
"devDependencies": {
"@google-cloud/nodejs-repo-tools": "1.4.17",
"ava": "0.21.0",
"proxyquire": "1.8.0",
"sinon": "3.2.0"
"@google-cloud/nodejs-repo-tools": "2.2.1",
"ava": "0.25.0",
"proxyquire": "2.0.0",
"sinon": "4.4.2"
},
"cloud-repo-tools": {
"test": {
Expand Down
18 changes: 9 additions & 9 deletions appengine/grunt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@
"postinstall": "grunt build"
},
"dependencies": {
"body-parser": "1.15.2",
"body-parser": "1.18.2",
"cookie-parser": "1.4.3",
"debug": "2.6.0",
"express": "4.14.0",
"grunt": "1.0.1",
"debug": "3.1.0",
"express": "4.16.2",
"grunt": "1.0.2",
"grunt-cli": "1.2.0",
"grunt-contrib-clean": "1.0.0",
"grunt-contrib-cssmin": "2.0.0",
"grunt-contrib-clean": "1.1.0",
"grunt-contrib-cssmin": "2.2.1",
"grunt-contrib-jshint": "1.1.0",
"grunt-contrib-watch": "1.0.0",
"morgan": "1.8.0",
"pug": "2.0.0-beta6",
"serve-favicon": "2.3.2"
"morgan": "1.9.0",
"pug": "2.0.0",
"serve-favicon": "2.4.5"
}
}
10 changes: 5 additions & 5 deletions appengine/hello-world/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@
"scripts": {
"deploy": "gcloud app deploy",
"start": "node app.js",
"lint": "samples lint",
"lint": "repo-tools lint",
"pretest": "npm run lint",
"system-test": "samples test app",
"system-test": "repo-tools test app",
"test": "npm run system-test",
"e2e-test": "samples test deploy"
"e2e-test": "repo-tools test deploy"
},
"dependencies": {
"express": "4.15.4"
"express": "4.16.2"
},
"devDependencies": {
"@google-cloud/nodejs-repo-tools": "1.4.17"
"@google-cloud/nodejs-repo-tools": "2.2.1"
},
"cloud-repo-tools": {
"test": {
Expand Down
2 changes: 2 additions & 0 deletions appengine/loopback/common/models/message.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

module.exports = function(Message) {
Message.greet = function(msg, cb) {
process.nextTick(function() {
Expand Down
25 changes: 13 additions & 12 deletions appengine/loopback/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,23 @@
"scripts": {
"lint": "eslint .",
"start": "node .",
"test": "repo-tools test app -- .",
"posttest": "npm run lint && nsp check"
},
"dependencies": {
"compression": "1.0.3",
"cors": "2.5.2",
"helmet": "1.3.0",
"loopback-boot": "2.6.5",
"loopback-component-explorer": "2.4.0",
"serve-favicon": "2.3.2",
"strong-error-handler": "1.0.1",
"loopback-datasource-juggler": "2.39.0",
"loopback": "2.22.0"
"compression": "1.7.2",
"cors": "2.8.4",
"helmet": "3.12.0",
"loopback-boot": "2.27.1",
"loopback-component-explorer": "5.3.0",
"serve-favicon": "2.4.5",
"strong-error-handler": "2.3.2",
"loopback-datasource-juggler": "3.15.4",
"loopback": "3.18.2"
},
"devDependencies": {
"eslint": "2.13.1",
"eslint-config-loopback": "4.0.0",
"nsp": "2.1.0"
"eslint": "4.18.2",
"eslint-config-loopback": "10.0.0",
"nsp": "3.2.1"
}
}
12 changes: 6 additions & 6 deletions appengine/mailjet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@
"scripts": {
"deploy": "gcloud app deploy",
"start": "node app.js",
"lint": "samples lint",
"lint": "repo-tools lint",
"pretest": "npm run lint",
"system-test": "samples test app",
"system-test": "repo-tools test app",
"test": "npm run system-test",
"e2e-test": "samples test deploy"
"e2e-test": "repo-tools test deploy"
},
"dependencies": {
"body-parser": "1.17.2",
"express": "4.15.4",
"body-parser": "1.18.2",
"express": "4.16.2",
"jade": "1.11.0",
"node-mailjet": "3.2.1"
},
"devDependencies": {
"@google-cloud/nodejs-repo-tools": "1.4.17"
"@google-cloud/nodejs-repo-tools": "2.2.1"
},
"cloud-repo-tools": {
"test": {
Expand Down
Loading