fable 3.0.86 → 3.0.88
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 +8 -10
- package/dist/fable.compatible.js +139 -131
- package/dist/fable.compatible.min.js +2 -2
- package/dist/fable.compatible.min.js.map +1 -1
- package/dist/fable.js +126 -118
- package/dist/fable.min.js +2 -2
- package/dist/fable.min.js.map +1 -1
- package/package.json +3 -3
- package/retold-harness/bookstore-serve-api.js +2 -2
- package/source/Fable.js +187 -50
- package/source/services/Fable-Service-Anticipate.js +1 -1
- package/source/services/Fable-Service-DataGeneration.js +1 -1
- package/source/services/Fable-Service-EnvironmentData-Web.js +1 -1
- package/source/services/Fable-Service-EnvironmentData.js +1 -1
- package/source/services/Fable-Service-FilePersistence-Web.js +2 -1
- package/source/services/Fable-Service-FilePersistence.js +25 -7
- package/source/services/Fable-Service-MetaTemplate.js +1 -1
- package/source/services/Fable-Service-Operation-DefaultSettings.js +4 -6
- package/source/services/Fable-Service-Operation.js +97 -2
- package/source/services/Fable-Service-RestClient.js +1 -1
- package/source/services/Fable-Service-Template.js +1 -1
- package/source/services/Fable-Service-Utility.js +3 -3
- package/test/Anticipate_tests.js +2 -2
- package/test/CSVParser_tests.js +1 -1
- package/test/Cache_tests.js +1 -1
- package/test/DataGeneration_tests.js +7 -7
- package/test/DateManipulation_tests.js +1 -1
- package/test/FableOperation_tests.js +33 -4
- package/test/FableServiceManager_tests.js +51 -51
- package/test/FilePersistence_tests.js +9 -9
- package/test/Manifest_tests.js +1 -1
- package/test/MetaTemplating_tests.js +1 -1
- package/test/RestClient_test.js +6 -6
- package/source/Fable-ServiceManager.js +0 -164
package/debug/Harness.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
let libBookstore = require('../retold-harness/bookstore-serve-meadow-endpoint-apis-run.js');
|
|
2
|
-
/*
|
|
1
|
+
//let libBookstore = require('../retold-harness/bookstore-serve-meadow-endpoint-apis-run.js');
|
|
3
2
|
const libFable = require('../source/Fable.js');
|
|
4
3
|
|
|
5
4
|
class SimpleService extends libFable.ServiceProviderBase
|
|
@@ -19,21 +18,21 @@ class SimpleService extends libFable.ServiceProviderBase
|
|
|
19
18
|
|
|
20
19
|
let testFable = new libFable({"Product": "FableDebugHarness"});
|
|
21
20
|
|
|
22
|
-
testFable.
|
|
21
|
+
testFable.addServiceType('SimpleService', SimpleService);
|
|
23
22
|
|
|
24
|
-
testFable.
|
|
23
|
+
testFable.instantiateServiceProvider('SimpleService', {SomeOption: true}, 'SimpleService-123');
|
|
25
24
|
|
|
26
25
|
|
|
27
|
-
testFable.
|
|
26
|
+
testFable.servicesMap['SimpleService']['SimpleService-123'].doSomething();
|
|
28
27
|
|
|
29
|
-
testFable.
|
|
28
|
+
testFable.SimpleService.doSomething();
|
|
30
29
|
|
|
31
|
-
console.log(`Initialized Service ${testFable.
|
|
30
|
+
console.log(`Initialized Service ${testFable.servicesMap['SimpleService']['SimpleService-123'].serviceType} as UUID ${testFable.servicesMap['SimpleService']['SimpleService-123'].UUID} with hash ${testFable.servicesMap['SimpleService']['SimpleService-123'].Hash}`);
|
|
32
31
|
|
|
33
|
-
testFable.
|
|
32
|
+
testFable.servicesMap['SimpleService']['SimpleService-123'].doSomething();
|
|
34
33
|
|
|
35
34
|
// Instantiate the RestClient Service Provider
|
|
36
|
-
let tmpRestClient = testFable.
|
|
35
|
+
let tmpRestClient = testFable.instantiateServiceProvider('RestClient', {TraceLog: true}, 'RestClient-99');
|
|
37
36
|
|
|
38
37
|
// Download the wiktionary entry for dog!
|
|
39
38
|
tmpRestClient.getJSON('https://en.wiktionary.org/w/api.php?action=parse&prop=wikitext&format=json&page=dog',
|
|
@@ -41,4 +40,3 @@ tmpRestClient.getJSON('https://en.wiktionary.org/w/api.php?action=parse&prop=wik
|
|
|
41
40
|
{
|
|
42
41
|
testFable.log.info('Response received!');
|
|
43
42
|
});
|
|
44
|
-
*/
|