Skip to content

Commit 600a403

Browse files
committed
rebuilt entire core code using promises and a 'thread' methaphor
1 parent 4df3e3f commit 600a403

File tree

5 files changed

+713
-780
lines changed

5 files changed

+713
-780
lines changed

main.js

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
import * as cnodes from './src/Context_Nodes';
1+
import * as BrAPINode from './src/BrAPINode.js';
22

3-
/**
4-
* BrAPI - initializes a BrAPI client handler
5-
*
6-
* @param {string} server URL without trailing '/' to the BrAPI endpoint
7-
* @param {object} auth_params
8-
* @param {string} version BrAPI version of endpoint (e.g. "1.2" or "v1.1")
9-
* @returns {Context_Node}
10-
*/
11-
export default function BrAPI(server,auth_params,version){
12-
var root = new cnodes.Root_Node()
13-
return root.server(server,auth_params,version);
14-
};
3+
export default BrAPINode.BrAPI;

0 commit comments

Comments
 (0)