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

Fixes Reflector issues in newer versions of NestJS #10

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
node_modules
.idea
dist
yarn.lock
*.tsbuildinfo
2 changes: 2 additions & 0 deletions dist/client.provider.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import { Provider } from '@nestjs/common';
export declare function createClientProvider(): Provider;
35 changes: 35 additions & 0 deletions dist/client.provider.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/client.provider.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export * from './mqtt.interface';
export * from './mqtt.decorator';
export * from './mqtt.constants';
export * from './mqtt.module';
export * from './mqtt.service';
18 changes: 18 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions dist/mqtt.constants.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export declare const MQTT_SUBSCRIBE_OPTIONS = "__mqtt_subscribe_options";
export declare const MQTT_SUBSCRIBER_PARAMS = "__mqtt_subscriber_params";
export declare const MQTT_CLIENT_INSTANCE = "MQTT_CLIENT_INSTANCE";
export declare const MQTT_OPTION_PROVIDER = "MQTT_OPTION_PROVIDER";
export declare const MQTT_LOGGER_PROVIDER = "MQTT_LOGGER_PROVIDER";
9 changes: 9 additions & 0 deletions dist/mqtt.constants.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/mqtt.constants.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions dist/mqtt.decorator.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { CustomDecorator } from '@nestjs/common';
import { MqttMessageTransformer, MqttSubscribeOptions } from './mqtt.interface';
export declare function Subscribe(topic: string | string[] | MqttSubscribeOptions): CustomDecorator;
export declare function Topic(): (target: object, propertyKey: string | symbol, paramIndex: number) => void;
export declare function Packet(): (target: object, propertyKey: string | symbol, paramIndex: number) => void;
export declare function Payload(transform?: 'json' | 'text' | MqttMessageTransformer): (target: object, propertyKey: string | symbol, paramIndex: number) => void;
export declare function Params(): (target: object, propertyKey: string | symbol, paramIndex: number) => void;
49 changes: 49 additions & 0 deletions dist/mqtt.decorator.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/mqtt.decorator.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions dist/mqtt.explorer.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { Logger, OnModuleInit } from '@nestjs/common';
import { DiscoveryService, MetadataScanner } from '@nestjs/core';
import { Client } from 'mqtt';
import { MqttModuleOptions, MqttSubscribeOptions, MqttSubscriber, MqttSubscriberParameter } from './mqtt.interface';
export declare class MqttExplorer implements OnModuleInit {
private readonly discoveryService;
private readonly metadataScanner;
private readonly logger;
private readonly client;
private readonly options;
subscribers: MqttSubscriber[];
private readonly reflector;
constructor(discoveryService: DiscoveryService, metadataScanner: MetadataScanner, logger: Logger, client: Client, options: MqttModuleOptions);
onModuleInit(): void;
preprocess(options: MqttSubscribeOptions): string | string[];
subscribe(options: MqttSubscribeOptions, parameters: MqttSubscriberParameter[], handle: any, provider: any): void;
explore(): void;
private getSubscriber;
private static topicToRegexp;
private static matchGroups;
}
176 changes: 176 additions & 0 deletions dist/mqtt.explorer.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading