|
1 | 1 | {
|
2 | 2 | "name": "syrup",
|
3 |
| - "version": "0.9.6", |
| 3 | + "version": "0.9.7", |
4 | 4 | "description": "The System Runtime Platform",
|
5 | 5 | "_id": "e89c617b6b15d24",
|
6 | 6 | "schemas": {
|
|
666 | 666 | "type": "string",
|
667 | 667 | "core": true
|
668 | 668 | },
|
| 669 | + "json": { |
| 670 | + "name": "json", |
| 671 | + "type": "string", |
| 672 | + "core": true |
| 673 | + }, |
669 | 674 | "message": {
|
670 | 675 | "name": "message",
|
671 | 676 | "type": "object",
|
|
766 | 771 | "core": true,
|
767 | 772 | "useCoreAPI": true
|
768 | 773 | },
|
769 |
| - "18475129a319a7b": { |
770 |
| - "_id": "18475129a319a7b", |
| 774 | + "1a440158941b4c8": { |
| 775 | + "_id": "1a440158941b4c8", |
771 | 776 | "component": "Syrup",
|
772 | 777 | "state": "error",
|
773 | 778 | "action": "function error(data) {\n console.error('syrup: ' + data.message, data.error);\n}",
|
774 | 779 | "core": true
|
775 | 780 | },
|
776 |
| - "10e4e1a404195a7": { |
777 |
| - "_id": "10e4e1a404195a7", |
| 781 | + "1764e15b401d60c": { |
| 782 | + "_id": "1764e15b401d60c", |
778 | 783 | "component": "Syrup",
|
779 | 784 | "state": "system",
|
780 | 785 | "action": "function system(name) {\n var System = null,\n system = {},\n systemId = '',\n result = [],\n conf = {};\n \n if (name) {\n conf.master = true;\n conf.name = name;\n System = this.require('SyrupSystem');\n system = new System(conf);\n } else {\n result = $db.SyrupSystem.find({\n 'master': true\n });\n if (result.length) {\n systemId = result[0]._id;\n system = $component.get(systemId);\n }\n }\n return system;\n}",
|
781 | 786 | "core": true,
|
782 | 787 | "useCoreAPI": true
|
783 | 788 | },
|
784 |
| - "124e1187da105d1": { |
785 |
| - "_id": "124e1187da105d1", |
| 789 | + "15a4210f3f1dfe7": { |
| 790 | + "_id": "15a4210f3f1dfe7", |
786 | 791 | "component": "Syrup",
|
787 | 792 | "state": "warning",
|
788 | 793 | "action": "function warning(message) {\n console.warn('syrup: ' + message);\n}",
|
789 | 794 | "core": true
|
790 | 795 | },
|
791 |
| - "1cb2e1e35d157db": { |
792 |
| - "_id": "1cb2e1e35d157db", |
| 796 | + "1637316b031e8a6": { |
| 797 | + "_id": "1637316b031e8a6", |
793 | 798 | "component": "SyrupClassInfo",
|
794 | 799 | "state": "collection",
|
795 | 800 | "action": "function collection(name) {\n var result = {};\n if (this.metamodel()[name] === 'collection') {\n result = this.model()[name];\n } \n \n return result; \n}",
|
796 | 801 | "core": true
|
797 | 802 | },
|
798 |
| - "1e0a7149ed1cfa4": { |
799 |
| - "_id": "1e0a7149ed1cfa4", |
| 803 | + "178c41bc39197b7": { |
| 804 | + "_id": "178c41bc39197b7", |
800 | 805 | "component": "SyrupClassInfo",
|
801 | 806 | "state": "collections",
|
802 | 807 | "action": "function collections() {\n var keys = Object.keys(this.metamodel()),\n item = '',\n result = [],\n i = 0,\n length = 0;\n \n length = keys.length; \n \n for (i = 0; i < length; i++) { \n item = keys[i]; \n if (this.metamodel()[item] === 'collection') {\n result.push(item);\n }\n }\n \n return result;\n}",
|
803 | 808 | "core": true
|
804 | 809 | },
|
805 |
| - "124ce15da411e98": { |
806 |
| - "_id": "124ce15da411e98", |
| 810 | + "16e6a19749115be": { |
| 811 | + "_id": "16e6a19749115be", |
807 | 812 | "component": "SyrupClassInfo",
|
808 | 813 | "state": "event",
|
809 | 814 | "action": "function event(name) {\n var result = {};\n \n if (this.metamodel()[name] === 'event') {\n result = this.model()[name];\n } \n \n return result;\n}",
|
810 | 815 | "core": true
|
811 | 816 | },
|
812 |
| - "1cf131349414890": { |
813 |
| - "_id": "1cf131349414890", |
| 817 | + "175431bac513ee8": { |
| 818 | + "_id": "175431bac513ee8", |
814 | 819 | "component": "SyrupClassInfo",
|
815 | 820 | "state": "events",
|
816 | 821 | "action": "function events() {\n var keys = Object.keys(this.metamodel()),\n item = '',\n result = [],\n i = 0,\n length = 0;\n \n length = keys.length;\n \n for (i = 0; i < length; i++) {\n item = keys[i];\n if (this.metamodel()[item] === 'event') {\n result.push(item);\n }\n } \n return result;\n}",
|
817 | 822 | "core": true
|
818 | 823 | },
|
819 |
| - "19c5710b5811ad3": { |
820 |
| - "_id": "19c5710b5811ad3", |
| 824 | + "1ab1217f0a1815c": { |
| 825 | + "_id": "1ab1217f0a1815c", |
821 | 826 | "component": "SyrupClassInfo",
|
822 | 827 | "state": "method",
|
823 | 828 | "action": "function method(name) {\n var result = {};\n if (this.metamodel()[name] === 'method') {\n result = this.model()[name];\n \n }\n \n return result;\n}",
|
824 | 829 | "core": true
|
825 | 830 | },
|
826 |
| - "13bc91adbf1f284": { |
827 |
| - "_id": "13bc91adbf1f284", |
| 831 | + "1e07b13a701f9e2": { |
| 832 | + "_id": "1e07b13a701f9e2", |
828 | 833 | "component": "SyrupClassInfo",
|
829 | 834 | "state": "methods",
|
830 | 835 | "action": "function methods() {\n var keys = Object.keys(this.metamodel()),\n item = '',\n result = [],\n i = 0,\n length = 0;\n length = keys.length;\n for (i = 0; i < length; i++) {\n item = keys[i];\n if (this.metamodel()[item] === 'method') {\n result.push(item);\n }\n } \n \n return result;\n}",
|
831 | 836 | "core": true
|
832 | 837 | },
|
833 |
| - "17c841db7010c61": { |
834 |
| - "_id": "17c841db7010c61", |
| 838 | + "13b2f18cf1185d6": { |
| 839 | + "_id": "13b2f18cf1185d6", |
835 | 840 | "component": "SyrupClassInfo",
|
836 | 841 | "state": "properties",
|
837 | 842 | "action": "function properties() { \n var keys = Object.keys(this.metamodel()),\n item = '',\n result = [],\n i = 0,\n length = 0;\n length = keys.length;\n \n for (i = 0; i < length; i++) {\n item = keys[i];\n if (this.metamodel()[item] === 'property') {\n result.push(item);\n }\n } return result;\n}",
|
838 | 843 | "core": true
|
839 | 844 | },
|
840 |
| - "1140d12efe1aaa8": { |
841 |
| - "_id": "1140d12efe1aaa8", |
| 845 | + "12cba138be161f2": { |
| 846 | + "_id": "12cba138be161f2", |
842 | 847 | "component": "SyrupClassInfo",
|
843 | 848 | "state": "property",
|
844 | 849 | "action": "function property(name) {\n var result = {};\n \n if (this.metamodel()[name] === 'property') {\n result = this.model()[name];\n }\n return result;\n}",
|
845 | 850 | "core": true
|
846 | 851 | },
|
847 |
| - "1511d1f76911b6e": { |
848 |
| - "_id": "1511d1f76911b6e", |
| 852 | + "151981ba4212ace": { |
| 853 | + "_id": "151981ba4212ace", |
849 | 854 | "component": "SyrupComponent",
|
850 | 855 | "state": "destroy",
|
851 | 856 | "action": "function destroy() {\n $component.destroy(this.id());\n}",
|
852 | 857 | "core": true,
|
853 | 858 | "useCoreAPI": true
|
854 | 859 | },
|
855 |
| - "121551981214ce7": { |
856 |
| - "_id": "121551981214ce7", |
| 860 | + "1ebc21652210178": { |
| 861 | + "_id": "1ebc21652210178", |
857 | 862 | "component": "SyrupComponent",
|
858 | 863 | "state": "off",
|
859 | 864 | "action": "function off(state, behaviorId) {\n var args = [],\n i = 0,\n length = 0;\n length = arguments.length;\n \n for (i = 0; i < length - 6; i++) {\n args.push(arguments[i]);\n }\n \n if ($workflow.checkParams({\"component\": this, \"methodName\": \"off\", \"args\": args})) {\n if ($metamodel.isValidState(state, this.constructor.name)) {\n $behavior.remove({\"behaviorId\": behaviorId, \"componentId\": this.id(), \"state\": state});\n } else { $helper.getSyrup().warning({ \"message\":\"invoke 'off' method of component '\" + this.id() + \"' with an invalid state '\" + state + \"'\"}); \n }\n }\n}",
|
860 | 865 | "core": true,
|
861 | 866 | "useCoreAPI": true
|
862 | 867 | },
|
863 |
| - "15f181817818bb9": { |
864 |
| - "_id": "15f181817818bb9", |
| 868 | + "18d631d2f11b073": { |
| 869 | + "_id": "18d631d2f11b073", |
865 | 870 | "component": "SyrupComponent",
|
866 | 871 | "state": "require",
|
867 | 872 | "action": "function require(id) {\n return $component.get(id);\n}",
|
868 | 873 | "core": true,
|
869 | 874 | "useCoreAPI": true
|
870 | 875 | },
|
871 |
| - "1c31c1a4781b13d": { |
872 |
| - "_id": "1c31c1a4781b13d", |
| 876 | + "17d721438711085": { |
| 877 | + "_id": "17d721438711085", |
873 | 878 | "component": "SyrupDatabase",
|
874 | 879 | "state": "collections",
|
875 | 880 | "action": "function collections() {\n var result = {},\n collectionName = '';\n \n for (collectionName in $db.store) {\n if ($db.store.hasOwnProperty(collectionName) && collectionName.indexOf('Syrup') !== 0) {\n result[collectionName] = $db[collectionName];\n \n }\n }\n return result;\n}",
|
876 | 881 | "core": true,
|
877 | 882 | "useCoreAPI": true
|
878 | 883 | },
|
879 |
| - "103751ab091f4d1": { |
880 |
| - "_id": "103751ab091f4d1", |
| 884 | + "189ba10e771e706": { |
| 885 | + "_id": "189ba10e771e706", |
881 | 886 | "component": "SyrupDatabase",
|
882 | 887 | "state": "subsystem",
|
883 | 888 | "action": "function subsystem(params) {\n return $db.subsystem(params);\n}",
|
884 | 889 | "core": true,
|
885 | 890 | "useCoreAPI": true
|
886 | 891 | },
|
887 |
| - "186db117741f0f2": { |
888 |
| - "_id": "186db117741f0f2", |
| 892 | + "1ec8e1b89217bd0": { |
| 893 | + "_id": "1ec8e1b89217bd0", |
889 | 894 | "component": "SyrupDatabase",
|
890 | 895 | "state": "system",
|
891 | 896 | "action": "function system(system) {\n return $db.system(system);\n}",
|
892 | 897 | "core": true,
|
893 | 898 | "useCoreAPI": true
|
894 | 899 | },
|
895 |
| - "1ba6f1b7fb1e324": { |
896 |
| - "_id": "1ba6f1b7fb1e324", |
| 900 | + "146271f0d21f988": { |
| 901 | + "_id": "146271f0d21f988", |
897 | 902 | "component": "SyrupMetamodel",
|
898 | 903 | "state": "create",
|
899 | 904 | "action": "function create() {\n $metamodel.create();\n}",
|
900 | 905 | "core": true,
|
901 | 906 | "useCoreAPI": true
|
902 | 907 | },
|
903 |
| - "1a41517d831ed6e": { |
904 |
| - "_id": "1a41517d831ed6e", |
| 908 | + "1aab01bc4613909": { |
| 909 | + "_id": "1aab01bc4613909", |
905 | 910 | "component": "SyrupMetamodel",
|
906 | 911 | "state": "schema",
|
907 | 912 | "action": "function schema(schema) {\n $metamodel.schema(schema);\n}",
|
908 | 913 | "core": true,
|
909 | 914 | "useCoreAPI": true
|
910 | 915 | },
|
911 |
| - "13bcb1748c16c9b": { |
912 |
| - "_id": "13bcb1748c16c9b", |
| 916 | + "12baa14ebd18f39": { |
| 917 | + "_id": "12baa14ebd18f39", |
913 | 918 | "component": "SyrupMetamodel",
|
914 | 919 | "state": "type",
|
915 | 920 | "action": "function type(type) {\n $metamodel.type(type);\n}",
|
916 | 921 | "core": true,
|
917 | 922 | "useCoreAPI": true
|
918 | 923 | },
|
919 |
| - "12caa1caed10c1f": { |
920 |
| - "_id": "12caa1caed10c1f", |
| 924 | + "13627116291ca84": { |
| 925 | + "_id": "13627116291ca84", |
921 | 926 | "component": "SyrupSystem",
|
922 | 927 | "state": "sync",
|
923 | 928 | "action": "function sync() {\n var system = JSON.parse($db.system());\n \n this.schemas(system.schemas);\n this.types(system.types);\n this.behaviors(system.behaviors);\n this.components(system.components);\n}",
|
|
929 | 934 | "Syrup": {
|
930 | 935 | "syrup": {
|
931 | 936 | "_id": "syrup",
|
932 |
| - "version": "0.9.6" |
| 937 | + "version": "0.9.7" |
933 | 938 | }
|
934 | 939 | },
|
935 | 940 | "SyrupDatabase": {
|
|
0 commit comments