Skip to content

Commit

Permalink
chore: lint the remaining codes (#1693)
Browse files Browse the repository at this point in the history
  • Loading branch information
0fatal committed Nov 16, 2023
1 parent fcab606 commit 354de50
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions docs/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
public
5 changes: 2 additions & 3 deletions packages/node-modules-utils/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"extends": [
"laf/package"
]
"root": true,
"extends": "laf/package"
}
6 changes: 5 additions & 1 deletion runtimes/nodejs/src/handler/invoke.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ import {
FunctionDebugExecutor,
} from '../support/engine'
import pako from 'pako'
import { base64ToUint8Array, isObject, uint8ArrayToBase64 } from '../support/utils'
import {
base64ToUint8Array,
isObject,
uint8ArrayToBase64,
} from '../support/utils'

export async function handleInvokeFunction(req: IRequest, res: Response) {
const name = req.params?.name
Expand Down
2 changes: 1 addition & 1 deletion runtimes/nodejs/src/support/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,6 @@ export function base64ToUint8Array(base64: string) {
* @param obj
* @returns
*/
export function isObject(obj: unknown): obj is Object {
export function isObject(obj: unknown): obj is object {
return obj !== null && typeof obj === 'object'
}

0 comments on commit 354de50

Please sign in to comment.