@keq-request/nestjs 5.0.0-alpha.33 → 5.0.0-alpha.35

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,18 +1,36 @@
1
1
 
2
- > @keq-request/nestjs@5.0.0-alpha.33 build /home/runner/work/keq/keq/packages/nestjs
3
- > tsup
2
+ > @keq-request/nestjs@5.0.0-alpha.35 build /home/runner/work/keq/keq/packages/nestjs
3
+ > tsdown
4
4
 
5
- CLI Building entry: src/index.ts
6
- CLI Using tsconfig: tsconfig.lib.json
7
- CLI tsup v8.5.1
8
- CLI Using tsup config: /home/runner/work/keq/keq/packages/nestjs/tsup.config.ts
9
- CLI Target: node20
10
- CLI Cleaning output folder
11
- CJS Build start
12
- ESM Build start
13
- ESM dist/index.mjs 2.27 KB
14
- ESM dist/index.mjs.map 3.94 KB
15
- ESM ⚡️ Build success in 79ms
16
- CJS dist/index.js 3.28 KB
17
- CJS dist/index.js.map 4.04 KB
18
- CJS ⚡️ Build success in 82ms
5
+ ℹ tsdown v0.21.10 powered by rolldown v1.0.0-rc.17
6
+ ℹ config file: /home/runner/work/keq/keq/packages/nestjs/tsdown.config.ts
7
+ (node:2732) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/keq/keq/packages/nestjs/tsdown.config.ts?no-cache=d433c752-7b69-49b8-899f-3db56eb2b711 is not specified and it doesn't parse as CommonJS.
8
+ Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
9
+ To eliminate this warning, add "type": "module" to /home/runner/work/keq/keq/packages/nestjs/package.json.
10
+ (Use `node --trace-warnings ...` to show where the warning was created)
11
+ ℹ entry: src/index.ts
12
+ ℹ target: node20
13
+ ℹ tsconfig: tsconfig.lib.json
14
+ ℹ Build start
15
+ ℹ [CJS] dist/index.js 2.35 kB │ gzip: 1.00 kB
16
+ ℹ [CJS] dist/index.js.map 3.54 kB │ gzip: 1.35 kB
17
+ ℹ [CJS] 2 files, total: 5.89 kB
18
+ [PLUGIN_TIMINGS] Warning: Your build spent significant time in plugin `tsdown:deps`. See https://rolldown.rs/options/checks#plugintimings for more details.
19
+
20
+ ℹ [CJS] dist/index.d.ts.map 0.54 kB │ gzip: 0.30 kB
21
+ [PLUGIN_TIMINGS] Warning: Your build spent significant time in plugins. Here is a breakdown:
22
+ ℹ [CJS] dist/index.d.ts 2.17 kB │ gzip: 0.89 kB
23
+ ℹ [CJS] 2 files, total: 2.71 kB
24
+ - rolldown-plugin-dts:generate (48%)
25
+ - tsdown:deps (46%)
26
+ See https://rolldown.rs/options/checks#plugintimings for more details.
27
+
28
+ ✔ Build complete in 4131ms
29
+ ℹ [ESM] dist/index.mjs 2.17 kB │ gzip: 0.92 kB
30
+ ℹ [ESM] dist/index.mjs.map 3.49 kB │ gzip: 1.34 kB
31
+ ℹ [ESM] dist/index.d.mts.map 0.54 kB │ gzip: 0.30 kB
32
+ ℹ [ESM] dist/index.d.mts 2.17 kB │ gzip: 0.89 kB
33
+ ℹ [ESM] 4 files, total: 8.37 kB
34
+ [PLUGIN_TIMINGS] Warning: Your build spent significant time in plugin `rolldown-plugin-dts:generate`. See https://rolldown.rs/options/checks#plugintimings for more details.
35
+
36
+ ✔ Build complete in 4134ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @keq-request/nestjs
2
2
 
3
+ ## 5.0.0-alpha.35
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [0a04864]
8
+ - keq@5.0.0-alpha.35
9
+
10
+ ## 5.0.0-alpha.34
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [a7a83da]
15
+ - Updated dependencies [f8abc63]
16
+ - keq@5.0.0-alpha.34
17
+
3
18
  ## 5.0.0-alpha.33
4
19
 
5
20
  ### Patch Changes
@@ -0,0 +1,62 @@
1
+ import { KeqMiddleware } from "keq";
2
+ import * as _$_nestjs_common0 from "@nestjs/common";
3
+ import { DynamicModule } from "@nestjs/common";
4
+
5
+ //#region src/types/keq-module-options.d.ts
6
+ interface KeqModuleOptions {
7
+ middlewares?: KeqMiddleware[];
8
+ }
9
+ //#endregion
10
+ //#region src/keq.module-definition.d.ts
11
+ declare const ConfigurableModuleClass: _$_nestjs_common0.ConfigurableModuleCls<KeqModuleOptions, "register", "create", {}>, MODULE_OPTIONS_TOKEN: string | symbol, OPTIONS_TYPE: KeqModuleOptions & Partial<{}>, ASYNC_OPTIONS_TYPE: _$_nestjs_common0.ConfigurableModuleAsyncOptions<KeqModuleOptions, "create"> & Partial<{}>;
12
+ //#endregion
13
+ //#region src/keq.module.d.ts
14
+ /**
15
+ * KeqModule - Dynamic module for integrating Keq HTTP client with NestJS
16
+ *
17
+ * This module is global, so KeqRequest can be injected anywhere in your application
18
+ * without needing to import the module in every feature module.
19
+ *
20
+ * @example
21
+ * ```typescript
22
+ * // Synchronous registration
23
+ * KeqModule.register({
24
+ * middlewares: [...]
25
+ * })
26
+ *
27
+ * // Asynchronous registration
28
+ * KeqModule.registerAsync({
29
+ * imports: [ConfigModule],
30
+ * useFactory: (config: ConfigService) => ({
31
+ * middlewares: [...]
32
+ * }),
33
+ * inject: [ConfigService]
34
+ * })
35
+ *
36
+ * // Inject in service
37
+ * class UserService {
38
+ * constructor(private readonly keqRequest: KeqRequest) {}
39
+ * async getUser(id: string) {
40
+ * return await this.keqRequest.get(`/users/${id}`).resolveWith('json')
41
+ * }
42
+ * }
43
+ * ```
44
+ */
45
+ declare class KeqModule extends ConfigurableModuleClass {
46
+ /**
47
+ * Register the module with synchronous options
48
+ * @param options - Configuration options including middlewares
49
+ * @returns DynamicModule with KeqRequest provider
50
+ */
51
+ static register(options: typeof OPTIONS_TYPE): DynamicModule;
52
+ /**
53
+ * Register the module with asynchronous options
54
+ * Useful when you need to inject dependencies like ConfigService
55
+ * @param options - Async configuration options
56
+ * @returns DynamicModule with KeqRequest provider
57
+ */
58
+ static registerAsync(options: typeof ASYNC_OPTIONS_TYPE): DynamicModule;
59
+ }
60
+ //#endregion
61
+ export { KeqModule, KeqModuleOptions };
62
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/types/keq-module-options.ts","../src/keq.module-definition.ts","../src/keq.module.ts"],"mappings":";;;;;UAGiB,gBAAA;EACf,WAAA,GAAc,aAAA;AAAA;;;cCEd,uBAAA,EAAuB,iBAAA,CAAA,qBAAA,CAAA,gBAAA,6BAAA,oBAAA,mBAAA,YAAA,EAEX,gBAAA,GAAA,OAAA,MAAA,kBAAA,EACM,iBAAA,CAAA,8BAAA,CAAA,gBAAA,cAAA,OAAA;;;;;;ADNpB;;;;;;;;ACEA;;;;;;;;;;;;;;;;;;;;cCsDa,SAAA,SAAkB,uBAAA;EDnD7B;;;;;EAAA,OCyDO,QAAA,CAAS,OAAA,SAAgB,YAAA,GAAe,aAAA;EAN1B;;;;;;EAAA,OAoBd,aAAA,CAAc,OAAA,SAAgB,kBAAA,GAAqB,aAAA;AAAA"}
package/dist/index.d.ts CHANGED
@@ -1,3 +1,62 @@
1
- export * from './keq.module.js';
2
- export * from './types/index.js';
1
+ import * as _$_nestjs_common0 from "@nestjs/common";
2
+ import { DynamicModule } from "@nestjs/common";
3
+ import { KeqMiddleware } from "keq";
4
+
5
+ //#region src/types/keq-module-options.d.ts
6
+ interface KeqModuleOptions {
7
+ middlewares?: KeqMiddleware[];
8
+ }
9
+ //#endregion
10
+ //#region src/keq.module-definition.d.ts
11
+ declare const ConfigurableModuleClass: _$_nestjs_common0.ConfigurableModuleCls<KeqModuleOptions, "register", "create", {}>, MODULE_OPTIONS_TOKEN: string | symbol, OPTIONS_TYPE: KeqModuleOptions & Partial<{}>, ASYNC_OPTIONS_TYPE: _$_nestjs_common0.ConfigurableModuleAsyncOptions<KeqModuleOptions, "create"> & Partial<{}>;
12
+ //#endregion
13
+ //#region src/keq.module.d.ts
14
+ /**
15
+ * KeqModule - Dynamic module for integrating Keq HTTP client with NestJS
16
+ *
17
+ * This module is global, so KeqRequest can be injected anywhere in your application
18
+ * without needing to import the module in every feature module.
19
+ *
20
+ * @example
21
+ * ```typescript
22
+ * // Synchronous registration
23
+ * KeqModule.register({
24
+ * middlewares: [...]
25
+ * })
26
+ *
27
+ * // Asynchronous registration
28
+ * KeqModule.registerAsync({
29
+ * imports: [ConfigModule],
30
+ * useFactory: (config: ConfigService) => ({
31
+ * middlewares: [...]
32
+ * }),
33
+ * inject: [ConfigService]
34
+ * })
35
+ *
36
+ * // Inject in service
37
+ * class UserService {
38
+ * constructor(private readonly keqRequest: KeqRequest) {}
39
+ * async getUser(id: string) {
40
+ * return await this.keqRequest.get(`/users/${id}`).resolveWith('json')
41
+ * }
42
+ * }
43
+ * ```
44
+ */
45
+ declare class KeqModule extends ConfigurableModuleClass {
46
+ /**
47
+ * Register the module with synchronous options
48
+ * @param options - Configuration options including middlewares
49
+ * @returns DynamicModule with KeqRequest provider
50
+ */
51
+ static register(options: typeof OPTIONS_TYPE): DynamicModule;
52
+ /**
53
+ * Register the module with asynchronous options
54
+ * Useful when you need to inject dependencies like ConfigService
55
+ * @param options - Async configuration options
56
+ * @returns DynamicModule with KeqRequest provider
57
+ */
58
+ static registerAsync(options: typeof ASYNC_OPTIONS_TYPE): DynamicModule;
59
+ }
60
+ //#endregion
61
+ export { KeqModule, KeqModuleOptions };
3
62
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/types/keq-module-options.ts","../src/keq.module-definition.ts","../src/keq.module.ts"],"mappings":";;;;;UAGiB,gBAAA;EACf,WAAA,GAAc,aAAA;AAAA;;;cCEd,uBAAA,EAAuB,iBAAA,CAAA,qBAAA,CAAA,gBAAA,6BAAA,oBAAA,mBAAA,YAAA,EAEX,gBAAA,GAAA,OAAA,MAAA,kBAAA,EACM,iBAAA,CAAA,8BAAA,CAAA,gBAAA,cAAA,OAAA;;;;;;ADNpB;;;;;;;;ACEA;;;;;;;;;;;;;;;;;;;;cCsDa,SAAA,SAAkB,uBAAA;EDnD7B;;;;;EAAA,OCyDO,QAAA,CAAS,OAAA,SAAgB,YAAA,GAAe,aAAA;EAN1B;;;;;;EAAA,OAoBd,aAAA,CAAc,OAAA,SAAgB,kBAAA,GAAqB,aAAA;AAAA"}
package/dist/index.js CHANGED
@@ -1,94 +1,63 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/index.ts
22
- var index_exports = {};
23
- __export(index_exports, {
24
- KeqModule: () => KeqModule
25
- });
26
- module.exports = __toCommonJS(index_exports);
27
-
28
- // src/keq.module.ts
29
- var import_keq = require("keq");
30
- var import_common2 = require("@nestjs/common");
31
-
32
- // src/keq.module-definition.ts
33
- var import_common = require("@nestjs/common");
34
- var { ConfigurableModuleClass, MODULE_OPTIONS_TOKEN, OPTIONS_TYPE, ASYNC_OPTIONS_TYPE } = new import_common.ConfigurableModuleBuilder().build();
35
-
36
- // src/keq.module.ts
37
- function _ts_decorate(decorators, target, key, desc) {
38
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
39
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
40
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
41
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ let keq = require("keq");
3
+ let _nestjs_common = require("@nestjs/common");
4
+ //#region src/keq.module-definition.ts
5
+ const { ConfigurableModuleClass, MODULE_OPTIONS_TOKEN, OPTIONS_TYPE, ASYNC_OPTIONS_TYPE } = new _nestjs_common.ConfigurableModuleBuilder().build();
6
+ //#endregion
7
+ //#region \0@oxc-project+runtime@0.127.0/helpers/decorate.js
8
+ function __decorate(decorators, target, key, desc) {
9
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
10
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
11
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
12
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
42
13
  }
43
- __name(_ts_decorate, "_ts_decorate");
44
- var requestProvider = {
45
- provide: import_keq.KeqRequest,
46
- useFactory: /* @__PURE__ */ __name((config) => {
47
- const request = new import_keq.KeqRequest();
48
- if (config.middlewares) {
49
- for (const middleware of config.middlewares) {
50
- request.use(middleware);
51
- }
52
- }
53
- return request;
54
- }, "useFactory"),
55
- inject: [
56
- MODULE_OPTIONS_TOKEN
57
- ]
14
+ //#endregion
15
+ //#region src/keq.module.ts
16
+ /**
17
+ * Provider that creates and configures a KeqRequest instance
18
+ * Applies any middlewares defined in the module options
19
+ */
20
+ const requestProvider = {
21
+ provide: keq.KeqRequest,
22
+ useFactory: (config) => {
23
+ const request = new keq.KeqRequest();
24
+ if (config.middlewares) for (const middleware of config.middlewares) request.use(middleware);
25
+ return request;
26
+ },
27
+ inject: [MODULE_OPTIONS_TOKEN]
58
28
  };
59
- var KeqModule = class extends ConfigurableModuleClass {
60
- static {
61
- __name(this, "KeqModule");
62
- }
63
- /**
64
- * Register the module with synchronous options
65
- * @param options - Configuration options including middlewares
66
- * @returns DynamicModule with KeqRequest provider
67
- */
68
- static register(options) {
69
- const mo = super.register(options);
70
- mo.providers.push(requestProvider);
71
- mo.global = true;
72
- return mo;
73
- }
74
- /**
75
- * Register the module with asynchronous options
76
- * Useful when you need to inject dependencies like ConfigService
77
- * @param options - Async configuration options
78
- * @returns DynamicModule with KeqRequest provider
79
- */
80
- static registerAsync(options) {
81
- const mo = super.registerAsync(options);
82
- mo.providers.push(requestProvider);
83
- mo.global = true;
84
- return mo;
85
- }
29
+ let KeqModule = class KeqModule extends ConfigurableModuleClass {
30
+ /**
31
+ * Register the module with synchronous options
32
+ * @param options - Configuration options including middlewares
33
+ * @returns DynamicModule with KeqRequest provider
34
+ */
35
+ static register(options) {
36
+ const mo = super.register(options);
37
+ mo.providers.push(requestProvider);
38
+ mo.global = true;
39
+ return mo;
40
+ }
41
+ /**
42
+ * Register the module with asynchronous options
43
+ * Useful when you need to inject dependencies like ConfigService
44
+ * @param options - Async configuration options
45
+ * @returns DynamicModule with KeqRequest provider
46
+ */
47
+ static registerAsync(options) {
48
+ const mo = super.registerAsync(options);
49
+ mo.providers.push(requestProvider);
50
+ mo.global = true;
51
+ return mo;
52
+ }
86
53
  };
87
- KeqModule = _ts_decorate([
88
- (0, import_common2.Global)()
89
- ], KeqModule);
90
- // Annotate the CommonJS export names for ESM import in node:
91
- 0 && (module.exports = {
92
- KeqModule
54
+ KeqModule = __decorate([(0, _nestjs_common.Global)()], KeqModule);
55
+ //#endregion
56
+ Object.defineProperty(exports, "KeqModule", {
57
+ enumerable: true,
58
+ get: function() {
59
+ return KeqModule;
60
+ }
93
61
  });
62
+
94
63
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../src/keq.module.ts","../src/keq.module-definition.ts"],"sourcesContent":["export * from './keq.module.js'\nexport * from './types/index.js'\n","\nimport { KeqRequest } from 'keq'\nimport { DynamicModule, Global, Provider } from '@nestjs/common'\nimport { ASYNC_OPTIONS_TYPE, ConfigurableModuleClass, MODULE_OPTIONS_TOKEN, OPTIONS_TYPE } from './keq.module-definition.js'\nimport { KeqModuleOptions } from './types/index.js'\n\n\n/**\n * Provider that creates and configures a KeqRequest instance\n * Applies any middlewares defined in the module options\n */\nconst requestProvider: Provider = {\n provide: KeqRequest,\n useFactory: (config: KeqModuleOptions) => {\n const request = new KeqRequest()\n\n if (config.middlewares) {\n for (const middleware of config.middlewares) {\n request.use(middleware)\n }\n }\n\n return request\n },\n inject: [MODULE_OPTIONS_TOKEN],\n}\n\n/**\n * KeqModule - Dynamic module for integrating Keq HTTP client with NestJS\n *\n * This module is global, so KeqRequest can be injected anywhere in your application\n * without needing to import the module in every feature module.\n *\n * @example\n * ```typescript\n * // Synchronous registration\n * KeqModule.register({\n * middlewares: [...]\n * })\n *\n * // Asynchronous registration\n * KeqModule.registerAsync({\n * imports: [ConfigModule],\n * useFactory: (config: ConfigService) => ({\n * middlewares: [...]\n * }),\n * inject: [ConfigService]\n * })\n *\n * // Inject in service\n * class UserService {\n * constructor(private readonly keqRequest: KeqRequest) {}\n * async getUser(id: string) {\n * return await this.keqRequest.get(`/users/${id}`).resolveWith('json')\n * }\n * }\n * ```\n */\n@Global()\nexport class KeqModule extends ConfigurableModuleClass {\n /**\n * Register the module with synchronous options\n * @param options - Configuration options including middlewares\n * @returns DynamicModule with KeqRequest provider\n */\n static register(options: typeof OPTIONS_TYPE): DynamicModule {\n const mo = super.register(options)\n mo.providers!.push(requestProvider)\n mo.global = true\n\n return mo\n }\n\n /**\n * Register the module with asynchronous options\n * Useful when you need to inject dependencies like ConfigService\n * @param options - Async configuration options\n * @returns DynamicModule with KeqRequest provider\n */\n static registerAsync(options: typeof ASYNC_OPTIONS_TYPE): DynamicModule {\n const mo = super.registerAsync(options)\n mo.providers!.push(requestProvider)\n mo.global = true\n\n return mo\n }\n}\n","\nimport { ConfigurableModuleBuilder } from '@nestjs/common'\nimport { KeqModuleOptions } from './types/keq-module-options'\n\n\nexport const {\n ConfigurableModuleClass,\n MODULE_OPTIONS_TOKEN,\n OPTIONS_TYPE,\n ASYNC_OPTIONS_TYPE,\n} = new ConfigurableModuleBuilder<KeqModuleOptions>().build()\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;ACCA,iBAA2B;AAC3B,IAAAA,iBAAgD;;;ACDhD,oBAA0C;AAInC,IAAM,EACXC,yBACAC,sBACAC,cACAC,mBAAkB,IAChB,IAAIC,wCAAAA,EAA8CC,MAAK;;;;;;;;;;ADC3D,IAAMC,kBAA4B;EAChCC,SAASC;EACTC,YAAY,wBAACC,WAAAA;AACX,UAAMC,UAAU,IAAIH,sBAAAA;AAEpB,QAAIE,OAAOE,aAAa;AACtB,iBAAWC,cAAcH,OAAOE,aAAa;AAC3CD,gBAAQG,IAAID,UAAAA;MACd;IACF;AAEA,WAAOF;EACT,GAVY;EAWZI,QAAQ;IAACC;;AACX;AAkCO,IAAMC,YAAN,cAAwBC,wBAAAA;SAAAA;;;;;;;;EAM7B,OAAOC,SAASC,SAA6C;AAC3D,UAAMC,KAAK,MAAMF,SAASC,OAAAA;AAC1BC,OAAGC,UAAWC,KAAKjB,eAAAA;AACnBe,OAAGG,SAAS;AAEZ,WAAOH;EACT;;;;;;;EAQA,OAAOI,cAAcL,SAAmD;AACtE,UAAMC,KAAK,MAAMI,cAAcL,OAAAA;AAC/BC,OAAGC,UAAWC,KAAKjB,eAAAA;AACnBe,OAAGG,SAAS;AAEZ,WAAOH;EACT;AACF;AA3BaJ,YAAAA,aAAAA;MADZS,uBAAAA;GACYT,SAAAA;","names":["import_common","ConfigurableModuleClass","MODULE_OPTIONS_TOKEN","OPTIONS_TYPE","ASYNC_OPTIONS_TYPE","ConfigurableModuleBuilder","build","requestProvider","provide","KeqRequest","useFactory","config","request","middlewares","middleware","use","inject","MODULE_OPTIONS_TOKEN","KeqModule","ConfigurableModuleClass","register","options","mo","providers","push","global","registerAsync","Global"]}
1
+ {"version":3,"file":"index.js","names":["ConfigurableModuleBuilder","KeqRequest"],"sources":["../src/keq.module-definition.ts","../src/keq.module.ts"],"sourcesContent":["\nimport { ConfigurableModuleBuilder } from '@nestjs/common'\nimport { KeqModuleOptions } from './types/keq-module-options'\n\n\nexport const {\n ConfigurableModuleClass,\n MODULE_OPTIONS_TOKEN,\n OPTIONS_TYPE,\n ASYNC_OPTIONS_TYPE,\n} = new ConfigurableModuleBuilder<KeqModuleOptions>().build()\n","\nimport { KeqRequest } from 'keq'\nimport { DynamicModule, Global, Provider } from '@nestjs/common'\nimport { ASYNC_OPTIONS_TYPE, ConfigurableModuleClass, MODULE_OPTIONS_TOKEN, OPTIONS_TYPE } from './keq.module-definition.js'\nimport { KeqModuleOptions } from './types/index.js'\n\n\n/**\n * Provider that creates and configures a KeqRequest instance\n * Applies any middlewares defined in the module options\n */\nconst requestProvider: Provider = {\n provide: KeqRequest,\n useFactory: (config: KeqModuleOptions) => {\n const request = new KeqRequest()\n\n if (config.middlewares) {\n for (const middleware of config.middlewares) {\n request.use(middleware)\n }\n }\n\n return request\n },\n inject: [MODULE_OPTIONS_TOKEN],\n}\n\n/**\n * KeqModule - Dynamic module for integrating Keq HTTP client with NestJS\n *\n * This module is global, so KeqRequest can be injected anywhere in your application\n * without needing to import the module in every feature module.\n *\n * @example\n * ```typescript\n * // Synchronous registration\n * KeqModule.register({\n * middlewares: [...]\n * })\n *\n * // Asynchronous registration\n * KeqModule.registerAsync({\n * imports: [ConfigModule],\n * useFactory: (config: ConfigService) => ({\n * middlewares: [...]\n * }),\n * inject: [ConfigService]\n * })\n *\n * // Inject in service\n * class UserService {\n * constructor(private readonly keqRequest: KeqRequest) {}\n * async getUser(id: string) {\n * return await this.keqRequest.get(`/users/${id}`).resolveWith('json')\n * }\n * }\n * ```\n */\n@Global()\nexport class KeqModule extends ConfigurableModuleClass {\n /**\n * Register the module with synchronous options\n * @param options - Configuration options including middlewares\n * @returns DynamicModule with KeqRequest provider\n */\n static register(options: typeof OPTIONS_TYPE): DynamicModule {\n const mo = super.register(options)\n mo.providers!.push(requestProvider)\n mo.global = true\n\n return mo\n }\n\n /**\n * Register the module with asynchronous options\n * Useful when you need to inject dependencies like ConfigService\n * @param options - Async configuration options\n * @returns DynamicModule with KeqRequest provider\n */\n static registerAsync(options: typeof ASYNC_OPTIONS_TYPE): DynamicModule {\n const mo = super.registerAsync(options)\n mo.providers!.push(requestProvider)\n mo.global = true\n\n return mo\n }\n}\n"],"mappings":";;;;AAKA,MAAa,EACX,yBACA,sBACA,cACA,uBACE,IAAIA,eAAAA,2BAA6C,CAAC,OAAO;;;;;;;;;;;;;;;ACC7D,MAAM,kBAA4B;CAChC,SAASC,IAAAA;CACT,aAAa,WAA6B;EACxC,MAAM,UAAU,IAAIA,IAAAA,YAAY;AAEhC,MAAI,OAAO,YACT,MAAK,MAAM,cAAc,OAAO,YAC9B,SAAQ,IAAI,WAAW;AAI3B,SAAO;;CAET,QAAQ,CAAC,qBAAqB;CAC/B;AAkCM,IAAA,YAAA,MAAM,kBAAkB,wBAAwB;;;;;;CAMrD,OAAO,SAAS,SAA6C;EAC3D,MAAM,KAAK,MAAM,SAAS,QAAQ;AAClC,KAAG,UAAW,KAAK,gBAAgB;AACnC,KAAG,SAAS;AAEZ,SAAO;;;;;;;;CAST,OAAO,cAAc,SAAmD;EACtE,MAAM,KAAK,MAAM,cAAc,QAAQ;AACvC,KAAG,UAAW,KAAK,gBAAgB;AACnC,KAAG,SAAS;AAEZ,SAAO;;;oDA1BF,CAAA,EAAA,UAAA"}
package/dist/index.mjs CHANGED
@@ -1,69 +1,57 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
-
4
- // src/keq.module.ts
5
1
  import { KeqRequest } from "keq";
6
- import { Global } from "@nestjs/common";
7
-
8
- // src/keq.module-definition.ts
9
- import { ConfigurableModuleBuilder } from "@nestjs/common";
10
- var { ConfigurableModuleClass, MODULE_OPTIONS_TOKEN, OPTIONS_TYPE, ASYNC_OPTIONS_TYPE } = new ConfigurableModuleBuilder().build();
11
-
12
- // src/keq.module.ts
13
- function _ts_decorate(decorators, target, key, desc) {
14
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
15
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
16
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
17
- return c > 3 && r && Object.defineProperty(target, key, r), r;
2
+ import { ConfigurableModuleBuilder, Global } from "@nestjs/common";
3
+ //#region src/keq.module-definition.ts
4
+ const { ConfigurableModuleClass, MODULE_OPTIONS_TOKEN, OPTIONS_TYPE, ASYNC_OPTIONS_TYPE } = new ConfigurableModuleBuilder().build();
5
+ //#endregion
6
+ //#region \0@oxc-project+runtime@0.127.0/helpers/decorate.js
7
+ function __decorate(decorators, target, key, desc) {
8
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
9
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
10
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
11
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
18
12
  }
19
- __name(_ts_decorate, "_ts_decorate");
20
- var requestProvider = {
21
- provide: KeqRequest,
22
- useFactory: /* @__PURE__ */ __name((config) => {
23
- const request = new KeqRequest();
24
- if (config.middlewares) {
25
- for (const middleware of config.middlewares) {
26
- request.use(middleware);
27
- }
28
- }
29
- return request;
30
- }, "useFactory"),
31
- inject: [
32
- MODULE_OPTIONS_TOKEN
33
- ]
13
+ //#endregion
14
+ //#region src/keq.module.ts
15
+ /**
16
+ * Provider that creates and configures a KeqRequest instance
17
+ * Applies any middlewares defined in the module options
18
+ */
19
+ const requestProvider = {
20
+ provide: KeqRequest,
21
+ useFactory: (config) => {
22
+ const request = new KeqRequest();
23
+ if (config.middlewares) for (const middleware of config.middlewares) request.use(middleware);
24
+ return request;
25
+ },
26
+ inject: [MODULE_OPTIONS_TOKEN]
34
27
  };
35
- var KeqModule = class extends ConfigurableModuleClass {
36
- static {
37
- __name(this, "KeqModule");
38
- }
39
- /**
40
- * Register the module with synchronous options
41
- * @param options - Configuration options including middlewares
42
- * @returns DynamicModule with KeqRequest provider
43
- */
44
- static register(options) {
45
- const mo = super.register(options);
46
- mo.providers.push(requestProvider);
47
- mo.global = true;
48
- return mo;
49
- }
50
- /**
51
- * Register the module with asynchronous options
52
- * Useful when you need to inject dependencies like ConfigService
53
- * @param options - Async configuration options
54
- * @returns DynamicModule with KeqRequest provider
55
- */
56
- static registerAsync(options) {
57
- const mo = super.registerAsync(options);
58
- mo.providers.push(requestProvider);
59
- mo.global = true;
60
- return mo;
61
- }
62
- };
63
- KeqModule = _ts_decorate([
64
- Global()
65
- ], KeqModule);
66
- export {
67
- KeqModule
28
+ let KeqModule = class KeqModule extends ConfigurableModuleClass {
29
+ /**
30
+ * Register the module with synchronous options
31
+ * @param options - Configuration options including middlewares
32
+ * @returns DynamicModule with KeqRequest provider
33
+ */
34
+ static register(options) {
35
+ const mo = super.register(options);
36
+ mo.providers.push(requestProvider);
37
+ mo.global = true;
38
+ return mo;
39
+ }
40
+ /**
41
+ * Register the module with asynchronous options
42
+ * Useful when you need to inject dependencies like ConfigService
43
+ * @param options - Async configuration options
44
+ * @returns DynamicModule with KeqRequest provider
45
+ */
46
+ static registerAsync(options) {
47
+ const mo = super.registerAsync(options);
48
+ mo.providers.push(requestProvider);
49
+ mo.global = true;
50
+ return mo;
51
+ }
68
52
  };
53
+ KeqModule = __decorate([Global()], KeqModule);
54
+ //#endregion
55
+ export { KeqModule };
56
+
69
57
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/keq.module.ts","../src/keq.module-definition.ts"],"sourcesContent":["\nimport { KeqRequest } from 'keq'\nimport { DynamicModule, Global, Provider } from '@nestjs/common'\nimport { ASYNC_OPTIONS_TYPE, ConfigurableModuleClass, MODULE_OPTIONS_TOKEN, OPTIONS_TYPE } from './keq.module-definition.js'\nimport { KeqModuleOptions } from './types/index.js'\n\n\n/**\n * Provider that creates and configures a KeqRequest instance\n * Applies any middlewares defined in the module options\n */\nconst requestProvider: Provider = {\n provide: KeqRequest,\n useFactory: (config: KeqModuleOptions) => {\n const request = new KeqRequest()\n\n if (config.middlewares) {\n for (const middleware of config.middlewares) {\n request.use(middleware)\n }\n }\n\n return request\n },\n inject: [MODULE_OPTIONS_TOKEN],\n}\n\n/**\n * KeqModule - Dynamic module for integrating Keq HTTP client with NestJS\n *\n * This module is global, so KeqRequest can be injected anywhere in your application\n * without needing to import the module in every feature module.\n *\n * @example\n * ```typescript\n * // Synchronous registration\n * KeqModule.register({\n * middlewares: [...]\n * })\n *\n * // Asynchronous registration\n * KeqModule.registerAsync({\n * imports: [ConfigModule],\n * useFactory: (config: ConfigService) => ({\n * middlewares: [...]\n * }),\n * inject: [ConfigService]\n * })\n *\n * // Inject in service\n * class UserService {\n * constructor(private readonly keqRequest: KeqRequest) {}\n * async getUser(id: string) {\n * return await this.keqRequest.get(`/users/${id}`).resolveWith('json')\n * }\n * }\n * ```\n */\n@Global()\nexport class KeqModule extends ConfigurableModuleClass {\n /**\n * Register the module with synchronous options\n * @param options - Configuration options including middlewares\n * @returns DynamicModule with KeqRequest provider\n */\n static register(options: typeof OPTIONS_TYPE): DynamicModule {\n const mo = super.register(options)\n mo.providers!.push(requestProvider)\n mo.global = true\n\n return mo\n }\n\n /**\n * Register the module with asynchronous options\n * Useful when you need to inject dependencies like ConfigService\n * @param options - Async configuration options\n * @returns DynamicModule with KeqRequest provider\n */\n static registerAsync(options: typeof ASYNC_OPTIONS_TYPE): DynamicModule {\n const mo = super.registerAsync(options)\n mo.providers!.push(requestProvider)\n mo.global = true\n\n return mo\n }\n}\n","\nimport { ConfigurableModuleBuilder } from '@nestjs/common'\nimport { KeqModuleOptions } from './types/keq-module-options'\n\n\nexport const {\n ConfigurableModuleClass,\n MODULE_OPTIONS_TOKEN,\n OPTIONS_TYPE,\n ASYNC_OPTIONS_TYPE,\n} = new ConfigurableModuleBuilder<KeqModuleOptions>().build()\n"],"mappings":";;;;AACA,SAASA,kBAAkB;AAC3B,SAAwBC,cAAwB;;;ACDhD,SAASC,iCAAiC;AAInC,IAAM,EACXC,yBACAC,sBACAC,cACAC,mBAAkB,IAChB,IAAIJ,0BAAAA,EAA8CK,MAAK;;;;;;;;;;ADC3D,IAAMC,kBAA4B;EAChCC,SAASC;EACTC,YAAY,wBAACC,WAAAA;AACX,UAAMC,UAAU,IAAIH,WAAAA;AAEpB,QAAIE,OAAOE,aAAa;AACtB,iBAAWC,cAAcH,OAAOE,aAAa;AAC3CD,gBAAQG,IAAID,UAAAA;MACd;IACF;AAEA,WAAOF;EACT,GAVY;EAWZI,QAAQ;IAACC;;AACX;AAkCO,IAAMC,YAAN,cAAwBC,wBAAAA;SAAAA;;;;;;;;EAM7B,OAAOC,SAASC,SAA6C;AAC3D,UAAMC,KAAK,MAAMF,SAASC,OAAAA;AAC1BC,OAAGC,UAAWC,KAAKjB,eAAAA;AACnBe,OAAGG,SAAS;AAEZ,WAAOH;EACT;;;;;;;EAQA,OAAOI,cAAcL,SAAmD;AACtE,UAAMC,KAAK,MAAMI,cAAcL,OAAAA;AAC/BC,OAAGC,UAAWC,KAAKjB,eAAAA;AACnBe,OAAGG,SAAS;AAEZ,WAAOH;EACT;AACF;AA3BaJ,YAAAA,aAAAA;EADZS,OAAAA;GACYT,SAAAA;","names":["KeqRequest","Global","ConfigurableModuleBuilder","ConfigurableModuleClass","MODULE_OPTIONS_TOKEN","OPTIONS_TYPE","ASYNC_OPTIONS_TYPE","build","requestProvider","provide","KeqRequest","useFactory","config","request","middlewares","middleware","use","inject","MODULE_OPTIONS_TOKEN","KeqModule","ConfigurableModuleClass","register","options","mo","providers","push","global","registerAsync","Global"]}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/keq.module-definition.ts","../src/keq.module.ts"],"sourcesContent":["\nimport { ConfigurableModuleBuilder } from '@nestjs/common'\nimport { KeqModuleOptions } from './types/keq-module-options'\n\n\nexport const {\n ConfigurableModuleClass,\n MODULE_OPTIONS_TOKEN,\n OPTIONS_TYPE,\n ASYNC_OPTIONS_TYPE,\n} = new ConfigurableModuleBuilder<KeqModuleOptions>().build()\n","\nimport { KeqRequest } from 'keq'\nimport { DynamicModule, Global, Provider } from '@nestjs/common'\nimport { ASYNC_OPTIONS_TYPE, ConfigurableModuleClass, MODULE_OPTIONS_TOKEN, OPTIONS_TYPE } from './keq.module-definition.js'\nimport { KeqModuleOptions } from './types/index.js'\n\n\n/**\n * Provider that creates and configures a KeqRequest instance\n * Applies any middlewares defined in the module options\n */\nconst requestProvider: Provider = {\n provide: KeqRequest,\n useFactory: (config: KeqModuleOptions) => {\n const request = new KeqRequest()\n\n if (config.middlewares) {\n for (const middleware of config.middlewares) {\n request.use(middleware)\n }\n }\n\n return request\n },\n inject: [MODULE_OPTIONS_TOKEN],\n}\n\n/**\n * KeqModule - Dynamic module for integrating Keq HTTP client with NestJS\n *\n * This module is global, so KeqRequest can be injected anywhere in your application\n * without needing to import the module in every feature module.\n *\n * @example\n * ```typescript\n * // Synchronous registration\n * KeqModule.register({\n * middlewares: [...]\n * })\n *\n * // Asynchronous registration\n * KeqModule.registerAsync({\n * imports: [ConfigModule],\n * useFactory: (config: ConfigService) => ({\n * middlewares: [...]\n * }),\n * inject: [ConfigService]\n * })\n *\n * // Inject in service\n * class UserService {\n * constructor(private readonly keqRequest: KeqRequest) {}\n * async getUser(id: string) {\n * return await this.keqRequest.get(`/users/${id}`).resolveWith('json')\n * }\n * }\n * ```\n */\n@Global()\nexport class KeqModule extends ConfigurableModuleClass {\n /**\n * Register the module with synchronous options\n * @param options - Configuration options including middlewares\n * @returns DynamicModule with KeqRequest provider\n */\n static register(options: typeof OPTIONS_TYPE): DynamicModule {\n const mo = super.register(options)\n mo.providers!.push(requestProvider)\n mo.global = true\n\n return mo\n }\n\n /**\n * Register the module with asynchronous options\n * Useful when you need to inject dependencies like ConfigService\n * @param options - Async configuration options\n * @returns DynamicModule with KeqRequest provider\n */\n static registerAsync(options: typeof ASYNC_OPTIONS_TYPE): DynamicModule {\n const mo = super.registerAsync(options)\n mo.providers!.push(requestProvider)\n mo.global = true\n\n return mo\n }\n}\n"],"mappings":";;;AAKA,MAAa,EACX,yBACA,sBACA,cACA,uBACE,IAAI,2BAA6C,CAAC,OAAO;;;;;;;;;;;;;;;ACC7D,MAAM,kBAA4B;CAChC,SAAS;CACT,aAAa,WAA6B;EACxC,MAAM,UAAU,IAAI,YAAY;AAEhC,MAAI,OAAO,YACT,MAAK,MAAM,cAAc,OAAO,YAC9B,SAAQ,IAAI,WAAW;AAI3B,SAAO;;CAET,QAAQ,CAAC,qBAAqB;CAC/B;AAkCM,IAAA,YAAA,MAAM,kBAAkB,wBAAwB;;;;;;CAMrD,OAAO,SAAS,SAA6C;EAC3D,MAAM,KAAK,MAAM,SAAS,QAAQ;AAClC,KAAG,UAAW,KAAK,gBAAgB;AACnC,KAAG,SAAS;AAEZ,SAAO;;;;;;;;CAST,OAAO,cAAc,SAAmD;EACtE,MAAM,KAAK,MAAM,cAAc,QAAQ;AACvC,KAAG,UAAW,KAAK,gBAAgB;AACnC,KAAG,SAAS;AAEZ,SAAO;;;wBA1BV,QAAQ,CAAA,EAAA,UAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keq-request/nestjs",
3
- "version": "5.0.0-alpha.33",
3
+ "version": "5.0.0-alpha.35",
4
4
  "description": "Request API write by Typescript for flexibility, readability, and a low learning curve.",
5
5
  "keywords": [
6
6
  "request",
@@ -33,22 +33,21 @@
33
33
  "type": "git",
34
34
  "url": "git+https://github.com/keq-request/keq.git"
35
35
  },
36
- "dependencies": {},
37
36
  "devDependencies": {
38
- "@types/node": "^20.19.25",
39
- "@nestjs/common": "^11.0.0",
40
- "keq": "5.0.0-alpha.33"
37
+ "@nestjs/common": "^11.1.19",
38
+ "@types/node": "^20.19.39",
39
+ "keq": "5.0.0-alpha.35"
41
40
  },
42
41
  "peerDependencies": {
43
- "keq": "^5.0.0-alpha.33",
44
- "@nestjs/common": "^11.0.0"
42
+ "@nestjs/common": "^11.0.0",
43
+ "keq": "^5.0.0-alpha.35"
45
44
  },
46
45
  "engines": {
47
46
  "node": ">=20.0.0"
48
47
  },
49
48
  "scripts": {
50
- "build": "tsup",
51
- "dev": "tsup --watch",
49
+ "build": "tsdown",
50
+ "dev": "tsdown --watch",
52
51
  "test": "jest",
53
52
  "test:update": "jest -u"
54
53
  }
package/tsconfig.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "extends": "../../tsconfig.base.json",
3
3
  "compilerOptions": {
4
- "baseUrl": "./src",
4
+ "rootDir": "..",
5
+ "outDir": "./dist",
5
6
  "emitDecoratorMetadata": true,
6
7
  "experimentalDecorators": true,
7
8
  "paths": {
8
- "~/*": ["./*"],
9
- "~~/*": ["../*"],
10
- "@keq-request/test": ["../../test/src/index.ts"]
9
+ "~/*": ["./src/*"],
10
+ "~~/*": ["./*"],
11
+ "@keq-request/test": ["../test/src/index.ts"]
11
12
  }
12
13
  }
13
14
  }
@@ -0,0 +1,12 @@
1
+ import { defineConfig } from 'tsdown'
2
+
3
+ export default defineConfig({
4
+ entry: ['src/index.ts'],
5
+ format: ['cjs', 'esm'],
6
+ target: ['node20'],
7
+ platform: 'neutral',
8
+ tsconfig: 'tsconfig.lib.json',
9
+ dts: { sourcemap: true },
10
+ sourcemap: true,
11
+ clean: true,
12
+ })
@@ -1,3 +0,0 @@
1
- import { KeqModuleOptions } from './types/keq-module-options';
2
- export declare const ConfigurableModuleClass: import("@nestjs/common").ConfigurableModuleCls<KeqModuleOptions, "register", "create", {}>, MODULE_OPTIONS_TOKEN: string | symbol, OPTIONS_TYPE: KeqModuleOptions & Partial<{}>, ASYNC_OPTIONS_TYPE: import("@nestjs/common").ConfigurableModuleAsyncOptions<KeqModuleOptions, "create"> & Partial<{}>;
3
- //# sourceMappingURL=keq.module-definition.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"keq.module-definition.d.ts","sourceRoot":"","sources":["../src/keq.module-definition.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAG7D,eAAO,MACL,uBAAuB,8FACvB,oBAAoB,mBACpB,YAAY,kCACZ,kBAAkB,mGACyC,CAAA"}
@@ -1,49 +0,0 @@
1
- import { DynamicModule } from '@nestjs/common';
2
- import { ASYNC_OPTIONS_TYPE, ConfigurableModuleClass, OPTIONS_TYPE } from './keq.module-definition.js';
3
- /**
4
- * KeqModule - Dynamic module for integrating Keq HTTP client with NestJS
5
- *
6
- * This module is global, so KeqRequest can be injected anywhere in your application
7
- * without needing to import the module in every feature module.
8
- *
9
- * @example
10
- * ```typescript
11
- * // Synchronous registration
12
- * KeqModule.register({
13
- * middlewares: [...]
14
- * })
15
- *
16
- * // Asynchronous registration
17
- * KeqModule.registerAsync({
18
- * imports: [ConfigModule],
19
- * useFactory: (config: ConfigService) => ({
20
- * middlewares: [...]
21
- * }),
22
- * inject: [ConfigService]
23
- * })
24
- *
25
- * // Inject in service
26
- * class UserService {
27
- * constructor(private readonly keqRequest: KeqRequest) {}
28
- * async getUser(id: string) {
29
- * return await this.keqRequest.get(`/users/${id}`).resolveWith('json')
30
- * }
31
- * }
32
- * ```
33
- */
34
- export declare class KeqModule extends ConfigurableModuleClass {
35
- /**
36
- * Register the module with synchronous options
37
- * @param options - Configuration options including middlewares
38
- * @returns DynamicModule with KeqRequest provider
39
- */
40
- static register(options: typeof OPTIONS_TYPE): DynamicModule;
41
- /**
42
- * Register the module with asynchronous options
43
- * Useful when you need to inject dependencies like ConfigService
44
- * @param options - Async configuration options
45
- * @returns DynamicModule with KeqRequest provider
46
- */
47
- static registerAsync(options: typeof ASYNC_OPTIONS_TYPE): DynamicModule;
48
- }
49
- //# sourceMappingURL=keq.module.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"keq.module.d.ts","sourceRoot":"","sources":["../src/keq.module.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAoB,MAAM,gBAAgB,CAAA;AAChE,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAwB,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAwB5H;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,qBACa,SAAU,SAAQ,uBAAuB;IACpD;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,YAAY,GAAG,aAAa;IAQ5D;;;;;OAKG;IACH,MAAM,CAAC,aAAa,CAAC,OAAO,EAAE,OAAO,kBAAkB,GAAG,aAAa;CAOxE"}
@@ -1,2 +0,0 @@
1
- export * from './keq-module-options.js';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA"}
@@ -1,5 +0,0 @@
1
- import { KeqMiddleware } from 'keq';
2
- export interface KeqModuleOptions {
3
- middlewares?: KeqMiddleware[];
4
- }
5
- //# sourceMappingURL=keq-module-options.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"keq-module-options.d.ts","sourceRoot":"","sources":["../../src/types/keq-module-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAA;AAGnC,MAAM,WAAW,gBAAgB;IAC/B,WAAW,CAAC,EAAE,aAAa,EAAE,CAAA;CAC9B"}
package/tsup.config.ts DELETED
@@ -1,14 +0,0 @@
1
- import { defineConfig } from 'tsup'
2
-
3
- export default defineConfig({
4
- entry: ['src/index.ts'],
5
- format: ['cjs', 'esm'],
6
- target: ['node20'],
7
- platform: 'node',
8
- tsconfig: 'tsconfig.lib.json',
9
- dts: false,
10
- splitting: false,
11
- sourcemap: true,
12
- clean: true,
13
- onSuccess: 'tsc --emitDeclarationOnly -d --declarationMap -p ./tsconfig.lib.json && tsc-alias -p ./tsconfig.lib.json',
14
- })