@zthun/webigail-nest 5.0.5 → 5.0.7
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 +29 -34
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +22 -29
- package/dist/index.js.map +1 -1
- package/package.json +11 -11
package/dist/index.cjs
CHANGED
|
@@ -1,39 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const common = require('@nestjs/common');
|
|
6
|
-
const webigailHttp = require('@zthun/webigail-http');
|
|
7
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let _nestjs_common = require("@nestjs/common");
|
|
3
|
+
let _zthun_webigail_http = require("@zthun/webigail-http");
|
|
4
|
+
//#region src/http/http-service-token.mts
|
|
8
5
|
/**
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
* The token symbol to inject the http service.
|
|
7
|
+
*/ var ZHttpServiceToken = Symbol();
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/http/http-module.mts
|
|
12
10
|
function _ts_decorate(decorators, target, key, desc) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
12
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
13
|
+
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;
|
|
14
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17
15
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
var ZHttpServiceProvider = {
|
|
17
|
+
provide: ZHttpServiceToken,
|
|
18
|
+
useValue: new _zthun_webigail_http.ZHttpService()
|
|
21
19
|
};
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
})
|
|
35
|
-
], ZHttpModule);
|
|
36
|
-
|
|
37
|
-
exports.ZHttpModule = ZHttpModule;
|
|
20
|
+
var ZHttpModule = class {};
|
|
21
|
+
ZHttpModule = _ts_decorate([(0, _nestjs_common.Module)({
|
|
22
|
+
providers: [ZHttpServiceProvider, _zthun_webigail_http.ZHttpService],
|
|
23
|
+
exports: [ZHttpServiceProvider, _zthun_webigail_http.ZHttpService]
|
|
24
|
+
})], ZHttpModule);
|
|
25
|
+
//#endregion
|
|
26
|
+
Object.defineProperty(exports, "ZHttpModule", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function() {
|
|
29
|
+
return ZHttpModule;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
38
32
|
exports.ZHttpServiceToken = ZHttpServiceToken;
|
|
39
|
-
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -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"],"
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["ZHttpServiceToken","Symbol","Module","ZHttpService","ZHttpServiceToken","ZHttpServiceProvider","provide","useValue","ZHttpModule","providers","exports"],"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\";\n\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"],"mappings":";;;;;;GAGA,IAAaA,oBAAoBC,QAAAA;;;;;;;;;ACEjC,IAAMI,uBAAuB;CAC3BC,SAASF;CACTG,UAAU,IAAIJ,qBAAAA,cAAAA;CAChB;AASA,IAAaK,cAAb,MAAaA;;CAHXC,WAAW,CAACJ,sBAAsBF,qBAAAA,aAAa;CAC/CO,SAAS,CAACL,sBAAsBF,qBAAAA,aAAa"}
|
package/dist/index.js
CHANGED
|
@@ -1,34 +1,27 @@
|
|
|
1
|
-
import { Module } from
|
|
2
|
-
import { ZHttpService } from
|
|
3
|
-
|
|
1
|
+
import { Module } from "@nestjs/common";
|
|
2
|
+
import { ZHttpService } from "@zthun/webigail-http";
|
|
3
|
+
//#region src/http/http-service-token.mts
|
|
4
4
|
/**
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
* The token symbol to inject the http service.
|
|
6
|
+
*/ var ZHttpServiceToken = Symbol();
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/http/http-module.mts
|
|
8
9
|
function _ts_decorate(decorators, target, key, desc) {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
12
|
+
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;
|
|
13
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13
14
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
var ZHttpServiceProvider = {
|
|
16
|
+
provide: ZHttpServiceToken,
|
|
17
|
+
useValue: new ZHttpService()
|
|
17
18
|
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
ZHttpService
|
|
25
|
-
],
|
|
26
|
-
exports: [
|
|
27
|
-
ZHttpServiceProvider,
|
|
28
|
-
ZHttpService
|
|
29
|
-
]
|
|
30
|
-
})
|
|
31
|
-
], ZHttpModule);
|
|
32
|
-
|
|
19
|
+
var ZHttpModule = class {};
|
|
20
|
+
ZHttpModule = _ts_decorate([Module({
|
|
21
|
+
providers: [ZHttpServiceProvider, ZHttpService],
|
|
22
|
+
exports: [ZHttpServiceProvider, ZHttpService]
|
|
23
|
+
})], ZHttpModule);
|
|
24
|
+
//#endregion
|
|
33
25
|
export { ZHttpModule, ZHttpServiceToken };
|
|
34
|
-
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
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"],"
|
|
1
|
+
{"version":3,"file":"index.js","names":["ZHttpServiceToken","Symbol","Module","ZHttpService","ZHttpServiceToken","ZHttpServiceProvider","provide","useValue","ZHttpModule","providers","exports"],"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\";\n\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"],"mappings":";;;;;GAGA,IAAaA,oBAAoBC,QAAAA;;;;;;;;;ACEjC,IAAMI,uBAAuB;CAC3BC,SAASF;CACTG,UAAU,IAAIJ,cAAAA;CAChB;AASA,IAAaK,cAAb,MAAaA;;CAHXC,WAAW,CAACJ,sBAAsBF,aAAa;CAC/CO,SAAS,CAACL,sBAAsBF,aAAa"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zthun/webigail-nest",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.7",
|
|
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,19 +25,19 @@
|
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@zthun/webigail-http": "^5.0.
|
|
28
|
+
"@zthun/webigail-http": "^5.0.7"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@nestjs/common": "^11.1.
|
|
32
|
-
"@nestjs/core": "^11.1.
|
|
33
|
-
"@nestjs/testing": "^11.1.
|
|
34
|
-
"@zthun/janitor-build-config": "^
|
|
35
|
-
"@zthun/janitor-ts-config": "^
|
|
31
|
+
"@nestjs/common": "^11.1.19",
|
|
32
|
+
"@nestjs/core": "^11.1.19",
|
|
33
|
+
"@nestjs/testing": "^11.1.19",
|
|
34
|
+
"@zthun/janitor-build-config": "^20.0.5",
|
|
35
|
+
"@zthun/janitor-ts-config": "^20.0.4",
|
|
36
36
|
"reflect-metadata": "^0.2.2",
|
|
37
37
|
"rxjs": "^7.8.2",
|
|
38
|
-
"typescript": "~
|
|
39
|
-
"vite": "^
|
|
40
|
-
"vitest": "^4.
|
|
38
|
+
"typescript": "~6.0.3",
|
|
39
|
+
"vite": "^8.0.10",
|
|
40
|
+
"vitest": "^4.1.5"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@nestjs/common": "^11.1.1",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"dist"
|
|
50
50
|
],
|
|
51
51
|
"sideEffects": false,
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "146baf7509688dc071fba97aed39936bd5bbd9e2"
|
|
53
53
|
}
|