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.
Files changed (34) hide show
  1. package/debug/Harness.js +8 -10
  2. package/dist/fable.compatible.js +139 -131
  3. package/dist/fable.compatible.min.js +2 -2
  4. package/dist/fable.compatible.min.js.map +1 -1
  5. package/dist/fable.js +126 -118
  6. package/dist/fable.min.js +2 -2
  7. package/dist/fable.min.js.map +1 -1
  8. package/package.json +3 -3
  9. package/retold-harness/bookstore-serve-api.js +2 -2
  10. package/source/Fable.js +187 -50
  11. package/source/services/Fable-Service-Anticipate.js +1 -1
  12. package/source/services/Fable-Service-DataGeneration.js +1 -1
  13. package/source/services/Fable-Service-EnvironmentData-Web.js +1 -1
  14. package/source/services/Fable-Service-EnvironmentData.js +1 -1
  15. package/source/services/Fable-Service-FilePersistence-Web.js +2 -1
  16. package/source/services/Fable-Service-FilePersistence.js +25 -7
  17. package/source/services/Fable-Service-MetaTemplate.js +1 -1
  18. package/source/services/Fable-Service-Operation-DefaultSettings.js +4 -6
  19. package/source/services/Fable-Service-Operation.js +97 -2
  20. package/source/services/Fable-Service-RestClient.js +1 -1
  21. package/source/services/Fable-Service-Template.js +1 -1
  22. package/source/services/Fable-Service-Utility.js +3 -3
  23. package/test/Anticipate_tests.js +2 -2
  24. package/test/CSVParser_tests.js +1 -1
  25. package/test/Cache_tests.js +1 -1
  26. package/test/DataGeneration_tests.js +7 -7
  27. package/test/DateManipulation_tests.js +1 -1
  28. package/test/FableOperation_tests.js +33 -4
  29. package/test/FableServiceManager_tests.js +51 -51
  30. package/test/FilePersistence_tests.js +9 -9
  31. package/test/Manifest_tests.js +1 -1
  32. package/test/MetaTemplating_tests.js +1 -1
  33. package/test/RestClient_test.js +6 -6
  34. 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.serviceManager.addServiceType('SimpleService', SimpleService);
21
+ testFable.addServiceType('SimpleService', SimpleService);
23
22
 
24
- testFable.serviceManager.instantiateServiceProvider('SimpleService', {SomeOption: true}, 'SimpleService-123');
23
+ testFable.instantiateServiceProvider('SimpleService', {SomeOption: true}, 'SimpleService-123');
25
24
 
26
25
 
27
- testFable.serviceManager.services['SimpleService']['SimpleService-123'].doSomething();
26
+ testFable.servicesMap['SimpleService']['SimpleService-123'].doSomething();
28
27
 
29
- testFable.serviceManager.services['SimpleService']['SimpleService-123'].doSomething();
28
+ testFable.SimpleService.doSomething();
30
29
 
31
- console.log(`Initialized Service ${testFable.serviceManager.services['SimpleService']['SimpleService-123'].serviceType} as UUID ${testFable.serviceManager.services['SimpleService']['SimpleService-123'].UUID} with hash ${testFable.serviceManager.services['SimpleService']['SimpleService-123'].Hash}`);
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.serviceManager.services['SimpleService']['SimpleService-123'].doSomething();
32
+ testFable.servicesMap['SimpleService']['SimpleService-123'].doSomething();
34
33
 
35
34
  // Instantiate the RestClient Service Provider
36
- let tmpRestClient = testFable.serviceManager.instantiateServiceProvider('RestClient', {TraceLog: true}, 'RestClient-99');
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
- */