diff --git a/.travis.yml b/.travis.yml index cb7b862..fd89c6b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,9 +2,9 @@ sudo: false language: node_js node_js: - '4' - - '5' - '6' - - '7' + - '8' + - '10' script: - 'npm run ci' after_script: diff --git a/LICENSE.txt b/LICENSE.txt index 59b2660..316ff2c 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,6 +1,6 @@ This software is licensed under the MIT License. -Copyright(c) 2012 - 2017 node-modules and other contributors. +Copyright(c) 2012 - present node-modules and other contributors. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/package.json b/package.json index a358570..289af20 100644 --- a/package.json +++ b/package.json @@ -12,27 +12,27 @@ "test-cov": "nyc ava test/**/*.test.js && nyc report --reporter=lcov", "lint": "jshint .", "ci": "npm run lint && npm run test-cov", - "autod": "autod -w --prefix '~' -e benchmark", + "autod": "autod -w --prefix '^' -e benchmark", "test-optimized": "node --allow-natives-syntax --trace_opt --trace_deopt test/optimized.js" }, "dependencies": { - "copy-to": "~2.0.1", - "escape-html": "~1.0.3", - "mkdirp": "~0.5.1", - "mz": "~2.7.0" + "copy-to": "^2.0.1", + "escape-html": "^1.0.3", + "mkdirp": "^0.5.1", + "mz": "^2.7.0" }, "devDependencies": { "autod": "*", - "ava": "~0.22.0", + "ava": "^0.25.0", "beautify-benchmark": "*", "benchmark": "^2.1.0", "contributors": "*", "jshint": "*", - "moment": "~2.19.1", + "moment": "^2.22.2", "nyc": "6", "object-assign": "^4.1.1", - "optimized": "~1.2.0", - "rimraf": "~2.6.2" + "optimized": "^1.2.0", + "rimraf": "^2.6.2" }, "homepage": "https://github.com/node-modules/utility", "repository": { diff --git a/test/date.test.js b/test/date.test.js index d3df701..ad1735a 100644 --- a/test/date.test.js +++ b/test/date.test.js @@ -104,7 +104,7 @@ test('accessLogDate() should return an access log format date string', t => { const ss = parseInt(Math.random() * 60, 10); const ds = '2013-' + m + '-' + d + ' ' + h + ':' + ss + ':' + ss; const n = new Date(ds); - t.is(moment(n).format('DD/MMM/YYYY:HH:mm:ss ZZ'), utils.accessLogDate(n)); + t.is(moment(n).format('DD/MMM/YYYY:HH:mm:ss ZZ'), utils.accessLogDate(n), ds); } } }