orator 4.0.1 → 4.0.3
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/debug/Harness.js +4 -2
- package/package.json +5 -5
- package/source/Orator.js +2 -7
package/debug/Harness.js
CHANGED
|
@@ -13,9 +13,11 @@ let _Fable = new libFable({
|
|
|
13
13
|
// > make sure to run "npm i orator-serviceserver-restify" from the parent directory first so the package is available
|
|
14
14
|
// > please don't --save it!
|
|
15
15
|
// _Fable.serviceManager.instantiateServiceProvider('OratorServiceServer', require('orator-serviceserver-restify'));
|
|
16
|
-
|
|
16
|
+
const libOratorServiceServerRestify = require('orator-serviceserver-restify');
|
|
17
|
+
_Fable.serviceManager.addAndInstantiateServiceType('OratorServiceServer', libOratorServiceServerRestify);
|
|
17
18
|
|
|
18
|
-
_Fable.serviceManager.
|
|
19
|
+
_Fable.serviceManager.addServiceType('Orator', libOrator);
|
|
20
|
+
const tmpServiceServer = _Fable.serviceManager.instantiateServiceProvider('Orator');
|
|
19
21
|
|
|
20
22
|
// Start the service
|
|
21
23
|
tmpServiceServer.startService();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "orator",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"description": "Unopinionated API behavior container - REST or IPC",
|
|
5
5
|
"main": "source/Orator.js",
|
|
6
6
|
"scripts": {
|
|
@@ -51,12 +51,12 @@
|
|
|
51
51
|
},
|
|
52
52
|
"homepage": "https://github.com/stevenvelozo/orator",
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"fable": "^3.0.
|
|
55
|
-
"quackage": "^1.0.
|
|
54
|
+
"fable": "^3.0.96",
|
|
55
|
+
"quackage": "^1.0.24"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"fable-serviceproviderbase": "^3.0.
|
|
59
|
-
"find-my-way": "^7.
|
|
58
|
+
"fable-serviceproviderbase": "^3.0.12",
|
|
59
|
+
"find-my-way": "^7.7.0",
|
|
60
60
|
"orator-serviceserver-base": "^1.0.0"
|
|
61
61
|
}
|
|
62
62
|
}
|
package/source/Orator.js
CHANGED
|
@@ -25,11 +25,6 @@ class Orator extends libFableServiceProviderBase
|
|
|
25
25
|
this.serviceServer = false;
|
|
26
26
|
this.serviceServerProvider = false;
|
|
27
27
|
|
|
28
|
-
if (typeof(pServiceProvider) !== 'undefined')
|
|
29
|
-
{
|
|
30
|
-
this.serviceServerProvider = pServiceProvider;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
28
|
// Now check to see that the ServicePort is set (this used to be APIServerPort)
|
|
34
29
|
if (!this.options.hasOwnProperty('ServicePort'))
|
|
35
30
|
{
|
|
@@ -118,7 +113,7 @@ class Orator extends libFableServiceProviderBase
|
|
|
118
113
|
|
|
119
114
|
initialize(fCallback)
|
|
120
115
|
{
|
|
121
|
-
// I hate this --
|
|
116
|
+
// I hate this -- as long as we want to be "mostly" backwards compatible it needs to do it though
|
|
122
117
|
let tmpCallback = (typeof(fCallback) === 'function') ? fCallback : () => {};
|
|
123
118
|
|
|
124
119
|
if (!this.initializeTimestamp)
|
|
@@ -257,7 +252,7 @@ class Orator extends libFableServiceProviderBase
|
|
|
257
252
|
// this accessor function is called.
|
|
258
253
|
if (!this.serviceServer)
|
|
259
254
|
{
|
|
260
|
-
this.
|
|
255
|
+
this.initialize();
|
|
261
256
|
}
|
|
262
257
|
|
|
263
258
|
return this.serviceServer;
|