@zthun/webigail-nest 2.0.0 → 2.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.
@@ -1,5 +1,7 @@
1
- import { Module } from "@nestjs/common";
2
- import { ZHttpService } from "@zthun/webigail-http";
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
- let ZHttpModule = class {
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
- export {
25
- ZHttpModule,
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.mjs","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;"}
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
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
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 webigailHttp.ZHttpService() };
18
- exports.ZHttpModule = class ZHttpModule {
15
+ const ZHttpServiceProvider = { provide: ZHttpServiceToken, useValue: new ZHttpService() };
16
+ let ZHttpModule = class {
19
17
  };
20
- exports.ZHttpModule = __decorateClass([
21
- common.Module({
22
- providers: [ZHttpServiceProvider, webigailHttp.ZHttpService],
23
- exports: [ZHttpServiceProvider, webigailHttp.ZHttpService]
18
+ ZHttpModule = __decorateClass([
19
+ Module({
20
+ providers: [ZHttpServiceProvider, ZHttpService],
21
+ exports: [ZHttpServiceProvider, ZHttpService]
24
22
  })
25
- ], exports.ZHttpModule);
26
- exports.ZHttpServiceToken = ZHttpServiceToken;
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":["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;;"}
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.0.0",
3
+ "version": "2.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",
@@ -9,14 +9,15 @@
9
9
  "url": "https://github.com/zthun/webigail",
10
10
  "directory": "packages/webigail-nest"
11
11
  },
12
- "main": "./dist/index.js",
13
- "module": "./dist/index.mjs",
12
+ "main": "./dist/index.cjs",
13
+ "module": "./dist/index.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "exports": {
16
- "import": "./dist/index.mjs",
17
- "require": "./dist/index.js",
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
  },
@@ -42,8 +43,8 @@
42
43
  "dist"
43
44
  ],
44
45
  "dependencies": {
45
- "@zthun/webigail-http": "^2.0.0"
46
+ "@zthun/webigail-http": "^2.0.1"
46
47
  },
47
48
  "sideEffects": false,
48
- "gitHead": "4716ae7aedfaae8b24e90a858f851b8d863395bb"
49
+ "gitHead": "0d700bfd5343f5c64ebc48ebeb067aecd2804954"
49
50
  }