react-tippy2
Advanced tools
Comparing version 1.0.2 to 1.0.3
import React from 'react' | ||
import { render } from 'react-dom' | ||
import Tippy2 from '../../src/tippy2' | ||
import Tippy2 from '../../dist/tippy2' | ||
class App extends React.Component { | ||
render () { | ||
const html = () => { | ||
@@ -13,3 +12,2 @@ return ( | ||
} | ||
return ( | ||
@@ -24,5 +22,4 @@ <div> | ||
} | ||
render(( | ||
<App /> | ||
), document.getElementById('app')) |
{ | ||
"name": "react-tippy2", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "", | ||
"main": "src/index.js", | ||
"main": "dist/tippy2.js", | ||
"scripts": { | ||
"build": "webpack -p" | ||
"build": "webpack -d" | ||
}, | ||
@@ -12,9 +12,11 @@ "author": "", | ||
"dependencies": { | ||
"prop-types": "^15.6.1", | ||
"react": "^16.2.0", | ||
"react-dom": "^16.2.0", | ||
"prop-types": "^15.6.1", | ||
"tippy.js": "^2.3.0" | ||
}, | ||
"devDependencies": { | ||
"babel-core": "^6.26.0", | ||
"babel-loader": "^7.1.4", | ||
"babel-plugin-transform-class-properties": "^6.24.1", | ||
"babel-plugin-transform-object-rest-spread": "^6.26.0", | ||
@@ -26,6 +28,5 @@ "babel-preset-es2015": "^6.24.1", | ||
"style-loader": "^0.20.3", | ||
"webpack": "^4.1.1", | ||
"webpack-cli": "^2.0.12", | ||
"webpack": "^3.6.0", | ||
"webpack-dev-server": "^3.1.1" | ||
} | ||
} |
@@ -1,1 +0,3 @@ | ||
export { default as Tippy2 } from './Tippy2' | ||
import Tippy2 from './Tippy2' | ||
export default Tippy2 |
const path = require('path') | ||
const BUILD_DIR = path.resolve(__dirname, 'dist') | ||
const APP_DIR = path.resolve(__dirname, 'src') | ||
module.exports = { | ||
entry: APP_DIR, | ||
entry: './src/index.js', | ||
output: { | ||
path: BUILD_DIR, | ||
path: path.resolve(__dirname, 'dist'), | ||
publicPath: '/', | ||
library: 'Tippy2', | ||
libraryTarget: 'umd', | ||
filename: 'tippy2.js' | ||
@@ -19,3 +18,3 @@ }, | ||
{ | ||
test: /\.js|.jsx?$/, | ||
test: /\.js?$/, | ||
exclude: /(node_modules)/, | ||
@@ -41,4 +40,3 @@ use: { | ||
commonjs: 'react', | ||
amd: 'react', | ||
umd: 'react' | ||
amd: 'react' | ||
}, | ||
@@ -49,6 +47,5 @@ 'react-dom': { | ||
commonjs: 'react-dom', | ||
amd: 'react-dom', | ||
umd: 'react-dom' | ||
amd: 'react-dom' | ||
} | ||
} | ||
} |
Sorry, the diff of this file is too big to display
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1013259
4273
11
28
30