Skip to content

Commit b348920

Browse files
build(nestjs) update bundle, add opencollective
1 parent b6fe9b0 commit b348920

33 files changed

Lines changed: 287 additions & 250 deletions

bundle/common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nestjs/common",
3-
"version": "5.3.0",
3+
"version": "5.3.1-oc3",
44
"description": "Nest - modern, fast, powerful node.js web framework (@common)",
55
"author": "Kamil Mysliwiec",
66
"repository": {

bundle/core/nest-application.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class NestApplication extends nest_application_context_1.NestApplicationContext
114114
.forEach(parserKey => this.httpAdapter.use(parserMiddleware[parserKey]));
115115
}
116116
isMiddlewareApplied(httpAdapter, name) {
117-
const app = this.httpAdapter.getInstance();
117+
const app = httpAdapter.getInstance();
118118
return (!!app._router &&
119119
!!app._router.stack &&
120120
shared_utils_1.isFunction(app._router.stack.filter) &&

bundle/core/package.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nestjs/core",
3-
"version": "5.3.0",
3+
"version": "5.3.1-oc3",
44
"description": "Nest - modern, fast, powerful node.js web framework (@core)",
55
"author": "Kamil Mysliwiec",
66
"license": "MIT",
@@ -9,17 +9,24 @@
99
"url": "https://github.com/nestjs/nest"
1010
},
1111
"scripts": {
12-
"postinstall": "opencollective postinstall"
12+
"postinstall": "opencollective"
13+
},
14+
"collective": {
15+
"type": "opencollective",
16+
"url": "https://opencollective.com/nest",
17+
"donation": {
18+
"text": "Become a partner:"
19+
}
1320
},
1421
"dependencies": {
22+
"@nuxtjs/opencollective": "0.1.0",
1523
"body-parser": "1.18.3",
1624
"cors": "2.8.4",
1725
"express": "4.16.3",
1826
"generate-safe-id": "1.0.2",
1927
"iterare": "0.0.8",
2028
"object-hash": "1.3.0",
2129
"optional": "0.1.4",
22-
"opencollective": "1.0.3",
2330
"path-to-regexp": "2.2.1"
2431
},
2532
"peerDependencies": {

bundle/microservices/client/client-grpc.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export declare class ClientGrpcProxy extends ClientProxy implements ClientGrpc {
77
private readonly logger;
88
private readonly url;
99
private grpcClient;
10-
constructor(options: ClientOptions);
10+
constructor(options: ClientOptions['options']);
1111
getService<T extends {}>(name: string): T;
1212
createServiceMethod(client: any, methodName: string): (...args) => Observable<any>;
1313
createStreamServiceMethod(client: any, methodName: string): (...args) => Observable<any>;

bundle/microservices/client/client-grpc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class ClientGrpcProxy extends client_proxy_1.ClientProxy {
2323
this.grpcClient = this.createClient();
2424
}
2525
getService(name) {
26-
const { options } = this.options;
26+
const options = this.options;
2727
if (!this.grpcClient[name]) {
2828
throw new invalid_grpc_service_exception_1.InvalidGrpcServiceException();
2929
}

bundle/microservices/client/client-mqtt.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export declare class ClientMqtt extends ClientProxy {
77
private readonly logger;
88
private readonly url;
99
private mqttClient;
10-
constructor(options: ClientOptions);
10+
constructor(options: ClientOptions['options']);
1111
getAckPatternName(pattern: string): string;
1212
getResPatternName(pattern: string): string;
1313
close(): void;

bundle/microservices/client/client-mqtt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class ClientMqtt extends client_proxy_1.ClientProxy {
3434
return this.connect$(this.mqttClient).toPromise();
3535
}
3636
createClient() {
37-
return mqttPackage.connect(this.url, this.options.options);
37+
return mqttPackage.connect(this.url, this.options);
3838
}
3939
handleError(client) {
4040
client.addListener(constants_1.ERROR_EVENT, err => err.code !== constants_2.ECONNREFUSED && this.logger.error(err));

bundle/microservices/client/client-nats.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export declare class ClientNats extends ClientProxy {
77
private readonly logger;
88
private readonly url;
99
private natsClient;
10-
constructor(options: ClientOptions);
10+
constructor(options: ClientOptions['options']);
1111
close(): void;
1212
connect(): Promise<any>;
1313
createClient(): Promise<Client>;

bundle/microservices/client/client-nats.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ClientNats extends client_proxy_1.ClientProxy {
2828
return this.connect$(this.natsClient).toPromise();
2929
}
3030
createClient() {
31-
const options = this.options.options || {};
31+
const options = this.options || {};
3232
return natsPackage.connect(Object.assign({}, options, { url: this.url, json: true }));
3333
}
3434
handleError(client) {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ClientOptions } from '../interfaces/client-metadata.interface';
2-
import { ClientProxy } from './client-proxy';
32
import { Closeable } from '../interfaces/closeable.interface';
3+
import { ClientProxy } from './client-proxy';
44
export declare class ClientProxyFactory {
5-
static create(options: ClientOptions): ClientProxy & Closeable;
5+
static create(clientOptions: ClientOptions): ClientProxy & Closeable;
66
}

0 commit comments

Comments
 (0)