Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@d3fc/d3fc-chart

Package Overview
Dependencies
Maintainers
0
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@d3fc/d3fc-chart - npm Package Compare versions

Comparing version 5.1.8 to 5.1.9

build/d3fc-chart.js

6

CHANGELOG.md
# Change Log
## 5.1.9
### Patch Changes
- @d3fc/d3fc-series@6.1.3
All notable changes to this project will be documented in this file.

@@ -4,0 +10,0 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

7

package.json
{
"name": "@d3fc/d3fc-chart",
"version": "5.1.8",
"version": "5.1.9",
"description": "A simple Cartesian chart component that renders to canvas or SVG.",

@@ -29,3 +29,3 @@ "license": "MIT",

"@d3fc/d3fc-rebind": "^6.0.1",
"@d3fc/d3fc-series": "^6.1.2"
"@d3fc/d3fc-series": "^6.1.3"
},

@@ -39,4 +39,3 @@ "peerDependencies": {

},
"types": "index.d.ts",
"gitHead": "2284662dd5b0b2fed04e0eb37162bc763d698095"
"types": "index.d.ts"
}

@@ -1,25 +0,52 @@

import jsdom from 'jsdom';
import { JSDOM, VirtualConsole } from 'jsdom';
import fs from 'fs';
describe('bundle', () => {
it('should correctly wire-up all the dependencies via their UMD-exposed globals', (done) => {
jsdom.env({
html: '<html></html>',
virtualConsole: jsdom.createVirtualConsole().sendTo({
error: done
}),
scripts: [
require.resolve('d3/dist/d3.js'),
require.resolve('../../../node_modules/@d3fc/d3fc-data-join/build/d3fc-data-join.js'),
require.resolve('../../../node_modules/@d3fc/d3fc-rebind/build/d3fc-rebind.js'),
require.resolve('../../../node_modules/@d3fc/d3fc-series/build/d3fc-series.js'),
require.resolve('../../../node_modules/@d3fc/d3fc-axis/build/d3fc-axis.js'),
require.resolve('../build/d3fc-chart.js')
],
done: (_, win) => {
const chart = win.fc.chartSvgCartesian();
describe('bundle', function() {
it('should correctly wire-up all the dependencies via their UMD-exposed globals', function(done) {
const virtualConsole = new VirtualConsole().sendTo({
error: done
});
const dom = new JSDOM('<html></html>', {
virtualConsole,
runScripts: 'dangerously'
});
const { window } = dom;
const loadScript = filePath => {
const scriptContent = fs.readFileSync(filePath, 'utf-8');
const scriptElement = window.document.createElement('script');
scriptElement.textContent = scriptContent;
window.document.head.appendChild(scriptElement);
};
const scripts = [
require.resolve('d3/dist/d3.js'),
require.resolve(
'../../../node_modules/@d3fc/d3fc-data-join/build/d3fc-data-join.js'
),
require.resolve(
'../../../node_modules/@d3fc/d3fc-rebind/build/d3fc-rebind.js'
),
require.resolve(
'../../../node_modules/@d3fc/d3fc-series/build/d3fc-series.js'
),
require.resolve(
'../../../node_modules/@d3fc/d3fc-axis/build/d3fc-axis.js'
),
require.resolve('../build/d3fc-chart.js')
];
scripts.forEach(loadScript);
window.onload = () => {
try {
const chart = window.fc.chartSvgCartesian();
expect(chart).not.toBeUndefined();
done();
} catch (err) {
done(err);
}
});
};
});
});
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