@sap/async-xsjs 1.0.2 → 1.0.4

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/CHANGELOG.md CHANGED
@@ -5,6 +5,19 @@ This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
6
  The format is based on [Keep a Changelog](http://keepachangelog.com/).
7
7
 
8
+ <a name="1.0.4"></a>
9
+ ## 1.0.4 - 2023-03-28
10
+
11
+ ### Updated
12
+ - Updated hana-client to v2.16.21
13
+ - Updated hdbext to v7.7.3
14
+
15
+ <a name="1.0.3"></a>
16
+ ## 1.0.3 - 2023-02-07
17
+
18
+ ### Fixed
19
+ - Npm-shrinkwrap file with the right resources
20
+
8
21
  <a name="1.0.2"></a>
9
22
  ## 1.0.2 - 2023-01-31
10
23
 
package/README.md CHANGED
@@ -49,10 +49,15 @@ var options = xsenv.getServices({
49
49
  secureStore: 'secureStore',
50
50
  auditLog: 'audit-log'
51
51
  });
52
- var xsjs_server = await async_xsjs(options);
53
- await xsjs_server.listen(port);
54
-
55
- console.log('Node XS server listening on port %d', port);
52
+ async_xsjs(options).then((async_xsjs_server)=>{
53
+ async_xsjs_server.listen(port, (err)=>{
54
+ if(!err) {
55
+ console.log('Node XS server listening on port %d', port);
56
+ }else{
57
+ console.log('Node XS server failed to start on port %d', port);
58
+ }
59
+ });
60
+ });
56
61
  ```
57
62
 
58
63
  The starting function takes an object that contains service credentials and application options.