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

angular-baidu-map

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-baidu-map - npm Package Compare versions

Comparing version 1.2.1 to 2.0.1

dist/angular-baidu-map.js

32

package.json
{
"name": "angular-baidu-map",
"version": "1.2.1",
"version": "2.0.1",
"description": "A baidu-map directive for AngularJS",
"main": "./src/baiduMap.js",
"main": "dist/angular-baidu-map.js",
"repository": {

@@ -10,2 +10,19 @@ "type": "git",

},
"scripts": {
"build": "webpack",
"dist": "webpack; webpack --config webpack.config.prod.js",
"prepublish": "npm run dist",
"start": "npm run build; cp dist/angular-baidu-map.js demo/libs/; lite-server -c liteServerConfig.js"
},
"files": [
"dist/angular-baidu-map.js",
"dist/angular-baidu-map.min.js",
"src/style/offline.js",
"src/baiduScriptLoader.js",
"src/defaults.js",
"src/directiveDef.js",
"src/index.js",
"src/map.js",
"src/validator.js"
],
"keywords": [

@@ -22,8 +39,9 @@ "baidu-map",

"devDependencies": {
"gulp": "^3.9.0",
"gulp-jshint": "^1.11.0",
"gulp-rename": "^1.2.2",
"gulp-uglify": "^1.2.0",
"gulp-webserver": "^0.9.1"
"angular": "^1.5.5",
"babel-core": "^6.7.7",
"babel-loader": "^6.2.4",
"babel-preset-es2015": "^6.6.0",
"lite-server": "^2.2.0",
"webpack": "^1.13.0"
}
}

@@ -1,31 +0,36 @@

# Baidu-map For AngularJS
Baidu-map For AngularJS
=======================
[![NPM version][npm-image]][npm-url]
![][david-url]
![][dt-url]
![][license-url]
> AngularJS directives for Baidu Maps
> A damn easy directive for Baidu Map, and it's totally a re-write version for the previous one, including API updates and offline friendly
![](https://raw.githubusercontent.com/leftstick/BaiduMapForAngularJS/master/docs/offline.gif)
Try online demo here: [demonstration](http://leftstick.github.io/BaiduMapForAngularJS/)
>If you are using the previous version `1.2.1`, [read it here](https://github.com/leftstick/BaiduMapForAngularJS/tree/1.x)
>If you are looking for `angular2` support, check it here: [angular2-baidu-map](https://github.com/cheng-jie/angular2-baidu-map)
## Getting started
Latest stable version: v1.2.0
> Note: Baidu-map API currently doesn't support `https`, switch to goole-map API if you plan deploy the application on `https` server.
> Note: Baidu-map API currently doesn't support `https`, switch to [a-map](https://github.com/leftstick/angular-amap) API if you plan deploying to an `https` server.
This is a directive for AngularJS `~1.2.0+`. And ease the way to display a baidu-map on your page.
This is a directive for AngularJS `^1.2.0`. And ease the way to display a baidu-map on your page.
If you plan to hack on the directives or want to run the example, first thing to do is to install NPM dependencies:
If you plan to hack on the directives or want to run the example locally, first thing to do is to install NPM dependencies:
```shell
npm install
bower install ( for specs and dev dependencies)
```
### Building
To build the library after you made changes, simply run gulp:
### Launch the demo
```shell
gulp compress
```
### Running the demo
To run the demo page, just run
```shell
gulp demo
npm start
```

@@ -39,9 +44,11 @@

## LICENSE ##
Contributing
[MIT License](https://raw.githubusercontent.com/leftstick/BaiduMapForAngularJS/master/LICENSE)
Pull requests more than welcome! If you're adding new features, it would be appreciated if you would provide some docs about the feature. This can be done either by adding a card to our Trello board, forking the website branch and issuing a PR with the updated documentation page, or by opening an issue for us to add the documentation to the site.
Branching Model w Git Flow We are trying to follow the git flow branching model where all bugs that are considered urgent / patches will be pull requested against master. If the PR (pull request) is an improvement and a non urgent fix it will go towards develop which is the working(SNAPSHOT) next version of what master will be.
When patches and bugs are rolled into master they will be immediatley rolled into develop as well. Where the flow is PR(bug fix) -> merge master -> merge develop .
[npm-url]: https://npmjs.org/package/angular-baidu-map
[npm-image]: https://badge.fury.io/js/angular-baidu-map.png
[david-url]: https://david-dm.org/leftstick/BaiduMapForAngularJS.png
[dt-url]:https://img.shields.io/npm/dt/angular-baidu-map.svg
[license-url]:https://img.shields.io/npm/l/angular-baidu-map.svg
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