@jsonforms/react
Advanced tools
Comparing version 2.2.2-alpha.0 to 2.2.2-beta.0
@@ -16,3 +16,3 @@ /// <reference types="react-redux" /> | ||
componentDidUpdate(): void; | ||
resolveAndUpdateSchema: (schema: JsonSchema) => void; | ||
resolveAndUpdateSchema: (props: JsonFormsProps) => void; | ||
componentWillUnmount(): void; | ||
@@ -19,0 +19,0 @@ render(): JSX.Element; |
@@ -57,3 +57,2 @@ "use strict"; | ||
var react_1 = __importDefault(require("react")); | ||
var json_refs_1 = __importDefault(require("json-refs")); | ||
var react_redux_1 = require("react-redux"); | ||
@@ -64,3 +63,3 @@ var UnknownRenderer_1 = require("./UnknownRenderer"); | ||
if (schema !== undefined) { | ||
return Object.keys(json_refs_1.default.findRefs(schema)).length > 0; | ||
return Object.keys(core_1.findRefs(schema)).length > 0; | ||
} | ||
@@ -74,9 +73,7 @@ return false; | ||
_this.mounted = false; | ||
_this.resolveAndUpdateSchema = function (schema) { | ||
json_refs_1.default | ||
.resolveRefs(schema) | ||
.then(function (resolvedSchema) { | ||
_this.resolveAndUpdateSchema = function (props) { | ||
props.refResolver(props.schema).then(function (resolvedSchema) { | ||
_this.setState({ | ||
resolving: false, | ||
resolvedSchema: resolvedSchema.resolved | ||
resolvedSchema: resolvedSchema | ||
}); | ||
@@ -107,3 +104,3 @@ }); | ||
if (this.state.resolving) { | ||
this.resolveAndUpdateSchema(this.props.schema); | ||
this.resolveAndUpdateSchema(this.props); | ||
} | ||
@@ -113,3 +110,3 @@ }; | ||
if (this.state.resolving) { | ||
this.resolveAndUpdateSchema(this.props.schema); | ||
this.resolveAndUpdateSchema(this.props); | ||
} | ||
@@ -116,0 +113,0 @@ }; |
{ | ||
"name": "@jsonforms/react", | ||
"version": "2.2.2-alpha.0", | ||
"version": "2.2.2-beta.0", | ||
"description": "React module of JSON Forms", | ||
@@ -69,3 +69,3 @@ "repository": "https://github.com/eclipsesource/jsonforms", | ||
"devDependencies": { | ||
"@jsonforms/core": "^2.2.2-alpha.0", | ||
"@jsonforms/core": "^2.2.2-beta.0", | ||
"@types/enzyme": "^3.1.15", | ||
@@ -83,3 +83,3 @@ "@types/enzyme-adapter-react-16": "^1.0.3", | ||
}, | ||
"gitHead": "81ce0bed852dd62f2fa0f2c2d5509a61053c6389" | ||
"gitHead": "8bd9f6067f0b286f2d1c621120994697bacdc11d" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
5
1014234
2613