Comparing version 0.0.0-1 to 0.0.0-2
{ | ||
"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": { |
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 |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
41643
33
524
2
2
54
7
8
+ Added@babel/runtime@^7.1.2
+ Added@babel/runtime@7.26.0(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)