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/dist/manyfest.compatible.js +85 -6
- package/dist/manyfest.compatible.min.js +1 -1
- package/dist/manyfest.compatible.min.js.map +1 -1
- package/dist/manyfest.js +85 -6
- package/dist/manyfest.min.js +1 -1
- package/dist/manyfest.min.js.map +1 -1
- package/package.json +1 -1
- package/source/Manyfest.js +6 -0
- package/test/Manyfest_Object_Read_tests.js +1 -0
package/package.json
CHANGED
package/source/Manyfest.js
CHANGED
|
@@ -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
|
);
|