manyfest 1.0.30 → 1.0.32
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/debug/Harness.js +12 -14
- package/dist/manyfest.compatible.js +502 -66
- package/dist/manyfest.compatible.min.js +1 -1
- package/dist/manyfest.compatible.min.js.map +1 -1
- package/dist/manyfest.js +491 -54
- package/dist/manyfest.min.js +1 -1
- package/dist/manyfest.min.js.map +1 -1
- package/package.json +1 -1
- package/source/Manyfest-ObjectAddress-CheckAddressExists.js +109 -13
- package/source/Manyfest-ObjectAddress-DeleteValue.js +0 -2
- package/source/Manyfest-ObjectAddress-GetValue.js +136 -10
- package/source/Manyfest-ObjectAddress-Parser.js +298 -0
- package/source/Manyfest-ParseConditionals.js +10 -12
- package/test/Manyfest_Embedded_Solvers_tests.js +18 -16
- package/test/Manyfest_ObjectAddress_Parser_tests.js +160 -0
- package/test/Manyfest_Object_CheckExistence_tests.js +54 -0
- package/test/Manyfest_Object_Read_tests.js +126 -0
package/debug/Harness.js
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
let libManyfest = require(`../source/Manyfest.js`);
|
|
2
2
|
|
|
3
|
-
let
|
|
4
|
-
// {
|
|
5
|
-
// "Scope": "Animal",
|
|
6
|
-
// "Descriptors":
|
|
7
|
-
// {
|
|
8
|
-
// "IDAnimal": { "Name":"Database ID", "Description":"The unique integer-based database identifier for an Animal record.", "DataType":"Integer" },
|
|
9
|
-
// "Name": { "Description":"The animal's colloquial species name (e.g. Rabbit, Dog, Bear, Mongoose)." },
|
|
10
|
-
// "Type": { "Description":"Whether or not the animal is wild, domesticated, agricultural, in a research lab or a part of a zoo.." }
|
|
11
|
-
// }
|
|
12
|
-
// });
|
|
3
|
+
let _Manyfest = new libManyfest()
|
|
13
4
|
|
|
14
5
|
// Make up a cute and furry test creature
|
|
15
|
-
let
|
|
6
|
+
let testRecord = (
|
|
7
|
+
{
|
|
8
|
+
IDAnimal:8675309,
|
|
9
|
+
Name:'BatBrains',
|
|
10
|
+
Type:'Lab',
|
|
11
|
+
Color:'Brown',
|
|
12
|
+
Author: ['Frankenberry', 'Chocula'],
|
|
13
|
+
Choco: require('../test/Data-Archive-org-Frankenberry.json')
|
|
14
|
+
});
|
|
16
15
|
|
|
17
|
-
|
|
18
|
-
let checkResults = animalManyfest.validate(testAnimal);
|
|
16
|
+
let tmpResult = _Manyfest.getValueAtAddress(testRecord);
|
|
19
17
|
|
|
20
|
-
console.log(JSON.stringify(
|
|
18
|
+
console.log(JSON.stringify(tmpResult));
|