Skip to content

Commit

Permalink
Merge pull request #137 from authzed/dependabot/npm_and_yarn/npm-1da2…
Browse files Browse the repository at this point in the history
…9f1cb7

build(deps): bump the npm group across 1 directory with 6 updates
  • Loading branch information
samkim authored Jul 17, 2024
2 parents 04a3cc5 + 621c1b6 commit 3ffe662
Show file tree
Hide file tree
Showing 6 changed files with 241 additions and 258 deletions.
19 changes: 0 additions & 19 deletions .eslintrc.js

This file was deleted.

40 changes: 40 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import globals from "globals";
import tsParser from "@typescript-eslint/parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [{
ignores: ["src/authzedapi/**/*", "src/*.test.js"],
}, ...compat.extends(
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
), {
plugins: {
"@typescript-eslint": typescriptEslint,
},

languageOptions: {
globals: {
...globals.browser,
...globals.commonjs,
},

parser: tsParser,
ecmaVersion: 12,
sourceType: "script",
},

rules: {},
}];
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,23 @@
"build-js-client": "tsc --target es2018 --declaration false --outDir js-dist"
},
"dependencies": {
"@grpc/grpc-js": "^1.10.9",
"@grpc/grpc-js": "^1.11.1",
"@protobuf-ts/runtime": "^2.9.4",
"@protobuf-ts/runtime-rpc": "^2.9.4",
"google-protobuf": "^3.15.3"
"google-protobuf": "^3.21.4"
},
"devDependencies": {
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.7.0",
"@protobuf-ts/plugin": "^2.9.4",
"@types/jasmine": "^5.1.4",
"@types/jest": "^29.5.12",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.1.0",
"eslint": "^8.57.0",
"@typescript-eslint/eslint-plugin": "^7.16.1",
"@typescript-eslint/parser": "^7.16.1",
"eslint": "^9.7.0",
"grpc-tools": "^1.11.2",
"jasmine": "^5.1.0",
"ts-node": "^10.9.2",
"typescript": "^5.4"
"typescript": "^5.5"
}
}
9 changes: 5 additions & 4 deletions src/v1-promise.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ describe('Experimental Service', () => {
client.close();
});

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

const writeStream = client.bulkImportRelationships((err, value) => {
if (err) {
fail(err);
done.fail(err);
}

expect(value?.numLoaded).toEqual('2');
client.close();
done();
});

writeStream.on('error', (e) => {
fail(e);
done.fail(e);
});

const resource = ObjectReference.create({
Expand Down Expand Up @@ -530,7 +532,6 @@ describe('Experimental Service', () => {
);

writeStream.end();
client.close();
});

it('can bulk export relationships', async () => {
Expand Down
9 changes: 5 additions & 4 deletions src/v1.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ describe("Experimental Service", () => {
});
});

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

const writeStream = client.bulkImportRelationships((err, value) => {
if (err) {
fail(err);
done.fail(err);
}

expect(value?.numLoaded).toEqual("2");
client.close();
done();
});

writeStream.on("error", (e) => {
fail(e);
done.fail(e);
});

const resource = ObjectReference.create({
Expand Down Expand Up @@ -557,7 +559,6 @@ describe("Experimental Service", () => {
);

writeStream.end();
client.close();
});

it("can bulk export relationships", (done) => {
Expand Down
Loading

0 comments on commit 3ffe662

Please sign in to comment.