Socket
Socket
Sign inDemoInstall

@blackywkl/vuewordcloud

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.1.0

_config.yml

31

dev.config.js
var path = require('path');
var webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const Dashboard = require('webpack-dashboard');
const DashboardPlugin = require('webpack-dashboard/plugin');
var dashboard = new Dashboard();
const VueLoaderPlugin = require('vue-loader/lib/plugin')

@@ -22,16 +21,15 @@ module.exports = {

],
exclude: path.resolve(__dirname, "src/assets"),
options: {
loaders: {
// Since sass-loader (weirdly) has SCSS as its default parse mode, we map
// the "scss" and "sass" values for the lang attribute to the right configs here.
// other preprocessors should work out of the box, no loader config like this necessary.
'scss': {
loader:'vue-style-loader!css-loader!sass-loader'
}
}
// other vue-loader options go here
}
}, {
test: /\.scss$/,
use: [
'vue-style-loader',
'css-loader',
'sass-loader'
]
}, {
test: /\.css$/i,
use: ['style-loader', 'css-loader'],
}, {
test: /\.js$/,

@@ -55,3 +53,3 @@ include: [

historyApiFallback: true,
noInfo: true,
noInfo: false,
inline: true,

@@ -61,3 +59,3 @@ disableHostCheck: true,

host: '0.0.0.0', // allow access from any ip
quiet: true
quiet: false
},

@@ -69,2 +67,3 @@ performance: {

plugins: [
new VueLoaderPlugin(),
new webpack.HotModuleReplacementPlugin(),

@@ -75,4 +74,4 @@ new HtmlWebpackPlugin({

}),
new DashboardPlugin(dashboard.setData)
new DashboardPlugin()
]
};
{
"name": "@blackywkl/vuewordcloud",
"version": "1.0.3",
"version": "1.1.0",
"description": "word cloud make by vue",
"main": "dist/wordCloud.js",
"module": "dist/wordCloud.esm.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"test": "npx mocha --compilers js:@babel/register src/**/__test__/*.spec.js",
"pack": "webpack --config pack.config.js",
"dev": "cross-env mode=normal webpack-dev-server --config dev.config.js"
"build": "cross-env NODE_ENV=production rollup -c rollup.prod.js",
"dev": "cross-env NODE_ENV=development webpack-dashboard -- webpack-dev-server --config dev.config.js"
},

@@ -27,22 +29,46 @@ "repository": {

"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/polyfill": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"babel-loader": "^8.0.0",
"cross-env": "^5.2.0",
"@babel/core": "^7.7.4",
"@babel/polyfill": "^7.7.0",
"@babel/preset-env": "^7.7.4",
"@babel/register": "^7.7.4",
"@rollup/plugin-alias": "^2.2.0",
"babel-loader": "^8.0.6",
"chai": "^4.2.0",
"cross-env": "^5.2.1",
"css-loader": "^0.28.11",
"html-webpack-plugin": "^2.30.1",
"node-sass": "^4.11.0",
"resolve-url-loader": "^2.3.1",
"rimraf": "^2.6.2",
"sass-loader": "^6.0.7",
"style-loader": "^0.19.0",
"vue": "^2.5.21",
"vue-loader": "^13.7.3",
"vue-style-loader": "^3.1.2",
"vue-template-compiler": "^2.5.21",
"webpack": "^3.12.0",
"webpack-dashboard": "^2.0.0",
"webpack-dev-server": "^2.9.1"
"html-webpack-plugin": "^3.2.0",
"karma": "^3.1.4",
"karma-chai": "^0.1.0",
"karma-mocha": "^1.3.0",
"karma-phantomjs-launcher": "^1.0.4",
"karma-webpack": "^3.0.5",
"mocha": "^5.2.0",
"node-sass": "^4.13.0",
"resolve-url-loader": "^2.3.2",
"rimraf": "^2.7.1",
"rollup": "^1.27.5",
"rollup-plugin-alias": "^2.2.0",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-buble": "^0.19.8",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-eslint": "^7.0.0",
"rollup-plugin-filesize": "^6.2.1",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-terser": "^5.1.2",
"rollup-plugin-uglify": "^6.0.3",
"rollup-plugin-vue": "^5.1.4",
"sass-loader": "^7.3.1",
"style-loader": "^0.19.1",
"uglify-es": "^3.3.9",
"vue": "^2.6.10",
"vue-loader": "^15.7.2",
"vue-style-loader": "^4.1.2",
"vue-template-compiler": "^2.6.10",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.10",
"webpack-dashboard": "^3.2.0",
"webpack-dev-middleware": "^3.7.2",
"webpack-dev-server": "^3.9.0"
}
}

@@ -0,8 +1,19 @@

function randomFourChar() {
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
}
function idGenerator() {
var S4 = function() {
return (((1+Math.random())*0x10000)|0).toString(16).substring(1);
};
return ('_'+S4()+S4()+S4()+S4()+S4()+S4()+S4()+S4());
return (
"_" +
randomFourChar() +
randomFourChar() +
randomFourChar() +
randomFourChar() +
randomFourChar() +
randomFourChar() +
randomFourChar() +
randomFourChar()
);
}
module.exports = idGenerator;
export default idGenerator;

@@ -17,3 +17,3 @@ var defaultSettings = {

module.exports = function Word(text, size, color, w, h, mouse, drawArea) {
function Word(text, size, color, w, h, mouse, drawArea) {
this.x = (Math.random() * 0.8 + 0.2) * w - 100;

@@ -56,2 +56,4 @@ this.y = (Math.random() * 0.8 + 0.2) * h;

};
};
};
export default Word;

@@ -18,6 +18,5 @@ import WordCloud from './wordCloud.vue';

// 把模块导出
module.exports = {
install,
WordCloud
export default {
install,
WordCloud
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc