device-detector
Advanced tools
Comparing version 0.1.12 to 0.1.16
{ | ||
"version": "0.1.12", | ||
"version": "0.1.16", | ||
"name": "device-detector", | ||
@@ -13,3 +13,3 @@ "description": "Simple way to detect device info on Node.js and Browser", | ||
"engines": { | ||
"node": ">= 0.9" | ||
"node": ">= 4.0" | ||
}, | ||
@@ -20,3 +20,2 @@ "scripts": { | ||
"devDependencies": { | ||
"traceur": "latest", | ||
"bellajs": "latest", | ||
@@ -23,0 +22,0 @@ "mocha": "latest", |
@@ -6,3 +6,3 @@ device-detector | ||
![Travis](https://travis-ci.org/ndaidong/average-rating.svg?branch=master) | ||
[![NPM](https://badge.fury.io/js/device-detector.svg)](https://badge.fury.io/js/device-detector) ![Travis](https://travis-ci.org/ndaidong/average-rating.svg?branch=master) | ||
@@ -9,0 +9,0 @@ # Contents |
@@ -7,5 +7,7 @@ /** | ||
import path from 'path'; | ||
import chai from 'chai'; | ||
'use strict'; | ||
var path = require('path'); | ||
var chai = require('chai'); | ||
chai.should(); | ||
@@ -12,0 +14,0 @@ var expect = chai.expect; |
@@ -7,5 +7,7 @@ /** | ||
import path from 'path'; | ||
import chai from 'chai'; | ||
'use strict'; | ||
var path = require('path'); | ||
var chai = require('chai'); | ||
chai.should(); | ||
@@ -12,0 +14,0 @@ var expect = chai.expect; |
@@ -7,5 +7,7 @@ /** | ||
import path from 'path'; | ||
import chai from 'chai'; | ||
'use strict'; | ||
var path = require('path'); | ||
var chai = require('chai'); | ||
chai.should(); | ||
@@ -12,0 +14,0 @@ var expect = chai.expect; |
@@ -1,5 +0,2 @@ | ||
var traceur = require('traceur'); | ||
traceur.require.makeDefault((filename) => { | ||
return filename.indexOf('node_modules') === -1; | ||
}); | ||
'use strict'; | ||
@@ -14,6 +11,6 @@ var fs = require('fs'); | ||
var dirs = ['']; | ||
dirs.forEach(function(dir){ | ||
var where = './test/specs/' + dir; | ||
dirs.forEach((dir) => { | ||
let where = './test/specs/' + dir; | ||
if(fs.existsSync(where)){ | ||
fs.readdirSync(where).forEach(function(file){ | ||
fs.readdirSync(where).forEach((file) => { | ||
if(path.extname(file) === '.js'){ | ||
@@ -20,0 +17,0 @@ require(path.join('.' + where, file)); |
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
38786
3