bootifyjs 1.1.0 → 1.1.2

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.
@@ -8,7 +8,6 @@ const component_registry_1 = require("../core/component-registry");
8
8
  const bootstrap_1 = require("../events/bootstrap");
9
9
  const di_container_1 = require("../core/di-container");
10
10
  const todo_service_1 = require("./services/todo.service");
11
- const bootstrap_2 = require("../cache/bootstrap");
12
11
  // import { createBootifyApp } from './api'
13
12
  // import { HealthController } from './examples/controllers/health.controller'
14
13
  // import { TodoController } from './examples/controllers/todo.controller'
@@ -17,7 +16,7 @@ async function main() {
17
16
  // await intitializeLogging()
18
17
  const allComponents = Array.from(component_registry_1.registeredComponents);
19
18
  await (0, bootstrap_1.bootstrapEventSystem)(allComponents);
20
- await (0, bootstrap_2.bootstrapCache)();
19
+ // await bootstrapCache()
21
20
  const { start } = await (0, api_1.createBootifyApp)({
22
21
  controllers: [health_controller_1.HealthController, todo_controller_1.TodoController],
23
22
  enableSwagger: true,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/examples/index.ts"],"names":[],"mappings":";;AAAA,4BAAyB;AACzB,gCAAyC;AACzC,uEAAkE;AAClE,mEAA8D;AAC9D,mEAAiE;AACjE,mDAA0D;AAC1D,uDAAgD;AAChD,0DAA+D;AAC/D,kDAAmD;AAEnD,2CAA2C;AAC3C,8EAA8E;AAC9E,0EAA0E;AAE1E,8BAA8B;AAC9B,KAAK,UAAU,IAAI;IACjB,+BAA+B;IAC/B,MAAM,aAAa,GAAG,KAAK,CAAC,IAAI,CAAC,yCAAoB,CAAC,CAAA;IACtD,MAAM,IAAA,gCAAoB,EAAC,aAAa,CAAC,CAAA;IACzC,MAAM,IAAA,0BAAc,GAAE,CAAA;IACtB,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAA,sBAAgB,EAAC;QACvC,WAAW,EAAE,CAAC,oCAAgB,EAAE,gCAAc,CAAC;QAC/C,a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wBAAS,CAAC,OAAO,CAAS,QAAQ,CAAC,CAAA;IAElD,wBAAwB;IACxB,MAAM,aAAa,GAAkB,wBAAS,CAAC,OAAO,CAAgB,4BAAa,CAAC,CAAA;IACpF,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,MAAM,KAAK,aAAa,CAAC,OAAO,CAAC,CAAA;IAC3D,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IAEtC,MAAM,KAAK,EAAE,CAAA;AACf,CAAC;AAED,IAAI,EAAE,CAAA"}
@@ -1,8 +1,10 @@
1
1
  import { Logger } from './core/logger.service';
2
2
  import { StartupLoggerService } from './core/startup.logger';
3
+ import pino from 'pino';
3
4
  export declare function intitializeLogging(): Promise<{
4
5
  logger: Logger;
5
6
  startupLogger: StartupLoggerService;
6
7
  }>;
8
+ export declare const logger: pino.Logger<never, boolean>;
7
9
  export * from './core/decorators';
8
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/logging/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAA;AAE5D,wBAAsB,kBAAkB,IAAI,OAAO,CAAC;IAClD,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,EAAE,oBAAoB,CAAA;CACpC,CAAC,CAcD;AAED,cAAc,mBAAmB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/logging/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,IAAI,MAAM,MAAM,CAAA;AAEvB,wBAAsB,kBAAkB,IAAI,OAAO,CAAC;IAClD,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,EAAE,oBAAoB,CAAA;CACpC,CAAC,CAcD;AAED,eAAO,MAAM,MAAM,6BAA+C,CAAA;AAClE,cAAc,mBAAmB,CAAA"}
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.logger = void 0;
17
18
  exports.intitializeLogging = intitializeLogging;
18
19
  const core_1 = require("../core");
19
20
  const logger_provider_1 = require("./core/logger.provider");
@@ -31,5 +32,6 @@ async function intitializeLogging() {
31
32
  startupLogger: core_1.container.resolve(startup_logger_1.StartupLoggerService),
32
33
  };
33
34
  }
35
+ exports.logger = core_1.container.resolve(logger_provider_1.LOGGER_TOKEN);
34
36
  __exportStar(require("./core/decorators"), exports);
35
37
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/logging/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAKA,gDAiBC;AAtBD,kCAAmC;AACnC,4DAAoE;AACpE,0DAA8C;AAC9C,0DAA4D;AAErD,KAAK,UAAU,kBAAkB;IAItC,OAAO,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAA;IAEjD,wEAAwE;IACxE,+CAA+C;IAE/C,gEAAgE;IAChE,gBAAS,CAAC,QAAQ,CAAC,8BAAY,EAAE,EAAE,UAAU,EAAE,+BAAa,EAAE,CAAC,CAAA;IAE/D,OAAO,CAAC,GAAG,CAAC,+CAA+C,CAAC,CAAA;IAC5D,OAAO;QACL,MAAM,EAAE,gBAAS,CAAC,OAAO,CAAS,uBAAM,CAAC;QACzC,aAAa,EAAE,gBAAS,CAAC,OAAO,CAAuB,qCAAoB,CAAC;KAC7E,CAAA;AACH,CAAC;AAED,oDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/logging/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAMA,gDAiBC;AAvBD,kCAAmC;AACnC,4DAAoE;AACpE,0DAA8C;AAC9C,0DAA4D;AAGrD,KAAK,UAAU,kBAAkB;IAItC,OAAO,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAA;IAEjD,wEAAwE;IACxE,+CAA+C;IAE/C,gEAAgE;IAChE,gBAAS,CAAC,QAAQ,CAAC,8BAAY,EAAE,EAAE,UAAU,EAAE,+BAAa,EAAE,CAAC,CAAA;IAE/D,OAAO,CAAC,GAAG,CAAC,+CAA+C,CAAC,CAAA;IAC5D,OAAO;QACL,MAAM,EAAE,gBAAS,CAAC,OAAO,CAAS,uBAAM,CAAC;QACzC,aAAa,EAAE,gBAAS,CAAC,OAAO,CAAuB,qCAAoB,CAAC;KAC7E,CAAA;AACH,CAAC;AAEY,QAAA,MAAM,GAAG,gBAAS,CAAC,OAAO,CAAc,8BAAY,CAAC,CAAA;AAClE,oDAAiC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bootifyjs",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "keywords": [],
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -45,9 +45,7 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "fastify": "^5.4.0",
48
- "inversify": "^7.6.1",
49
48
  "reflect-metadata": "^0.2.2",
50
- "sequelize": "^6.37.7",
51
49
  "zod": "^3.25.76",
52
50
  "zod-to-json-schema": "^3.24.6"
53
51
  },