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

d3fc

Package Overview
Dependencies
Maintainers
2
Versions
178
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

d3fc - npm Package Compare versions

Comparing version 14.0.53 to 14.0.54

build/d3fc.min.js

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

<a name="14.0.54"></a>
## [14.0.54](https://github.com/d3fc/d3fc/compare/d3fc@14.0.53...d3fc@14.0.54) (2019-08-23)
**Note:** Version bump only for package d3fc
<a name="14.0.53"></a>

@@ -8,0 +16,0 @@ ## [14.0.53](https://github.com/d3fc/d3fc/compare/d3fc@14.0.52...d3fc@14.0.53) (2019-08-14)

21

package.json
{
"name": "d3fc",
"version": "14.0.53",
"version": "14.0.54",
"description": "A collection of components that make it easy to build interactive charts with D3",

@@ -8,3 +8,3 @@ "main": "build/d3fc.js",

"start": "npx rollup -c --environment BUILD:dev --watch",
"bundle": "npx rollup -c",
"bundle": "npx rollup -c && npx uglifyjs ./build/d3fc.js -o ./build/d3fc.min.js --compress --mangle",
"test": "npx jasmine --config=../../scripts/jasmine.json"

@@ -29,9 +29,9 @@ },

"dependencies": {
"@d3fc/d3fc-annotation": "^2.4.10",
"@d3fc/d3fc-axis": "^2.2.2",
"@d3fc/d3fc-brush": "^2.0.50",
"@d3fc/d3fc-chart": "^2.6.12",
"@d3fc/d3fc-annotation": "^2.4.11",
"@d3fc/d3fc-axis": "^2.2.3",
"@d3fc/d3fc-brush": "^2.0.51",
"@d3fc/d3fc-chart": "^2.6.13",
"@d3fc/d3fc-data-join": "^5.0.9",
"@d3fc/d3fc-discontinuous-scale": "^3.0.9",
"@d3fc/d3fc-element": "^5.2.12",
"@d3fc/d3fc-element": "^5.2.13",
"@d3fc/d3fc-extent": "^3.1.5",

@@ -45,5 +45,5 @@ "@d3fc/d3fc-financial-feed": "^6.0.2",

"@d3fc/d3fc-sample": "^4.0.9",
"@d3fc/d3fc-series": "^4.0.27",
"@d3fc/d3fc-series": "^4.0.28",
"@d3fc/d3fc-shape": "^5.0.17",
"@d3fc/d3fc-technical-indicator": "^7.0.33"
"@d3fc/d3fc-technical-indicator": "^7.0.34"
},

@@ -54,4 +54,5 @@ "devDependencies": {

"rollup-plugin-progress": "^1.1.1",
"rollup-plugin-serve": "^1.0.1"
"rollup-plugin-serve": "^1.0.1",
"uglify-js": "^3.6.0"
}
}

@@ -9,45 +9,67 @@ import babel from 'rollup-plugin-babel';

let pkg = require('./package.json');
let d3fcPkg = require('./package.json');
const plugins = () => [
nodeResolve({ jsnext: true, main: true }),
babel(babelrc())
];
/**
* Provides a method for building d3fc, or for testing code live
* by providing the 'dev' environment variable.
*
* Command line options for use with 'dev':
*
* --configOpen='foo.html'
* Starts debugging at /examples/foo.html. If omitted, defaults to index.html
*
* --configPkg='d3fc-bar'
* Starts debugging for the package /packages/d3fc-bar. If omitted defaults to d3fc
*
* --port=1234
* Starts debugging with host on port 1234. If omitted defaults to 8080
*/
export default commandLineArgs => {
let devPage = commandLineArgs.configOpen || 'index.html'
const devPkg = commandLineArgs.configPkg || 'd3fc'
const devPort = commandLineArgs.configPort || 8080
const devPlugins = () => plugins().concat([
serve({
contentBase: ['.', 'build'],
open: true,
openPage: '/examples/index.html',
host: 'localhost',
port: 8080
}),
livereload({
watch: ['build', 'examples']
})
]);
devPage = devPage.endsWith('.html') ? devPage : devPage + '.html'
const plugins = () => [
nodeResolve({ jsnext: true, main: true }),
babel(babelrc())
];
export default {
input: 'index.js',
plugins: devMode ? devPlugins() : plugins(),
external: (key) => key.indexOf('d3-') === 0,
output: {
file: pkg.main,
format: 'umd',
name: 'fc',
globals: (key) => {
if(key.indexOf('d3-') === 0) {
return 'd3'
const devPlugins = () => plugins().concat([
serve({
contentBase: '../..',
open: true,
openPage: `/packages/${devPkg}/examples/${devPage}`,
host: 'localhost',
port: devPort
}),
livereload({
watch: ['build', `../${devPkg}/examples`]
})
]);
return {
input: 'index.js',
plugins: devMode ? devPlugins() : plugins(),
external: (key) => key.indexOf('d3-') === 0,
output: {
file: d3fcPkg.main,
format: 'umd',
name: 'fc',
globals: (key) => {
if(key.indexOf('d3-') === 0) {
return 'd3'
}
},
},
// There are circular dependencies in d3, https://github.com/d3/d3-interpolate/issues/58
// Don't pollute the build with other modules errors
onwarn: (warning, rollupWarn) => {
if (warning.code === 'CIRCULAR_DEPENDENCY' && warning.message.indexOf('d3-') !== -1) {
return
}
},
},
// There are circular dependencies in d3, https://github.com/d3/d3-interpolate/issues/58
// Don't pollute the build with other modules errors
onwarn: (warning, rollupWarn) => {
if (warning.code === 'CIRCULAR_DEPENDENCY' && warning.message.indexOf('d3-') !== -1) {
return
rollupWarn(warning);
}
rollupWarn(warning);
}
}
};
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