react-leaflet-dialog
Advanced tools
Comparing version 1.0.5 to 2.0.0
143
package.json
{ | ||
"name": "react-leaflet-dialog", | ||
"version": "1.0.5", | ||
"description": "React wrapper of Leaflet.Dialog. A dialog modal window that is resizable and positionable on the map.", | ||
"main": "dist/react-leaflet-dialog.min.js", | ||
"scripts": { | ||
"build": "npm run build:lib && npm run build:dist", | ||
"build:dist": "webpack src/index.js dist/react-leaflet-dialog.js & webpack -p src/index.js dist/react-leaflet-dialog.min.js", | ||
"build:lib": "npm run compile:lib", | ||
"clean:lib": "rm -Rf ./lib", | ||
"compile:lib": "babel src --out-dir lib", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/mhasbie/react-leaflet-dialog.git" | ||
}, | ||
"keywords": [ | ||
"react", | ||
"leaflet", | ||
"react-leaflet", | ||
"leaflet-dialog", | ||
"leaflet.dialog", | ||
"dialog", | ||
"react-leaflet-dialog" | ||
], | ||
"author": "M. Hasbie", | ||
"license": "MIT", | ||
"peerDependencies": { | ||
"font-awesome": "4.7.0", | ||
"leaflet": "1.3.1", | ||
"react-leaflet": "1.8.0", | ||
"prop-types": "^15.5.0", | ||
"react": "^15.0.0 || ^16.0.0", | ||
"react-dom": "^15.0.0 || ^16.0.0" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.8.0", | ||
"babel-core": "^6.8.0", | ||
"babel-eslint": "^7.0.0", | ||
"babel-loader": "^6.2.4", | ||
"babel-preset-env": "^1.6.1", | ||
"babel-preset-react": "^6.0.15", | ||
"babel-preset-stage-0": "^6.1.18", | ||
"babel-register": "^6.26.0", | ||
"cssnano": "^4.1.0", | ||
"eslint": "^3.8.1", | ||
"eslint-plugin-react": "^6.4.1", | ||
"font-awesome": "4.7.0", | ||
"leaflet": "1.3.1", | ||
"postcss-loader": "^3.0.0", | ||
"postcss-import": "^12.0.0", | ||
"postcss-preset-env": "^5.3.0", | ||
"prop-types": "^15.5.10", | ||
"react": "^15.5.0", | ||
"react-dom": "^15.5.0", | ||
"react-leaflet": "1.8.0", | ||
"sugarss": "^2.0.0", | ||
"webpack": "^1.13.0", | ||
"webpack-css-loaders": "^1.0.0", | ||
"webpack-dev-server": "^1.12.1" | ||
} | ||
"name": "react-leaflet-dialog", | ||
"version": "2.0.0", | ||
"description": "React wrapper of Leaflet.Dialog. A dialog modal window that is resizable and positionable on the map.", | ||
"main": "dist/react-leaflet-dialog.min.js", | ||
"scripts": { | ||
"build": "npm run build:lib && npm run build:dist", | ||
"build:dist": "webpack src/index.js --output dist/react-leaflet-dialog.min.js", | ||
"build:lib": "npm run compile:lib", | ||
"clean:lib": "rm -Rf ./lib", | ||
"compile:lib": "babel src --out-dir lib", | ||
"prepublishOnly": "npm run build", | ||
"test": "jest" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/mhasbie/react-leaflet-dialog.git" | ||
}, | ||
"keywords": [ | ||
"react", | ||
"leaflet", | ||
"react-leaflet", | ||
"leaflet-dialog", | ||
"leaflet.dialog", | ||
"dialog", | ||
"react-leaflet-dialog" | ||
], | ||
"author": "M. Hasbie", | ||
"license": "MIT", | ||
"peerDependencies": { | ||
"font-awesome": "4.7.0", | ||
"leaflet": "1.4.0", | ||
"react-leaflet": "^1.9.1 || 2.2.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/polyfill": "^7.2.5", | ||
"babel-cli": "^6.26.0", | ||
"babel-core": "^6.26.3", | ||
"babel-eslint": "^10.0.1", | ||
"babel-jest": "^23.6.0", | ||
"babel-loader": "^7.1.5", | ||
"babel-plugin-transform-class-properties": "^6.24.1", | ||
"babel-plugin-transform-object-rest-spread": "^6.26.0", | ||
"babel-preset-env": "^1.7.0", | ||
"babel-preset-react": "^6.24.1", | ||
"babel-preset-stage-0": "^6.24.1", | ||
"babel-register": "^6.26.0", | ||
"css-loader": "^2.0.2", | ||
"cssnano": "^4.1.0", | ||
"enzyme": "^3.8.0", | ||
"enzyme-adapter-react-16": "^1.7.1", | ||
"eslint": "^5.11.0", | ||
"eslint-plugin-react": "^7.11.1", | ||
"font-awesome": "^4.7.0", | ||
"jest": "^23.6.0", | ||
"jest-enzyme": "^7.0.1", | ||
"leaflet": "1.4.0", | ||
"postcss-import": "^12.0.0", | ||
"postcss-loader": "^3.0.0", | ||
"postcss-preset-env": "^5.3.0", | ||
"prop-types": "^15.5.10", | ||
"react": "^16.7.0", | ||
"react-dom": "^16.7.0", | ||
"react-leaflet": "2.2.0", | ||
"style-loader": "^0.23.1", | ||
"sugarss": "^2.0.0", | ||
"terser": "^3.14.1", | ||
"webpack": "4.28.2", | ||
"webpack-cli": "3.1.2", | ||
"webpack-dev-server": "3.1.14" | ||
}, | ||
"dependencies": { | ||
"leaflet-dialog": "^1.0.5" | ||
}, | ||
"jest": { | ||
"collectCoverage": true, | ||
"transform": { | ||
".*": "<rootDir>/node_modules/babel-jest" | ||
}, | ||
"testMatch": [ | ||
"**/__tests__/**/?(*.)+(spec|test).[jt]s?(x)" | ||
] | ||
} | ||
} |
# react-leaflet-dialog | ||
[![version](https://img.shields.io/npm/v/react-leaflet-dialog.svg?style=plastic)](http://npm.im/react-leaflet-dialog) | ||
[![react-leaflet compatibility](https://img.shields.io/npm/dependency-version/react-leaflet-dialog/peer/react-leaflet.svg?style=plastic)](https://github.com/mhasbie/react-leaflet-dialog) | ||
[![travis build](https://img.shields.io/travis/mhasbie/react-leaflet-dialog.svg?style=plastic)](https://travis-ci.org/mhasbie/react-leaflet-dialog) | ||
[![version](https://img.shields.io/npm/v/react-leaflet-dialog.svg?style=plastic)](http://npm.im/react-leaflet-dialog) | ||
[![MIT License](https://img.shields.io/npm/l/react-leaflet-dialog.svg?style=plastic)](http://opensource.org/licenses/MIT) | ||
[![dependencies](https://img.shields.io/david/mhasbie/react-leaflet-dialog.svg?style=plastic)](https://david-dm.org/mhasbie/react-leaflet-dialog) | ||
[![peer dependencies](https://img.shields.io/david/peer/mhasbie/react-leaflet-dialog.svg?style=plastic)](https://david-dm.org/mhasbie/react-leaflet-dialog?type=peer) | ||
[![issues](https://img.shields.io/github/issues/mhasbie/react-leaflet-dialog.svg?style=plastic)](https://github.com/mhasbie/react-leaflet-dialog/issues) | ||
[![downloads](https://img.shields.io/npm/dt/react-leaflet-dialog.svg?style=plastic)](http://npm-stat.com/charts.html?package=react-leaflet-dialog&from=2018-01-01) | ||
[![issues](https://img.shields.io/github/issues/mhasbie/react-leaflet-dialog.svg?style=plastic)](https://github.com/mhasbie/react-leaflet-dialog/issues) | ||
[![MIT License](https://img.shields.io/npm/l/react-leaflet-dialog.svg?style=plastic)](http://opensource.org/licenses/MIT) | ||
@@ -30,2 +31,8 @@ React wrapper of [Leaflet.Dialog](https://github.com/NBTSolutions/Leaflet.Dialog) for [react-leaflet](https://github.com/PaulLeCam/react-leaflet). | ||
Include font-awesome css to your project. | ||
```html | ||
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"> | ||
``` | ||
## Usage example | ||
@@ -43,3 +50,5 @@ | ||
<Dialog ref={(ref) => { this.dialog = ref; }} id="dialog1" /> | ||
<Dialog ref={(ref) => { this.dialog = ref; }} id="dialog1"> | ||
<div>Dialog content.</div> | ||
</Dialog> | ||
</Map> | ||
@@ -46,0 +55,0 @@ ``` |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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 eval() which is a dangerous function. This prevents 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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
4
2
157
2
135740
35
6
433
2
+ Addedleaflet-dialog@^1.0.5
+ Addedfontawesome@4.5.0(transitive)
+ Addedleaflet@1.4.0(transitive)
+ Addedleaflet-dialog@1.0.5(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedleaflet@1.3.1(transitive)
- Removedlodash@4.17.21(transitive)
- Removedlodash-es@4.17.21(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedprop-types@15.8.1(transitive)
- Removedreact@16.14.0(transitive)
- Removedreact-dom@16.14.0(transitive)
- Removedreact-is@16.13.1(transitive)
- Removedreact-leaflet@1.8.0(transitive)
- Removedscheduler@0.19.1(transitive)
- Removedwarning@3.0.0(transitive)