Skip to content

Commit

Permalink
build(2.0.10): release 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
AhsanAyaz committed May 10, 2021
1 parent c62ad42 commit 6d2eca8
Show file tree
Hide file tree
Showing 10 changed files with 76 additions and 14 deletions.
12 changes: 12 additions & 0 deletions CHANGE_LOG.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## [2.0.10](https://github.com/KoderLabs/ngx-device-detector/compare/v2.0.7...v2.0.10) (2021-05-10)


### Bug Fixes

* **210:** fix Chrome and Safari not detected as desktop anymore ([cea0f9e](https://github.com/KoderLabs/ngx-device-detector/commit/cea0f9edcfc77620b3b8621af23cfbf39811f645))
* **ci:** fix travis.yml to use jest tests ([6ec4052](https://github.com/KoderLabs/ngx-device-detector/commit/6ec4052f6c037157d4ecdc9b17ef89d00c8a09d1))
* **demo:** fix demo deployment in CI ([b7f79c8](https://github.com/KoderLabs/ngx-device-detector/commit/b7f79c8291d4048a41969b4c1d2b8e1c1c7e7963))
* **tests:** fix tests ([493f1e2](https://github.com/KoderLabs/ngx-device-detector/commit/493f1e2495225c76c2f2d0162f2bee1dfb956412))



## [2.0.9](https://github.com/KoderLabs/ngx-device-detector/compare/v2.0.7...v2.0.9) (2021-05-05)


Expand Down
12 changes: 12 additions & 0 deletions docs/coverage.html
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,18 @@
<span class="coverage-count">(0/1)</span>
</td>
</tr>
<tr class="low">
<td>
<!-- miscellaneous -->
<a href="./miscellaneous/variables.html#DESKTOP_DEVICES">projects/ngx-device-detector/src/lib/device-detector.constants.ts</a>
</td>
<td>variable</td>
<td>DESKTOP_DEVICES</td>
<td align="right" data-sort="0">
<span class="coverage-percent">0 %</span>
<span class="coverage-count">(0/1)</span>
</td>
</tr>
<tr class="low">
<td>
<!-- miscellaneous -->
Expand Down
2 changes: 1 addition & 1 deletion docs/dependencies.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<li>
<b>express</b> : ^4.15.2</li>
<li>
<b>ngx-device-detector</b> : ^2.0.5</li>
<b>ngx-device-detector</b> : ^2.0.9</li>
<li>
<b>rxjs</b> : ~6.5.5</li>
<li>
Expand Down
3 changes: 1 addition & 2 deletions docs/injectables/DeviceDetectorService.html
Original file line number Diff line number Diff line change
Expand Up @@ -1051,13 +1051,12 @@ <h3 id="inputs">
* @returns whether the current device is a desktop device
*/
public isDesktop(userAgent &#x3D; this.userAgent): boolean {
const desktopDevices &#x3D; [Constants.DEVICES.PS4, Constants.DEVICES.CHROME_BOOK, Constants.DEVICES.UNKNOWN];
if (this.device &#x3D;&#x3D;&#x3D; Constants.DEVICES.UNKNOWN) {
if (this.isMobile(userAgent) || this.isTablet(userAgent)) {
return false;
}
}
return desktopDevices.indexOf(this.device) &gt; -1;
return Constants.DESKTOP_DEVICES.indexOf(this.device) &gt; -1;
}
}
</code></pre>
Expand Down
3 changes: 1 addition & 2 deletions docs/interfaces/DeviceInfo.html
Original file line number Diff line number Diff line change
Expand Up @@ -538,13 +538,12 @@ <h3 id="inputs">Properties</h3>
* @returns whether the current device is a desktop device
*/
public isDesktop(userAgent &#x3D; this.userAgent): boolean {
const desktopDevices &#x3D; [Constants.DEVICES.PS4, Constants.DEVICES.CHROME_BOOK, Constants.DEVICES.UNKNOWN];
if (this.device &#x3D;&#x3D;&#x3D; Constants.DEVICES.UNKNOWN) {
if (this.isMobile(userAgent) || this.isTablet(userAgent)) {
return false;
}
}
return desktopDevices.indexOf(this.device) &gt; -1;
return Constants.DESKTOP_DEVICES.indexOf(this.device) &gt; -1;
}
}
</code></pre>
Expand Down
4 changes: 2 additions & 2 deletions docs/js/search/search_index.js

Large diffs are not rendered by default.

42 changes: 41 additions & 1 deletion docs/miscellaneous/variables.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ <h3 id="index">Index</h3>
<li>
<a href="#BROWSERS_RE" title="projects/ngx-device-detector/src/lib/device-detector.constants.ts"><b>BROWSERS_RE</b>&nbsp;&nbsp;&nbsp;(projects/.../device-detector.constants.ts)</a>
</li>
<li>
<a href="#DESKTOP_DEVICES" title="projects/ngx-device-detector/src/lib/device-detector.constants.ts"><b>DESKTOP_DEVICES</b>&nbsp;&nbsp;&nbsp;(projects/.../device-detector.constants.ts)</a>
</li>
<li>
<a href="#DEVICES" title="projects/ngx-device-detector/src/lib/device-detector.constants.ts"><b>DEVICES</b>&nbsp;&nbsp;&nbsp;(projects/.../device-detector.constants.ts)</a>
</li>
Expand Down Expand Up @@ -358,6 +361,40 @@ <h3></h3> <table class="table table-sm table-bordered">
</tr>


</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="DESKTOP_DEVICES"></a>
<span class="name">
<b>
DESKTOP_DEVICES</b>
<a href="#DESKTOP_DEVICES"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code>[]</code>

</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>[
DEVICES.PS4,
DEVICES.CHROME_BOOK,
DEVICES.MAC,
DEVICES.DELL,
DEVICES.ASUS,
DEVICES.UNKNOWN,
]</code>
</td>
</tr>


</tbody>
</table>
<table class="table table-sm table-bordered">
Expand Down Expand Up @@ -387,6 +424,7 @@ <h3></h3> <table class="table table-sm table-bordered">
WINDOWS_PHONE: &#x27;Windows-Phone&#x27;,
VITA: &#x27;Vita&#x27;,
PS4: &#x27;PS4&#x27;,
MAC: &#x27;Macintosh&#x27;,
CHROMECAST: &#x27;Chromecast&#x27;,
APPLE_TV: &#x27;Apple-TV&#x27;,
GOOGLE_TV: &#x27;Google-TV&#x27;,
Expand Down Expand Up @@ -420,7 +458,6 @@ <h3></h3> <table class="table table-sm table-bordered">
AMOI: &#x27;Amoi&#x27;,
INQ: &#x27;INQ&#x27;,
GENERIC_PHONE: &#x27;Generic Phone&#x27;,
MAC: &#x27;Macintosh&#x27;,
MI_SE_9: &#x27;Mi SE 9&#x27;,
}</code>
</td>
Expand Down Expand Up @@ -461,6 +498,9 @@ <h3></h3> <table class="table table-sm table-bordered">
GOOGLE_TV: /\bGoogleTV\b/,
Tesla: /Tesla\/([0-9]{4}.[0-9]{1,2}.?[0-9]{0,2}.?[0-9]{0,2})-(.{7})/,
MI_SE_9: /\bXiaomi\b/,
MAC: {
and: [/\bMac OS\b/, { not: { or: [/\biPhone\b/, /\biPad\b/, /\biPod\b/, /\bWindows Phone\b/] } }],
},
}</code>
</td>
</tr>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-device-detector-ws",
"version": "2.0.9",
"version": "2.0.10",
"license": "MIT",
"scripts": {
"ng": "ng",
Expand Down Expand Up @@ -120,4 +120,4 @@
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
}
}
4 changes: 2 additions & 2 deletions projects/ngx-device-detector/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-device-detector",
"version": "2.0.9",
"version": "2.0.10",
"license": "MIT",
"repository": {
"type": "git",
Expand Down Expand Up @@ -32,4 +32,4 @@
"dependencies": {
"tslib": "^2.0.0"
}
}
}

0 comments on commit 6d2eca8

Please sign in to comment.