Comparing version 0.3.9 to 0.4.0
@@ -35,3 +35,3 @@ var KEY_LABEL = exports.KEY_LABEL = 'label', | ||
var DATASET = {}; | ||
// GENERATED from dataset.yaml at Fri Feb 7 20:14:03 JST 2014 by tagomoris | ||
// GENERATED from dataset.yaml at Sun Apr 6 15:41:22 JST 2014 by tagomoris | ||
var obj; | ||
@@ -38,0 +38,0 @@ obj = {label:'MSIE', name:'Internet Explorer', type:'browser'}; |
/* HEADER BEGIN */ | ||
var dataset = require('./dataset'), | ||
browser = require('./browser'), | ||
os = require('./os'), | ||
mobilephone = require('./mobilephone'), | ||
crawler = require('./crawler'), | ||
appliance = require('./appliance'), | ||
misc = require('./misc'); | ||
var dataset = require('./dataset') | ||
, browser = require('./browser') | ||
, os = require('./os') | ||
, mobilephone = require('./mobilephone') | ||
, crawler = require('./crawler') | ||
, appliance = require('./appliance') | ||
, misc = require('./misc') | ||
, package_info = require('./../package.json'); | ||
/* HEADER END */ | ||
var version = exports.VERSION = package_info.version; | ||
var parse = exports.parse = function(userAgent) { | ||
@@ -12,0 +15,0 @@ return fillResult(execParse(userAgent)); |
{ | ||
"name": "woothee", | ||
"version": "0.3.9", | ||
"version": "0.4.0", | ||
"description": "User-Agent string parser (js implementation)", | ||
@@ -5,0 +5,0 @@ "main": "./release/woothee", |
@@ -5,3 +5,7 @@ (function (){ | ||
// GENERATED from dataset.yaml at Wed Apr 2 13:23:00 JST 2014 by tagomoris | ||
// GENERATED from dataset.yaml at Sun Apr 6 15:41:23 JST 2014 by tagomoris | ||
// Snapshot from package.json | ||
var package_info = {"name":"woothee","version":"0.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"}; | ||
var dataset = {}; | ||
@@ -39,3 +43,3 @@ (function(){ | ||
var DATASET = {}; | ||
// GENERATED from dataset.yaml at Wed Apr 2 13:23:00 JST 2014 by tagomoris | ||
// GENERATED from dataset.yaml at Sun Apr 6 15:41:22 JST 2014 by tagomoris | ||
var obj; | ||
@@ -1015,2 +1019,3 @@ obj = {label:'MSIE', name:'Internet Explorer', type:'browser'}; | ||
/* CODE: woothee.js */ | ||
var version = exports.VERSION = package_info.version; | ||
var parse = exports.parse = function(userAgent) { | ||
@@ -1017,0 +1022,0 @@ return fillResult(execParse(userAgent)); |
@@ -38,2 +38,9 @@ var fs = require('fs') | ||
/* Inject package.json into release/woothee.js */ | ||
var package_info = require('../package.json'); | ||
defs.push(''); | ||
defs.push(' // Snapshot from package.json'); | ||
defs.push(util.format(" var package_info = %s;", JSON.stringify(package_info))); | ||
defs.push(''); | ||
imports.forEach(function(modname){ | ||
@@ -40,0 +47,0 @@ var content = fs.readFileSync(__dirname + '/../lib/' + modname + '.js').toString(); |
var fs = require('fs'); | ||
var files = fs.readdirSync('lib'); | ||
var expect = require('chai').expect; | ||
@@ -13,2 +14,7 @@ describe('woothee', function(){ | ||
}); | ||
it('should have valid version', function(){ | ||
var woothee = require('./../lib/woothee'); | ||
expect(woothee.VERSION).to.match(/^[0-9]+\.[0-9]+\.[0-9]+$/); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
145555
2556