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

react-leaflet

Package Overview
Dependencies
Maintainers
1
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-leaflet - npm Package Compare versions

Comparing version 3.2.2 to 4.0.0-alpha.0

lib/AttributionControl.d.ts

71

package.json
{
"name": "react-leaflet",
"version": "3.2.2",
"version": "4.0.0-alpha.0",
"description": "React components for Leaflet maps",
"main": "cjs/index.js",
"module": "esm/index.js",
"types": "types/index.d.ts",
"sideEffects": false,
"scripts": {
"build:clean": "del cjs esm types umd",
"build:cjs": "babel src --out-dir cjs --extensions .ts,.tsx",
"build:esm": "cross-env BABEL_ENV=esm babel src --out-dir esm --extensions .ts,.tsx",
"build:types": "tsc --emitDeclarationOnly",
"build:umd": "cross-env BABEL_ENV=rollup NODE_ENV=development rollup -c",
"build:umd:min": "cross-env BABEL_ENV=rollup NODE_ENV=production rollup -c",
"build": "yarn run build:clean && yarn run build:cjs && yarn run build:esm && yarn run build:types && yarn run build:umd && yarn run build:umd:min",
"test:types": "tsc --noEmit",
"test:unit": "cross-env BABEL_ENV=development NODE_ENV=test jest",
"test": "yarn run test:types && yarn run test:unit",
"start": "yarn run test && yarn run build",
"prepare": "yarn run build"
},
"repository": {

@@ -39,27 +21,50 @@ "type": "git",

"homepage": "https://react-leaflet.js.org",
"type": "module",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"exports": {
".": "./lib/index.js",
"./*": "./lib/*.js"
},
"files": [
"cjs/*",
"esm/*",
"types/*",
"umd/*"
"lib/*"
],
"sideEffects": false,
"scripts": {
"build:clean": "del lib",
"build:js": "swc src -d ./lib --config-file ../../swc.json",
"build:types": "tsc --emitDeclarationOnly",
"build": "yarn run build:clean && yarn run build:js && yarn run build:types",
"test:types": "tsc --noEmit",
"test:unit": "cross-env NODE_ENV=test jest",
"test": "yarn run test:types && yarn run test:unit",
"start": "yarn run test && yarn run build",
"prepare": "yarn run build",
"prepublishOnly": "package-check"
},
"dependencies": {
"@react-leaflet/core": "^1.1.1"
"@react-leaflet/core": "^2.0.0-alpha.0"
},
"peerDependencies": {
"leaflet": "^1.7.1",
"react": "^17.0.1",
"react-dom": "^17.0.1"
"react": "^18.0.0-rc",
"react-dom": "^18.0.0-rc"
},
"devDependencies": {
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^21.0.0",
"@rollup/plugin-node-resolve": "^13.0.5",
"@rollup/plugin-replace": "^3.0.0",
"rollup": "^2.58.0",
"rollup-plugin-terser": "^7.0.0"
"@react-leaflet/jest-resolver": "^1.0.0",
"@types/leaflet": "^1.7.8"
},
"jest": {
"testEnvironment": "jsdom"
"extensionsToTreatAsEsm": [
".ts",
".tsx"
],
"resolver": "@react-leaflet/jest-resolver",
"testEnvironment": "jsdom",
"transform": {
"^.+\\.(t|j)sx?$": [
"@swc/jest"
]
}
}
}
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