Skip to content
This repository was archived by the owner on May 15, 2019. It is now read-only.

Commit 54ce914

Browse files
committed
1.0.0-beta.2
1 parent 04ec0b0 commit 54ce914

File tree

6 files changed

+64
-58
lines changed

6 files changed

+64
-58
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
##### 1.0.0-beta.2 - 20 February 2017
2+
3+
###### Other
4+
- Updated dependencies
5+
16
##### 1.0.0-beta.1 - 20 February 2017
27

38
###### Breaking changes

package.json

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@google-cloud/functions-emulator",
33
"description": "Google Cloud Functions Emulator",
4-
"version": "1.0.0-beta.1",
4+
"version": "1.0.0-beta.2",
55
"license": "Apache-2.0",
66
"author": "Google Inc.",
77
"engines": {
@@ -52,6 +52,7 @@
5252
],
5353
"scripts": {
5454
"lint": "semistandard",
55+
"fix": "semistandard --fix",
5556
"mocha": "mocha test/_setup test/ --recursive -t 120000 -S -R spec --require intelli-espower-loader",
5657
"unit-test": "npm run mocha -- --grep \"unit/\"",
5758
"system-test": "npm run mocha -- --grep \"system/\"",
@@ -66,38 +67,38 @@
6667
"generate-scaffolding": "repo-tools generate contributors coc contributing license pr_template pkgjson"
6768
},
6869
"dependencies": {
69-
"@google-cloud/storage": "1.5.1",
70+
"@google-cloud/storage": "1.6.0",
7071
"adm-zip": "0.4.7",
71-
"ajv": "5.5.2",
72+
"ajv": "6.1.1",
7273
"body-parser": "1.18.2",
7374
"cli-table2": "0.2.0",
7475
"colors": "1.1.2",
7576
"configstore": "3.1.1",
7677
"express": "4.16.2",
7778
"googleapis": "23.0.0",
78-
"got": "8.0.1",
79+
"got": "8.2.0",
7980
"http-proxy": "1.16.2",
80-
"lodash": "4.17.4",
81+
"lodash": "4.17.5",
8182
"prompt": "1.0.0",
8283
"rimraf": "2.6.2",
83-
"semver": "5.4.1",
84+
"semver": "5.5.0",
8485
"serializerr": "1.0.3",
8586
"tmp": "0.0.33",
86-
"uuid": "3.1.0",
87+
"uuid": "3.2.1",
8788
"winston": "2.4.0",
88-
"yargs": "10.0.3"
89+
"yargs": "11.0.0"
8990
},
9091
"devDependencies": {
91-
"@google-cloud/nodejs-repo-tools": "2.1.3",
92+
"@google-cloud/nodejs-repo-tools": "2.2.0",
9293
"intelli-espower-loader": "1.0.1",
93-
"mocha": "4.0.1",
94-
"nock": "9.1.4",
95-
"nyc": "11.3.0",
94+
"mocha": "5.0.1",
95+
"nock": "9.1.6",
96+
"nyc": "11.4.1",
9697
"power-assert": "1.4.4",
9798
"proxyquire": "1.8.0",
98-
"semistandard": "11.0.0",
99+
"semistandard": "12.0.0",
99100
"semistandard-format": "3.0.0",
100-
"sinon": "4.1.3",
101+
"sinon": "4.3.0",
101102
"supertest": "3.0.0"
102103
}
103104
}

src/cli/commands/delete.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ exports.handler = (opts) => {
7575
controller.write('Deleting function');
7676
poll();
7777
})
78-
.then(() => controller.write('done.\n'))
79-
.catch((err) => {
80-
controller.write('failed.\n');
81-
return Promise.reject(err);
82-
});
78+
.then(() => controller.write('done.\n'))
79+
.catch((err) => {
80+
controller.write('failed.\n');
81+
return Promise.reject(err);
82+
});
8383
})
8484
.then(() => controller.log(`Function ${opts.functionName} deleted.`.green))
8585
.then(() => list(opts))

src/cli/commands/deploy.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,11 @@ exports.handler = (opts) => {
166166
controller.write('Deploying function');
167167
poll();
168168
})
169-
.then(() => controller.write('done.\n'))
170-
.catch((err) => {
171-
controller.write('failed.\n');
172-
return Promise.reject(err);
173-
});
169+
.then(() => controller.write('done.\n'))
170+
.catch((err) => {
171+
controller.write('failed.\n');
172+
return Promise.reject(err);
173+
});
174174
})
175175
// Log the status
176176
.then(() => controller.log(`Function ${opts.functionName} deployed.`.green))

src/model/functions.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -639,13 +639,13 @@ class Functions {
639639
getOperation (name) {
640640
logger.debug('Functions#getOperation', name);
641641
return this.adapter.getOperation(name)
642-
.then((operation) => {
643-
if (!operation) {
644-
return this._getOperationNotFoundError(name);
645-
}
642+
.then((operation) => {
643+
if (!operation) {
644+
return this._getOperationNotFoundError(name);
645+
}
646646

647-
return this.operation(name, operation);
648-
}, (err) => this._getOperationError(err));
647+
return this.operation(name, operation);
648+
}, (err) => this._getOperationError(err));
649649
}
650650

651651
/**

test/unit/service/rest-service.test.js

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ describe('unit/service/rest-service', () => {
4343
const service = new RestService(functionsMock, {});
4444

4545
nock('https://faked.com')
46-
.post('/fake-project/us-central1/test-function')
47-
.reply(200);
46+
.post('/fake-project/us-central1/test-function')
47+
.reply(200);
4848

4949
request(service.server)
50-
.post('/v1/projects/fake-project/locations/us-central1/functions/test-function:call')
51-
.expect(200, done);
50+
.post('/v1/projects/fake-project/locations/us-central1/functions/test-function:call')
51+
.expect(200, done);
5252
});
5353

5454
it(`should fill in correct default resource and eventType`, done => {
@@ -68,15 +68,15 @@ describe('unit/service/rest-service', () => {
6868
const service = new RestService(functionsMock, {});
6969

7070
nock('https://faked.com')
71-
.post('/fake-project/us-central1/test-function', {
72-
resource: 'fake.resource',
73-
eventType: 'fake.type'
74-
})
75-
.reply(200);
71+
.post('/fake-project/us-central1/test-function', {
72+
resource: 'fake.resource',
73+
eventType: 'fake.type'
74+
})
75+
.reply(200);
7676

7777
request(service.server)
78-
.post('/v1/projects/fake-project/locations/us-central1/functions/test-function:call')
79-
.expect(200, done);
78+
.post('/v1/projects/fake-project/locations/us-central1/functions/test-function:call')
79+
.expect(200, done);
8080
});
8181

8282
it(`should default auth to {admin:true} for Firebase database functions`, done => {
@@ -96,14 +96,14 @@ describe('unit/service/rest-service', () => {
9696
const service = new RestService(functionsMock, {});
9797

9898
nock('https://faked.com')
99-
.post('/fake-project/us-central1/test-function', {
100-
auth: {admin: true}
101-
})
102-
.reply(200);
99+
.post('/fake-project/us-central1/test-function', {
100+
auth: {admin: true}
101+
})
102+
.reply(200);
103103

104104
request(service.server)
105-
.post('/v1/projects/fake-project/locations/us-central1/functions/test-function:call')
106-
.expect(200, done);
105+
.post('/v1/projects/fake-project/locations/us-central1/functions/test-function:call')
106+
.expect(200, done);
107107
});
108108

109109
it(`should allow auth, eventType, and resource to be custom-defined`, done => {
@@ -123,19 +123,19 @@ describe('unit/service/rest-service', () => {
123123
const service = new RestService(functionsMock, {});
124124

125125
nock('https://faked.com')
126-
.post('/fake-project/us-central1/test-function', {
127-
auth: {admin: false},
128-
resource: 'custom.resource'
129-
})
130-
.reply(200);
126+
.post('/fake-project/us-central1/test-function', {
127+
auth: {admin: false},
128+
resource: 'custom.resource'
129+
})
130+
.reply(200);
131131

132132
request(service.server)
133-
.post('/v1/projects/fake-project/locations/us-central1/functions/test-function:call')
134-
.send({
135-
auth: {admin: false},
136-
resource: 'custom.resource'
137-
})
138-
.expect(200, done);
133+
.post('/v1/projects/fake-project/locations/us-central1/functions/test-function:call')
134+
.send({
135+
auth: {admin: false},
136+
resource: 'custom.resource'
137+
})
138+
.expect(200, done);
139139
});
140140
});
141141
});

0 commit comments

Comments
 (0)