@zthun/webigail-nest 3.1.2 → 3.3.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/LICENSE CHANGED
@@ -1,21 +1,20 @@
1
- MIT License
1
+ # MIT License
2
2
 
3
- Copyright (c) 2023 Anthony Bonta
3
+ Copyright (c) 2025 Anthony Bonta
4
4
 
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
11
 
12
12
  The above copyright notice and this permission notice shall be included in all
13
13
  copies or substantial portions of the Software.
14
14
 
15
15
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/dist/index.cjs CHANGED
@@ -3,14 +3,12 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const common = require("@nestjs/common");
4
4
  const webigailHttp = require("@zthun/webigail-http");
5
5
  const ZHttpServiceToken = Symbol();
6
- var __defProp = Object.defineProperty;
7
6
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8
7
  var __decorateClass = (decorators, target, key, kind) => {
9
8
  var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
10
9
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
11
10
  if (decorator = decorators[i])
12
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
13
- if (kind && result) __defProp(target, key, result);
11
+ result = decorator(result) || result;
14
12
  return result;
15
13
  };
16
14
  const ZHttpServiceProvider = {
@@ -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.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;;"}
package/dist/index.js CHANGED
@@ -1,14 +1,12 @@
1
1
  import { Module } from "@nestjs/common";
2
2
  import { ZHttpService } from "@zthun/webigail-http";
3
3
  const ZHttpServiceToken = Symbol();
4
- var __defProp = Object.defineProperty;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __decorateClass = (decorators, target, key, kind) => {
7
6
  var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
8
7
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
9
8
  if (decorator = decorators[i])
10
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
11
- if (kind && result) __defProp(target, key, result);
9
+ result = decorator(result) || result;
12
10
  return result;
13
11
  };
14
12
  const ZHttpServiceProvider = {
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.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;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zthun/webigail-nest",
3
- "version": "3.1.2",
3
+ "version": "3.3.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",
@@ -9,42 +9,42 @@
9
9
  "url": "https://github.com/zthun/webigail",
10
10
  "directory": "packages/webigail-nest"
11
11
  },
12
+ "type": "module",
13
+ "types": "./dist/index.d.ts",
12
14
  "main": "./dist/index.cjs",
13
15
  "module": "./dist/index.js",
14
- "types": "./dist/index.d.ts",
15
16
  "exports": {
17
+ "types": "./dist/index.d.ts",
16
18
  "import": "./dist/index.js",
17
- "require": "./dist/index.cjs",
18
- "types": "./dist/index.d.ts"
19
+ "require": "./dist/index.cjs"
19
20
  },
20
- "type": "module",
21
21
  "scripts": {
22
22
  "build": "vite build"
23
23
  },
24
24
  "publishConfig": {
25
25
  "access": "public"
26
26
  },
27
+ "dependencies": {
28
+ "@zthun/webigail-http": "^3.3.0"
29
+ },
27
30
  "devDependencies": {
28
- "@nestjs/common": "^10.4.15",
29
- "@nestjs/core": "^10.4.15",
30
- "@nestjs/testing": "^10.4.15",
31
+ "@nestjs/common": "^11.1.1",
32
+ "@nestjs/core": "^11.1.1",
33
+ "@nestjs/testing": "^11.1.1",
31
34
  "reflect-metadata": "^0.2.2",
32
- "rxjs": "^7.8.1",
33
- "vite": "^5.4.11",
34
- "vitest": "^2.1.8"
35
+ "rxjs": "^7.8.2",
36
+ "vite": "^6.3.5",
37
+ "vitest": "^3.1.4"
35
38
  },
36
39
  "peerDependencies": {
37
- "@nestjs/common": "^10.3.0",
38
- "@nestjs/core": "^10.3.0",
40
+ "@nestjs/common": "^11.1.1",
41
+ "@nestjs/core": "^11.1.1",
39
42
  "reflect-metadata": "^0.2.1",
40
43
  "rxjs": "^7.8.1"
41
44
  },
42
45
  "files": [
43
46
  "dist"
44
47
  ],
45
- "dependencies": {
46
- "@zthun/webigail-http": "^3.1.2"
47
- },
48
48
  "sideEffects": false,
49
- "gitHead": "e1dfea387027ea1d1624b79f3f0fbe0b602c1d00"
49
+ "gitHead": "72a0000e563ffc63023e23b6c5428d8e61de17f5"
50
50
  }