Skip to content

Commit

Permalink
chore: release (#67)
Browse files Browse the repository at this point in the history
* fix: file import for facade module

* fix: disable strict nullchecks

* fix: typing error for strict null check
  • Loading branch information
Arun-KumarH authored Feb 27, 2024
1 parent 3cfa7e5 commit 5fc65b6
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 7 deletions.
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/dev/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"strictNullChecks": true,
"strictNullChecks": false,
"target": "ES2022"
},
"ts-node": {
Expand Down
1 change: 1 addition & 0 deletions packages/facade/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"array.prototype.flat": "^1.3.1",
"co": "^4.6.0",
"debug": "^4.3.4",
"es-dirname": "^0.1.0",
"federation-subscription-tools": "^0.2.1",
"graphql": "^16.6.0",
"graphql-upload": "^16.0.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/facade/src/modules/identity/oauth/oauth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import {
UserType
} from '@restorecommerce/rc-grpc-clients/dist/generated/io/restorecommerce/user.js';
import * as jose from 'jose';
import * as url from 'node:url';
import Router from 'koa-router';
import { koaBody as bodyParser } from 'koa-body';
import dirname from 'es-dirname';

const __dirname = path.dirname(url.fileURLToPath(import.meta.url));
const __dirname = dirname();

const upsertUserToken = async (ids: IdentitySrvGrpcClient, accountId: string | undefined): Promise<string> => {
const token = new jose.UnsecuredJWT({})
Expand Down
4 changes: 2 additions & 2 deletions packages/facade/src/modules/identity/oidc/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import fs from 'node:fs';
import { IdentityContext } from '../interfaces.js';
import hbs from 'handlebars';
import { type OIDCHbsTemplates } from './interfaces.js';
import * as url from 'node:url';
import dirname from 'es-dirname';

const __dirname = path.dirname(url.fileURLToPath(import.meta.url));
const __dirname = dirname();

export interface OIDCTemplateError {
key: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/facade/src/modules/master_data/grpc/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class ResourceSrvGrpcClient extends RestoreCommerceGrpcClient {
readonly tax: TaxServiceClient;
readonly tax_type: TaxTypeServiceClient;
readonly unit_code: UnitCodeServiceClient;
readonly command: any;
readonly command: any = undefined;

constructor(address: string, cfg: GrpcClientConfig) {
super(address, cfg);
Expand Down
3 changes: 2 additions & 1 deletion packages/facade/tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "./tsconfig-base.json",
"compilerOptions": {
"outDir": "./dist"
"outDir": "./dist",
"noImplicitAny": false
},
"include": ["./src/**/*.ts", "./src/**/*.d.ts"]
}

0 comments on commit 5fc65b6

Please sign in to comment.