fable 3.0.71 → 3.0.73
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/dist/fable.compatible.js +15 -12
- package/dist/fable.compatible.min.js +2 -2
- package/dist/fable.compatible.min.js.map +1 -1
- package/dist/fable.js +13 -10
- package/dist/fable.min.js +2 -2
- package/dist/fable.min.js.map +1 -1
- package/package.json +1 -1
- package/source/services/Fable-Service-Anticipate.js +1 -1
- package/source/services/Fable-Service-FilePersistence.js +6 -0
- package/test/Utility_tests.js +1 -1
package/package.json
CHANGED
|
@@ -18,7 +18,6 @@ class FableServiceAnticipate extends libFableServiceBase
|
|
|
18
18
|
this.maxOperations = 1;
|
|
19
19
|
|
|
20
20
|
this.lastError = undefined;
|
|
21
|
-
|
|
22
21
|
this.waitingFunctions = [];
|
|
23
22
|
}
|
|
24
23
|
|
|
@@ -40,6 +39,7 @@ class FableServiceAnticipate extends libFableServiceBase
|
|
|
40
39
|
}
|
|
41
40
|
// Reset our state
|
|
42
41
|
this.lastError = undefined;
|
|
42
|
+
this.waitingFunctions = [];
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -182,8 +182,14 @@ class FableServiceFilePersistence extends libFableServiceBase
|
|
|
182
182
|
// We have now created our folder and there was no error -- continue.
|
|
183
183
|
return this.makeFolderRecursive(tmpParameters, fCallback);
|
|
184
184
|
}
|
|
185
|
+
else if (pCreateError.code =='EEXIST')
|
|
186
|
+
{
|
|
187
|
+
// The folder exists -- our dev might be running this in parallel/async/whatnot.
|
|
188
|
+
return this.makeFolderRecursive(tmpParameters, fCallback);
|
|
189
|
+
}
|
|
185
190
|
else
|
|
186
191
|
{
|
|
192
|
+
console.log(pCreateError.code);
|
|
187
193
|
fCallback(pCreateError);
|
|
188
194
|
return false;
|
|
189
195
|
}
|
package/test/Utility_tests.js
CHANGED
|
@@ -85,7 +85,7 @@ suite
|
|
|
85
85
|
testFable = new libFable();
|
|
86
86
|
testFable.services.Utility.buildHashedTemplate('HeadLine', '<h1><%= TitleText %> Page</h1>');
|
|
87
87
|
testFable.services.Utility.buildHashedTemplate('Slogan', '<p>Some people, like <%= Name %>, have all the fun.</p>');
|
|
88
|
-
|
|
88
|
+
|
|
89
89
|
// Access the low level service render function
|
|
90
90
|
Expect(testFable.servicesMap.Template.HeadLine.renderFunction({TitleText:'Test'})).to.equal('<h1>Test Page</h1>');
|
|
91
91
|
Expect(testFable.servicesMap.Template.Slogan.renderFunction({Name:'Jim'})).to.equal('<p>Some people, like Jim, have all the fun.</p>');
|