@gneiss/client-auth 1.0.7 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- import { AuthGneissCoreConfig } from "@core/types";
2
- import { Tokens } from "@core/types";
3
- import { AuthGneissGeneralConfig } from "@/config";
1
+ import { AuthGneissCoreConfig } from "./types";
2
+ import { Tokens } from "./types";
3
+ import { AuthGneissGeneralConfig } from "../config";
4
4
  /**
5
5
  * AuthGneissCore provides core functionality for OAuth2 authentication flow with Gneiss authentication service.
6
6
  * It handles token exchange, token refresh, user data fetching, and token validation.
@@ -1,4 +1,4 @@
1
- import { AuthGneissCore, AuthGneissCoreConfig } from "@core";
1
+ import { AuthGneissCore, AuthGneissCoreConfig } from "../../../core";
2
2
  import { Request, Response, NextFunction } from "express";
3
3
  /**
4
4
  * ExpressAuthGneissClient extends AuthGneissCore to provide Express-specific authentication middleware
@@ -1,5 +1,5 @@
1
1
  export { ExpressAuthGneissClient } from "./frameworks";
2
2
  export { AuthGneissCore } from "./core";
3
- export { parseCookies } from "@utils";
3
+ export { parseCookies } from "./utils";
4
4
  export type { AuthGneissCoreConfig } from "./core";
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,2 @@
1
- export { setAccessToken, setRefreshToken, parseCookies } from "@utils/storage/cookieHandling";
1
+ export { setAccessToken, setRefreshToken, parseCookies } from "./storage/cookieHandling";
2
2
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@gneiss/client-auth",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/src/index.d.ts",
7
- "type": "module",
7
+ "type": "commonjs",
8
8
  "exports": {
9
9
  ".": {
10
10
  "types": "./dist/types/src/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  }
14
14
  },
15
15
  "scripts": {
16
- "build": "node build.js && tsc --emitDeclarationOnly --outDir dist/types && npm run install-to-examples",
16
+ "build": "node build.js && tsc --emitDeclarationOnly --outDir dist/types && npm run install-to-examples && tsc-alias -p tsconfig.json",
17
17
  "install-to-examples": "npm uninstall @gneiss/client-auth --prefix ./examples && npm install . --prefix ./examples",
18
18
  "build:watch": "node build.js --watch",
19
19
  "test": "jest",
@@ -31,6 +31,7 @@
31
31
  "@types/supertest": "^6.0.2",
32
32
  "jest": "^29.7.0",
33
33
  "ts-jest": "^29.2.5",
34
+ "tsc-alias": "^1.8.16",
34
35
  "typescript": "^5.6.3"
35
36
  },
36
37
  "dependencies": {