liqpay-nestjs 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type DynamicModule } from '@nestjs/common';
|
|
2
2
|
import type { LiqPayAsyncOptions, LiqPayOptions } from './interfaces';
|
|
3
3
|
export declare class LiqPayModule {
|
|
4
|
-
static
|
|
5
|
-
static
|
|
4
|
+
static forRoot(options: LiqPayOptions): DynamicModule;
|
|
5
|
+
static forRootAsync(options: LiqPayAsyncOptions): DynamicModule;
|
|
6
6
|
}
|
|
@@ -13,7 +13,7 @@ const constants_1 = require("./constants");
|
|
|
13
13
|
const liqpay_providers_1 = require("./liqpay.providers");
|
|
14
14
|
const liqpay_service_1 = require("./liqpay.service");
|
|
15
15
|
let LiqPayModule = LiqPayModule_1 = class LiqPayModule {
|
|
16
|
-
static
|
|
16
|
+
static forRoot(options) {
|
|
17
17
|
return {
|
|
18
18
|
module: LiqPayModule_1,
|
|
19
19
|
providers: [(0, liqpay_providers_1.createLiqpayOptionsProvider)(options), liqpay_service_1.LiqpayService],
|
|
@@ -21,7 +21,7 @@ let LiqPayModule = LiqPayModule_1 = class LiqPayModule {
|
|
|
21
21
|
global: options.isGlobal ?? false,
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
static
|
|
24
|
+
static forRootAsync(options) {
|
|
25
25
|
return {
|
|
26
26
|
module: LiqPayModule_1,
|
|
27
27
|
imports: options.imports ?? [],
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "liqpay-nestjs",
|
|
3
3
|
"description": "LiqPay integration module for NestJS with support for payments, callbacks, and configuration via DI.",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.4",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"main": "dist/index.js",
|