te.js 1.0.2 → 1.0.3

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/example/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Tejas } from 'te.js';
1
+ import Tejas from 'te.js';
2
2
 
3
3
  const tejas = new Tejas();
4
4
  tejas.takeoff();
@@ -1,11 +1,10 @@
1
1
  import { Target } from 'te.js';
2
- import auth from '../middlewares/auth.js';
3
2
 
4
3
  const target = new Target();
5
4
 
6
5
  target.register('/hello', (ammo) => {
7
6
  ammo.fire({
8
7
  status: 200,
9
- body: 'Hello, World!',
8
+ body: 'Hello, World!'
10
9
  });
11
10
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "te.js",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "A nodejs framework",
5
5
  "type": "module",
6
6
  "main": "te.js",
package/te.js CHANGED
@@ -5,8 +5,6 @@ import TejLogger from 'tej-logger';
5
5
  import database from './database/index.js';
6
6
 
7
7
  import TargetRegistry from './server/targets/registry.js';
8
- import Target from './server/target.js';
9
- import TejFileUploader from './server/files/uploader.js';
10
8
 
11
9
  import { loadConfigFile, standardizeObj } from './utils/configuration.js';
12
10
 
@@ -125,4 +123,6 @@ class Tejas {
125
123
  }
126
124
  }
127
125
 
128
- export { Tejas, Target, TejFileUploader };
126
+ export {default as Target} from './server/target.js';
127
+ export {default as TejFileUploader} from './server/files/uploader.js';
128
+ export default Tejas;