@zthun/webigail-nest 3.3.0 → 4.0.1

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.
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.cjs CHANGED
@@ -1,27 +1,44 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const common = require("@nestjs/common");
4
- const webigailHttp = require("@zthun/webigail-http");
5
- const ZHttpServiceToken = Symbol();
6
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
- var __decorateClass = (decorators, target, key, kind) => {
8
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
9
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
10
- if (decorator = decorators[i])
11
- result = decorator(result) || result;
12
- return result;
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const common = require('@nestjs/common');
6
+ const webigailHttp = require('@zthun/webigail-http');
7
+
8
+ /**
9
+ * The token symbol to inject the http service.
10
+ */ var ZHttpServiceToken = Symbol();
11
+
12
+ function _class_call_check(instance, Constructor) {
13
+ if (!(instance instanceof Constructor)) {
14
+ throw new TypeError("Cannot call a class as a function");
15
+ }
16
+ }
17
+ function _ts_decorate(decorators, target, key, desc) {
18
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
+ 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;
21
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
22
+ }
23
+ var ZHttpServiceProvider = {
24
+ provide: ZHttpServiceToken,
25
+ useValue: new webigailHttp.ZHttpService()
13
26
  };
14
- const ZHttpServiceProvider = {
15
- provide: ZHttpServiceToken,
16
- useValue: new webigailHttp.ZHttpService()
27
+ exports.ZHttpModule = function ZHttpModule() {
28
+ _class_call_check(this, ZHttpModule);
17
29
  };
18
- exports.ZHttpModule = class ZHttpModule {
19
- };
20
- exports.ZHttpModule = __decorateClass([
21
- common.Module({
22
- providers: [ZHttpServiceProvider, webigailHttp.ZHttpService],
23
- exports: [ZHttpServiceProvider, webigailHttp.ZHttpService]
24
- })
30
+ exports.ZHttpModule = _ts_decorate([
31
+ common.Module({
32
+ providers: [
33
+ ZHttpServiceProvider,
34
+ webigailHttp.ZHttpService
35
+ ],
36
+ exports: [
37
+ ZHttpServiceProvider,
38
+ webigailHttp.ZHttpService
39
+ ]
40
+ })
25
41
  ], exports.ZHttpModule);
42
+
26
43
  exports.ZHttpServiceToken = ZHttpServiceToken;
27
44
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../src/http/http-service-token.ts","../src/http/http-module.ts"],"sourcesContent":["/**\n * The token symbol to inject the http service.\n */\nexport const ZHttpServiceToken = Symbol();\n","import { Module } from \"@nestjs/common\";\nimport { ZHttpService } from \"@zthun/webigail-http\";\nimport { ZHttpServiceToken } from \"./http-service-token\";\n\nconst ZHttpServiceProvider = {\n provide: ZHttpServiceToken,\n useValue: new ZHttpService(),\n};\n\n/**\n * A module that provides http services.\n */\n@Module({\n providers: [ZHttpServiceProvider, ZHttpService],\n exports: [ZHttpServiceProvider, ZHttpService],\n})\nexport class ZHttpModule {}\n"],"names":["ZHttpService","ZHttpModule","Module"],"mappings":";;;;AAGO,MAAM,oBAAoB,OAAO;;;;;;;;;ACCxC,MAAM,uBAAuB;AAAA,EAC3B,SAAS;AAAA,EACT,UAAU,IAAIA,aAAa,aAAA;AAC7B;AASaC,sBAAN,kBAAkB;AAAC;AAAbA,QAAN,cAAA,gBAAA;AAAA,EAJNC,cAAO;AAAA,IACN,WAAW,CAAC,sBAAsBF,yBAAY;AAAA,IAC9C,SAAS,CAAC,sBAAsBA,aAAY,YAAA;AAAA,EAC7C,CAAA;AAAA,GACYC,mBAAA;;"}
1
+ {"version":3,"file":"index.cjs","sources":["../src/http/http-service-token.mts","../src/http/http-module.mts"],"sourcesContent":["/**\n * The token symbol to inject the http service.\n */\nexport const ZHttpServiceToken = Symbol();\n","import { Module } from \"@nestjs/common\";\nimport { ZHttpService } from \"@zthun/webigail-http\";\nimport { ZHttpServiceToken } from \"./http-service-token.mjs\";\n\nconst ZHttpServiceProvider = {\n provide: ZHttpServiceToken,\n useValue: new ZHttpService(),\n};\n\n/**\n * A module that provides http services.\n */\n@Module({\n providers: [ZHttpServiceProvider, ZHttpService],\n exports: [ZHttpServiceProvider, ZHttpService],\n})\nexport class ZHttpModule {}\n"],"names":["ZHttpServiceToken","Symbol","ZHttpServiceProvider","provide","useValue","ZHttpService","ZHttpModule","providers","exports"],"mappings":";;;;;;;AAAA;;IAGaA,IAAAA,iBAAAA,GAAoBC,MAAS;;;;;;;;;;;;;ACC1C,IAAMC,oBAAuB,GAAA;IAC3BC,OAASH,EAAAA,iBAAAA;AACTI,IAAAA,QAAAA,EAAU,IAAIC,yBAAAA;AAChB,CAAA;AASOC,mBAAMA,GAAN,SAAMA,WAAAA,GAAAA;AAAAA,IAAAA,iBAAAA,CAAAA,IAAAA,EAAAA,WAAAA,CAAAA;AAAc;;;QAHzBC,SAAW,EAAA;AAACL,YAAAA,oBAAAA;AAAsBG,YAAAA;AAAa,SAAA;QAC/CG,OAAS,EAAA;AAACN,YAAAA,oBAAAA;AAAsBG,YAAAA;AAAa;;;;;;"}
@@ -0,0 +1,2 @@
1
+ export * from './http/http-module.mjs';
2
+ export * from './http/http-service-token.mjs';
package/dist/index.js CHANGED
@@ -1,28 +1,40 @@
1
- import { Module } from "@nestjs/common";
2
- import { ZHttpService } from "@zthun/webigail-http";
3
- const ZHttpServiceToken = Symbol();
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __decorateClass = (decorators, target, key, kind) => {
6
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
7
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
8
- if (decorator = decorators[i])
9
- result = decorator(result) || result;
10
- return result;
1
+ import { Module } from '@nestjs/common';
2
+ import { ZHttpService } from '@zthun/webigail-http';
3
+
4
+ /**
5
+ * The token symbol to inject the http service.
6
+ */ var ZHttpServiceToken = Symbol();
7
+
8
+ function _class_call_check(instance, Constructor) {
9
+ if (!(instance instanceof Constructor)) {
10
+ throw new TypeError("Cannot call a class as a function");
11
+ }
12
+ }
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;
18
+ }
19
+ var ZHttpServiceProvider = {
20
+ provide: ZHttpServiceToken,
21
+ useValue: new ZHttpService()
11
22
  };
12
- const ZHttpServiceProvider = {
13
- provide: ZHttpServiceToken,
14
- useValue: new ZHttpService()
23
+ var ZHttpModule = function ZHttpModule() {
24
+ _class_call_check(this, ZHttpModule);
15
25
  };
16
- let ZHttpModule = class {
17
- };
18
- ZHttpModule = __decorateClass([
19
- Module({
20
- providers: [ZHttpServiceProvider, ZHttpService],
21
- exports: [ZHttpServiceProvider, ZHttpService]
22
- })
26
+ ZHttpModule = _ts_decorate([
27
+ Module({
28
+ providers: [
29
+ ZHttpServiceProvider,
30
+ ZHttpService
31
+ ],
32
+ exports: [
33
+ ZHttpServiceProvider,
34
+ ZHttpService
35
+ ]
36
+ })
23
37
  ], ZHttpModule);
24
- export {
25
- ZHttpModule,
26
- ZHttpServiceToken
27
- };
38
+
39
+ export { ZHttpModule, ZHttpServiceToken };
28
40
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/http/http-service-token.ts","../src/http/http-module.ts"],"sourcesContent":["/**\n * The token symbol to inject the http service.\n */\nexport const ZHttpServiceToken = Symbol();\n","import { Module } from \"@nestjs/common\";\nimport { ZHttpService } from \"@zthun/webigail-http\";\nimport { ZHttpServiceToken } from \"./http-service-token\";\n\nconst ZHttpServiceProvider = {\n provide: ZHttpServiceToken,\n useValue: new ZHttpService(),\n};\n\n/**\n * A module that provides http services.\n */\n@Module({\n providers: [ZHttpServiceProvider, ZHttpService],\n exports: [ZHttpServiceProvider, ZHttpService],\n})\nexport class ZHttpModule {}\n"],"names":[],"mappings":";;AAGO,MAAM,oBAAoB,OAAO;;;;;;;;;ACCxC,MAAM,uBAAuB;AAAA,EAC3B,SAAS;AAAA,EACT,UAAU,IAAI,aAAa;AAC7B;AASO,IAAM,cAAN,MAAkB;AAAC;AAAb,cAAN,gBAAA;AAAA,EAJN,OAAO;AAAA,IACN,WAAW,CAAC,sBAAsB,YAAY;AAAA,IAC9C,SAAS,CAAC,sBAAsB,YAAY;AAAA,EAC7C,CAAA;AAAA,GACY,WAAA;"}
1
+ {"version":3,"file":"index.js","sources":["../src/http/http-service-token.mts","../src/http/http-module.mts"],"sourcesContent":["/**\n * The token symbol to inject the http service.\n */\nexport const ZHttpServiceToken = Symbol();\n","import { Module } from \"@nestjs/common\";\nimport { ZHttpService } from \"@zthun/webigail-http\";\nimport { ZHttpServiceToken } from \"./http-service-token.mjs\";\n\nconst ZHttpServiceProvider = {\n provide: ZHttpServiceToken,\n useValue: new ZHttpService(),\n};\n\n/**\n * A module that provides http services.\n */\n@Module({\n providers: [ZHttpServiceProvider, ZHttpService],\n exports: [ZHttpServiceProvider, ZHttpService],\n})\nexport class ZHttpModule {}\n"],"names":["ZHttpServiceToken","Symbol","ZHttpServiceProvider","provide","useValue","ZHttpService","ZHttpModule","providers","exports"],"mappings":";;;AAAA;;IAGaA,IAAAA,iBAAAA,GAAoBC,MAAS;;;;;;;;;;;;;ACC1C,IAAMC,oBAAuB,GAAA;IAC3BC,OAASH,EAAAA,iBAAAA;AACTI,IAAAA,QAAAA,EAAU,IAAIC,YAAAA;AAChB,CAAA;AASO,IAAA,WAAMC,GAAN,SAAMA,WAAAA,GAAAA;AAAAA,IAAAA,iBAAAA,CAAAA,IAAAA,EAAAA,WAAAA,CAAAA;AAAc;;;QAHzBC,SAAW,EAAA;AAACL,YAAAA,oBAAAA;AAAsBG,YAAAA;AAAa,SAAA;QAC/CG,OAAS,EAAA;AAACN,YAAAA,oBAAAA;AAAsBG,YAAAA;AAAa;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zthun/webigail-nest",
3
- "version": "3.3.0",
3
+ "version": "4.0.1",
4
4
  "description": "A nest-js module that add the tokens and implementations for the http service in webigail-http.",
5
5
  "author": "Anthony Bonta",
6
6
  "license": "MIT",
@@ -10,11 +10,11 @@
10
10
  "directory": "packages/webigail-nest"
11
11
  },
12
12
  "type": "module",
13
- "types": "./dist/index.d.ts",
13
+ "types": "./dist/index.d.mts",
14
14
  "main": "./dist/index.cjs",
15
15
  "module": "./dist/index.js",
16
16
  "exports": {
17
- "types": "./dist/index.d.ts",
17
+ "types": "./dist/index.d.mts",
18
18
  "import": "./dist/index.js",
19
19
  "require": "./dist/index.cjs"
20
20
  },
@@ -25,16 +25,17 @@
25
25
  "access": "public"
26
26
  },
27
27
  "dependencies": {
28
- "@zthun/webigail-http": "^3.3.0"
28
+ "@zthun/webigail-http": "^4.0.1"
29
29
  },
30
30
  "devDependencies": {
31
- "@nestjs/common": "^11.1.1",
32
- "@nestjs/core": "^11.1.1",
33
- "@nestjs/testing": "^11.1.1",
31
+ "@nestjs/common": "^11.1.3",
32
+ "@nestjs/core": "^11.1.3",
33
+ "@nestjs/testing": "^11.1.3",
34
+ "@zthun/janitor-build-config": "^19.2.0",
34
35
  "reflect-metadata": "^0.2.2",
35
36
  "rxjs": "^7.8.2",
36
37
  "vite": "^6.3.5",
37
- "vitest": "^3.1.4"
38
+ "vitest": "^3.2.4"
38
39
  },
39
40
  "peerDependencies": {
40
41
  "@nestjs/common": "^11.1.1",
@@ -46,5 +47,5 @@
46
47
  "dist"
47
48
  ],
48
49
  "sideEffects": false,
49
- "gitHead": "72a0000e563ffc63023e23b6c5428d8e61de17f5"
50
+ "gitHead": "b26f41581e1eaa95442078cd45beb8d2a90e273f"
50
51
  }
package/dist/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './http/http-module';
2
- export * from './http/http-service-token';