@prefecthq/vue-charts
Advanced tools
Comparing version
export { default as BarChart } from './BarChart.vue'; | ||
export { default as DivergingBarChart } from './DivergingBarChart.vue'; | ||
export { default as Timeline } from './Timeline.vue'; |
{ | ||
"name": "@prefecthq/vue-charts", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -45,6 +45,14 @@ import { ref, Ref, onMounted, onUnmounted } from 'vue' | ||
// Starting these with an underscore allows us to use UUIDs as HTMLElement ids | ||
const _uid = () => `_${crypto?.randomUUID?.() || (crypto?.getRandomValues?.(new Uint32Array(1))[0] || new Date().getTime()) * Math.pow(2, -32) * 16}` | ||
if (crypto && !('randomUUID' in crypto)) { | ||
crypto.randomUUID = () => (+[1e7] + -1e3 + -4e3 + -8e3 + -1e11) | ||
.toString() | ||
.replace(/[018]/g, | ||
c => (+c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> +c / 4).toString(16) | ||
) | ||
} | ||
// Starting these with "chart-" allows us to use UUIDs as HTMLElement ids | ||
const _uid = () => `chart-${crypto?.randomUUID()}` | ||
export class Base implements IBase { | ||
@@ -51,0 +59,0 @@ private container: ElementRef |
export { default as BarChart } from './BarChart.vue' | ||
export { default as DivergingBarChart } from './DivergingBarChart.vue' | ||
export { default as DivergingBarChart } from './DivergingBarChart.vue' | ||
export { default as Timeline } from './Timeline.vue' |
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 too big to display
Sorry, the diff of this file is not supported yet
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
310052
9.97%5662
10.5%2
Infinity%