fable 3.1.59 → 3.1.60

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.59",
3
+ "version": "3.1.60",
4
4
  "description": "A service dependency injection, configuration and logging library.",
5
5
  "main": "source/Fable.js",
6
6
  "scripts": {
@@ -174,12 +174,14 @@
174
174
 
175
175
  "getvalue": {
176
176
  "Name": "Get Value from Application State or Services (AppData, etc.)",
177
- "Address": "fable.Utility.getInternalValueByHash"
177
+ "Address": "fable.Utility.getInternalValueByHash",
178
+ "AddressParameterIndices": [0]
178
179
  },
179
180
 
180
181
  "setvalue": {
181
182
  "Name": "Set Value to Application State or Services (AppData, etc.)",
182
- "Address": "fable.Utility.setInternalValueByHash"
183
+ "Address": "fable.Utility.setInternalValueByHash",
184
+ "AddressParameterIndices": [0]
183
185
  },
184
186
 
185
187
  "objectkeystoarray": {
@@ -227,17 +229,20 @@
227
229
 
228
230
  "findfirstvaluebyexactmatch": {
229
231
  "Name": "find + map on array of objects",
230
- "Address": "fable.Utility.findFirstValueByExactMatchInternal"
232
+ "Address": "fable.Utility.findFirstValueByExactMatchInternal",
233
+ "AddressParameterIndices": [0, 1, 3]
231
234
  },
232
235
 
233
236
  "findfirstvaluebystringincludes": {
234
237
  "Name": "find + map on array of objects",
235
- "Address": "fable.Utility.findFirstValueByStringIncludesInternal"
238
+ "Address": "fable.Utility.findFirstValueByStringIncludesInternal",
239
+ "AddressParameterIndices": [0, 1, 3]
236
240
  },
237
241
 
238
242
  "match": {
239
243
  "Name": "Implementation of sheets MATCH() function",
240
- "Address": "fable.Utility.findIndexInternal"
244
+ "Address": "fable.Utility.findIndexInternal",
245
+ "AddressParameterIndices": [1]
241
246
  },
242
247
 
243
248
  "resolvehtmlentities": {
@@ -317,11 +322,13 @@
317
322
 
318
323
  "getvaluearray": {
319
324
  "Name": "Get Value Array from Application State or Services (AppData, etc.)",
320
- "Address": "fable.Utility.createValueArrayByHashParametersFromInternal"
325
+ "Address": "fable.Utility.createValueArrayByHashParametersFromInternal",
326
+ "AddressParameterIndices": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
321
327
  },
322
328
  "getvalueobject": {
323
329
  "Name": "Get Value Object from Application State or Services (AppData, etc.)",
324
- "Address": "fable.Utility.createValueObjectByHashParametersFromInternal"
330
+ "Address": "fable.Utility.createValueObjectByHashParametersFromInternal",
331
+ "AddressParameterIndices": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
325
332
  },
326
333
 
327
334
  "cleanvaluearray": {
@@ -445,7 +452,8 @@
445
452
 
446
453
  "createvalueobjectbyhashes": {
447
454
  "Name": "Create Value Object by Hashes",
448
- "Address": "fable.Utility.createValueObjectByHashes"
455
+ "Address": "fable.Utility.createValueObjectByHashes",
456
+ "AddressParameterIndices": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
449
457
  },
450
458
 
451
459
  "polynomialregression": {
@@ -188,6 +188,76 @@ suite
188
188
  return fDone();
189
189
  }
190
190
  );
191
+ test
192
+ (
193
+ 'getvalue should have AddressParameterIndices [0] in the FunctionMap.',
194
+ (fDone) =>
195
+ {
196
+ let _Parser = getExpressionParser();
197
+ Expect(_Parser.functionMap['getvalue']).to.be.an('object');
198
+ Expect(_Parser.functionMap['getvalue'].AddressParameterIndices).to.deep.equal([0]);
199
+ return fDone();
200
+ }
201
+ );
202
+ test
203
+ (
204
+ 'setvalue should have AddressParameterIndices [0] in the FunctionMap.',
205
+ (fDone) =>
206
+ {
207
+ let _Parser = getExpressionParser();
208
+ Expect(_Parser.functionMap['setvalue']).to.be.an('object');
209
+ Expect(_Parser.functionMap['setvalue'].AddressParameterIndices).to.deep.equal([0]);
210
+ return fDone();
211
+ }
212
+ );
213
+ test
214
+ (
215
+ 'getvaluearray and getvalueobject should have AddressParameterIndices for variadic hash parameters.',
216
+ (fDone) =>
217
+ {
218
+ let _Parser = getExpressionParser();
219
+ Expect(_Parser.functionMap['getvaluearray'].AddressParameterIndices).to.be.an('array');
220
+ Expect(_Parser.functionMap['getvaluearray'].AddressParameterIndices).to.include(0);
221
+ Expect(_Parser.functionMap['getvaluearray'].AddressParameterIndices).to.include(1);
222
+ Expect(_Parser.functionMap['getvalueobject'].AddressParameterIndices).to.be.an('array');
223
+ Expect(_Parser.functionMap['getvalueobject'].AddressParameterIndices).to.include(0);
224
+ Expect(_Parser.functionMap['getvalueobject'].AddressParameterIndices).to.include(1);
225
+ return fDone();
226
+ }
227
+ );
228
+ test
229
+ (
230
+ 'findfirstvaluebyexactmatch should have AddressParameterIndices [0, 1, 3].',
231
+ (fDone) =>
232
+ {
233
+ let _Parser = getExpressionParser();
234
+ Expect(_Parser.functionMap['findfirstvaluebyexactmatch'].AddressParameterIndices).to.deep.equal([0, 1, 3]);
235
+ Expect(_Parser.functionMap['findfirstvaluebystringincludes'].AddressParameterIndices).to.deep.equal([0, 1, 3]);
236
+ return fDone();
237
+ }
238
+ );
239
+ test
240
+ (
241
+ 'match should have AddressParameterIndices [1].',
242
+ (fDone) =>
243
+ {
244
+ let _Parser = getExpressionParser();
245
+ Expect(_Parser.functionMap['match'].AddressParameterIndices).to.deep.equal([1]);
246
+ return fDone();
247
+ }
248
+ );
249
+ test
250
+ (
251
+ 'createvalueobjectbyhashes should have AddressParameterIndices for variadic hash parameters.',
252
+ (fDone) =>
253
+ {
254
+ let _Parser = getExpressionParser();
255
+ Expect(_Parser.functionMap['createvalueobjectbyhashes'].AddressParameterIndices).to.be.an('array');
256
+ Expect(_Parser.functionMap['createvalueobjectbyhashes'].AddressParameterIndices).to.include(0);
257
+ Expect(_Parser.functionMap['createvalueobjectbyhashes'].AddressParameterIndices).to.include(1);
258
+ return fDone();
259
+ }
260
+ );
191
261
  }
192
262
  );
193
263
  }