fable 3.0.85 → 3.0.87

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/package.json +4 -3
  3. package/retold-harness/bookstore-serve-api.js +2 -2
  4. package/source/Fable.js +187 -50
  5. package/source/services/Fable-Service-Anticipate.js +1 -1
  6. package/source/services/Fable-Service-DataGeneration.js +1 -1
  7. package/source/services/Fable-Service-EnvironmentData-Web.js +1 -1
  8. package/source/services/Fable-Service-EnvironmentData.js +1 -1
  9. package/source/services/Fable-Service-FilePersistence-Web.js +18 -22
  10. package/source/services/Fable-Service-FilePersistence.js +51 -23
  11. package/source/services/Fable-Service-MetaTemplate.js +1 -1
  12. package/source/services/Fable-Service-Operation-DefaultSettings.js +4 -6
  13. package/source/services/Fable-Service-Operation.js +97 -3
  14. package/source/services/Fable-Service-RestClient.js +1 -1
  15. package/source/services/Fable-Service-Template.js +1 -1
  16. package/source/services/Fable-Service-Utility.js +3 -3
  17. package/test/Anticipate_tests.js +2 -2
  18. package/test/CSVParser_tests.js +1 -1
  19. package/test/Cache_tests.js +1 -1
  20. package/test/DataGeneration_tests.js +7 -7
  21. package/test/DateManipulation_tests.js +1 -1
  22. package/test/FableOperation_tests.js +33 -4
  23. package/test/FableServiceManager_tests.js +51 -51
  24. package/test/FilePersistence_tests.js +45 -12
  25. package/test/Manifest_tests.js +1 -1
  26. package/test/MetaTemplating_tests.js +1 -1
  27. package/test/RestClient_test.js +6 -6
  28. package/dist/fable.compatible.js +0 -3354
  29. package/dist/fable.compatible.min.js +0 -12
  30. package/dist/fable.compatible.min.js.map +0 -1
  31. package/dist/fable.js +0 -3354
  32. package/dist/fable.min.js +0 -12
  33. package/dist/fable.min.js.map +0 -1
  34. package/source/Fable-ServiceManager.js +0 -164
@@ -28,7 +28,7 @@ suite
28
28
  {
29
29
  let testFable = new libFable();
30
30
 
31
- let animalManyfest = testFable.serviceManager.instantiateServiceProvider('Manifest',
31
+ let animalManyfest = testFable.instantiateServiceProvider('Manifest',
32
32
  {
33
33
  "Scope": "Animal",
34
34
  "Descriptors":
@@ -15,7 +15,7 @@ const Expect = Chai.expect;
15
15
  const loadMetaTemplateModule = () =>
16
16
  {
17
17
  let tmpFable = new libFable();
18
- return tmpFable.serviceManager.instantiateServiceProviderWithoutRegistration('MetaTemplate', {});
18
+ return tmpFable.instantiateServiceProviderWithoutRegistration('MetaTemplate', {});
19
19
  };
20
20
 
21
21
  const configMetaTemplate = (pModule) =>
@@ -35,7 +35,7 @@ suite
35
35
  {
36
36
  let testFable = new libFable();
37
37
  // Instantiate the RestClient Service Provider
38
- let tmpRestClient = testFable.serviceManager.instantiateServiceProvider('RestClient', { TraceLog: true }, 'RestClient-99');
38
+ let tmpRestClient = testFable.instantiateServiceProvider('RestClient', { TraceLog: true }, 'RestClient-99');
39
39
 
40
40
  // Download the wiktionary entry for dog!
41
41
  tmpRestClient.getJSON('http://localhost:8086/1.0/Author/1',
@@ -55,7 +55,7 @@ suite
55
55
  {
56
56
  let testFable = new libFable();
57
57
  // Instantiate the RestClient Service Provider
58
- let tmpRestClient = testFable.serviceManager.instantiateServiceProvider('RestClient', { TraceLog: true }, 'RestClient-99');
58
+ let tmpRestClient = testFable.instantiateServiceProvider('RestClient', { TraceLog: true }, 'RestClient-99');
59
59
 
60
60
  tmpRestClient.prepareRequestOptions = (pOptions) =>
61
61
  {
@@ -81,14 +81,14 @@ suite
81
81
  {
82
82
  let testFable = new libFable();
83
83
  // Instantiate the RestClient Service Provider
84
- let tmpRestClient = testFable.serviceManager.instantiateServiceProvider('RestClient', { TraceLog: true }, 'RestClient-99');
84
+ let tmpRestClient = testFable.instantiateServiceProvider('RestClient', { TraceLog: true }, 'RestClient-99');
85
85
 
86
86
  // Download the wiktionary entry for dog!
87
87
  tmpRestClient.executeChunkedRequestBinary({ url: 'http://localhost:8086/1.0/Author/1', method: 'GET' },
88
88
  (pError, pResponse, pBuffer) =>
89
89
  {
90
90
  Expect(pBuffer).to.be.instanceof(Buffer);
91
- testFable.serviceManager.instantiateServiceProvider('FilePersistence');
91
+ testFable.instantiateServiceProvider('FilePersistence');
92
92
  // TODO: How to test this on all operating systems safely?
93
93
  //testFable.FilePersistence.writeFileSync(`/tmp/RestClient_binary_test.jpg`, pBuffer);
94
94
  fTestComplete();
@@ -102,7 +102,7 @@ suite
102
102
  {
103
103
  let testFable = new libFable();
104
104
  // Instantiate the RestClient Service Provider
105
- let tmpRestClient = testFable.serviceManager.instantiateServiceProvider('RestClient', { TraceLog: true }, 'RestClient-99');
105
+ let tmpRestClient = testFable.instantiateServiceProvider('RestClient', { TraceLog: true }, 'RestClient-99');
106
106
 
107
107
  // Download the wiktionary entry for dog!
108
108
  tmpRestClient.putJSON({ url: 'http://localhost:8086/1.0/Author/Upsert', body: { GUIDAuthor: 'TestAuthor', Name: 'Test Author 2' } },
@@ -122,7 +122,7 @@ suite
122
122
  {
123
123
  let testFable = new libFable();
124
124
  // Instantiate the RestClient Service Provider
125
- let tmpRestClient = testFable.serviceManager.instantiateServiceProvider('RestClient', { TraceLog: true }, 'RestClient-99');
125
+ let tmpRestClient = testFable.instantiateServiceProvider('RestClient', { TraceLog: true }, 'RestClient-99');
126
126
 
127
127
  // Download the wiktionary entry for dog!
128
128
  tmpRestClient.putJSON({ url: 'http://localhost:8086/1.0/Author/Upsert', body: { Name: 'Test Author 2 DELETE' } },