mirror of
https://github.com/actions/setup-python.git
synced 2025-07-20 00:58:20 +02:00
Clean up node_modules
This commit is contained in:
parent
b581dd4017
commit
145e800d1f
7184 changed files with 11271 additions and 1877650 deletions
35
node_modules/prompts/lib/dateparts/datepart.js
generated
vendored
35
node_modules/prompts/lib/dateparts/datepart.js
generated
vendored
|
@ -1,35 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
class DatePart {
|
||||
constructor({token, date, parts, locales}) {
|
||||
this.token = token;
|
||||
this.date = date || new Date();
|
||||
this.parts = parts || [this];
|
||||
this.locales = locales || {};
|
||||
}
|
||||
|
||||
up() {}
|
||||
|
||||
down() {}
|
||||
|
||||
next() {
|
||||
const currentIdx = this.parts.indexOf(this);
|
||||
return this.parts.find((part, idx) => idx > currentIdx && part instanceof DatePart);
|
||||
}
|
||||
|
||||
setTo(val) {}
|
||||
|
||||
prev() {
|
||||
let parts = [].concat(this.parts).reverse();
|
||||
const currentIdx = parts.indexOf(this);
|
||||
return parts.find((part, idx) => idx > currentIdx && part instanceof DatePart);
|
||||
}
|
||||
|
||||
toString() {
|
||||
return String(this.date);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DatePart;
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue