@zthun/webigail-nest 2.0.0 → 2.1.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.mjs → index.cjs} +13 -14
- package/dist/{index.mjs.map → index.cjs.map} +1 -1
- package/dist/index.js +13 -12
- package/dist/index.js.map +1 -1
- package/package.json +13 -12
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const common = require("@nestjs/common");
|
|
4
|
+
const webigailHttp = require("@zthun/webigail-http");
|
|
3
5
|
const ZHttpServiceToken = Symbol();
|
|
4
6
|
var __defProp = Object.defineProperty;
|
|
5
7
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -12,17 +14,14 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
12
14
|
__defProp(target, key, result);
|
|
13
15
|
return result;
|
|
14
16
|
};
|
|
15
|
-
const ZHttpServiceProvider = { provide: ZHttpServiceToken, useValue: new ZHttpService() };
|
|
16
|
-
|
|
17
|
+
const ZHttpServiceProvider = { provide: ZHttpServiceToken, useValue: new webigailHttp.ZHttpService() };
|
|
18
|
+
exports.ZHttpModule = class ZHttpModule {
|
|
17
19
|
};
|
|
18
|
-
ZHttpModule = __decorateClass([
|
|
19
|
-
Module({
|
|
20
|
-
providers: [ZHttpServiceProvider, ZHttpService],
|
|
21
|
-
exports: [ZHttpServiceProvider, ZHttpService]
|
|
20
|
+
exports.ZHttpModule = __decorateClass([
|
|
21
|
+
common.Module({
|
|
22
|
+
providers: [ZHttpServiceProvider, webigailHttp.ZHttpService],
|
|
23
|
+
exports: [ZHttpServiceProvider, webigailHttp.ZHttpService]
|
|
22
24
|
})
|
|
23
|
-
], ZHttpModule);
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
ZHttpServiceToken
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=index.mjs.map
|
|
25
|
+
], exports.ZHttpModule);
|
|
26
|
+
exports.ZHttpServiceToken = ZHttpServiceToken;
|
|
27
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.
|
|
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 = { provide: ZHttpServiceToken, useValue: new ZHttpService() };\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,EAAE,SAAS,mBAAmB,UAAU,IAAIA;AAS5DC,sBAAN,kBAAkB;AAAC;AAAbA,QAAN,cAAA,gBAAA;AAAA,EAJNC,cAAO;AAAA,IACN,WAAW,CAAC,sBAAsBF,yBAAY;AAAA,IAC9C,SAAS,CAAC,sBAAsBA,yBAAY;AAAA,EAAA,CAC7C;AAAA,GACYC,mBAAA;;"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const common = require("@nestjs/common");
|
|
4
|
-
const webigailHttp = require("@zthun/webigail-http");
|
|
1
|
+
import { Module } from "@nestjs/common";
|
|
2
|
+
import { ZHttpService } from "@zthun/webigail-http";
|
|
5
3
|
const ZHttpServiceToken = Symbol();
|
|
6
4
|
var __defProp = Object.defineProperty;
|
|
7
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -14,14 +12,17 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
14
12
|
__defProp(target, key, result);
|
|
15
13
|
return result;
|
|
16
14
|
};
|
|
17
|
-
const ZHttpServiceProvider = { provide: ZHttpServiceToken, useValue: new
|
|
18
|
-
|
|
15
|
+
const ZHttpServiceProvider = { provide: ZHttpServiceToken, useValue: new ZHttpService() };
|
|
16
|
+
let ZHttpModule = class {
|
|
19
17
|
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
providers: [ZHttpServiceProvider,
|
|
23
|
-
exports: [ZHttpServiceProvider,
|
|
18
|
+
ZHttpModule = __decorateClass([
|
|
19
|
+
Module({
|
|
20
|
+
providers: [ZHttpServiceProvider, ZHttpService],
|
|
21
|
+
exports: [ZHttpServiceProvider, ZHttpService]
|
|
24
22
|
})
|
|
25
|
-
],
|
|
26
|
-
|
|
23
|
+
], ZHttpModule);
|
|
24
|
+
export {
|
|
25
|
+
ZHttpModule,
|
|
26
|
+
ZHttpServiceToken
|
|
27
|
+
};
|
|
27
28
|
//# 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 = { provide: ZHttpServiceToken, useValue: new ZHttpService() };\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":[
|
|
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 = { provide: ZHttpServiceToken, useValue: new ZHttpService() };\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,EAAE,SAAS,mBAAmB,UAAU,IAAI;AASlE,IAAM,cAAN,MAAkB;AAAC;AAAb,cAAN,gBAAA;AAAA,EAJN,OAAO;AAAA,IACN,WAAW,CAAC,sBAAsB,YAAY;AAAA,IAC9C,SAAS,CAAC,sBAAsB,YAAY;AAAA,EAAA,CAC7C;AAAA,GACY,WAAA;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zthun/webigail-nest",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.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,14 +9,15 @@
|
|
|
9
9
|
"url": "https://github.com/zthun/webigail",
|
|
10
10
|
"directory": "packages/webigail-nest"
|
|
11
11
|
},
|
|
12
|
-
"main": "./dist/index.
|
|
13
|
-
"module": "./dist/index.
|
|
12
|
+
"main": "./dist/index.cjs",
|
|
13
|
+
"module": "./dist/index.js",
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"exports": {
|
|
16
|
-
"import": "./dist/index.
|
|
17
|
-
"require": "./dist/index.
|
|
16
|
+
"import": "./dist/index.js",
|
|
17
|
+
"require": "./dist/index.cjs",
|
|
18
18
|
"types": "./dist/index.d.ts"
|
|
19
19
|
},
|
|
20
|
+
"type": "module",
|
|
20
21
|
"scripts": {
|
|
21
22
|
"build": "vite build"
|
|
22
23
|
},
|
|
@@ -24,13 +25,13 @@
|
|
|
24
25
|
"access": "public"
|
|
25
26
|
},
|
|
26
27
|
"devDependencies": {
|
|
27
|
-
"@nestjs/common": "^10.3.
|
|
28
|
-
"@nestjs/core": "^10.3.
|
|
29
|
-
"@nestjs/testing": "^10.3.
|
|
28
|
+
"@nestjs/common": "^10.3.1",
|
|
29
|
+
"@nestjs/core": "^10.3.1",
|
|
30
|
+
"@nestjs/testing": "^10.3.1",
|
|
30
31
|
"reflect-metadata": "^0.2.1",
|
|
31
32
|
"rxjs": "^7.8.1",
|
|
32
|
-
"vite": "^5.0.
|
|
33
|
-
"vitest": "^1.
|
|
33
|
+
"vite": "^5.0.12",
|
|
34
|
+
"vitest": "^1.2.2"
|
|
34
35
|
},
|
|
35
36
|
"peerDependencies": {
|
|
36
37
|
"@nestjs/common": "^10.3.0",
|
|
@@ -42,8 +43,8 @@
|
|
|
42
43
|
"dist"
|
|
43
44
|
],
|
|
44
45
|
"dependencies": {
|
|
45
|
-
"@zthun/webigail-http": "^2.
|
|
46
|
+
"@zthun/webigail-http": "^2.1.0"
|
|
46
47
|
},
|
|
47
48
|
"sideEffects": false,
|
|
48
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "a013c6401a9b2cca4bfc113987c09d3f2f23ed44"
|
|
49
50
|
}
|