initial commit

This commit is contained in:
air66
2019-07-24 18:16:32 +01:00
commit 5efebf4ded
8591 changed files with 899103 additions and 0 deletions

7
node_modules/es5-ext/date/#/copy.js generated vendored Normal file
View File

@@ -0,0 +1,7 @@
"use strict";
var getTime = Date.prototype.getTime;
module.exports = function () {
return new Date(getTime.call(this));
};

17
node_modules/es5-ext/date/#/days-in-month.js generated vendored Normal file
View File

@@ -0,0 +1,17 @@
"use strict";
var getMonth = Date.prototype.getMonth;
module.exports = function () {
switch (getMonth.call(this)) {
case 1:
return this.getFullYear() % 4 ? 28 : 29;
case 3:
case 5:
case 8:
case 10:
return 30;
default:
return 31;
}
};

8
node_modules/es5-ext/date/#/floor-day.js generated vendored Normal file
View File

@@ -0,0 +1,8 @@
"use strict";
var setHours = Date.prototype.setHours;
module.exports = function () {
setHours.call(this, 0, 0, 0, 0);
return this;
};

8
node_modules/es5-ext/date/#/floor-month.js generated vendored Normal file
View File

@@ -0,0 +1,8 @@
"use strict";
var floorDay = require("./floor-day");
module.exports = function () {
floorDay.call(this).setDate(1);
return this;
};

8
node_modules/es5-ext/date/#/floor-year.js generated vendored Normal file
View File

@@ -0,0 +1,8 @@
"use strict";
var floorMonth = require("./floor-month");
module.exports = function () {
floorMonth.call(this).setMonth(0);
return this;
};

38
node_modules/es5-ext/date/#/format.js generated vendored Normal file
View File

@@ -0,0 +1,38 @@
/* eslint id-length: "off" */
"use strict";
var pad = require("../../number/#/pad")
, date = require("../valid-date")
, format;
format = require("../../string/format-method")({
Y: function () {
return String(this.getFullYear());
},
y: function () {
return String(this.getFullYear()).slice(-2);
},
m: function () {
return pad.call(this.getMonth() + 1, 2);
},
d: function () {
return pad.call(this.getDate(), 2);
},
H: function () {
return pad.call(this.getHours(), 2);
},
M: function () {
return pad.call(this.getMinutes(), 2);
},
S: function () {
return pad.call(this.getSeconds(), 2);
},
L: function () {
return pad.call(this.getMilliseconds(), 3);
}
});
module.exports = function (pattern) {
return format.call(date(this), pattern);
};

10
node_modules/es5-ext/date/#/index.js generated vendored Normal file
View File

@@ -0,0 +1,10 @@
"use strict";
module.exports = {
copy: require("./copy"),
daysInMonth: require("./days-in-month"),
floorDay: require("./floor-day"),
floorMonth: require("./floor-month"),
floorYear: require("./floor-year"),
format: require("./format")
};