fable 3.1.9 → 3.1.10

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.9",
3
+ "version": "3.1.10",
4
4
  "description": "A service dependency injection, configuration and logging library.",
5
5
  "main": "source/Fable.js",
6
6
  "scripts": {
@@ -146,7 +146,7 @@
146
146
 
147
147
  "resolvehtmlentities": {
148
148
  "Name": "resolve HTML entities",
149
- "Address": "fable.Utility.resolveHtmlEntities"
149
+ "Address": "fable.DataFormat.resolveHtmlEntities"
150
150
  },
151
151
 
152
152
  "concat": {
@@ -55,8 +55,10 @@ class FableServiceLogic extends libFableServiceBase
55
55
  break;
56
56
  case '==':
57
57
  tmpCheckResult = pLeft == pRight;
58
+ break;
58
59
  case '===':
59
60
  tmpCheckResult = pLeft === pRight;
61
+ break;
60
62
  default:
61
63
  this.fable.log.warn(`[FableServiceLogic.checkIf] Invalid comparison operator: ${pComparisonOperator}`);
62
64
  tmpCheckResult = pLeft == pRight;
@@ -550,6 +550,12 @@ suite
550
550
 
551
551
  _Parser.solve('Overrun = When(AppData.Cities[10000000].city, AppData.Cities[10000000].city)', testFable, tmpResultsObject, false, tmpDestinationObject);
552
552
  Expect(tmpDestinationObject.Overrun).to.equal('');
553
+
554
+ testFable.AppData.ECDMonth = 'January';
555
+ testFable.AppData.ECDYear = '2023';
556
+ _Parser.solve('EstimatedCompletionDate = ResolveHtmlEntities(When(AppData.ECDMonth, Join(", ", AppData.ECDMonth, AppData.ECDYear)))',
557
+ testFable, tmpResultsObject, false, tmpDestinationObject);
558
+ Expect(tmpDestinationObject.EstimatedCompletionDate).to.equal('January, 2023');
553
559
  }
554
560
  );
555
561
 
package/proxy.js DELETED
@@ -1,8 +0,0 @@
1
- const proxy = require('http-proxy');
2
-
3
- proxy.createProxyServer({
4
- target: 'http://www.datadebase.com:8086/',
5
- changeOrigin: true,
6
- }).listen(8086, () => {
7
- console.log('Proxy server is running on http://localhost:8086');
8
- });