New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

shown

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shown - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

7

package.json
{
"name": "shown",
"version": "1.2.1",
"version": "1.2.2",
"description": "Statically-generated, responsive charts, without the need for client-side Javascript.",

@@ -21,3 +21,5 @@ "type": "module",

"badge": "make-coverage-badge --output-path=docs/coverage.svg",
"dev": "run-p watch serve",
"watch": "nodemon --exec 'npm run build'",
"serve": "serve docs",
"build": "run-s build:**",

@@ -101,3 +103,6 @@ "build:lib": "esbuild src/index.js src/css/shown.css --bundle --platform=node --target=node10.4 --outdir=dist --out-extension:.js=.cjs",

"delay": 2500
},
"dependencies": {
"serve": "^14.2.1"
}
}

@@ -23,2 +23,4 @@ import line from "./line.js"

* @param {boolean} [options.sorted] - Whether to sort the values.
* @param {Boolean} [options.smartLabels] - Labels are shifted to minimise
* overlapping the line.
* @returns {string} Rendered chart

@@ -40,2 +42,3 @@ *

* sorted: true,
* smartLabels: false,
* })

@@ -58,3 +61,12 @@ *

export default ({ data, title, description, map, xAxis, yAxis, sorted }) => {
export default ({
data,
title,
description,
map,
xAxis,
yAxis,
sorted,
smartLabels,
}) => {
return line({

@@ -68,2 +80,3 @@ data,

sorted,
smartLabels,
showGaps: true,

@@ -70,0 +83,0 @@ area: true,

@@ -20,2 +20,5 @@ import line from "./line.js"

* Overrides for the y-axis. See {@link AxisOptions} for more details.
* @param {Boolean} [options.sorted] - Whether to sort the values.
* @param {Boolean} [options.smartLabels] - Labels are shifted to minimise
* overlapping the line.
* @returns {string} Rendered chart

@@ -58,3 +61,12 @@ *

export default ({ data, title, description, map, xAxis, yAxis }) => {
export default ({
data,
title,
description,
map,
xAxis,
yAxis,
sorted,
smartLabels = false,
}) => {
data = Array.isArray(data[0][0]) ? data : [data]

@@ -78,5 +90,6 @@

yAxis,
smartLabels: false,
sorted,
smartLabels,
scatter: true,
})
}

@@ -18,2 +18,3 @@ declare module "shown" {

* sorted: true,
* smartLabels: false,
* })

@@ -47,2 +48,4 @@ * @example

* @param [options.sorted] - Whether to sort the values.
* @param [options.smartLabels] - Labels are shifted to minimise
* overlapping the line.
* @returns Rendered chart

@@ -58,2 +61,3 @@ */

sorted?: boolean;
smartLabels?: boolean;
}): string;

@@ -362,2 +366,5 @@ /**

* @param [options.yAxis] - Overrides for the y-axis. See {@link AxisOptions} for more details.
* @param [options.sorted] - Whether to sort the values.
* @param [options.smartLabels] - Labels are shifted to minimise
* overlapping the line.
* @returns Rendered chart

@@ -372,2 +379,4 @@ */

yAxis?: AxisOptions;
sorted?: boolean;
smartLabels?: boolean;
}): string;

@@ -374,0 +383,0 @@ }

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc