Skip to content

Commit 4cf945f

Browse files
committed
deps: upgrade ms to 0.7.0
1 parent be36edb commit 4cf945f

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

.npmignore

-5
This file was deleted.

.travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@ language: node_js
22
node_js:
33
- "0.10"
44
- "0.11"
5+
- "0.12"
6+
- "iojs-1"
57
script: "make test-travis"
68
after_script: "npm install [email protected] && cat ./coverage/lcov.info | coveralls"

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
TESTS = test/*.test.js
2-
REPORTER = tap
2+
REPORTER = spec
33
TIMEOUT = 3000
44
MOCHA_OPTS =
55

66
install:
7-
@npm install --registry=http://registry.npm.taobao.org
7+
@npm install
88

99
test:
1010
@NODE_ENV=test ./node_modules/mocha/bin/mocha \

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ $ npm install humanize-ms
2828

2929
## Examples
3030

31-
```
31+
```js
3232
var ms = require('humanize-ms');
3333

3434
ms('1s') // 1000

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ var ms = require('ms');
1515
module.exports = function (t) {
1616
if (typeof t === 'number') return t;
1717
var r = ms(t);
18-
if (r === undefined) console.warn('ms(%s) got undefined in %s', t, __filename);
18+
if (r === undefined) console.warn('ms(%j) got undefined in %s', t, __filename);
1919
return r;
2020
};

package.json

+6-5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "1.0.1",
44
"description": "transform humanize time to ms",
55
"main": "index.js",
6+
"files": ["index.js"],
67
"scripts": {
78
"test": "make test"
89
},
@@ -21,12 +22,12 @@
2122
},
2223
"license": "MIT",
2324
"dependencies": {
24-
"ms": "~0.6.2"
25+
"ms": "~0.7.0"
2526
},
2627
"devDependencies": {
27-
"autod": "~0.3.2",
28-
"istanbul": "~0.3.0",
29-
"mocha": "~1.21.4",
30-
"should": "~4.0.4"
28+
"autod": "*",
29+
"istanbul": "*",
30+
"mocha": "*",
31+
"should": "*"
3132
}
3233
}

test/index.test.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ describe('humanize-ms', function () {
2222
describe('when string', function () {
2323
it('should transform to number', function () {
2424
ms('1s').should.equal(1000);
25+
ms('1m').should.equal(60000);
26+
ms('1').should.equal(1);
2527
});
2628
});
2729

0 commit comments

Comments
 (0)