fable 3.1.66 → 3.1.67

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.1.66",
3
+ "version": "3.1.67",
4
4
  "description": "A service dependency injection, configuration and logging library.",
5
5
  "main": "source/Fable.js",
6
6
  "scripts": {
@@ -42,7 +42,8 @@ class FableServiceExpressionParser extends libFableServiceBase
42
42
  this.log;
43
43
 
44
44
  // The configuration for tokens that the solver recognizes, with precedence and friendly names.
45
- this.tokenMap = require('./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-TokenMap.json');
45
+ // Clone the JSON so each instance gets its own tokenMap (require() caches and returns the same object reference).
46
+ this.tokenMap = JSON.parse(JSON.stringify(require('./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-TokenMap.json')));
46
47
 
47
48
  // Keep track of maximum token precedence
48
49
  this.tokenMaxPrecedence = 4;
@@ -86,7 +87,8 @@ class FableServiceExpressionParser extends libFableServiceBase
86
87
  }
87
88
 
88
89
  // The configuration for which functions are available to the solver.
89
- this.functionMap = require('./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-FunctionMap.json');
90
+ // Clone the JSON so each instance gets its own functionMap (require() caches and returns the same object reference).
91
+ this.functionMap = JSON.parse(JSON.stringify(require('./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-FunctionMap.json')));
90
92
 
91
93
  this.serviceType = 'ExpressionParser';
92
94