@rafikidota/cuba-ofertas-scraping 0.2.1 → 0.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.
@@ -20,6 +20,7 @@ export * from './interface/product.interface';
20
20
  export * from './interface/province.interface';
21
21
  export * from './interface/scraping-result.interface';
22
22
  export * from './interface/transport-event.interface';
23
+ export * from './logger/timestamp.logger';
23
24
  export * from './types/country';
24
25
  export * from './types/delay-range';
25
26
  export * from './types/location';
@@ -36,6 +36,7 @@ __exportStar(require("./interface/product.interface"), exports);
36
36
  __exportStar(require("./interface/province.interface"), exports);
37
37
  __exportStar(require("./interface/scraping-result.interface"), exports);
38
38
  __exportStar(require("./interface/transport-event.interface"), exports);
39
+ __exportStar(require("./logger/timestamp.logger"), exports);
39
40
  __exportStar(require("./types/country"), exports);
40
41
  __exportStar(require("./types/delay-range"), exports);
41
42
  __exportStar(require("./types/location"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,iDAA+B;AAC/B,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,0DAAwC;AAExC,4DAA0C;AAC1C,oDAAkC;AAClC,sDAAoC;AACpC,kDAAgC;AAEhC,oDAAkC;AAClC,sDAAoC;AACpC,6DAA2C;AAC3C,qEAAmD;AACnD,4DAA0C;AAE1C,iEAA+C;AAC/C,+DAA6C;AAC7C,qEAAmD;AACnD,gEAA8C;AAC9C,iEAA+C;AAC/C,wEAAsD;AACtD,wEAAsD;AAEtD,kDAAgC;AAChC,sDAAoC;AACpC,mDAAiC;AACjC,mDAAiC;AACjC,iDAA+B;AAC/B,2DAAyC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,iDAA+B;AAC/B,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,0DAAwC;AAExC,4DAA0C;AAC1C,oDAAkC;AAClC,sDAAoC;AACpC,kDAAgC;AAEhC,oDAAkC;AAClC,sDAAoC;AACpC,6DAA2C;AAC3C,qEAAmD;AACnD,4DAA0C;AAE1C,iEAA+C;AAC/C,+DAA6C;AAC7C,qEAAmD;AACnD,gEAA8C;AAC9C,iEAA+C;AAC/C,wEAAsD;AACtD,wEAAsD;AAEtD,4DAA0C;AAE1C,kDAAgC;AAChC,sDAAoC;AACpC,mDAAiC;AACjC,mDAAiC;AACjC,iDAA+B;AAC/B,2DAAyC"}
@@ -0,0 +1,7 @@
1
+ import { Logger, Type } from '@nestjs/common';
2
+ export declare const LoggerToken: <T>(Provider: Type<T>) => symbol;
3
+ export declare const LoggerProvider: <T>(Provider: Type<T>) => {
4
+ provide: symbol;
5
+ useFactory: () => Logger;
6
+ };
7
+ export declare const InjectLogger: <T>(Provider: Type<T>) => PropertyDecorator & ParameterDecorator;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InjectLogger = exports.LoggerProvider = exports.LoggerToken = void 0;
4
+ const common_1 = require("@nestjs/common");
5
+ const LoggerToken = (Provider) => Symbol.for(`${Provider.name}Logger`);
6
+ exports.LoggerToken = LoggerToken;
7
+ const LoggerProvider = (Provider) => ({
8
+ provide: (0, exports.LoggerToken)(Provider),
9
+ useFactory: () => new common_1.Logger(Provider.name, { timestamp: true }),
10
+ });
11
+ exports.LoggerProvider = LoggerProvider;
12
+ const InjectLogger = (Provider) => (0, common_1.Inject)((0, exports.LoggerToken)(Provider));
13
+ exports.InjectLogger = InjectLogger;
14
+ //# sourceMappingURL=timestamp.logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timestamp.logger.js","sourceRoot":"","sources":["../../../src/common/logger/timestamp.logger.ts"],"names":[],"mappings":";;;AAAA,2CAAsD;AAE/C,MAAM,WAAW,GAAG,CAAI,QAAiB,EAAE,EAAE,CAClD,MAAM,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC,IAAI,QAAQ,CAAC,CAAC;AAD1B,QAAA,WAAW,eACe;AAEhC,MAAM,cAAc,GAAG,CAAI,QAAiB,EAAE,EAAE,CAAC,CAAC;IACvD,OAAO,EAAE,IAAA,mBAAW,EAAC,QAAQ,CAAC;IAC9B,UAAU,EAAE,GAAG,EAAE,CAAC,IAAI,eAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;CACjE,CAAC,CAAC;AAHU,QAAA,cAAc,kBAGxB;AAEI,MAAM,YAAY,GAAG,CAAI,QAAiB,EAAE,EAAE,CACnD,IAAA,eAAM,EAAC,IAAA,mBAAW,EAAC,QAAQ,CAAC,CAAC,CAAC;AADnB,QAAA,YAAY,gBACO"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rafikidota/cuba-ofertas-scraping",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "Sometimes, the best way to solve your own problems is to help someone else.",
5
5
  "repository": {
6
6
  "type": "git",