-
Notifications
You must be signed in to change notification settings - Fork 915
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a forced CSP-compliant interpreter with Vega visualizations (#2352)…
… (#2373) * Pass `options` to `vega.parse` to enable inclusion of parsed ASTs * Introduce the forced CSP-compliant interpreter that prevents evaluation of unsafe methods * Modified the consumed `leaflet-vega` package to one that honors `options` Signed-off-by: Miki <[email protected]> Signed-off-by: Miki <[email protected]> (cherry picked from commit bebbcca) Co-authored-by: Miki <[email protected]> Co-authored-by: Ashwin P Chandran <[email protected]>
- Loading branch information
1 parent
1f2e12d
commit dd8139c
Showing
6 changed files
with
22 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -390,7 +390,7 @@ | |
"leaflet": "1.5.1", | ||
"leaflet-draw": "0.4.14", | ||
"leaflet-responsive-popup": "0.6.4", | ||
"leaflet-vega": "^0.8.6", | ||
"leaflet-vega": "npm:@amoo-miki/leaflet-vega@0.8.8", | ||
"leaflet.heat": "0.2.0", | ||
"less": "^4.1.2", | ||
"license-checker": "^16.0.0", | ||
|
@@ -442,6 +442,7 @@ | |
"typescript": "4.0.2", | ||
"ui-select": "0.19.8", | ||
"vega": "^5.17.3", | ||
"vega-interpreter": "npm:@amoo-miki/[email protected]", | ||
"vega-lite": "^4.16.8", | ||
"vega-schema-url-parser": "^2.1.0", | ||
"vega-tooltip": "^0.24.2", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11664,10 +11664,10 @@ [email protected]: | |
resolved "https://registry.yarnpkg.com/leaflet-responsive-popup/-/leaflet-responsive-popup-0.6.4.tgz#b93d9368ef9f96d6dc911cf5b96d90e08601c6b3" | ||
integrity sha512-2D8G9aQA6NHkulDBPN9kqbUCkCpWQQ6dF0xFL11AuEIWIbsL4UC/ZPP5m8GYM0dpU6YTlmyyCh1Tz+cls5Q4dg== | ||
|
||
leaflet-vega@^0.8.6: | ||
version "0.8.6" | ||
resolved "https://registry.yarnpkg.com/leaflet-vega/-/leaflet-vega-0.8.6.tgz#dd4090a6123cb983c2b732d53ec9e4daa53736b2" | ||
integrity sha1-3UCQphI8uYPCtzLVPsnk2qU3NrI= | ||
"leaflet-vega@npm:@amoo-miki/leaflet-vega@0.8.7": | ||
version "0.8.7" | ||
resolved "https://registry.yarnpkg.com/@amoo-miki/leaflet-vega/-/leaflet-vega-0.8.7.tgz#8faca1b4b8e2ef7d48667ac6faad9204f4da7153" | ||
integrity sha512-T4M5yziwj3Fi9Adsbce+cdWqPjON0BRwEjwqLlPMoirU1vhifA6YKrlZkVzJrK0IIm+hdfMCLkBz33gD8fdxzQ== | ||
dependencies: | ||
vega-spec-injector "^0.0.2" | ||
|
||
|
@@ -18077,6 +18077,11 @@ vega-hierarchy@~4.1.0: | |
vega-dataflow "^5.7.3" | ||
vega-util "^1.15.2" | ||
|
||
"vega-interpreter@npm:@amoo-miki/[email protected]": | ||
version "1.0.5" | ||
resolved "https://registry.yarnpkg.com/@amoo-miki/vega-forced-csp-compliant-interpreter/-/vega-forced-csp-compliant-interpreter-1.0.5.tgz#49970be9b00ca7e45ced0617fbf373c77a28aab4" | ||
integrity sha512-lfeU77lVoUbSCC6N1ywdKg+I6K08xpkd82TLon+LebtKyC8aLCe7P5Dd/89zAPyFwRyobKftHu8z0xpV7R7a4Q== | ||
|
||
vega-label@~1.2.0: | ||
version "1.2.0" | ||
resolved "https://registry.yarnpkg.com/vega-label/-/vega-label-1.2.0.tgz#bcb2659aec54f890f9debab3e41ab87a58292dce" | ||
|