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

vue-d3js

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-d3js - npm Package Compare versions

Comparing version 0.0.0-1 to 0.0.0-2

.babelrc

66

package.json
{
"name": "vue-d3js",
"version": "0.0.0-0000000001",
"version": "0.0.0-0000000002",
"description": "D3.js Vue Components",

@@ -14,3 +14,13 @@ "author": {

"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"dev": "node build/dev-server.js",
"lint": "eslint --ext .js,.vue src docs",
"lint:fix": "eslint --ext .js,.vue src docs --fix",
"lint:staged": "lint-staged",
"unit": "jest",
"test": "npm run lint && npm run unit",
"test:watch": "npm run unit -- --watchAll",
"build:lib": "node build/build-lib.js",
"build:docs": "node build/build.js",
"build": "npm run build:lib && npm run build:docs",
"cov": "./node_modules/codcov/bin/codcov"
},

@@ -32,12 +42,60 @@ "repository": {

],
"dependencies": {},
"dependencies": {
"@babel/runtime": "^7.1.2"
},
"devDependencies": {
"@babel/core": "^7.1.2",
"@babel/node": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.0.0",
"@babel/plugin-proposal-decorators": "^7.0.0",
"@babel/plugin-proposal-export-namespace-from": "^7.0.0",
"@babel/plugin-proposal-function-sent": "^7.0.0",
"@babel/plugin-proposal-json-strings": "^7.0.0",
"@babel/plugin-proposal-numeric-separator": "^7.0.0",
"@babel/plugin-proposal-throw-expressions": "^7.0.0",
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/plugin-syntax-import-meta": "^7.0.0",
"@babel/plugin-transform-runtime": "^7.1.0",
"@babel/preset-env": "^7.1.0",
"@babel/register": "^7.0.0",
"@vue/test-utils": "^1.0.0-beta.25",
"babel-core": "^7.0.0-bridge.0",
"babel-loader": "^8.0.0",
"chalk": "^2.4.1",
"child_process": "^1.0.2",
"codecov": "^3.1.0",
"compression-webpack-plugin": "^2.0.0",
"cross-env": "^5.2.0",
"css-loader": "^1.0.0",
"eslint": "^5.6.1",
"eslint-config-buefy": "0.0.2",
"eslint-friendly-formatter": "^4.0.1",
"eslint-loader": "^2.1.1",
"express": "^4.16.3",
"extract-text-webpack-plugin": "^4.0.0-beta.0",
"jest": "^23.6.0",
"jest-serializer-vue": "^2.0.2",
"node-sass": "^4.9.3",
"offline-plugin": "^5.0.5",
"optimize-css-assets-webpack-plugin": "^5.0.1",
"optimize-js-plugin": "0.0.4",
"ora": "^3.0.0",
"rimraf": "^2.6.2",
"sass-loader": "^7.1.0",
"semver": "^5.5.1",
"shelljs": "^0.8.2",
"url-loader": "^1.1.1",
"vue": "^2.5.17",
"vue-jest": "^2.6.0",
"vue-loader": "^15.4.2",
"vue-progressbar": "^0.7.5",
"vue-router": "^3.0.1",
"vue-style-loader": "^4.1.2",
"vue-template-compiler": "^2.5.17",
"webpack": "^4.20.2",
"webpack-bundle-analyzer": "^3.0.2",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.9"
"webpack-dev-server": "^3.1.9",
"webpack-hot-middleware": "^2.24.3",
"webpack-merge": "^4.1.4"
},

@@ -44,0 +102,0 @@ "peerDependencies": {

2

src/components/index.js
import VdAreaChart from './VdAreaChart'
module.exports = {
export {
VdAreaChart,
}

@@ -1,7 +0,19 @@

import VdAreaChart from './src/main'
import VdAreaChart from './VdAreaChart'
VdAreaChart.install = function(Vue) {
Vue.component(VdAreaChart.name, VdAreaChart);
require('offline-plugin/runtime').install();
import { use, registerComponent } from '../../utils/plugins'
const Plugin = {
install(Vue) {
registerComponent(Vue, VdAreaChart)
}
}
export default VdAreaChart
use(Plugin)
export default Plugin
export {
VdAreaChart
}

@@ -5,39 +5,29 @@ /**

import './scss/vued3js.scss'
import * as components from './components'
import config, { setOptions } from './utils/config'
import { use, registerComponentProgrammatic } from './utils/plugins'
(function() {
var VueD3js = {};
require('offline-plugin/runtime').install();
// get D3
var D3 = typeof require === 'function'
? require('d3')
: window.D3;
const VueD3js = {
install(Vue, options={}) {
// options
setOptions(Object.assign(config, options))
if (!D3) {
throw new Error('VueD3js cannot locate d3');
}
// set components
components.forEach(component => Vue.use(component))
// Installation function
VueD3js.install = function (Vue) {
// Load D3 to vue instance
Vue.prototype.$d3 = D3
// config component
const VueD3jsProgrammatic = {
setOptions(options) {
setOptions(Object.assign(config, options))
}
}
// Load all components
components.forEach((component) => {
Vue.component(component.name, component)
})
};
registerComponentProgrammatic(Vue, '$vued3js', VueD3jsProgrammatic)
}
}
// set version
VueD3js.version = '0.0.0'
// handle export
if (typeof exports === 'object') {
module.exports = VueD3js;
} else if (typeof define === 'function' && define.amd) {
define([], function() { return VueD3js; })
} else if (window.Vue) {
window.VueD3js = VueD3js
Vue.use(VueD3js)
}
})();
use(VueD3js)
export default VueD3js
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