Skip to content

Commit 5273b00

Browse files
authored
fix(deps): Upgrades jscommons for Node 12 upgrade (LLC-22) (#692)
1 parent 85d72d6 commit 5273b00

File tree

8 files changed

+836
-778
lines changed

8 files changed

+836
-778
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"http-status-codes": "^1.3.0",
5555
"install": "^0.13.0",
5656
"ioredis": "^4.14.0",
57-
"jscommons": "^2.4.14",
57+
"jscommons": "^3.0.0",
5858
"jsonwebtoken": "^8.5.1",
5959
"lodash": "^4.17.4",
6060
"mime-types": "2.1.27",

src/apps/activities/expressPresenter/postProfile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import patchProfileWithService from './utils/patchProfileWithService';
77
export default (config: Config) => {
88
return catchErrors(config, async (req: Request, res: Response): Promise<void> => {
99
const query = req.query;
10-
const method = query.method;
10+
const method = query.method as string | undefined;
1111

1212
if (method !== undefined) {
1313
return alternateProfileRequest({ config, method, req, res });

src/apps/agents/expressPresenter/getFullAgent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default (config: Config) => {
1111
return catchErrors(config, async (req: Request, res: Response): Promise<void> => {
1212
const client = await getClient(config, req.header('Authorization'));
1313
validateVersionHeader(req.header('X-Experience-API-Version'));
14-
const agent = getAgent(req.query.agent);
14+
const agent = getAgent(req.query.agent as string | undefined);
1515
const result = await config.service.getFullAgent({ client, agent });
1616
res.status(OK);
1717
res.setHeader('X-Experience-API-Version', xapiHeaderVersion);

src/apps/agents/expressPresenter/postProfile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import patchProfileWithService from './utils/patchProfileWithService';
77
export default (config: Config) => {
88
return catchErrors(config, async (req: Request, res: Response): Promise<void> => {
99
const query = req.query;
10-
const method = query.method;
10+
const method = query.method as string | undefined;
1111

1212
if (method !== undefined) {
1313
return alternateProfileRequest({ config, method, req, res });

src/apps/statements/expressPresenter/getFullActivity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import validateHeaderVersion from './utils/validateHeaderVersion';
99
export default (config: Config) => {
1010
return catchErrors(config, async (req: Request, res: Response): Promise<void> => {
1111
const client = await getClient(config, req.header('Authorization'));
12-
const activityId = getActivityId(req.query.activityId);
12+
const activityId = getActivityId(req.query.activityId as string | undefined);
1313

1414
validateHeaderVersion(req.header('X-Experience-API-Version'));
1515

src/apps/statements/expressPresenter/postStatements/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const parseJsonBody = async (config: Config, req: Request) => {
2929
export default (config: Config) => {
3030
return catchErrors(config, async (req: Request, res: Response): Promise<void> => {
3131

32-
const method = req.query.method;
32+
const method = req.query.method as string | undefined;
3333
const contentType = defaultTo(req.header('Content-Type'), '');
3434

3535
if (method === undefined && multipartContentTypePattern.test(contentType)) {

src/apps/states/expressPresenter/postState.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import patchStateWithService from './utils/patchStateWithService';
77
export default (config: Config) => {
88
return catchErrors(config, async (req: Request, res: Response): Promise<void> => {
99
const query = req.query;
10-
const method = query.method;
10+
const method = query.method as string | undefined;
1111

1212
if (method !== undefined) {
1313
return alternateStateRequest({ config, method, req, res });

yarn.lock

Lines changed: 829 additions & 771 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)