qsu 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/date.js +1 -1
- package/package.json +8 -8
package/date.js
CHANGED
|
@@ -13,7 +13,7 @@ const today = (dateType) => {
|
|
|
13
13
|
if (dateType !== undefined && typeof dateType !== 'string') {
|
|
14
14
|
return null;
|
|
15
15
|
}
|
|
16
|
-
return moment().format(dateType
|
|
16
|
+
return moment().format(dateType || 'YYYY-MM-DD');
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
const isRealDate = (d) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qsu",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"description": "Quick and Simple Utility for javascript",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "npm run lint && mocha --require @babel/register --parallel test/*.spec.js",
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
"url": "https://github.com/jooy2/qsu"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@babel/node": "^7.16.
|
|
22
|
-
"@babel/preset-env": "^7.16.
|
|
23
|
-
"@babel/register": "^7.16.
|
|
24
|
-
"eslint": "^8.
|
|
25
|
-
"eslint-config-airbnb": "^19.0.
|
|
26
|
-
"eslint-plugin-import": "^2.25.
|
|
27
|
-
"mocha": "^9.1.
|
|
21
|
+
"@babel/node": "^7.16.8",
|
|
22
|
+
"@babel/preset-env": "^7.16.8",
|
|
23
|
+
"@babel/register": "^7.16.9",
|
|
24
|
+
"eslint": "^8.7.0",
|
|
25
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
26
|
+
"eslint-plugin-import": "^2.25.4",
|
|
27
|
+
"mocha": "^9.1.4"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"moment": "^2.29.1"
|