manyfest 1.0.36 → 1.0.37

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": "manyfest",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "description": "JSON Object Manifest for Data Description and Parsing",
5
5
  "main": "source/Manyfest.js",
6
6
  "scripts": {
@@ -332,6 +332,12 @@ class Manyfest extends libFableServiceProviderBase
332
332
  // Get the value of an element at an address
333
333
  getValueAtAddress (pObject, pAddress)
334
334
  {
335
+ let tmpLintedAddress = pAddress.trim();
336
+ if (tmpLintedAddress == '')
337
+ {
338
+ this.logError(`(${this.scope}) Error getting value at address; address is an empty string.`, pObject);
339
+ return undefined;
340
+ }
335
341
  let tmpValue = this.objectAddressGetValue.getValueAtAddress(pObject, pAddress);
336
342
 
337
343
  if (typeof(tmpValue) == 'undefined')
@@ -38,6 +38,7 @@ suite
38
38
  .to.equal('Franken Berry / Count Chocula : Tevevision Commercial 1971');
39
39
  Expect(tmpTitle)
40
40
  .to.equal(_SampleDataArchiveOrgFrankenberry.metadata.title);
41
+ let tmpNoAddress = _Manyfest.getValueAtAddress(_SampleDataArchiveOrgFrankenberry, '');
41
42
  fTestComplete();
42
43
  }
43
44
  );