radar-sdk-js
Advanced tools
Comparing version 3.7.1 to 4.0.0-beta.4
{ | ||
"name": "radar-sdk-js", | ||
"description": "Web JavaScript SDK for Radar, the location context platform", | ||
"homepage": "https://radar.com", | ||
"license": "Apache-2.0", | ||
"version": "3.7.1", | ||
"main": "dist/index.js", | ||
"files": [ | ||
"dist", | ||
"src", | ||
"README.md" | ||
], | ||
"version": "4.0.0-beta.4", | ||
"description": "", | ||
"type": "module", | ||
"module": "dist/radar.js", | ||
"types": "dist/index.d.ts", | ||
"build": "rollup -c", | ||
"prepublish": "npm run build", | ||
"scripts": { | ||
"prepare": "npm run build", | ||
"prebuild": "rimraf dist", | ||
"build": "npm-run-all --parallel build:*", | ||
"check-latest-tag": "node ./scripts/check-latest-tag.js", | ||
"check-beta-tag": "node ./scripts/check-beta-tag.js", | ||
"test": "nyc --reporter=lcov --reporter=text mocha ./test/** --require @babel/register", | ||
"test:watch": "npm run test -- -w", | ||
"demo": "npm run build && node demo/server.js", | ||
"build:cjs": "rollup -c rollup-cjs.config.js", | ||
"build:iife": "rollup -c rollup-iife.config.js", | ||
"build:iife-min": "rollup -c rollup-iife-min.config.js", | ||
"report-coverage": "./node_modules/.bin/codecov", | ||
"bump-version": "node ./scripts/bump-version.js" | ||
"build": "rollup -c", | ||
"check-latest-tag": "node ./scripts/check-latest-tag.cjs", | ||
"check-beta-tag": "node ./scripts/check-beta-tag.cjs", | ||
"bump-version": "node ./scripts/bump-version.cjs", | ||
"test": "jest --collect-coverage", | ||
"test:watch": "jest --watch", | ||
"demo": "node ./demo/server.cjs" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"@babel/cli": "^7.8.4", | ||
"@babel/core": "^7.9.0", | ||
"@babel/preset-env": "^7.9.0", | ||
"@babel/register": "^7.9.0", | ||
"babel-eslint": "^10.0.1", | ||
"chai": "^4.2.0", | ||
"codecov": "^3.1.0", | ||
"core-js": "^3.6.4", | ||
"eslint": "^5.9.0", | ||
"mocha": "^5.2.0", | ||
"mock-local-storage": "^1.1.23", | ||
"npm-run-all": "^4.1.5", | ||
"nyc": "^13.1.0", | ||
"opn": "^5.4.0", | ||
"rimraf": "^2.6.2", | ||
"rollup": "^2.3.3", | ||
"rollup-plugin-babel": "^4.4.0", | ||
"rollup-plugin-commonjs": "^10.1.0", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"rollup-plugin-uglify": "^6.0.4", | ||
"sinon": "^6.3.5", | ||
"sinon-chai": "^3.2.0" | ||
"@rollup/plugin-json": "^6.0.0", | ||
"@rollup/plugin-terser": "^0.4.3", | ||
"@types/jest": "^29.5.1", | ||
"jest": "^29.5.0", | ||
"jest-environment-jsdom": "^29.5.0", | ||
"jest-localstorage-mock": "^2.4.26", | ||
"live-server": "^1.2.2", | ||
"mock-xmlhttprequest": "^8.2.0", | ||
"rollup": "^3.23.0", | ||
"rollup-plugin-typescript2": "^0.34.1", | ||
"ts-jest": "^29.1.0", | ||
"typescript": "^5.0.4" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/radarlabs/radar-sdk-js/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/radarlabs/radar-sdk-js.git" | ||
"dependencies": { | ||
"@types/geojson": "^7946.0.10" | ||
} | ||
} |
@@ -1,24 +0,78 @@ | ||
 | ||
<p align="center"> | ||
<img src="assets/logo.svg"> | ||
</p> | ||
[](https://www.npmjs.com/package/radar-sdk-js) | ||
 | ||
[](https://codecov.io/gh/radarlabs/radar-sdk-js) | ||
<h4 align="center"> | ||
<a href="https://radar.com">Website</a> | | ||
<a href="https://radar.com/blog">Blog</a> | | ||
<a href="https://radar.com/documentation">Documentation</a> | | ||
<a href="https://radar.com/documentation/faq">FAQ</a> | | ||
<a href="mailto:support@radar.com">Support</a> | ||
</h4> | ||
[Radar](https://radar.com) is location data infrastructure. You can use Radar SDKs and APIs to add location context to your apps with just a few lines of code. | ||
<p align="center"> | ||
<a href="https://www.npmjs.com/package/radar-sdk-js"><img src="https://img.shields.io/npm/v/radar-sdk-js.svg" alt="npm"></a> | ||
<a href="https://app.circleci.com/pipelines/github/radarlabs/radar-sdk-js"><img src="https://img.shields.io/circleci/project/github/radarlabs/radar-sdk-js/master.svg" alt="CircleCI branch"></a> | ||
<a href="http://npm-stat.com/charts.html?package=radar-sdk-js"><img src="https://img.shields.io/npm/dm/radar-sdk-js.svg?style=flat-square" alt="NPM downloads"></a> | ||
<a href="LICENSE"><img src="https://img.shields.io/badge/license-Apache%202-blue" alt="License"></a> | ||
</p> | ||
## Documentation | ||
<p align="center"> | ||
⚡ Use Radar SDKs and APIs to add location context to your apps with just a view lines of code. ⚡ | ||
</p> | ||
See the Radar overview documentation [here](https://radar.com/documentation). | ||
🔥 Try it! 🔥 | ||
* <a href="https://radar.com/demo/js">Geofencing</a> | ||
* <a href="Https://radar.com/demo/api">Maps APIs</a> | ||
Then, see the Radar web SDK documentation [here](https://radar.com/documentation/sdk/web). | ||
## ✨ Features (TODO) | ||
* Feature 1 | ||
* Feature 2 | ||
* Typescript! | ||
* etc... | ||
## Running locally | ||
## 🚀 Installation and Usage | ||
1. Clone the repo | ||
2. `npm install` | ||
3. To run the SDK in a browser, run `npm run build && node demo/server.js`, which should open a tab in your browser of choice. Modify the `/src/index.html` file as needed | ||
4. To run tests, run `npm run test` | ||
**With npm:** <br /> | ||
## Support | ||
Add the `radar-sdk-js` package | ||
```bash | ||
# with npm | ||
npm install --save radar-sdk-js | ||
# with yarn | ||
yarn add radar-sdk-js | ||
``` | ||
Then import as an ES Module in your project | ||
```js | ||
import Radar from 'radar-sdk-js'; | ||
// initialize with your test or live publishable key | ||
Radar.initialize('prj_test_pk_...', { /* options */ }); | ||
``` | ||
**In your html:** <br /> | ||
Add the following script in your `html` file | ||
```html | ||
<script src="https://js.radar.com/v4.0.0-beta.1/radar.min.js"></script> | ||
``` | ||
Then initialize the Radar SDK | ||
```html | ||
<script type="text/javascript"> | ||
Radar.initialize('prj_test_pk_...', { /* options */ }); | ||
</script> | ||
``` | ||
See more examples and usage in the Radar web SDK documentation [here](https://radar.com/documentation/sdk/web). | ||
## 🔗 Other links | ||
* [Contributing](#) | ||
* [Migrating from 3.x to 4.x](#) | ||
## 📫 Support | ||
Have questions? We're here to help! Email us at [support@radar.com](mailto:support@radar.com). |
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
12
60
79
Yes
161799
1
1
3989
2
2
8
2
+ Added@types/geojson@^7946.0.10
+ Added@types/geojson@7946.0.16(transitive)