-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from sineverba/release-1.4.0
Release 1.4.0
- Loading branch information
Showing
15 changed files
with
4,086 additions
and
2,288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ jobs: | |
|
||
test: | ||
docker: | ||
- image: cimg/node:10.24.1 | ||
- image: cimg/node:18.12.0 | ||
|
||
steps: | ||
- checkout | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
|
||
# Matches multiple files with brace expansion notation | ||
# Set default charset | ||
[*.{js,py}] | ||
charset = utf-8 | ||
|
||
# Tab indentation (no size specified) | ||
[Makefile] | ||
indent_style = tab | ||
|
||
# Indentation override for all JS | ||
[*.js] | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v10.24.1 | ||
v18.13.0 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
include .env | ||
|
||
SONARSCANNER_VERSION=4.8.0 | ||
|
||
sonar: | ||
docker-compose up sonarscanner | ||
docker run --rm -it \ | ||
--name sonarscanner \ | ||
-v $(PWD):/usr/src \ | ||
-e SONAR_HOST_URL=$(SONAR_HOST_URL) \ | ||
-e SONAR_LOGIN=$(SONAR_LOGIN) \ | ||
sonarsource/sonar-scanner-cli:$(SONARSCANNER_VERSION) | ||
|
||
upgrade: | ||
npx ncu -u | ||
npm install | ||
npm audit fix | ||
npx browserslist@latest --update-db | ||
npm audit fix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,41 @@ | ||
'use strict'; | ||
"use strict"; | ||
|
||
const moment = require("moment"); | ||
|
||
const ISO_FORMAT = 'YYYYMMDD'; | ||
const HUMAN_FORMAT = 'DD/MM/YYYY'; | ||
const ISO_FORMAT = "YYYYMMDD"; | ||
const HUMAN_FORMAT = "DD/MM/YYYY"; | ||
|
||
/** | ||
* | ||
* | ||
* Return a ISO date (YYYYMMDD) to human format (DD/MM/YYYY) | ||
* | ||
* | ||
* @param {*} isoDate | ||
* @param {*} format | ||
*/ | ||
function fromIsoToHuman (isoDate, format) { | ||
const momentObj = moment(isoDate, ISO_FORMAT); | ||
var currentFormat = HUMAN_FORMAT; | ||
if (typeof format != "undefined") { | ||
currentFormat = format; | ||
} | ||
return momentObj.format(currentFormat); | ||
function fromIsoToHuman(isoDate, format) { | ||
const momentObj = moment(isoDate, ISO_FORMAT); | ||
var currentFormat = HUMAN_FORMAT; | ||
if (typeof format != "undefined") { | ||
currentFormat = format; | ||
} | ||
return momentObj.format(currentFormat); | ||
} | ||
|
||
/** | ||
* | ||
* | ||
* Return a human date (DD/MM/YYYY) to ISO format | ||
* | ||
* @param {*} humanDate | ||
* | ||
* @param {*} humanDate | ||
* @param {*} format the initial format of human date | ||
*/ | ||
function fromHumanToIso (humanDate) { | ||
const momentObj = moment(humanDate, HUMAN_FORMAT); | ||
return momentObj.format(ISO_FORMAT); | ||
function fromHumanToIso(humanDate, format) { | ||
var currentFormat = HUMAN_FORMAT; | ||
if (typeof format != "undefined") { | ||
currentFormat = format; | ||
} | ||
const momentObj = moment(humanDate, currentFormat); | ||
return momentObj.format(ISO_FORMAT); | ||
} | ||
|
||
module.exports.fromIsoToHuman = fromIsoToHuman; | ||
module.exports.fromHumanToIso = fromHumanToIso; | ||
module.exports.fromHumanToIso = fromHumanToIso; |
Oops, something went wrong.