Skip to content

Commit

Permalink
Merge pull request #6 from informachadocom/main
Browse files Browse the repository at this point in the history
ESLint. Fix Vulnerabilities
  • Loading branch information
livetocode authored Jan 25, 2024
2 parents 7d70479 + f47ca4a commit 1789422
Show file tree
Hide file tree
Showing 20 changed files with 4,065 additions and 2,366 deletions.
23 changes: 23 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.*

/node_modules
/test
/output
/dist
/temp
/test-*
/log
/html

Jenkinsfile
package.json
package-lock.json
yarn.lock
README.md
license

*.map
*.yaml
*.hbs
*.txt
*.js
1 change: 0 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,3 @@ jobs:
- run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ node_modules
yarn.lock
/dist
/output
/temp

*.map
*.d.ts
Expand Down
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export async function initComponents() {
() => {
return correlationIdService.getId();
},
config.routing.caseSensitive // required since 7.0.0
config.routing.caseSensitive, // required since 7.0.0
);

//...
Expand Down Expand Up @@ -148,7 +148,6 @@ de l'initialisation de la librairie.

Retourne les `IOrderBy` spécifiés dans la querystring d'une requête de recherche.


#### urlJoin

Util to join part of url:
Expand All @@ -157,7 +156,12 @@ Util to join part of url:
import { httpUtils } from '@villedemontreal/http-request';

// To join multiple part of uri:
let url: string = httpUtils.urlJoin('http://api.montreal.ca/accounts/', '/inum', '@5441521452', 'tickets');
let url: string = httpUtils.urlJoin(
'http://api.montreal.ca/accounts/',
'/inum',
'@5441521452',
'tickets',
);
console.log(url); // http://api.montreal.ca/accounts/inum/@5441521452/tickets
```

Expand All @@ -168,7 +172,9 @@ Util to parse an url and get the different parts:
```typescript
import { httpUtils } from '@villedemontreal/http-request';

let url: string = httpUtils.buildUriObject('http://api.montreal.ca/accounts/inum/@5441521452/tickets');
let url: string = httpUtils.buildUriObject(
'http://api.montreal.ca/accounts/inum/@5441521452/tickets',
);
console.log(url); // {"uri": "http://api.montreal.ca/accounts/inum/@5441521452/tickets", "baseUri":"http://api.montreal.ca", "path":"/accounts/inum/@5441521452/tickets"}
```

Expand Down Expand Up @@ -210,7 +216,6 @@ Trois "_launch configurations_" sont founies pour déboguer le projet dans VSCod
- "`Debug current tests file - fast`". Lance le fichier de tests _présentement ouvert_ dans VSCode en mode debug. Aucune compilation
n'est effectuée au préalable. Cette launch configuration doit être utilisée lorsque la compilation incrémentale roule (voir la section "`Mode Watch`" plus haut)


# Aide / Contributions

Notez que les contributions sous forme de pull requests sont bienvenues.
23 changes: 23 additions & 0 deletions config/configs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import * as path from 'path';

/**
* Configurations for the application.
*/
class Configs {
/**
* Absolute path to the root of the project.
*/
public root: string;

/**
* Absolute path to a directory to use for tests.
*/
public dataDirPath: string;

constructor() {
this.root = path.normalize(`${__dirname}/..`);
this.dataDirPath = `${this.root}/test-data`;
}
}

export const configs: Configs = new Configs();
Loading

0 comments on commit 1789422

Please sign in to comment.