@dbos-inc/koa-serve 3.0.6-preview → 3.0.7-preview.gfe77addda7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbos-inc/koa-serve",
3
- "version": "3.0.6-preview",
3
+ "version": "3.0.7-preview.gfe77addda7",
4
4
  "description": "DBOS HTTP Package for serving workflows with Koa",
5
5
  "license": "MIT",
6
6
  "repository": {
package/src/index.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import { DBOSKoa } from './dboskoa';
2
+
1
3
  export {
2
4
  ArgSources,
3
5
  DBOSHTTP,
@@ -12,3 +14,12 @@ export {
12
14
  } from './dboshttp';
13
15
 
14
16
  export { DBOSKoa, DBOSKoaAuthContext, DBOSKoaClassReg, DBOSKoaAuthMiddleware, DBOSKoaConfig } from './dboskoa';
17
+
18
+ export const DefaultArgOptional = DBOSKoa.defaultArgOptional;
19
+ export const DefaultArgRequired = DBOSKoa.defaultArgRequired;
20
+ export const DefaultArgValiate = DBOSKoa.defaultArgValidate;
21
+ export const ArgDate = DBOSKoa.argDate;
22
+ export const ArgOptional = DBOSKoa.argOptional;
23
+ export const ArgRequired = DBOSKoa.argRequired;
24
+ export const ArgSource = DBOSKoa.argSource;
25
+ export const ArgVarchar = DBOSKoa.argVarchar;
@@ -26,7 +26,6 @@ describe('httpserver-argsource-tests', () => {
26
26
  DBOS.registerLifecycleCallback(dhttp);
27
27
  const _classes = [ArgTestEndpoints];
28
28
  await DBOS.launch();
29
- DBOS.setUpHandlerCallback();
30
29
  app = new Koa();
31
30
  appRouter = new Router();
32
31
  dhttp.registerWithApp(app, appRouter);
@@ -43,7 +43,6 @@ describe('httpserver-tests', () => {
43
43
  DBOS.registerLifecycleCallback(dhttp);
44
44
  const _classes = [TestEndpoints];
45
45
  await DBOS.launch();
46
- DBOS.setUpHandlerCallback();
47
46
  await DBOS.queryUserDB(`DROP TABLE IF EXISTS ${testTableName};`);
48
47
  await DBOS.queryUserDB(`CREATE TABLE IF NOT EXISTS ${testTableName} (id INT PRIMARY KEY, value TEXT);`);
49
48
  app = new Koa();