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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fable",
3
- "version": "3.0.71",
3
+ "version": "3.0.73",
4
4
  "description": "An entity behavior management and API bundling library.",
5
5
  "main": "source/Fable.js",
6
6
  "scripts": {
@@ -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
  }
@@ -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>');