@d3fc/d3fc-chart
Advanced tools
Comparing version 5.1.8 to 5.1.9
# 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. |
{ | ||
"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); | ||
} | ||
}); | ||
}; | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
101309
19
1204
1
3
Updated@d3fc/d3fc-series@^6.1.3