Skip to content

Commit 7f09fa6

Browse files
committed
move utils-oracle lib from Bitbucket to this Github monorepo
1 parent 5c14f8d commit 7f09fa6

28 files changed

Lines changed: 1176 additions & 5 deletions

RELEASE_NOTES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
It means that our libs might start using some ESM only libs, but thanks to NodeJS 24 and more,
1111
this should be transparent.
1212
- replace MomentJS with Luxon in node-jwt-validator
13+
- move utils-oracle lib from Bitbucket to this Github monorepo.
14+
You will have to replace your imports: @villemontreal/core-utils-oracle-nodejs-lib ==> @villedemontreal/utils-oracle
15+
1316

1417
### BREAKING
1518

package-lock.json

Lines changed: 62 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/node-general-utils/src/dateUtils.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,12 @@ export function isDateBetween(
9191
const leftInclusive = inclusivity[0] === '[';
9292
const rightInclusive = inclusivity[1] === ']';
9393

94-
const afterFrom = leftInclusive ? dt.toMillis() >= fromDt.toMillis() : dt.toMillis() > fromDt.toMillis();
95-
const beforeTo = rightInclusive ? dt.toMillis() <= toDt.toMillis() : dt.toMillis() < toDt.toMillis();
94+
const afterFrom = leftInclusive
95+
? dt.toMillis() >= fromDt.toMillis()
96+
: dt.toMillis() > fromDt.toMillis();
97+
const beforeTo = rightInclusive
98+
? dt.toMillis() <= toDt.toMillis()
99+
: dt.toMillis() < toDt.toMillis();
96100

97101
return afterFrom && beforeTo;
98102
}

packages/node-jwt-validator/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Module to validate JWT generated by Kong
44

55
## Availabililty
66

7-
https://bitbucket.org/villemontreal/core-jwt-validator-nodejs-lib
7+
https://github.com/VilledeMontreal/node-core-libs/tree/main/packages/node-jwt-validator
88

99
## Installation
1010

packages/node-utils-knex/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Module d'utilitaires pour la librairie Knex.
44

55
## Availabililty
66

7-
https://github.com/VilledeMontreal/node-core-libs/tree/main/packages/utils-knex
7+
https://github.com/VilledeMontreal/node-core-libs/tree/main/packages/node-utils-knex
88

99
## Installation
1010

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.*/*
2+
node_modules/
3+
log/
4+
*.log
5+
test-*/
6+
config/local.*
7+
config/local-*.*
8+
temp
9+
output
10+
Dockerfile
11+
Jenkinsfile
12+
CONTRIBUTING.md
13+
.gitignore
14+
.dockerignore
15+
d
16+
runTesting
17+
runTesting.cmd
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
node_modules
2+
/log
3+
.idea
4+
.eslintrc.json
5+
/*.log
6+
/test-*
7+
/src/test.ts
8+
yarn.lock
9+
/dist
10+
/temp
11+
/output
12+
13+
*.map
14+
*.d.ts
15+
*.js
16+
!/prettier.config.js
17+
!/.eslintrc.js
18+
!/.prettierrc.js

packages/node-utils-oracle/.nycrc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"check-coverage": true,
3+
"per-file": false,
4+
"lines": 90,
5+
"statements": 90,
6+
"functions": 90,
7+
"branches": 80,
8+
"extension": [".js", ".ts", ".tsx"],
9+
"exclude": ["**/*.test.js", "**/*.test.ts"],
10+
"reporter": ["text", "lcov"],
11+
"report-dir": "./output/coverage",
12+
"cache": true,
13+
"temp-directory": "./temp/nycrc"
14+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
node_modules
2+
.docker
3+
.local
4+
.vscode
5+
.git
6+
*.map
7+
/test
8+
/temp
9+
/dist
10+
.dockerignore
11+
.gitignore
12+
.npmrc
13+
.prettierignore
14+
Jenkinsfile
15+
package.json
16+
package-lock.json
17+
yarn.lock
18+
/node_modules
19+
/test
20+
/output
21+
/temp
22+
/test-*
23+
/log
24+
25+
license
26+
*.js
27+
*.yaml
28+
*.hbs
29+
*.txt
30+
/html
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
"printWidth": 100,
3+
"singleQuote": true
4+
}

0 commit comments

Comments
 (0)