@ticket-sales/passport 1.0.0 → 1.0.1

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,5 +1,5 @@
1
1
  import type { FactoryProvider, ModuleMetadata } from '@nestjs/common';
2
- import type { PassportOptions } from '@/interfaces/passport-options.interface';
2
+ import { PassportOptions } from './passport-options.interface';
3
3
  export interface PassportAsyncOptions extends Pick<ModuleMetadata, 'imports'> {
4
4
  useFactory: (...args: any[]) => Promise<PassportOptions> | PassportOptions;
5
5
  inject?: FactoryProvider['inject'];
@@ -1,5 +1,5 @@
1
1
  import { type DynamicModule } from '@nestjs/common';
2
- import type { PassportAsyncOptions, PassportOptions } from '@/interfaces';
2
+ import type { PassportAsyncOptions, PassportOptions } from './interfaces';
3
3
  export declare class PassportModule {
4
4
  static register(options: PassportOptions): DynamicModule;
5
5
  static registerAsync(options: PassportAsyncOptions): DynamicModule;
@@ -9,9 +9,9 @@ var PassportModule_1;
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.PassportModule = void 0;
11
11
  const common_1 = require("@nestjs/common");
12
- const constants_1 = require("@/constants");
13
- const passport_providers_1 = require("@/passport.providers");
14
- const passport_service_1 = require("@/passport.service");
12
+ const constants_1 = require("./constants");
13
+ const passport_providers_1 = require("./passport.providers");
14
+ const passport_service_1 = require("./passport.service");
15
15
  let PassportModule = PassportModule_1 = class PassportModule {
16
16
  static register(options) {
17
17
  const optionsProvider = (0, passport_providers_1.createPassportOptionsProvider)(options);
@@ -1,4 +1,4 @@
1
1
  import type { Provider } from '@nestjs/common';
2
- import type { PassportAsyncOptions, PassportOptions } from '@/interfaces';
2
+ import type { PassportAsyncOptions, PassportOptions } from './interfaces';
3
3
  export declare function createPassportOptionsProvider(options: PassportOptions): Provider;
4
4
  export declare function createPassportAsyncOptionsProvider(options: PassportAsyncOptions): Provider;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createPassportOptionsProvider = createPassportOptionsProvider;
4
4
  exports.createPassportAsyncOptionsProvider = createPassportAsyncOptionsProvider;
5
- const constants_1 = require("@/constants");
5
+ const constants_1 = require("./constants");
6
6
  function createPassportOptionsProvider(options) {
7
7
  return {
8
8
  provide: constants_1.PASSPORT_OPTIONS,
@@ -1,4 +1,4 @@
1
- import { PassportOptions } from '@/interfaces';
1
+ import { PassportOptions } from './interfaces';
2
2
  export declare class PassportService {
3
3
  private readonly options;
4
4
  private static readonly HMAC_DOMAIN;
@@ -16,8 +16,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.PassportService = void 0;
17
17
  const common_1 = require("@nestjs/common");
18
18
  const node_crypto_1 = require("node:crypto");
19
- const constants_1 = require("@/constants");
20
- const utils_1 = require("@/utils");
19
+ const constants_1 = require("./constants");
20
+ const utils_1 = require("./utils");
21
21
  let PassportService = class PassportService {
22
22
  static { PassportService_1 = this; }
23
23
  options;
package/package.json CHANGED
@@ -1,12 +1,18 @@
1
1
  {
2
2
  "name": "@ticket-sales/passport",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Lightweight Ticket Sales Service authentication library",
5
5
  "main": "./dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
+ "license": "ISC",
7
8
  "files": [
8
9
  "dist"
9
10
  ],
11
+ "author": {
12
+ "name": "Alexander Nayden",
13
+ "email": "alexander.nayden@gmail.com",
14
+ "url": "https://github.com/ticket-sales-service/passport"
15
+ },
10
16
  "scripts": {
11
17
  "build": "tsc -p tsconfig.build.json",
12
18
  "format": "prettier --write \"lib/**/*.ts\""
@@ -18,9 +24,7 @@
18
24
  "@ticket-sales/core": "^1.0.6",
19
25
  "@types/bun": "latest",
20
26
  "@types/node": "^25.0.3",
21
- "prettier": "^3.7.4"
22
- },
23
- "peerDependencies": {
27
+ "prettier": "^3.7.4",
24
28
  "typescript": "^5.9.3"
25
29
  },
26
30
  "dependencies": {