te.js 1.0.6 → 1.0.7

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.
@@ -3,6 +3,7 @@ import { Target } from 'te.js';
3
3
  const target = new Target();
4
4
 
5
5
  target.register('/hello', (ammo) => {
6
+ throw new Error('Error thrown to demonstrate robust error handling of te.js');
6
7
  ammo.fire({
7
8
  status: 200,
8
9
  body: 'Hello, World!'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "te.js",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "A nodejs framework",
5
5
  "type": "module",
6
6
  "main": "te.js",
@@ -27,7 +27,7 @@
27
27
  "formidable": "^3.5.1",
28
28
  "mime": "^4.0.1",
29
29
  "statuses": "^2.0.1",
30
- "tej-env": "^1.0.5",
30
+ "tej-env": "^1.0.6",
31
31
  "tej-logger": "^1.2.1"
32
32
  },
33
33
  "lint-staged": {
package/te.js CHANGED
@@ -126,3 +126,6 @@ class Tejas {
126
126
  export {default as Target} from './server/target.js';
127
127
  export {default as TejFileUploader} from './server/files/uploader.js';
128
128
  export default Tejas;
129
+
130
+ // TODO Ability to register a target (route) from tejas instance
131
+ // TODO tejas as CLI tool