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.
- package/debug/Harness.js +8 -10
- package/package.json +4 -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 +18 -22
- package/source/services/Fable-Service-FilePersistence.js +51 -23
- 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 -3
- 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 +45 -12
- package/test/Manifest_tests.js +1 -1
- package/test/MetaTemplating_tests.js +1 -1
- package/test/RestClient_test.js +6 -6
- package/dist/fable.compatible.js +0 -3354
- package/dist/fable.compatible.min.js +0 -12
- package/dist/fable.compatible.min.js.map +0 -1
- package/dist/fable.js +0 -3354
- package/dist/fable.min.js +0 -12
- package/dist/fable.min.js.map +0 -1
- package/source/Fable-ServiceManager.js +0 -164
package/test/Manifest_tests.js
CHANGED
|
@@ -15,7 +15,7 @@ const Expect = Chai.expect;
|
|
|
15
15
|
const loadMetaTemplateModule = () =>
|
|
16
16
|
{
|
|
17
17
|
let tmpFable = new libFable();
|
|
18
|
-
return tmpFable.
|
|
18
|
+
return tmpFable.instantiateServiceProviderWithoutRegistration('MetaTemplate', {});
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
const configMetaTemplate = (pModule) =>
|
package/test/RestClient_test.js
CHANGED
|
@@ -35,7 +35,7 @@ suite
|
|
|
35
35
|
{
|
|
36
36
|
let testFable = new libFable();
|
|
37
37
|
// Instantiate the RestClient Service Provider
|
|
38
|
-
let tmpRestClient = testFable.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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' } },
|