From 4081c2036a5af21519095da1b8b99c507b0fba93 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sun, 17 Apr 2022 17:37:10 +0200 Subject: Deprecation --- node_modules/prompts/dist/dateparts/minutes.js | 29 -------------------------- 1 file changed, 29 deletions(-) delete mode 100644 node_modules/prompts/dist/dateparts/minutes.js (limited to 'node_modules/prompts/dist/dateparts/minutes.js') diff --git a/node_modules/prompts/dist/dateparts/minutes.js b/node_modules/prompts/dist/dateparts/minutes.js deleted file mode 100644 index 2b8ef1f..0000000 --- a/node_modules/prompts/dist/dateparts/minutes.js +++ /dev/null @@ -1,29 +0,0 @@ -'use strict'; - -const DatePart = require('./datepart'); - -class Minutes extends DatePart { - constructor(opts = {}) { - super(opts); - } - - up() { - this.date.setMinutes(this.date.getMinutes() + 1); - } - - down() { - this.date.setMinutes(this.date.getMinutes() - 1); - } - - setTo(val) { - this.date.setMinutes(parseInt(val.substr(-2))); - } - - toString() { - let m = this.date.getMinutes(); - return this.token.length > 1 ? String(m).padStart(2, '0') : m; - } - -} - -module.exports = Minutes; \ No newline at end of file -- cgit