@drecom/scene-graph-schema
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -11,31 +11,10 @@ { | ||
"properties": { | ||
"id": { | ||
"id": "#Node_id", | ||
"type": "string" | ||
}, | ||
"name": { | ||
"id": "#Node_name", | ||
"type": "string" | ||
}, | ||
"constructor": { | ||
"id": "#Node_constructor", | ||
"type": "string" | ||
}, | ||
"transform": { | ||
"id": "#Node_transform", | ||
"$ref": "Transform.json#Transform" | ||
}, | ||
"id": { "type": "string" }, | ||
"name": { "type": "string" }, | ||
"constructor": { "type": "string" }, | ||
"spine": { | ||
"id": "#Node_spine", | ||
"$ref": "Spine.json#Spine" | ||
}, | ||
"sprite": { | ||
"id": "#Node_sprite", | ||
"$ref": "Sprite.json#Sprite" | ||
}, | ||
"text": { | ||
"id": "#Node_text", | ||
"$ref": "Text.json#Text" | ||
} | ||
"transform": { "$ref": "Transform.json#/definitions/Transform" }, | ||
"spine": { "$ref": "Spine.json#/definitions/Spine" }, | ||
"sprite": { "$ref": "Sprite.json#/definitions/Sprite" }, | ||
"text": { "$ref": "Text.json#/definitions/Text" } | ||
}, | ||
@@ -42,0 +21,0 @@ "required": [ |
@@ -11,12 +11,5 @@ { | ||
"properties": { | ||
"url": { | ||
"id": "#Spine_url", | ||
"type": "string" | ||
}, | ||
"skin": { | ||
"id": "#Spine_skin", | ||
"type": "string" | ||
}, | ||
"url": { "type": "string" }, | ||
"skin": { "type": "string" }, | ||
"animation": { | ||
"id": "#Spine_animation", | ||
"type": "object", | ||
@@ -23,0 +16,0 @@ "properties": { |
@@ -11,17 +11,7 @@ { | ||
"properties": { | ||
"url": { | ||
"id": "#Sprite_url", | ||
"type": "string" | ||
}, | ||
"base64": { | ||
"id": "#Sprite_base64", | ||
"type": "string" | ||
} | ||
}, | ||
"oneOf": [ | ||
{ "required": [ "url" ] }, | ||
{ "required": [ "base64" ] } | ||
] | ||
"url": { "type": "string" }, | ||
"base64": { "type": "string" } | ||
} | ||
} | ||
} | ||
} |
@@ -11,8 +11,4 @@ { | ||
"properties": { | ||
"text": { | ||
"id": "#Text_text", | ||
"type": "string" | ||
}, | ||
"text": { "type": "string" }, | ||
"style": { | ||
"id": "#Text_style", | ||
"type": "object", | ||
@@ -19,0 +15,0 @@ "properties": { |
@@ -11,18 +11,8 @@ { | ||
"properties": { | ||
"x": { | ||
"id": "#Transform_x", | ||
"type": "number" | ||
}, | ||
"y": { | ||
"id": "#Transform_x", | ||
"type": "number" | ||
}, | ||
"parent": { | ||
"id": "#Transform_parent", | ||
"$ref": "Node.json#Node_id" | ||
}, | ||
"x": { "type": "number" }, | ||
"y": { "type": "number" }, | ||
"parent": { "type": "string" }, | ||
"children": { | ||
"id": "#Transform_children", | ||
"type": "array", | ||
"items": { "$ref": "Node.json#Node_id" } | ||
"items": { "type": "string" } | ||
} | ||
@@ -29,0 +19,0 @@ }, |
{ | ||
"name": "@drecom/scene-graph-schema", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "scene-graph-schema is a intermediate data schema that represents common data structure of a scene in game application.", | ||
"main": "index.js", | ||
"typings": "types/Schema.d.ts", | ||
"repository": { | ||
@@ -12,7 +13,8 @@ "type": "git", | ||
"example": "node examples/example.js", | ||
"test": "mocha test/index.test.js" | ||
"test": "mocha test/index.test.js", | ||
"dts": "node scripts/dts.js" | ||
}, | ||
"keywords": [ | ||
"game", | ||
"schene", | ||
"scene", | ||
"schema" | ||
@@ -30,2 +32,3 @@ ], | ||
"devDependencies": { | ||
"json-schema-to-typescript": "^5.5.0", | ||
"mocha": "^5.2.0", | ||
@@ -32,0 +35,0 @@ "power-assert": "^1.6.0" |
@@ -10,3 +10,3 @@ { | ||
"type": "array", | ||
"items": { "$ref": "/definitions/Node.json#Node" } | ||
"items": { "$ref": "definitions/Node.json#/definitions/Node" } | ||
} | ||
@@ -13,0 +13,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22200
21
811
3
5
1