New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jr-table

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jr-table - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

dist/images/downtable-ffe3c.png

4

package.json
{
"name": "jr-table",
"version": "1.0.0",
"main": "./table/index.js",
"version": "1.0.1",
"main": "./dist/jr-table.min.js",
"author": "wudongyue",

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -5,3 +5,3 @@ import Vue from 'vue'

import '../table/lib/css/base.css'
Vue.use(jrtable)

@@ -8,0 +8,0 @@

import JrTable from './jrtable.vue'
import JrTableColumn from './table-column'
import './lib/css/base.css'
export default {

@@ -5,0 +6,0 @@ install(Vue, options) {

import Vue from 'vue';
import debounce from 'throttle-debounce/debounce';

@@ -191,3 +190,3 @@ import { POINT_CONVERSION_COMPRESSED } from 'constants';

// Vue.nextTick(() => this.table.updateScrollY());
},

@@ -194,0 +193,0 @@ setRowExpanded(states, rowExpanded){

var path = require('path');
var webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const _entry = (() => {
var NODE_ENV = process.env.NODE_ENV;
if(NODE_ENV === 'production'){
return path.resolve(__dirname, 'table/index.js')
}else {
return path.resolve(__dirname, 'src/main.js')
}
})()
module.exports = {
mode:process.env.NODE_ENV,
entry:{
main:'./src/main.js'
main:_entry
},

@@ -14,3 +25,3 @@ output: {

publicPath:'/',
filename:'./static/js/[name].[hash:8].js'
filename:'jr-table.min.js'
},

@@ -52,3 +63,3 @@ externals:{

options: {
name: 'static/images/icon/[name].[ext]'
name: 'images/icon/[name].[ext]'
}

@@ -62,3 +73,3 @@ },

options: {
name: 'static/images/[name]-[hash:5].[ext]'
name: 'images/[name]-[hash:5].[ext]'
}

@@ -101,12 +112,18 @@ },

plugins:[
new HtmlWebpackPlugin({
filename: 'index.html',
template: 'index.html',
inject: true
}),
// copy custom static assets
]
}
if(process.env.NODE_ENV === 'development'){
module.exports.plugins = (module.exports.plugins || []).concat([new webpack.DefinePlugin({
'process.env': {
NODE_ENV: '"development"'
}
})],
new HtmlWebpackPlugin({
filename: 'index.html',
template: 'index.html',
inject: true
}))
}
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