@zthun/webigail-nest 4.0.9 → 5.0.0

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.
package/dist/index.cjs CHANGED
@@ -7,27 +7,21 @@ const webigailHttp = require('@zthun/webigail-http');
7
7
 
8
8
  /**
9
9
  * The token symbol to inject the http service.
10
- */ var ZHttpServiceToken = Symbol();
10
+ */ const ZHttpServiceToken = Symbol();
11
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
12
  function _ts_decorate(decorators, target, key, desc) {
18
13
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
14
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
15
  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
16
  return c > 3 && r && Object.defineProperty(target, key, r), r;
22
17
  }
23
- var ZHttpServiceProvider = {
18
+ const ZHttpServiceProvider = {
24
19
  provide: ZHttpServiceToken,
25
20
  useValue: new webigailHttp.ZHttpService()
26
21
  };
27
- exports.ZHttpModule = function ZHttpModule() {
28
- _class_call_check(this, ZHttpModule);
29
- };
30
- exports.ZHttpModule = _ts_decorate([
22
+ class ZHttpModule {
23
+ }
24
+ ZHttpModule = _ts_decorate([
31
25
  common.Module({
32
26
  providers: [
33
27
  ZHttpServiceProvider,
@@ -38,7 +32,8 @@ exports.ZHttpModule = _ts_decorate([
38
32
  webigailHttp.ZHttpService
39
33
  ]
40
34
  })
41
- ], exports.ZHttpModule);
35
+ ], ZHttpModule);
42
36
 
37
+ exports.ZHttpModule = ZHttpModule;
43
38
  exports.ZHttpServiceToken = ZHttpServiceToken;
44
39
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
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;;IAGO,IAAMA,iBAAAA,GAAoBC,MAAAA;;;;;;;;;;;;;ACCjC,IAAMC,oBAAAA,GAAuB;IAC3BC,OAAAA,EAASH,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,SAAAA,EAAW;AAACL,YAAAA,oBAAAA;AAAsBG,YAAAA;AAAa,SAAA;QAC/CG,OAAAA,EAAS;AAACN,YAAAA,oBAAAA;AAAsBG,YAAAA;AAAa;;;;;;"}
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;;IAGO,MAAMA,iBAAAA,GAAoBC,MAAAA;;;;;;;;ACCjC,MAAMC,oBAAAA,GAAuB;IAC3BC,OAAAA,EAASH,iBAAAA;AACTI,IAAAA,QAAAA,EAAU,IAAIC,yBAAAA;AAChB,CAAA;AASO,MAAMC,WAAAA,CAAAA;AAAa;;;QAHxBC,SAAAA,EAAW;AAACL,YAAAA,oBAAAA;AAAsBG,YAAAA;AAAa,SAAA;QAC/CG,OAAAA,EAAS;AAACN,YAAAA,oBAAAA;AAAsBG,YAAAA;AAAa;;;;;;;"}
package/dist/index.js CHANGED
@@ -3,26 +3,20 @@ import { ZHttpService } from '@zthun/webigail-http';
3
3
 
4
4
  /**
5
5
  * The token symbol to inject the http service.
6
- */ var ZHttpServiceToken = Symbol();
6
+ */ const ZHttpServiceToken = Symbol();
7
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
8
  function _ts_decorate(decorators, target, key, desc) {
14
9
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
15
10
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
16
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;
17
12
  return c > 3 && r && Object.defineProperty(target, key, r), r;
18
13
  }
19
- var ZHttpServiceProvider = {
14
+ const ZHttpServiceProvider = {
20
15
  provide: ZHttpServiceToken,
21
16
  useValue: new ZHttpService()
22
17
  };
23
- var ZHttpModule = function ZHttpModule() {
24
- _class_call_check(this, ZHttpModule);
25
- };
18
+ class ZHttpModule {
19
+ }
26
20
  ZHttpModule = _ts_decorate([
27
21
  Module({
28
22
  providers: [
package/dist/index.js.map CHANGED
@@ -1 +1 @@
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;;IAGO,IAAMA,iBAAAA,GAAoBC,MAAAA;;;;;;;;;;;;;ACCjC,IAAMC,oBAAAA,GAAuB;IAC3BC,OAAAA,EAASH,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,SAAAA,EAAW;AAACL,YAAAA,oBAAAA;AAAsBG,YAAAA;AAAa,SAAA;QAC/CG,OAAAA,EAAS;AAACN,YAAAA,oBAAAA;AAAsBG,YAAAA;AAAa;;;;;;"}
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;;IAGO,MAAMA,iBAAAA,GAAoBC,MAAAA;;;;;;;;ACCjC,MAAMC,oBAAAA,GAAuB;IAC3BC,OAAAA,EAASH,iBAAAA;AACTI,IAAAA,QAAAA,EAAU,IAAIC,YAAAA;AAChB,CAAA;AASO,MAAMC,WAAAA,CAAAA;AAAa;;;QAHxBC,SAAAA,EAAW;AAACL,YAAAA,oBAAAA;AAAsBG,YAAAA;AAAa,SAAA;QAC/CG,OAAAA,EAAS;AAACN,YAAAA,oBAAAA;AAAsBG,YAAAA;AAAa;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zthun/webigail-nest",
3
- "version": "4.0.9",
3
+ "version": "5.0.0",
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",
@@ -25,17 +25,17 @@
25
25
  "access": "public"
26
26
  },
27
27
  "dependencies": {
28
- "@zthun/webigail-http": "^4.0.9"
28
+ "@zthun/webigail-http": "^5.0.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@nestjs/common": "^11.1.6",
32
- "@nestjs/core": "^11.1.6",
33
- "@nestjs/testing": "^11.1.6",
34
- "@zthun/janitor-build-config": "^19.3.6",
31
+ "@nestjs/common": "^11.1.7",
32
+ "@nestjs/core": "^11.1.7",
33
+ "@nestjs/testing": "^11.1.7",
34
+ "@zthun/janitor-build-config": "^19.4.1",
35
35
  "reflect-metadata": "^0.2.2",
36
36
  "rxjs": "^7.8.2",
37
- "vite": "^7.1.10",
38
- "vitest": "^3.2.4"
37
+ "vite": "^7.1.11",
38
+ "vitest": "^4.0.1"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@nestjs/common": "^11.1.1",
@@ -47,5 +47,5 @@
47
47
  "dist"
48
48
  ],
49
49
  "sideEffects": false,
50
- "gitHead": "2f132dccd264da57d0342a9d4b9437eb37643127"
50
+ "gitHead": "5222786598d93837b2dfebe3ec79b8a7f74c4a51"
51
51
  }