Skip to content

Commit 5b27a05

Browse files
committed
pangea-node-sdk: fix lint errors
1 parent 5131d36 commit 5b27a05

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/pangea-node-sdk/biome.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
"noShadow": "off",
2222
"useNumericSeparators": "off"
2323
},
24+
"performance": {
25+
"noNamespaceImport": "off"
26+
},
2427
"style": {
2528
"noEnum": "off",
2629
"noInferrableTypes": "off",

packages/pangea-node-sdk/src/request.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class PangeaRequest {
118118
data: Request,
119119
options: PostOptions = {}
120120
): Promise<PangeaResponse<R> | R> {
121-
options = Object.assign({ pangeaResponse: true }, options);
121+
options = { pangeaResponse: true, ...options };
122122

123123
const url = this.getUrl(endpoint);
124124
this.checkConfigID(data);
@@ -512,10 +512,7 @@ class PangeaRequest {
512512
pangeaResponse?: boolean;
513513
}
514514
): Promise<PangeaResponse<T> | T> {
515-
options = Object.assign(
516-
{ checkResponse: true, pangeaResponse: true },
517-
options
518-
);
515+
options = { checkResponse: true, pangeaResponse: true, ...options };
519516

520517
const url = this.getUrl(endpoint);
521518
const response = await this.httpRequest(url, {

packages/pangea-node-sdk/src/services/management.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export class ManagementService {
6767
): Promise<PangeaResponse<Management.Organization>> {
6868
return await this.console.request.post("v1beta/platform/org/update", {
6969
id: orgId,
70-
name: name,
70+
name,
7171
} as object);
7272
}
7373

0 commit comments

Comments
 (0)