Skip to content

Commit 3ffe662

Browse files
authored
Merge pull request #137 from authzed/dependabot/npm_and_yarn/npm-1da29f1cb7
build(deps): bump the npm group across 1 directory with 6 updates
2 parents 04a3cc5 + 621c1b6 commit 3ffe662

6 files changed

Lines changed: 241 additions & 258 deletions

File tree

.eslintrc.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
2+
import globals from "globals";
3+
import tsParser from "@typescript-eslint/parser";
4+
import path from "node:path";
5+
import { fileURLToPath } from "node:url";
6+
import js from "@eslint/js";
7+
import { FlatCompat } from "@eslint/eslintrc";
8+
9+
const __filename = fileURLToPath(import.meta.url);
10+
const __dirname = path.dirname(__filename);
11+
const compat = new FlatCompat({
12+
baseDirectory: __dirname,
13+
recommendedConfig: js.configs.recommended,
14+
allConfig: js.configs.all
15+
});
16+
17+
export default [{
18+
ignores: ["src/authzedapi/**/*", "src/*.test.js"],
19+
}, ...compat.extends(
20+
"eslint:recommended",
21+
"plugin:@typescript-eslint/eslint-recommended",
22+
"plugin:@typescript-eslint/recommended",
23+
), {
24+
plugins: {
25+
"@typescript-eslint": typescriptEslint,
26+
},
27+
28+
languageOptions: {
29+
globals: {
30+
...globals.browser,
31+
...globals.commonjs,
32+
},
33+
34+
parser: tsParser,
35+
ecmaVersion: 12,
36+
sourceType: "script",
37+
},
38+
39+
rules: {},
40+
}];

package.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,23 @@
2727
"build-js-client": "tsc --target es2018 --declaration false --outDir js-dist"
2828
},
2929
"dependencies": {
30-
"@grpc/grpc-js": "^1.10.9",
30+
"@grpc/grpc-js": "^1.11.1",
3131
"@protobuf-ts/runtime": "^2.9.4",
3232
"@protobuf-ts/runtime-rpc": "^2.9.4",
33-
"google-protobuf": "^3.15.3"
33+
"google-protobuf": "^3.21.4"
3434
},
3535
"devDependencies": {
36+
"@eslint/eslintrc": "^3.1.0",
37+
"@eslint/js": "^9.7.0",
3638
"@protobuf-ts/plugin": "^2.9.4",
3739
"@types/jasmine": "^5.1.4",
3840
"@types/jest": "^29.5.12",
39-
"@typescript-eslint/eslint-plugin": "^5.62.0",
40-
"@typescript-eslint/parser": "^5.1.0",
41-
"eslint": "^8.57.0",
41+
"@typescript-eslint/eslint-plugin": "^7.16.1",
42+
"@typescript-eslint/parser": "^7.16.1",
43+
"eslint": "^9.7.0",
4244
"grpc-tools": "^1.11.2",
4345
"jasmine": "^5.1.0",
4446
"ts-node": "^10.9.2",
45-
"typescript": "^5.4"
47+
"typescript": "^5.5"
4648
}
4749
}

src/v1-promise.test.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ describe('Experimental Service', () => {
479479
client.close();
480480
});
481481

482-
it('can bulk import relationships', () => {
482+
it('can bulk import relationships', (done) => {
483483
const { promises: client } = NewClient(
484484
token,
485485
'localhost:50051',
@@ -488,14 +488,16 @@ describe('Experimental Service', () => {
488488

489489
const writeStream = client.bulkImportRelationships((err, value) => {
490490
if (err) {
491-
fail(err);
491+
done.fail(err);
492492
}
493493

494494
expect(value?.numLoaded).toEqual('2');
495+
client.close();
496+
done();
495497
});
496498

497499
writeStream.on('error', (e) => {
498-
fail(e);
500+
done.fail(e);
499501
});
500502

501503
const resource = ObjectReference.create({
@@ -530,7 +532,6 @@ describe('Experimental Service', () => {
530532
);
531533

532534
writeStream.end();
533-
client.close();
534535
});
535536

536537
it('can bulk export relationships', async () => {

src/v1.test.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ describe("Experimental Service", () => {
505505
});
506506
});
507507

508-
it("can bulk import relationships", () => {
508+
it("can bulk import relationships", (done) => {
509509
const client = NewClient(
510510
token,
511511
"localhost:50051",
@@ -514,14 +514,16 @@ describe("Experimental Service", () => {
514514

515515
const writeStream = client.bulkImportRelationships((err, value) => {
516516
if (err) {
517-
fail(err);
517+
done.fail(err);
518518
}
519519

520520
expect(value?.numLoaded).toEqual("2");
521+
client.close();
522+
done();
521523
});
522524

523525
writeStream.on("error", (e) => {
524-
fail(e);
526+
done.fail(e);
525527
});
526528

527529
const resource = ObjectReference.create({
@@ -557,7 +559,6 @@ describe("Experimental Service", () => {
557559
);
558560

559561
writeStream.end();
560-
client.close();
561562
});
562563

563564
it("can bulk export relationships", (done) => {

0 commit comments

Comments
 (0)