fable 3.0.70 → 3.0.72

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.70",
3
+ "version": "3.0.72",
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
 
@@ -30,15 +30,16 @@ class FableServiceRestClient extends libFableServiceBase
30
30
  {
31
31
  if (this.cookie)
32
32
  {
33
+ let tmpCookieObject = this.cookie;
33
34
  if (!pRequestOptions.hasOwnProperty('headers'))
34
35
  {
35
36
  pRequestOptions.headers = {};
36
37
  }
37
- let tmpCookieKey = Object.keys(this.cookie);
38
- if (tmpCookieKey.length > 0)
38
+ let tmpCookieKeys = Object.keys(tmpCookieObject);
39
+ if (tmpCookieKeys.length > 0)
39
40
  {
40
41
  // Only grab the first for now.
41
- pRequestOptions.headers.cookie = libCookie.serialize(tmpCookieKey[0], this.cookie[tmpCookieKey[0]]);
42
+ pRequestOptions.headers.cookie = libCookie.serialize(tmpCookieKeys[0], tmpCookieObject[tmpCookieKeys[0]]);
42
43
  }
43
44
  }
44
45
  return pRequestOptions;