manyfest 1.0.29 → 1.0.30
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
|
@@ -33,7 +33,7 @@ const testCondition = (pManyfest, pRecord, pSearchAddress, pSearchComparator, pV
|
|
|
33
33
|
break;
|
|
34
34
|
case 'LNGT':
|
|
35
35
|
case 'LENGTH_GREATER_THAN':
|
|
36
|
-
switch(typeof(
|
|
36
|
+
switch(typeof(pManyfest.getValueAtAddress(pRecord, pSearchAddress)))
|
|
37
37
|
{
|
|
38
38
|
case 'string':
|
|
39
39
|
return (pManyfest.getValueAtAddress(pRecord, pSearchAddress).length > pValue);
|
|
@@ -48,7 +48,7 @@ const testCondition = (pManyfest, pRecord, pSearchAddress, pSearchComparator, pV
|
|
|
48
48
|
break;
|
|
49
49
|
case 'LNLT':
|
|
50
50
|
case 'LENGTH_LESS_THAN':
|
|
51
|
-
switch(typeof(
|
|
51
|
+
switch(typeof(pManyfest.getValueAtAddress(pRecord, pSearchAddress)))
|
|
52
52
|
{
|
|
53
53
|
case 'string':
|
|
54
54
|
return (pManyfest.getValueAtAddress(pRecord, pSearchAddress).length < pValue);
|
|
@@ -108,7 +108,6 @@ const parseConditionals = (pManyfest, pAddress, pRecord) =>
|
|
|
108
108
|
2. Find stop points within each start point
|
|
109
109
|
3. Check the conditional
|
|
110
110
|
*/
|
|
111
|
-
|
|
112
111
|
let tmpStartIndex = pAddress.indexOf(_ConditionalStanzaStart);
|
|
113
112
|
|
|
114
113
|
while (tmpStartIndex != -1)
|
|
@@ -64,7 +64,8 @@ suite
|
|
|
64
64
|
'files[]<<~?length,DNEX?~>><<~?source,==,original?~>>': {Name:'Original Files With a length Property', Hash:'OriginalFilesWithLength'},
|
|
65
65
|
'files[]<<~?thumbnail,EXISTS?~>>': {Name:'Thumbnail Bit is Explicitly Set', Hash:'ThumbnailExplicitlySet'},
|
|
66
66
|
'files[]<<~?thumbnail,TRUE?~>>': {Name:'Thumbnail Files', Hash:'ThumbnailFiles'},
|
|
67
|
-
'files[]<<~?thumbnail,FALSE?~>>': {Name:'Not Thumbnail Files', Hash:'NotThumbnailFiles'}
|
|
67
|
+
'files[]<<~?thumbnail,FALSE?~>>': {Name:'Not Thumbnail Files', Hash:'NotThumbnailFiles'},
|
|
68
|
+
'files[]<<~?format,LENGTH_LESS_THAN,8?~>>': {Name:'Short Format Files', Hash:'ShortFormatFiles'}
|
|
68
69
|
}
|
|
69
70
|
});
|
|
70
71
|
|
|
@@ -94,6 +95,10 @@ suite
|
|
|
94
95
|
Expect(tmpExplicitlyExists).to.be.an('array');
|
|
95
96
|
Expect(tmpExplicitlyExists.length).to.equal(2);
|
|
96
97
|
|
|
98
|
+
let tmpShortFormatFiles = _Manyfest.getValueByHash(_SampleDataArchiveOrgFrankenberry, 'ShortFormatFiles');
|
|
99
|
+
Expect(tmpShortFormatFiles).to.be.an('array');
|
|
100
|
+
Expect(tmpShortFormatFiles.length).to.equal(1);
|
|
101
|
+
|
|
97
102
|
fTestComplete();
|
|
98
103
|
}
|
|
99
104
|
);
|