@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.
- package/dist/http/http-module.spec.d.ts +1 -0
- package/dist/index.cjs +39 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -0
- package/dist/index.js +36 -24
- package/dist/index.js.map +1 -1
- package/package.json +10 -9
- package/dist/index.d.ts +0 -2
- /package/dist/http/{http-module.d.ts → http-module.d.mts} +0 -0
- /package/dist/http/{http-service-token.d.ts → http-service-token.d.mts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.cjs
CHANGED
|
@@ -1,27 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
useValue: new webigailHttp.ZHttpService()
|
|
27
|
+
exports.ZHttpModule = function ZHttpModule() {
|
|
28
|
+
_class_call_check(this, ZHttpModule);
|
|
17
29
|
};
|
|
18
|
-
exports.ZHttpModule =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../src/http/http-service-token.
|
|
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;;;;;;"}
|
package/dist/index.d.mts
ADDED
package/dist/index.js
CHANGED
|
@@ -1,28 +1,40 @@
|
|
|
1
|
-
import { Module } from
|
|
2
|
-
import { ZHttpService } from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
useValue: new ZHttpService()
|
|
23
|
+
var ZHttpModule = function ZHttpModule() {
|
|
24
|
+
_class_call_check(this, ZHttpModule);
|
|
15
25
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
25
|
-
|
|
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.
|
|
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
|
+
"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.
|
|
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.
|
|
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": "^
|
|
28
|
+
"@zthun/webigail-http": "^4.0.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@nestjs/common": "^11.1.
|
|
32
|
-
"@nestjs/core": "^11.1.
|
|
33
|
-
"@nestjs/testing": "^11.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.
|
|
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": "
|
|
50
|
+
"gitHead": "b26f41581e1eaa95442078cd45beb8d2a90e273f"
|
|
50
51
|
}
|
package/dist/index.d.ts
DELETED
|
File without changes
|
|
File without changes
|