Skip to content

Commit 2ef6c57

Browse files
dependabot[bot]rhamzehCopilot
authored
chore(deps-dev): bump the dependencies group across 1 directory with 3 updates (#411)
* chore(deps-dev): bump the dependencies group across 1 directory with 3 updates Bumps the dependencies group with 3 updates in the / directory: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node), [nock](https://github.com/nock/nock) and [typescript](https://github.com/microsoft/TypeScript). Updates `@types/node` from 25.6.0 to 25.6.1 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Updates `nock` from 14.0.14 to 14.0.15 - [Release notes](https://github.com/nock/nock/releases) - [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md) - [Commits](nock/nock@v14.0.14...v14.0.15) Updates `typescript` from 5.9.3 to 6.0.3 - [Release notes](https://github.com/microsoft/TypeScript/releases) - [Commits](microsoft/TypeScript@v5.9.3...v6.0.3) --- updated-dependencies: - dependency-name: "@types/node" dependency-version: 25.6.1 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: nock dependency-version: 14.0.15 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: typescript dependency-version: 6.0.3 dependency-type: direct:development update-type: version-update:semver-major dependency-group: dependencies ... Signed-off-by: dependabot[bot] <support@github.com> * chore: support typescript@6 * chore: fix typo in jest config Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Raghd Hamzeh <raghd.hamzeh@openfga.dev> Co-authored-by: Raghd Hamzeh <raghd.hamzeh@auth0.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 313ae1e commit 2ef6c57

12 files changed

Lines changed: 28 additions & 21 deletions

package-lock.json

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"jest": "30.3.0",
3939
"nock": "^14.0.14",
4040
"ts-jest": "29.4.9",
41-
"typescript": "^5.9.3"
41+
"typescript": "^6.0.3"
4242
},
4343
"files": [
4444
"CHANGELOG.md",

tests/apiExecutor.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as nock from "nock";
1+
import nock from "nock";
22

33
import {
44
OpenFgaClient,

tests/client.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as nock from "nock";
1+
import nock from "nock";
22
import { Readable } from "node:stream";
33

44
import {

tests/credentials.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as nock from "nock";
1+
import nock from "nock";
22
import * as jose from "jose";
33
import { Credentials, CredentialsMethod, DEFAULT_TOKEN_ENDPOINT_PATH } from "../credentials";
44
import { AuthCredentialsConfig } from "../credentials/types";

tests/headers.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as nock from "nock";
1+
import nock from "nock";
22
import { OpenFgaClient, UserClientConfigurationParams } from "../index";
33
import { baseConfig } from "./helpers/default-config";
44
import { CredentialsMethod } from "../credentials";
@@ -30,7 +30,7 @@ describe("Header Functionality Tests", () => {
3030

3131
const scope = nock(testConfig.apiUrl!)
3232
.post(`/stores/${testConfig.storeId}/check`)
33-
.reply(function() {
33+
.reply(function(this: nock.ReplyFnContext) {
3434
// Verify all default headers are present
3535
expect(this.req.headers["x-default-header"]).toBe("default-value");
3636
expect(this.req.headers["x-client-id"]).toBe("test-client-123");

tests/helpers/nocks.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import type * as Nock from "nock";
1+
import type nock from "nock";
2+
type Nock = typeof nock;
23

34
import { Readable } from "node:stream";
45

@@ -29,7 +30,7 @@ import {
2930
} from "../../index";
3031
import { defaultConfiguration } from "./default-config";
3132

32-
export const getNocks = ((nock: typeof Nock) => ({
33+
export const getNocks = ((nock: Nock) => ({
3334
tokenExchange: (
3435
apiTokenIssuer: string,
3536
accessToken = "test-token",

tests/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as nock from "nock";
1+
import nock from "nock";
22

33
import {
44
CheckResponse,

tests/jest.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ module.exports = {
22
preset: "ts-jest",
33
rootDir: "../",
44
testEnvironment: "node",
5+
transform: {
6+
"^.+\\.ts$": ["ts-jest", { tsconfig: "tests/tsconfig.spec.json" }],
7+
},
58
moduleFileExtensions: ["js", "d.ts", "ts", "json"],
69
setupFilesAfterEnv: ["./tests/setup.ts"],
710
collectCoverage: true,
@@ -10,6 +13,7 @@ module.exports = {
1013
"**/**.{ts,tsx,js,jsx}",
1114
"!**/**.d.ts",
1215
"!**/**.eslintrc.js",
16+
"!eslint.config.*",
1317
"!**/coverage/**",
1418
"!**/dist/**",
1519
"!**/example/**",

tests/setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as nock from "nock";
1+
import nock from "nock";
22

33
beforeEach(() => {
44
nock.disableNetConnect();

0 commit comments

Comments
 (0)