Socket
Socket
Sign inDemoInstall

useragent

Package Overview
Dependencies
1
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.5 to 2.0.6

features/db.js

4

CHANGELOG.md

@@ -32,2 +32,6 @@ ## Version 2.0

* __v2.0.6__
- Only write the parse file when there isn't an error. #30
- Output an error in the console when we fail to compile new parsers #30
## Version 1.0

@@ -34,0 +38,0 @@ * __v1.1.0__

14

index.js

@@ -380,3 +380,7 @@ 'use strict';

require('./lib/update').update(function updating(err, results) {
if (err) return; // fail silently
if (err) {
console.log('[useragent] Failed to update the parsed due to an error:');
console.log('[useragent] '+ (err.message ? err.message : err));
return;
}

@@ -398,6 +402,6 @@ regexps = results;

} catch (e) {
console.error('If you want to use automatic updating, please add:');
console.error(' - request (npm install request --save)');
console.error(' - yamlparser (npm install yamlparser --save)');
console.error('To your own package.json');
console.error('[useragent] If you want to use automatic updating, please add:');
console.error('[useragent] - request (npm install request --save)');
console.error('[useragent] - yamlparser (npm install yamlparser --save)');
console.error('[useragent] To your own package.json');
}

@@ -404,0 +408,0 @@ };

@@ -30,3 +30,3 @@ 'use strict';

if (source) {
if (source && !err) {
fs.writeFile(exports.output, source, function idk(err) {

@@ -33,0 +33,0 @@ if (err) {

{
"name": "useragent",
"version": "2.0.5",
"version": "2.0.6",
"description": "Fastest, most accurate & effecient user agent string parser, uses Browserscope's research for parsing",

@@ -5,0 +5,0 @@ "author": "Arnout Kazemier",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc