Skip to content

Commit 9dc2efc

Browse files
Xing Han Ludependabot[bot]
andauthored
Update dependencies (#132)
* npm run build with dash 1.20 * Bump ssri from 6.0.1 to 6.0.2 (#131) Bumps [ssri](https://github.com/npm/ssri) from 6.0.1 to 6.0.2. - [Release notes](https://github.com/npm/ssri/releases) - [Changelog](https://github.com/npm/ssri/blob/v6.0.2/CHANGELOG.md) - [Commits](npm/ssri@v6.0.1...v6.0.2) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump ini from 1.3.5 to 1.3.8 (#115) Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8. - [Release notes](https://github.com/isaacs/ini/releases) - [Commits](npm/ini@v1.3.5...v1.3.8) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump dot-prop from 4.2.0 to 4.2.1 (#124) Bumps [dot-prop](https://github.com/sindresorhus/dot-prop) from 4.2.0 to 4.2.1. - [Release notes](https://github.com/sindresorhus/dot-prop/releases) - [Commits](sindresorhus/dot-prop@v4.2.0...v4.2.1) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * npm audit fix * Update changelog * Fix prop types to stop warnings Many warnings are caused by incorrect proptypes introduced in #117 * npm run build Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 325579c commit 9dc2efc

File tree

9 files changed

+499
-245
lines changed

9 files changed

+499
-245
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
* Docgen upgraded to 5.3.0 (#117)
1313
* Improved prop typing (#117)
1414

15+
### Fixed
16+
* Various security fixes
17+
1518
## [0.2.0] - 20120-07-09
1619

1720
### Added

dash_cytoscape/Cytoscape.py

Lines changed: 420 additions & 187 deletions
Large diffs are not rendered by default.

dash_cytoscape/dash_cytoscape.dev.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash_cytoscape/dash_cytoscape.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash_cytoscape/dash_cytoscape_extra.dev.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash_cytoscape/dash_cytoscape_extra.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash_cytoscape/metadata.json

Lines changed: 48 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@
505505
"name": "exact",
506506
"value": {
507507
"edgesData": {
508-
"name": "object",
508+
"name": "array",
509509
"description": "node specific item",
510510
"required": false
511511
},
@@ -565,27 +565,67 @@
565565
"required": false
566566
},
567567
"ancestorsData": {
568-
"name": "object",
568+
"name": "union",
569+
"value": [
570+
{
571+
"name": "object"
572+
},
573+
{
574+
"name": "array"
575+
}
576+
],
569577
"description": "Item for compound nodes",
570578
"required": false
571579
},
572580
"childrenData": {
573-
"name": "object",
581+
"name": "union",
582+
"value": [
583+
{
584+
"name": "object"
585+
},
586+
{
587+
"name": "array"
588+
}
589+
],
574590
"description": "Item for compound nodes",
575591
"required": false
576592
},
577593
"descendantsData": {
578-
"name": "object",
594+
"name": "union",
595+
"value": [
596+
{
597+
"name": "object"
598+
},
599+
{
600+
"name": "array"
601+
}
602+
],
579603
"description": "Item for compound nodes",
580604
"required": false
581605
},
582606
"parentData": {
583-
"name": "object",
607+
"name": "union",
608+
"value": [
609+
{
610+
"name": "object"
611+
},
612+
{
613+
"name": "array"
614+
}
615+
],
584616
"description": "Item for compound nodes",
585617
"required": false
586618
},
587619
"siblingsData": {
588-
"name": "object",
620+
"name": "union",
621+
"value": [
622+
{
623+
"name": "object"
624+
},
625+
{
626+
"name": "array"
627+
}
628+
],
589629
"description": "Item for compound nodes",
590630
"required": false
591631
},
@@ -752,7 +792,7 @@
752792
},
753793
"generateImage": {
754794
"type": {
755-
"name": "exact",
795+
"name": "shape",
756796
"value": {
757797
"type": {
758798
"name": "enum",
@@ -775,7 +815,7 @@
775815
}
776816
],
777817
"description": "File type to output",
778-
"required": true
818+
"required": false
779819
},
780820
"options": {
781821
"name": "object",

package-lock.json

Lines changed: 16 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/components/Cytoscape.react.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ Cytoscape.propTypes = {
747747
*/
748748
tapNode: PropTypes.exact({
749749
/** node specific item */
750-
edgesData: PropTypes.object,
750+
edgesData: PropTypes.array,
751751
/** node specific item */
752752
renderedPosition: PropTypes.object,
753753
/** node specific item */
@@ -771,15 +771,15 @@ Cytoscape.propTypes = {
771771
/** General item (for all elements) */
772772
style: PropTypes.object,
773773
/** Item for compound nodes */
774-
ancestorsData: PropTypes.object,
774+
ancestorsData: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
775775
/** Item for compound nodes */
776-
childrenData: PropTypes.object,
776+
childrenData: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
777777
/** Item for compound nodes */
778-
descendantsData: PropTypes.object,
778+
descendantsData: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
779779
/** Item for compound nodes */
780-
parentData: PropTypes.object,
780+
parentData: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
781781
/** Item for compound nodes */
782-
siblingsData: PropTypes.object,
782+
siblingsData: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
783783
/** Item for compound nodes */
784784
isParent: PropTypes.bool,
785785
/** Item for compound nodes */
@@ -872,9 +872,9 @@ Cytoscape.propTypes = {
872872
* the image, it may be prudent to invoke `'download'` for `action` instead of
873873
* `'store'` to improve performance by preventing transfer of data to the server.
874874
*/
875-
generateImage: PropTypes.exact({
875+
generateImage: PropTypes.shape({
876876
/** File type to output */
877-
type: PropTypes.oneOf(['svg', 'png', 'jpg', 'jpeg']).isRequired,
877+
type: PropTypes.oneOf(['svg', 'png', 'jpg', 'jpeg']),
878878
/** Dictionary of options to cy.png() / cy.jpg() or cy.svg() for image generation.
879879
* See https://js.cytoscape.org/#core/export for details. For `'output'`, only 'base64'
880880
* and 'base64uri' are supported. Default: `{'output': 'base64uri'}`.*/

0 commit comments

Comments
 (0)