web_plsql 0.15.0 → 0.15.1

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": "web_plsql",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "author": "Dieter Oberkofler <dieter.oberkofler@gmail.com>",
5
5
  "license": "MIT",
6
6
  "description": "The Express Middleware for Oracle PL/SQL",
package/src/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  // server
2
+ export {getVersion} from './server/version.js';
2
3
  export {createServer, startServer, loadConfig, startServerConfig} from './server/server.js';
3
4
  export * from './util/shutdown.js';
4
5
 
@@ -1,3 +1,5 @@
1
+ import {getVersion} from './version.js';
2
+
1
3
  /**
2
4
  * @typedef {import('../types.js').configType} configType
3
5
  */
@@ -11,7 +13,7 @@ export const showConfig = (config) => {
11
13
  const LINE = '-'.repeat(80);
12
14
 
13
15
  console.log(LINE);
14
- console.log('NODE PL/SQL SERVER');
16
+ console.log(`NODE PL/SQL SERVER version ${getVersion()}`);
15
17
  console.log(LINE);
16
18
 
17
19
  console.log(`Server port: ${config.port}`);
@@ -1,6 +1,5 @@
1
1
  import debugModule from 'debug';
2
2
  const debug = debugModule('webplsql:server');
3
-
4
3
  import http from 'node:http';
5
4
  import https from 'node:https';
6
5
  import express from 'express';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Returns the current library version
3
+ * @returns {string} - Version.
4
+ */
5
+ export const getVersion = () => '0.15.1';
package/types/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export { getVersion } from "./server/version.js";
1
2
  export * from "./util/shutdown.js";
2
3
  export * from "./util/oracle.js";
3
4
  export * from "./util/file.js";
@@ -0,0 +1 @@
1
+ export function getVersion(): string;