|
1 | 1 | { |
2 | 2 | "name": "syrup", |
3 | | - "version": "0.9.4", |
| 3 | + "version": "0.9.5", |
4 | 4 | "description": "The System Runtime Platform", |
5 | 5 | "_id": "e89c617b6b15d24", |
6 | 6 | "schemas": { |
|
138 | 138 | "SyrupChannelEvent": { |
139 | 139 | "_id": "SyrupChannelEvent", |
140 | 140 | "_name": "SyrupChannelEvent", |
141 | | - "_schema": "SyrupChannelEventSchema" |
| 141 | + "_schema": "SyrupChannelEventSchema", |
| 142 | + "_core": true |
142 | 143 | }, |
143 | 144 | "SyrupChannelEventSchema": { |
144 | 145 | "_id": "SyrupChannelEventSchema", |
145 | | - "_name": "SyrupChannelEventSchema" |
| 146 | + "_name": "SyrupChannelEventSchema", |
| 147 | + "_core": true |
146 | 148 | }, |
147 | 149 | "SyrupChannelSchema": { |
148 | 150 | "_id": "SyrupChannelSchema", |
|
764 | 766 | "core": true, |
765 | 767 | "useCoreAPI": true |
766 | 768 | }, |
767 | | - "1dfaf10bbd1f6c0": { |
768 | | - "_id": "1dfaf10bbd1f6c0", |
| 769 | + "1152e1ca841228b": { |
| 770 | + "_id": "1152e1ca841228b", |
769 | 771 | "component": "Syrup", |
770 | 772 | "state": "error", |
771 | 773 | "action": "function error(data) {\n console.error('syrup: ' + data.message, data.error);\n}", |
772 | 774 | "core": true |
773 | 775 | }, |
774 | | - "189ba14dce1e868": { |
775 | | - "_id": "189ba14dce1e868", |
| 776 | + "1117116e0f1693e": { |
| 777 | + "_id": "1117116e0f1693e", |
776 | 778 | "component": "Syrup", |
777 | 779 | "state": "system", |
778 | 780 | "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}", |
779 | 781 | "core": true, |
780 | 782 | "useCoreAPI": true |
781 | 783 | }, |
782 | | - "162171afd211338": { |
783 | | - "_id": "162171afd211338", |
| 784 | + "14aeb18fee100e0": { |
| 785 | + "_id": "14aeb18fee100e0", |
784 | 786 | "component": "Syrup", |
785 | 787 | "state": "warning", |
786 | 788 | "action": "function warning(message) {\n console.warn('syrup: ' + message);\n}", |
787 | 789 | "core": true |
788 | 790 | }, |
789 | | - "1c26f1eafb1cf57": { |
790 | | - "_id": "1c26f1eafb1cf57", |
| 791 | + "1c7d91357b1d3d5": { |
| 792 | + "_id": "1c7d91357b1d3d5", |
791 | 793 | "component": "SyrupClassInfo", |
792 | 794 | "state": "collection", |
793 | 795 | "action": "function collection(name) {\n var result = {};\n if (this.metamodel()[name] === 'collection') {\n result = this.model()[name];\n } \n \n return result; \n}", |
794 | 796 | "core": true |
795 | 797 | }, |
796 | | - "122071c20d1f8f2": { |
797 | | - "_id": "122071c20d1f8f2", |
| 798 | + "1523c1f80f1c711": { |
| 799 | + "_id": "1523c1f80f1c711", |
798 | 800 | "component": "SyrupClassInfo", |
799 | 801 | "state": "collections", |
800 | 802 | "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}", |
801 | 803 | "core": true |
802 | 804 | }, |
803 | | - "1595e15ee116344": { |
804 | | - "_id": "1595e15ee116344", |
| 805 | + "1738c124ec18532": { |
| 806 | + "_id": "1738c124ec18532", |
805 | 807 | "component": "SyrupClassInfo", |
806 | 808 | "state": "event", |
807 | 809 | "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}", |
808 | 810 | "core": true |
809 | 811 | }, |
810 | | - "159521e88b1064c": { |
811 | | - "_id": "159521e88b1064c", |
| 812 | + "1f1a41d11c1c482": { |
| 813 | + "_id": "1f1a41d11c1c482", |
812 | 814 | "component": "SyrupClassInfo", |
813 | 815 | "state": "events", |
814 | 816 | "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}", |
815 | 817 | "core": true |
816 | 818 | }, |
817 | | - "1bca215b5713d47": { |
818 | | - "_id": "1bca215b5713d47", |
| 819 | + "135631389a17cdc": { |
| 820 | + "_id": "135631389a17cdc", |
819 | 821 | "component": "SyrupClassInfo", |
820 | 822 | "state": "method", |
821 | 823 | "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}", |
822 | 824 | "core": true |
823 | 825 | }, |
824 | | - "1d7a314ae5107b9": { |
825 | | - "_id": "1d7a314ae5107b9", |
| 826 | + "1de1a1ad8512a40": { |
| 827 | + "_id": "1de1a1ad8512a40", |
826 | 828 | "component": "SyrupClassInfo", |
827 | 829 | "state": "methods", |
828 | 830 | "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}", |
829 | 831 | "core": true |
830 | 832 | }, |
831 | | - "1fc1912add11e51": { |
832 | | - "_id": "1fc1912add11e51", |
| 833 | + "1d73d135d519abd": { |
| 834 | + "_id": "1d73d135d519abd", |
833 | 835 | "component": "SyrupClassInfo", |
834 | 836 | "state": "properties", |
835 | 837 | "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}", |
836 | 838 | "core": true |
837 | 839 | }, |
838 | | - "138991301517698": { |
839 | | - "_id": "138991301517698", |
| 840 | + "13a05176b816306": { |
| 841 | + "_id": "13a05176b816306", |
840 | 842 | "component": "SyrupClassInfo", |
841 | 843 | "state": "property", |
842 | 844 | "action": "function property(name) {\n var result = {};\n \n if (this.metamodel()[name] === 'property') {\n result = this.model()[name];\n }\n return result;\n}", |
843 | 845 | "core": true |
844 | 846 | }, |
845 | | - "1928a1d3ec1bfb8": { |
846 | | - "_id": "1928a1d3ec1bfb8", |
| 847 | + "1513d1b17410e31": { |
| 848 | + "_id": "1513d1b17410e31", |
847 | 849 | "component": "SyrupComponent", |
848 | 850 | "state": "destroy", |
849 | 851 | "action": "function destroy() {\n $component.destroy(this.id());\n}", |
850 | 852 | "core": true, |
851 | 853 | "useCoreAPI": true |
852 | 854 | }, |
853 | | - "1eb5d1c4b41fe18": { |
854 | | - "_id": "1eb5d1c4b41fe18", |
| 855 | + "1afe01d6271df24": { |
| 856 | + "_id": "1afe01d6271df24", |
855 | 857 | "component": "SyrupComponent", |
856 | 858 | "state": "off", |
857 | 859 | "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}", |
858 | 860 | "core": true, |
859 | 861 | "useCoreAPI": true |
860 | 862 | }, |
861 | | - "1f46d11abd16e75": { |
862 | | - "_id": "1f46d11abd16e75", |
| 863 | + "1f46210b7f1edce": { |
| 864 | + "_id": "1f46210b7f1edce", |
863 | 865 | "component": "SyrupComponent", |
864 | 866 | "state": "require", |
865 | 867 | "action": "function require(id) {\n return $component.get(id);\n}", |
866 | 868 | "core": true, |
867 | 869 | "useCoreAPI": true |
868 | 870 | }, |
869 | | - "17ba1143911d051": { |
870 | | - "_id": "17ba1143911d051", |
| 871 | + "185ad1ffc211622": { |
| 872 | + "_id": "185ad1ffc211622", |
871 | 873 | "component": "SyrupDatabase", |
872 | 874 | "state": "collections", |
873 | 875 | "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}", |
874 | 876 | "core": true, |
875 | 877 | "useCoreAPI": true |
876 | 878 | }, |
877 | | - "1bb641164713010": { |
878 | | - "_id": "1bb641164713010", |
| 879 | + "114f911f1511ecb": { |
| 880 | + "_id": "114f911f1511ecb", |
879 | 881 | "component": "SyrupDatabase", |
880 | 882 | "state": "subsystem", |
881 | 883 | "action": "function subsystem(params) {\n return $db.subsystem(params);\n}", |
882 | 884 | "core": true, |
883 | 885 | "useCoreAPI": true |
884 | 886 | }, |
885 | | - "10d011e9a711355": { |
886 | | - "_id": "10d011e9a711355", |
| 887 | + "1c5c716dfa1d3d5": { |
| 888 | + "_id": "1c5c716dfa1d3d5", |
887 | 889 | "component": "SyrupDatabase", |
888 | 890 | "state": "system", |
889 | 891 | "action": "function system(system) {\n return $db.system(system);\n}", |
890 | 892 | "core": true, |
891 | 893 | "useCoreAPI": true |
892 | 894 | }, |
893 | | - "1ccce159d510fde": { |
894 | | - "_id": "1ccce159d510fde", |
| 895 | + "161c71a7c912944": { |
| 896 | + "_id": "161c71a7c912944", |
895 | 897 | "component": "SyrupMetamodel", |
896 | 898 | "state": "create", |
897 | 899 | "action": "function create() {\n $metamodel.create();\n}", |
898 | 900 | "core": true, |
899 | 901 | "useCoreAPI": true |
900 | 902 | }, |
901 | | - "19e1b155f71a5a1": { |
902 | | - "_id": "19e1b155f71a5a1", |
| 903 | + "18161129081f508": { |
| 904 | + "_id": "18161129081f508", |
903 | 905 | "component": "SyrupMetamodel", |
904 | 906 | "state": "schema", |
905 | 907 | "action": "function schema(schema) {\n $metamodel.schema(schema);\n}", |
906 | 908 | "core": true, |
907 | 909 | "useCoreAPI": true |
908 | 910 | }, |
909 | | - "148d4170a91b2a7": { |
910 | | - "_id": "148d4170a91b2a7", |
| 911 | + "184b91e0e71f1c5": { |
| 912 | + "_id": "184b91e0e71f1c5", |
911 | 913 | "component": "SyrupMetamodel", |
912 | 914 | "state": "type", |
913 | 915 | "action": "function type(type) {\n $metamodel.type(type);\n}", |
914 | 916 | "core": true, |
915 | 917 | "useCoreAPI": true |
916 | 918 | }, |
917 | | - "18cc012ba614c0d": { |
918 | | - "_id": "18cc012ba614c0d", |
| 919 | + "1fe851fda917aa3": { |
| 920 | + "_id": "1fe851fda917aa3", |
919 | 921 | "component": "SyrupSystem", |
920 | 922 | "state": "sync", |
921 | 923 | "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}", |
|
927 | 929 | "Syrup": { |
928 | 930 | "syrup": { |
929 | 931 | "_id": "syrup", |
930 | | - "version": "0.9.4" |
| 932 | + "version": "0.9.5" |
931 | 933 | } |
932 | 934 | }, |
933 | 935 | "SyrupDatabase": { |
|
0 commit comments