Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

woothee

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

woothee - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

2

bower.json
{
"name": "whoothee",
"version": "1.0.1",
"version": "1.4.0",
"homepage": "https://github.com/woothee/woothee-js",

@@ -5,0 +5,0 @@ "authors": [

@@ -165,1 +165,16 @@ /* HEADER BEGIN */

};
var vivaldiPattern = /Vivaldi\/([.0-9]+)/;
var challengeVivaldi = exports.challengeVivaldi = function(ua, result) {
if (ua.indexOf('Vivaldi/') < 0)
return false;
var version = dataset.VALUE_UNKNOWN;
var match = vivaldiPattern.exec(ua);
if (match)
version = match[1];
updateMap(result, dataset.get('Vivaldi'));
updateVersion(result, version);
return true;
};

@@ -37,3 +37,3 @@ var KEY_LABEL = exports.KEY_LABEL = 'label',

var DATASET = {};
// GENERATED from dataset.yaml at Tue Dec 22 13:57:12 JST 2015 by tagomoris
// GENERATED from dataset.yaml at Tue May 17 15:21:32 JST 2016 by tagomoris
var obj;

@@ -58,2 +58,5 @@ obj = {label:'MSIE', name:'Internet Explorer', type:'browser'};

DATASET[obj.label] = obj;
obj = {label:'Vivaldi', name:'Vivaldi', type:'browser'};
obj['vendor'] = 'Vivaldi Technologies';
DATASET[obj.label] = obj;
obj = {label:'Sleipnir', name:'Sleipnir', type:'browser'};

@@ -60,0 +63,0 @@ obj['vendor'] = 'Fenrir Inc.';

@@ -71,2 +71,5 @@ /* HEADER BEGIN */

if (browser.challengeVivaldi(userAgent, result))
return true;
if (browser.challengeSafariChrome(userAgent, result))

@@ -73,0 +76,0 @@ return true;

{
"name": "woothee",
"version": "1.3.0",
"version": "1.4.0",
"description": "User-Agent string parser (js implementation)",

@@ -5,0 +5,0 @@ "main": "./release/woothee",

@@ -5,6 +5,6 @@ (function (){

// GENERATED from dataset.yaml at Tue Dec 22 13:57:12 JST 2015 by tagomoris
// GENERATED from dataset.yaml at Tue May 17 15:21:32 JST 2016 by tagomoris
// Snapshot from package.json
var package_info = {"name":"woothee","version":"1.3.0","description":"User-Agent string parser (js implementation)","main":"./release/woothee","devDependencies":{"mocha":">= 1.7.0","chai":">= 1.3.0","js-yaml":">= 1.0.3","should":"~1.2.2"},"scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/woothee/woothee-js"},"author":"tagomoris","license":"Apache v2"};
var package_info = {"name":"woothee","version":"1.4.0","description":"User-Agent string parser (js implementation)","main":"./release/woothee","devDependencies":{"mocha":">= 1.7.0","chai":">= 1.3.0","js-yaml":">= 1.0.3","should":"~1.2.2"},"scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/woothee/woothee-js"},"author":"tagomoris","license":"Apache v2"};

@@ -45,3 +45,3 @@ var dataset = {};

var DATASET = {};
// GENERATED from dataset.yaml at Tue Dec 22 13:57:12 JST 2015 by tagomoris
// GENERATED from dataset.yaml at Tue May 17 15:21:32 JST 2016 by tagomoris
var obj;

@@ -66,2 +66,5 @@ obj = {label:'MSIE', name:'Internet Explorer', type:'browser'};

DATASET[obj.label] = obj;
obj = {label:'Vivaldi', name:'Vivaldi', type:'browser'};
obj['vendor'] = 'Vivaldi Technologies';
DATASET[obj.label] = obj;
obj = {label:'Sleipnir', name:'Sleipnir', type:'browser'};

@@ -548,2 +551,14 @@ obj['vendor'] = 'Fenrir Inc.';

};
var vivaldiPattern = /Vivaldi\/([.0-9]+)/;
var challengeVivaldi = exports.challengeVivaldi = function(ua, result) {
if (ua.indexOf('Vivaldi/') < 0)
return false;
var version = dataset.VALUE_UNKNOWN;
var match = vivaldiPattern.exec(ua);
if (match)
version = match[1];
updateMap(result, dataset.get('Vivaldi'));
updateVersion(result, version);
return true;
};

@@ -1208,2 +1223,4 @@ })();

return true;
if (browser.challengeVivaldi(userAgent, result))
return true;
if (browser.challengeSafariChrome(userAgent, result))

@@ -1210,0 +1227,0 @@ return true;

@@ -5,2 +5,4 @@ # Project Woothee

You can try it on demo site: http://woothee.github.io/
## Why new project?

@@ -14,12 +16,14 @@

* Java (and Hive UDF)
* Perl
* Ruby
* Python
* Javascript (Node.js or browser)
* PHP
* Go
* [Java](https://github.com/woothee/woothee-java) (and Hive UDF)
* [Perl](https://github.com/woothee/woothee-perl)
* [Ruby](https://github.com/woothee/woothee-ruby)
* [Python](https://github.com/woothee/woothee-python)
* [Javascript](https://github.com/woothee/woothee-js) (Node.js or browser)
* [PHP](https://github.com/woothee/woothee-php)
* [Go](https://github.com/woothee/woothee-go)
## Versions
* v1.4.0
* Add Vivaldi
* v1.3.0

@@ -63,3 +67,2 @@ * Add Firefox for iOS

## SYNOPSIS

@@ -72,3 +75,3 @@ in Java: (use java/woothee.jar)

Map r = Classifier.parse("user agent string");
r.get("name")

@@ -75,0 +78,0 @@ // => name of browser (or string like name of user-agent)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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