diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7c48d17..6271ed4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,33 @@
+
+## [1.1.1](https://github.com/dreambo8563/vue-DeviceDetector/compare/v1.1.0...v1.1.1) (2019-03-11)
+
+
+### Bug Fixes
+
+* **dingtalk:** match lower case ([e2a2fb4](https://github.com/dreambo8563/vue-DeviceDetector/commit/e2a2fb4))
+
+
+
+
+# [1.1.0](https://github.com/dreambo8563/vue-DeviceDetector/compare/v1.0.0...v1.1.0) (2019-03-11)
+
+
+### Features
+
+* **wechat:** add wechat ([b0c7e28](https://github.com/dreambo8563/vue-DeviceDetector/commit/b0c7e28))
+
+
+
+
+# [1.0.0](https://github.com/dreambo8563/vue-DeviceDetector/compare/v0.1.8...v1.0.0) (2019-03-11)
+
+
+### Features
+
+* **dingding:** add dingding detect ([b03caac](https://github.com/dreambo8563/vue-DeviceDetector/commit/b03caac))
+
+
+
## [0.1.8](https://github.com/dreambo8563/vue-DeviceDetector/compare/v0.1.1...v0.1.8) (2019-03-08)
diff --git a/README.md b/README.md
index 38a15d6..4a08921 100644
--- a/README.md
+++ b/README.md
@@ -20,8 +20,8 @@
TODO:
-- [ ] add dingding api
-- [ ] add weixin api
+- [x] add dingding api
+- [x] add weixin api
### Install
@@ -58,6 +58,8 @@ interface IDeviceDetector {
androidPhone: Boolean
windows: Boolean
mobile: Boolean
+ dingding: Boolean //éé
+ wechat: Boolean // ćŸźäżĄ
}
```
@@ -82,6 +84,7 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/all-contri
| [
Vincent Guo](https://dreambo8563.github.io/)
[đ»](https://github.com/dreambo8563/vue-DeviceDetector/commits?author=dreambo8563 "Code") [đ](https://github.com/dreambo8563/vue-DeviceDetector/commits?author=dreambo8563 "Documentation") [đ](#infra-dreambo8563 "Infrastructure (Hosting, Build-Tools, etc)") |
| :---: |
+
-This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
\ No newline at end of file
+This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
diff --git a/package-lock.json b/package-lock.json
index 9d47510..9e10d12 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "vue-device-detector",
- "version": "0.1.8",
+ "version": "1.1.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
diff --git a/package.json b/package.json
index 04d98aa..a88e7f6 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "vue-device-detector",
- "version": "0.1.8",
+ "version": "1.1.1",
"private": false,
"author": "dreambo8563",
"main": "dist/vue-device-detector.umd.min.js",
diff --git a/src/main.ts b/src/main.ts
index 20b2874..2fd731e 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -18,10 +18,14 @@ class DeviceDetector {
android: Boolean;
androidPhone: Boolean;
mobile: Boolean;
+ dingding: Boolean;
+ wechat: Boolean;
constructor() {
this.windows = this.find("windows");
this.ipod = this.find("ipod");
this.ipad = this.find("ipad");
+ this.dingding = this.find("dingtalk");
+ this.wechat = this.find("micromessenger");
this.iphone = !this.windows && this.find("iphone");
this.iphoneX =
this.iphone &&
@@ -64,6 +68,8 @@ interface IDeviceDetector {
androidPhone: Boolean;
windows: Boolean;
mobile: Boolean;
+ dingding: Boolean;
+ wechat: Boolean;
}
export type deviceDetectorPlugin = {
install(vue: VueConstructor, options?: any): void;
diff --git a/types/main.d.ts b/types/main.d.ts
index faaf7fb..a0131ef 100644
--- a/types/main.d.ts
+++ b/types/main.d.ts
@@ -11,6 +11,8 @@ interface IDeviceDetector {
androidPhone: Boolean;
windows: Boolean;
mobile: Boolean;
+ dingding: Boolean;
+ wechat: Boolean;
}
export declare type deviceDetectorPlugin = {
install(vue: VueConstructor, options?: any): void;