fable 3.0.107 → 3.0.110

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.107",
3
+ "version": "3.0.110",
4
4
  "description": "An entity behavior management and API bundling library.",
5
5
  "main": "source/Fable.js",
6
6
  "scripts": {
@@ -64,7 +64,7 @@
64
64
  "fable-serviceproviderbase": "^3.0.12",
65
65
  "fable-settings": "^3.0.9",
66
66
  "fable-uuid": "^3.0.6",
67
- "manyfest": "^1.0.27",
67
+ "manyfest": "^1.0.28",
68
68
  "simple-get": "^4.0.1"
69
69
  }
70
70
  }
@@ -113,7 +113,7 @@ class StringParser
113
113
  }
114
114
  else
115
115
  {
116
- console.log(`MetaTemplate: The pattern ${pParserState.Pattern.PatternStartString} is asynchronous and cannot be used in a synchronous parser.`);
116
+ this.fable.log.info(`MetaTemplate: The pattern ${pParserState.Pattern.PatternStartString} is asynchronous and cannot be used in a synchronous parser.`);
117
117
  return this.resetOutputBuffer(pParserState);
118
118
  }
119
119
  }
@@ -150,7 +150,7 @@ class StringParser
150
150
  {
151
151
  if (pParserState.Pattern.isAsync && !pParserState.Pattern.isBoth)
152
152
  {
153
- console.log(`MetaTemplate: The pattern ${pParserState.Pattern.PatternStartString} is asynchronous and cannot be used in a synchronous parser.`);
153
+ this.fable.log.info(`MetaTemplate: The pattern ${pParserState.Pattern.PatternStartString} is asynchronous and cannot be used in a synchronous parser.`);
154
154
  this.resetOutputBuffer(pParserState);
155
155
  }
156
156
  else
@@ -201,7 +201,7 @@ class StringParser
201
201
  {
202
202
  if (pError)
203
203
  {
204
- console.log(`Precedent ERROR: Async template error happened parsing ${pParserState.Pattern.PatternStart} ... ${pParserState.Pattern.PatternEnd}: ${pError}`);
204
+ this.fable.log.info(`Precedent ERROR: Async template error happened parsing ${pParserState.Pattern.PatternStart} ... ${pParserState.Pattern.PatternEnd}: ${pError}`);
205
205
  }
206
206
 
207
207
  pParserState.OutputBuffer = pAsyncOutput;
@@ -217,7 +217,7 @@ class StringParser
217
217
  {
218
218
  if (pError)
219
219
  {
220
- console.log(`Precedent ERROR: Async template error happened parsing ${pParserState.Pattern.PatternStart} ... ${pParserState.Pattern.PatternEnd}: ${pError}`);
220
+ this.fable.log.info(`Precedent ERROR: Async template error happened parsing ${pParserState.Pattern.PatternStart} ... ${pParserState.Pattern.PatternEnd}: ${pError}`);
221
221
  }
222
222
 
223
223
  pParserState.OutputBuffer = pAsyncOutput;
@@ -54,6 +54,13 @@ class FableServiceRestClient extends libFableServiceBase
54
54
  {
55
55
  // Validate the options object
56
56
  let tmpOptions = this.prepareCookies(pOptions);
57
+
58
+ // Prepend a string to the URL if it exists in the Fable Config
59
+ if (this.fable.settings.hasOwnProperty('RestClientURLPrefix'))
60
+ {
61
+ tmpOptions.url = this.fable.settings.RestClientURLPrefix + tmpOptions.url;
62
+ }
63
+
57
64
  return this.prepareRequestOptions(tmpOptions);
58
65
  }
59
66