You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-useragent

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-useragent - npm Package Compare versions

Comparing version

to
1.1.1-alpha

lib/index.js

2

package.json
{
"name": "react-useragent",
"version": "1.1.0-beta",
"version": "1.1.1-alpha",
"description": "Utility to add user agent information to your react components",

@@ -5,0 +5,0 @@ "author": "Jon Stuebe",

@@ -5,5 +5,5 @@ # React User Agent

```shell
yarn add react-useragent
```
$ yarn add react-useragent
```

@@ -14,3 +14,3 @@ ## Usage

```
```javascript
import React, { Component } from 'react';

@@ -36,3 +36,3 @@ import { UserAgent } from 'react-useragent';

```
```javascript
import React, { Component } from 'react';

@@ -56,5 +56,5 @@ import { UserAgent } from 'react-useragent';

```
import React, { Component } from 'react';
import { withUserAgent } from 'react-useragent';
```javascript
import React, { Component } from "react";
import { withUserAgent } from "react-useragent";

@@ -64,8 +64,4 @@ class App extends Component {

<div>
{this.props.ua.mobile ? (
<input type="date" />
) : (
<input type="text" />
)}
</div>
{this.props.ua.mobile ? <input type="date" /> : <input type="text" />}
</div>;
}

@@ -81,3 +77,3 @@ }

```
```json
{

@@ -89,3 +85,4 @@ "mobile": null,

"md": {
"ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36",
"ua":
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36",
"_cache": {

@@ -92,0 +89,0 @@ "phone": null,