Bump packages to fix linter
This commit is contained in:
parent
ed9506bbaf
commit
0a11e3fdd9
6063 changed files with 378752 additions and 306784 deletions
26
node_modules/parse-ms/index.d.ts
generated
vendored
26
node_modules/parse-ms/index.d.ts
generated
vendored
|
|
@ -1,13 +1,11 @@
|
|||
declare namespace parseMilliseconds {
|
||||
interface Parsed {
|
||||
days: number;
|
||||
hours: number;
|
||||
minutes: number;
|
||||
seconds: number;
|
||||
milliseconds: number;
|
||||
microseconds: number;
|
||||
nanoseconds: number;
|
||||
}
|
||||
export interface TimeComponents {
|
||||
days: number;
|
||||
hours: number;
|
||||
minutes: number;
|
||||
seconds: number;
|
||||
milliseconds: number;
|
||||
microseconds: number;
|
||||
nanoseconds: number;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -15,7 +13,7 @@ Parse milliseconds into an object.
|
|||
|
||||
@example
|
||||
```
|
||||
import parseMilliseconds = require('parse-ms');
|
||||
import parseMilliseconds from 'parse-ms';
|
||||
|
||||
parseMilliseconds(1337000001);
|
||||
// {
|
||||
|
|
@ -29,8 +27,4 @@ parseMilliseconds(1337000001);
|
|||
// }
|
||||
```
|
||||
*/
|
||||
declare function parseMilliseconds(
|
||||
milliseconds: number
|
||||
): parseMilliseconds.Parsed;
|
||||
|
||||
export = parseMilliseconds;
|
||||
export default function parseMilliseconds(milliseconds: number): TimeComponents;
|
||||
|
|
|
|||
5
node_modules/parse-ms/index.js
generated
vendored
5
node_modules/parse-ms/index.js
generated
vendored
|
|
@ -1,5 +1,4 @@
|
|||
'use strict';
|
||||
module.exports = milliseconds => {
|
||||
export default function parseMilliseconds(milliseconds) {
|
||||
if (typeof milliseconds !== 'number') {
|
||||
throw new TypeError('Expected a number');
|
||||
}
|
||||
|
|
@ -15,4 +14,4 @@ module.exports = milliseconds => {
|
|||
microseconds: roundTowardsZero(milliseconds * 1000) % 1000,
|
||||
nanoseconds: roundTowardsZero(milliseconds * 1e6) % 1000
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
2
node_modules/parse-ms/license
generated
vendored
2
node_modules/parse-ms/license
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
|
|
|
|||
15
node_modules/parse-ms/package.json
generated
vendored
15
node_modules/parse-ms/package.json
generated
vendored
|
|
@ -1,16 +1,19 @@
|
|||
{
|
||||
"name": "parse-ms",
|
||||
"version": "2.1.0",
|
||||
"version": "3.0.0",
|
||||
"description": "Parse milliseconds into an object",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/parse-ms",
|
||||
"funding": "https://github.com/sponsors/sindresorhus",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
"url": "https://sindresorhus.com"
|
||||
},
|
||||
"type": "module",
|
||||
"exports": "./index.js",
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
"node": ">=12"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava && tsd"
|
||||
|
|
@ -33,8 +36,8 @@
|
|||
"interval"
|
||||
],
|
||||
"devDependencies": {
|
||||
"ava": "^1.4.1",
|
||||
"tsd": "^0.7.2",
|
||||
"xo": "^0.24.0"
|
||||
"ava": "^3.15.0",
|
||||
"tsd": "^0.14.0",
|
||||
"xo": "^0.38.2"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
12
node_modules/parse-ms/readme.md
generated
vendored
12
node_modules/parse-ms/readme.md
generated
vendored
|
|
@ -1,19 +1,17 @@
|
|||
# parse-ms [](https://travis-ci.org/sindresorhus/parse-ms)
|
||||
# parse-ms
|
||||
|
||||
> Parse milliseconds into an object
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install parse-ms
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const parseMilliseconds = require('parse-ms');
|
||||
import parseMilliseconds from 'parse-ms';
|
||||
|
||||
parseMilliseconds(1337000001);
|
||||
/*
|
||||
|
|
@ -29,13 +27,7 @@ parseMilliseconds(1337000001);
|
|||
*/
|
||||
```
|
||||
|
||||
|
||||
## Related
|
||||
|
||||
- [to-milliseconds](https://github.com/sindresorhus/to-milliseconds) - The inverse of this module
|
||||
- [pretty-ms](https://github.com/sindresorhus/pretty-ms) - Convert milliseconds to a human readable string
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue