minimonolith 0.6.0 → 0.6.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.
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
 
3
- import { createAPI } from './src/apiHandler/index.js';
4
- import { runLambdaServer, loadEnvVariables } from './src/lambdaServer/index.js';
3
+ import { createAPI } from './src/createAPI/index.js';
4
+ import { runLambdaServer, loadEnvVariables } from './src/server/index.js';
5
5
 
6
6
  export { runLambdaServer, loadEnvVariables, createAPI, z };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "minimonolith",
3
3
  "type": "module",
4
- "version": "0.6.0",
4
+ "version": "0.6.2",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -1,8 +1,8 @@
1
1
  import lambdaAPICreateAPI from 'lambda-api';
2
2
 
3
- import { registerHealthService } from '../registerHealthService/index.js';
4
- import { registerDatabaseService } from '../registerDatabaseService/index.js';
5
- import { registerService } from '../registerService/index.js';
3
+ import { registerHealthService } from '../health/index.js';
4
+ import { registerDatabaseService } from '../database/index.js';
5
+ import { registerService } from '../service/index.js';
6
6
  import { apiHandler } from './apiHandler.js';
7
7
 
8
8
  const addCORS = API => {
@@ -0,0 +1,3 @@
1
+ import { registerHealthService } from './registerHealthService.js';
2
+
3
+ export { registerHealthService };
@@ -2,7 +2,7 @@ import dotenv from 'dotenv';
2
2
  import path from 'path';
3
3
  import url from 'url';
4
4
 
5
- import { getProjectRoot } from '../pathHandler/index.js';
5
+ import { getProjectRoot } from '../path/index.js';
6
6
 
7
7
  const loadEnvVariables = (MODULE_FOLDER='node_modules/') => {
8
8
  const projectRootPath = url.fileURLToPath(getProjectRoot(import.meta.url, MODULE_FOLDER)+'/');
@@ -1,7 +1,7 @@
1
1
  import url from 'url'
2
2
 
3
- import { getProjectRoot } from '../pathHandler/index.js';
4
- import { registerModel } from '../registerDatabaseService/index.js';
3
+ import { getProjectRoot } from '../path/index.js';
4
+ import { registerModel } from '../database/index.js';
5
5
  import { methodHandler } from './methodHandler.js';
6
6
  import { getMethodType } from './getMethodType.js';
7
7
  import { getMethodRouteCode } from './getMethodRouteCode.js';
@@ -1,3 +0,0 @@
1
- import { registerHealthService } from './healthHandler.js';
2
-
3
- export { registerHealthService };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes