Skip to content

Commit 4c7ef0d

Browse files
Erwan CarriouErwan Carriou
authored andcommitted
- update dev deoendencies
- add JSON type
1 parent b5e3c7c commit 4c7ef0d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+249
-224
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "system-runtime",
3-
"version": "0.9.6",
3+
"version": "0.9.7",
44
"description": "SyrupJS, the System Runtime Platform",
55
"license": "MIT",
66
"homepage": "https://syrupjs.github.io",

build/syrup.json

Lines changed: 49 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "syrup",
3-
"version": "0.9.6",
3+
"version": "0.9.7",
44
"description": "The System Runtime Platform",
55
"_id": "e89c617b6b15d24",
66
"schemas": {
@@ -666,6 +666,11 @@
666666
"type": "string",
667667
"core": true
668668
},
669+
"json": {
670+
"name": "json",
671+
"type": "string",
672+
"core": true
673+
},
669674
"message": {
670675
"name": "message",
671676
"type": "object",
@@ -766,158 +771,158 @@
766771
"core": true,
767772
"useCoreAPI": true
768773
},
769-
"18475129a319a7b": {
770-
"_id": "18475129a319a7b",
774+
"1a440158941b4c8": {
775+
"_id": "1a440158941b4c8",
771776
"component": "Syrup",
772777
"state": "error",
773778
"action": "function error(data) {\n console.error('syrup: ' + data.message, data.error);\n}",
774779
"core": true
775780
},
776-
"10e4e1a404195a7": {
777-
"_id": "10e4e1a404195a7",
781+
"1764e15b401d60c": {
782+
"_id": "1764e15b401d60c",
778783
"component": "Syrup",
779784
"state": "system",
780785
"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}",
781786
"core": true,
782787
"useCoreAPI": true
783788
},
784-
"124e1187da105d1": {
785-
"_id": "124e1187da105d1",
789+
"15a4210f3f1dfe7": {
790+
"_id": "15a4210f3f1dfe7",
786791
"component": "Syrup",
787792
"state": "warning",
788793
"action": "function warning(message) {\n console.warn('syrup: ' + message);\n}",
789794
"core": true
790795
},
791-
"1cb2e1e35d157db": {
792-
"_id": "1cb2e1e35d157db",
796+
"1637316b031e8a6": {
797+
"_id": "1637316b031e8a6",
793798
"component": "SyrupClassInfo",
794799
"state": "collection",
795800
"action": "function collection(name) {\n var result = {};\n if (this.metamodel()[name] === 'collection') {\n result = this.model()[name];\n } \n \n return result; \n}",
796801
"core": true
797802
},
798-
"1e0a7149ed1cfa4": {
799-
"_id": "1e0a7149ed1cfa4",
803+
"178c41bc39197b7": {
804+
"_id": "178c41bc39197b7",
800805
"component": "SyrupClassInfo",
801806
"state": "collections",
802807
"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}",
803808
"core": true
804809
},
805-
"124ce15da411e98": {
806-
"_id": "124ce15da411e98",
810+
"16e6a19749115be": {
811+
"_id": "16e6a19749115be",
807812
"component": "SyrupClassInfo",
808813
"state": "event",
809814
"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}",
810815
"core": true
811816
},
812-
"1cf131349414890": {
813-
"_id": "1cf131349414890",
817+
"175431bac513ee8": {
818+
"_id": "175431bac513ee8",
814819
"component": "SyrupClassInfo",
815820
"state": "events",
816821
"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}",
817822
"core": true
818823
},
819-
"19c5710b5811ad3": {
820-
"_id": "19c5710b5811ad3",
824+
"1ab1217f0a1815c": {
825+
"_id": "1ab1217f0a1815c",
821826
"component": "SyrupClassInfo",
822827
"state": "method",
823828
"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}",
824829
"core": true
825830
},
826-
"13bc91adbf1f284": {
827-
"_id": "13bc91adbf1f284",
831+
"1e07b13a701f9e2": {
832+
"_id": "1e07b13a701f9e2",
828833
"component": "SyrupClassInfo",
829834
"state": "methods",
830835
"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}",
831836
"core": true
832837
},
833-
"17c841db7010c61": {
834-
"_id": "17c841db7010c61",
838+
"13b2f18cf1185d6": {
839+
"_id": "13b2f18cf1185d6",
835840
"component": "SyrupClassInfo",
836841
"state": "properties",
837842
"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}",
838843
"core": true
839844
},
840-
"1140d12efe1aaa8": {
841-
"_id": "1140d12efe1aaa8",
845+
"12cba138be161f2": {
846+
"_id": "12cba138be161f2",
842847
"component": "SyrupClassInfo",
843848
"state": "property",
844849
"action": "function property(name) {\n var result = {};\n \n if (this.metamodel()[name] === 'property') {\n result = this.model()[name];\n }\n return result;\n}",
845850
"core": true
846851
},
847-
"1511d1f76911b6e": {
848-
"_id": "1511d1f76911b6e",
852+
"151981ba4212ace": {
853+
"_id": "151981ba4212ace",
849854
"component": "SyrupComponent",
850855
"state": "destroy",
851856
"action": "function destroy() {\n $component.destroy(this.id());\n}",
852857
"core": true,
853858
"useCoreAPI": true
854859
},
855-
"121551981214ce7": {
856-
"_id": "121551981214ce7",
860+
"1ebc21652210178": {
861+
"_id": "1ebc21652210178",
857862
"component": "SyrupComponent",
858863
"state": "off",
859864
"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}",
860865
"core": true,
861866
"useCoreAPI": true
862867
},
863-
"15f181817818bb9": {
864-
"_id": "15f181817818bb9",
868+
"18d631d2f11b073": {
869+
"_id": "18d631d2f11b073",
865870
"component": "SyrupComponent",
866871
"state": "require",
867872
"action": "function require(id) {\n return $component.get(id);\n}",
868873
"core": true,
869874
"useCoreAPI": true
870875
},
871-
"1c31c1a4781b13d": {
872-
"_id": "1c31c1a4781b13d",
876+
"17d721438711085": {
877+
"_id": "17d721438711085",
873878
"component": "SyrupDatabase",
874879
"state": "collections",
875880
"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}",
876881
"core": true,
877882
"useCoreAPI": true
878883
},
879-
"103751ab091f4d1": {
880-
"_id": "103751ab091f4d1",
884+
"189ba10e771e706": {
885+
"_id": "189ba10e771e706",
881886
"component": "SyrupDatabase",
882887
"state": "subsystem",
883888
"action": "function subsystem(params) {\n return $db.subsystem(params);\n}",
884889
"core": true,
885890
"useCoreAPI": true
886891
},
887-
"186db117741f0f2": {
888-
"_id": "186db117741f0f2",
892+
"1ec8e1b89217bd0": {
893+
"_id": "1ec8e1b89217bd0",
889894
"component": "SyrupDatabase",
890895
"state": "system",
891896
"action": "function system(system) {\n return $db.system(system);\n}",
892897
"core": true,
893898
"useCoreAPI": true
894899
},
895-
"1ba6f1b7fb1e324": {
896-
"_id": "1ba6f1b7fb1e324",
900+
"146271f0d21f988": {
901+
"_id": "146271f0d21f988",
897902
"component": "SyrupMetamodel",
898903
"state": "create",
899904
"action": "function create() {\n $metamodel.create();\n}",
900905
"core": true,
901906
"useCoreAPI": true
902907
},
903-
"1a41517d831ed6e": {
904-
"_id": "1a41517d831ed6e",
908+
"1aab01bc4613909": {
909+
"_id": "1aab01bc4613909",
905910
"component": "SyrupMetamodel",
906911
"state": "schema",
907912
"action": "function schema(schema) {\n $metamodel.schema(schema);\n}",
908913
"core": true,
909914
"useCoreAPI": true
910915
},
911-
"13bcb1748c16c9b": {
912-
"_id": "13bcb1748c16c9b",
916+
"12baa14ebd18f39": {
917+
"_id": "12baa14ebd18f39",
913918
"component": "SyrupMetamodel",
914919
"state": "type",
915920
"action": "function type(type) {\n $metamodel.type(type);\n}",
916921
"core": true,
917922
"useCoreAPI": true
918923
},
919-
"12caa1caed10c1f": {
920-
"_id": "12caa1caed10c1f",
924+
"13627116291ca84": {
925+
"_id": "13627116291ca84",
921926
"component": "SyrupSystem",
922927
"state": "sync",
923928
"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,7 +934,7 @@
929934
"Syrup": {
930935
"syrup": {
931936
"_id": "syrup",
932-
"version": "0.9.6"
937+
"version": "0.9.7"
933938
}
934939
},
935940
"SyrupDatabase": {

0 commit comments

Comments
 (0)