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.
Files changed (2) hide show
  1. package/date.js +1 -1
  2. 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 ? dateType.toUpperCase() : 'YYYY-MM-DD');
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.2",
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.0",
22
- "@babel/preset-env": "^7.16.4",
23
- "@babel/register": "^7.16.0",
24
- "eslint": "^8.4.1",
25
- "eslint-config-airbnb": "^19.0.2",
26
- "eslint-plugin-import": "^2.25.3",
27
- "mocha": "^9.1.3"
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"