Fix dependabot issues
This commit is contained in:
parent
c89d9bd8b0
commit
531c6ba7c8
705 changed files with 53406 additions and 20466 deletions
68
node_modules/date-time/index.d.ts
generated
vendored
Normal file
68
node_modules/date-time/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
declare namespace dateTime {
|
||||
interface Options {
|
||||
/**
|
||||
Custom date.
|
||||
|
||||
@default new Date()
|
||||
*/
|
||||
date?: Date;
|
||||
|
||||
/**
|
||||
Show the date in the local time zone.
|
||||
|
||||
@default false
|
||||
*/
|
||||
local?: boolean;
|
||||
|
||||
/**
|
||||
Show the UTC time zone postfix.
|
||||
|
||||
@default false
|
||||
*/
|
||||
showTimeZone?: boolean;
|
||||
|
||||
/**
|
||||
Show the milliseconds in the date if any.
|
||||
|
||||
@default false
|
||||
*/
|
||||
showMilliseconds?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
declare const dateTime: {
|
||||
/**
|
||||
Pretty datetime: `2014-01-09 06:46:01`.
|
||||
|
||||
@example
|
||||
```
|
||||
import dateTime = require('date-time');
|
||||
|
||||
dateTime();
|
||||
//=> '2017-05-20 17:07:05'
|
||||
|
||||
dateTime({date: new Date(1989, 2, 4, 10)});
|
||||
//=> '1989-03-04 09:00:00'
|
||||
|
||||
dateTime({showTimeZone: true});
|
||||
//=> '2017-05-20 17:07:05 UTC+7'
|
||||
|
||||
dateTime({local: false});
|
||||
//=> '2017-05-20 10:07:05'
|
||||
|
||||
dateTime({local: false, showTimeZone: true});
|
||||
//=> '2017-05-20 10:07:05 UTC'
|
||||
|
||||
dateTime({showMilliseconds: true});
|
||||
//=> '2017-05-20 17:07:05 6ms'
|
||||
```
|
||||
*/
|
||||
(options?: dateTime.Options): string;
|
||||
|
||||
// TODO: Remove this for the next major release, refactor the whole definition to:
|
||||
// declare function dateTime(options?: dateTime.Options): string;
|
||||
// export = dateTime;
|
||||
default: typeof dateTime;
|
||||
};
|
||||
|
||||
export = dateTime;
|
||||
8
node_modules/date-time/index.js
generated
vendored
8
node_modules/date-time/index.js
generated
vendored
|
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
const timeZone = require('time-zone');
|
||||
|
||||
module.exports = options => {
|
||||
const dateTime = options => {
|
||||
options = Object.assign({
|
||||
date: new Date(),
|
||||
local: true,
|
||||
|
|
@ -9,7 +9,7 @@ module.exports = options => {
|
|||
showMilliseconds: false
|
||||
}, options);
|
||||
|
||||
let date = options.date;
|
||||
let {date} = options;
|
||||
|
||||
if (options.local) {
|
||||
// Offset the date so it will return the correct value when getting the ISO string
|
||||
|
|
@ -31,3 +31,7 @@ module.exports = options => {
|
|||
.replace(/T/, ' ')
|
||||
.replace(/\..+/, end);
|
||||
};
|
||||
|
||||
module.exports = dateTime;
|
||||
// TODO: Remove this for the next major release
|
||||
module.exports.default = dateTime;
|
||||
|
|
|
|||
20
node_modules/date-time/license
generated
vendored
20
node_modules/date-time/license
generated
vendored
|
|
@ -1,21 +1,9 @@
|
|||
The MIT License (MIT)
|
||||
MIT License
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (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:
|
||||
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:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
|
|
|||
14
node_modules/date-time/package.json
generated
vendored
14
node_modules/date-time/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "date-time",
|
||||
"version": "2.1.0",
|
||||
"version": "3.1.0",
|
||||
"description": "Pretty datetime: `2014-01-09 06:46:01`",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/date-time",
|
||||
|
|
@ -10,13 +10,14 @@
|
|||
"url": "sindresorhus.com"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4"
|
||||
"node": ">=6"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava"
|
||||
"test": "xo && ava && tsd"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
"index.js",
|
||||
"index.d.ts"
|
||||
],
|
||||
"keywords": [
|
||||
"datetime",
|
||||
|
|
@ -33,7 +34,8 @@
|
|||
"time-zone": "^1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"ava": "*",
|
||||
"xo": "*"
|
||||
"ava": "^1.4.1",
|
||||
"tsd": "^0.7.1",
|
||||
"xo": "^0.24.0"
|
||||
}
|
||||
}
|
||||
2
node_modules/date-time/readme.md
generated
vendored
2
node_modules/date-time/readme.md
generated
vendored
|
|
@ -6,7 +6,7 @@
|
|||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save date-time
|
||||
$ npm install date-time
|
||||
```
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue