diff --git a/src/__tests__/TuitioAuthentication.test.ts b/src/__tests__/TuitioAuthentication.test.ts index f648ecb..3e48ff4 100644 --- a/src/__tests__/TuitioAuthentication.test.ts +++ b/src/__tests__/TuitioAuthentication.test.ts @@ -2,6 +2,8 @@ * @jest-environment jsdom */ +// Copyright (c) 2023 Tudor Stanciu + import axios from "axios"; import { TuitioClient, fetch, invalidate } from "../client"; diff --git a/src/__tests__/TuitioClient.test.ts b/src/__tests__/TuitioClient.test.ts index f087720..378db08 100644 --- a/src/__tests__/TuitioClient.test.ts +++ b/src/__tests__/TuitioClient.test.ts @@ -1,3 +1,5 @@ +// Copyright (c) 2023 Tudor Stanciu + import { getUrlTemplates } from "../config"; import { TuitioClient } from "../client"; import type { TuitioAuthenticationResult, TuitioToken } from "../client"; diff --git a/src/__tests__/TuitioStorage.test.ts b/src/__tests__/TuitioStorage.test.ts index 0916c05..45904ad 100644 --- a/src/__tests__/TuitioStorage.test.ts +++ b/src/__tests__/TuitioStorage.test.ts @@ -2,6 +2,8 @@ * @jest-environment jsdom */ +// Copyright (c) 2023 Tudor Stanciu + import { fetch, invalidate } from "../client"; test("Tuitio empty storage", () => { diff --git a/src/__tests__/Utils.test.ts b/src/__tests__/Utils.test.ts index c347153..b5b9ca1 100644 --- a/src/__tests__/Utils.test.ts +++ b/src/__tests__/Utils.test.ts @@ -1,3 +1,5 @@ +// Copyright (c) 2023 Tudor Stanciu + import { combineUrls, isValidURL } from "../utils"; test("Combine urls with trailing slash", () => { diff --git a/src/client.ts b/src/client.ts index 35ba608..30a1960 100644 --- a/src/client.ts +++ b/src/client.ts @@ -1,3 +1,5 @@ +// Copyright (c) 2023 Tudor Stanciu + import axios from "axios"; import { localStorage } from "@flare/js-utils"; import { storageKeys } from "./constants"; diff --git a/src/config.ts b/src/config.ts index e4d7690..73070cc 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,3 +1,5 @@ +// Copyright (c) 2023 Tudor Stanciu + import { combineUrls } from "./utils"; type UrlTemplates = { diff --git a/src/constants.ts b/src/constants.ts index b4bf3da..d7ebcab 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1,3 +1,5 @@ +// Copyright (c) 2023 Tudor Stanciu + export const storageKeys: { TOKEN: string; USER: string } = { TOKEN: "TUITIO_AUTHORIZATION_TOKEN", USER: "TUITIO_USER_NAME" diff --git a/src/index.ts b/src/index.ts index b921618..c2b304e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,5 @@ +// Copyright (c) 2023 Tudor Stanciu + import { TuitioClient, invalidate, fetch } from "./client"; import type { TuitioToken, TuitioAuthenticationResult, TuitioState } from "./client"; diff --git a/src/utils.ts b/src/utils.ts index 1d2bef3..1828553 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,3 +1,5 @@ +// Copyright (c) 2023 Tudor Stanciu + const combineUrls = (piece1: string, piece2: string): string => { let baseElement = piece1; if (baseElement.endsWith("/")) baseElement = baseElement.substring(0, baseElement.length - 1);