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

radar-sdk-js

Package Overview
Dependencies
Maintainers
7
Versions
187
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

radar-sdk-js - npm Package Compare versions

Comparing version 3.7.1 to 4.0.0-beta.4

.babelrc

81

package.json
{
"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 @@

![Radar](https://raw.githubusercontent.com/radarlabs/react-native-radar/master/logo.png)
<p align="center">
<img src="assets/logo.svg">
</p>
[![npm](https://img.shields.io/npm/v/radar-sdk-js.svg)](https://www.npmjs.com/package/radar-sdk-js)
![CircleCI branch](https://img.shields.io/circleci/project/github/radarlabs/radar-sdk-js/master.svg)
[![Codecov](https://img.shields.io/codecov/c/github/radarlabs/radar-sdk-js.svg)](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).
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