@tsed/passport 6.102.7 → 6.102.8-rc.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.
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -1,8 +1,8 @@
1
1
  import { __decorate, __metadata } from "tslib";
2
2
  import { Constant, Inject, Module, PlatformApplication, ProviderScope, Logger } from "@tsed/common";
3
3
  import Passport from "passport";
4
- import { PassportSerializerService } from "./services/PassportSerializerService";
5
- import { ProtocolsService } from "./services/ProtocolsService";
4
+ import { PassportSerializerService } from "./services/PassportSerializerService.js";
5
+ import { ProtocolsService } from "./services/ProtocolsService.js";
6
6
  /**
7
7
  * @ignore
8
8
  */
@@ -1,5 +1,5 @@
1
1
  import { UseAuth } from "@tsed/common";
2
- import { PassportMiddleware } from "../middlewares/PassportMiddleware";
2
+ import { PassportMiddleware } from "../middlewares/PassportMiddleware.js";
3
3
  export function Authenticate(protocol = "*", options = {}) {
4
4
  return UseAuth(PassportMiddleware, {
5
5
  protocol,
@@ -1,5 +1,5 @@
1
1
  import { UseAuth } from "@tsed/common";
2
- import { PassportMiddleware } from "../middlewares/PassportMiddleware";
2
+ import { PassportMiddleware } from "../middlewares/PassportMiddleware.js";
3
3
  export function Authorize(protocol = "*", options = {}) {
4
4
  return UseAuth(PassportMiddleware, {
5
5
  protocol,
@@ -1,6 +1,6 @@
1
1
  import { StoreSet, useDecorators } from "@tsed/core";
2
2
  import { Configuration, Injectable } from "@tsed/di";
3
- import { PROVIDER_TYPE_PROTOCOL } from "../contants";
3
+ import { PROVIDER_TYPE_PROTOCOL } from "../contants.js";
4
4
  /**
5
5
  * Declare a new Protocol base on a Passport Strategy
6
6
  *
package/lib/esm/index.js CHANGED
@@ -1,17 +1,17 @@
1
- import "./PassportModule";
1
+ import "./PassportModule.js";
2
2
  // Decorator
3
- export * from "./decorators/authenticate";
4
- export * from "./decorators/authorize";
5
- export * from "./decorators/protocol";
6
- export * from "./decorators/args";
3
+ export * from "./decorators/authenticate.js";
4
+ export * from "./decorators/authorize.js";
5
+ export * from "./decorators/protocol.js";
6
+ export * from "./decorators/args.js";
7
7
  // Interfaces
8
- export * from "./interfaces";
9
- export * from "./domain/UserInfo";
10
- export * from "./errors/PassportException";
8
+ export * from "./interfaces.js";
9
+ export * from "./domain/UserInfo.js";
10
+ export * from "./errors/PassportException.js";
11
11
  // Registries and Services
12
- export * from "./contants";
13
- export * from "./services/ProtocolsService";
14
- export * from "./services/PassportSerializerService";
12
+ export * from "./contants.js";
13
+ export * from "./services/ProtocolsService.js";
14
+ export * from "./services/PassportSerializerService.js";
15
15
  // Middlewares
16
- export * from "./middlewares/PassportMiddleware";
16
+ export * from "./middlewares/PassportMiddleware.js";
17
17
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
- export * from "./ProtocolOptions";
2
- export * from "./ProtocolMethods";
3
- export * from "./OnInstall";
4
- export * from "./OnVerify";
5
- export * from "./BeforeInstall";
1
+ export * from "./ProtocolOptions.js";
2
+ export * from "./ProtocolMethods.js";
3
+ export * from "./OnInstall.js";
4
+ export * from "./OnVerify.js";
5
+ export * from "./BeforeInstall.js";
6
6
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,8 @@
1
1
  var PassportMiddleware_1;
2
2
  import { __decorate, __metadata, __param } from "tslib";
3
3
  import { Context, Inject, Middleware } from "@tsed/common";
4
- import { ProtocolsService } from "../services/ProtocolsService";
5
- import { getProtocolsFromRequest } from "../utils/getProtocolsFromRequest";
4
+ import { ProtocolsService } from "../services/ProtocolsService.js";
5
+ import { getProtocolsFromRequest } from "../utils/getProtocolsFromRequest.js";
6
6
  let PassportMiddleware = PassportMiddleware_1 = class PassportMiddleware {
7
7
  shouldSkip(ctx) {
8
8
  const request = ctx.getRequest();
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -1,7 +1,7 @@
1
1
  import { __decorate, __metadata } from "tslib";
2
2
  import { Constant, Service } from "@tsed/di";
3
3
  import { deserialize, serialize } from "@tsed/json-mapper";
4
- import { UserInfo } from "../domain/UserInfo";
4
+ import { UserInfo } from "../domain/UserInfo.js";
5
5
  /**
6
6
  * @ignore
7
7
  */
@@ -4,8 +4,8 @@ import { ancestorsOf } from "@tsed/core";
4
4
  import { Injectable, InjectorService } from "@tsed/di";
5
5
  import { Unauthorized } from "@tsed/exceptions";
6
6
  import Passport, { Strategy } from "passport";
7
- import { PassportException } from "../errors/PassportException";
8
- import { PROVIDER_TYPE_PROTOCOL } from "../contants";
7
+ import { PassportException } from "../errors/PassportException.js";
8
+ import { PROVIDER_TYPE_PROTOCOL } from "../contants.js";
9
9
  import { promisify } from "util";
10
10
  /**
11
11
  * @ignore
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@tsed/passport",
3
- "version": "6.102.7",
3
+ "version": "6.102.8-rc.1",
4
4
  "description": "Passport package for Ts.ED framework",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./lib/cjs/index.js",
7
+ "module": "./lib/esm/index.js",
7
8
  "typings": "./lib/types/index.d.ts",
8
9
  "exports": {
9
10
  "types": "./lib/types/index.d.ts",
@@ -22,9 +23,9 @@
22
23
  "tslib": "2.2.0"
23
24
  },
24
25
  "devDependencies": {
25
- "@tsed/common": "6.102.7",
26
- "@tsed/core": "6.102.7",
27
- "@tsed/di": "6.102.7",
26
+ "@tsed/common": "6.102.8-rc.1",
27
+ "@tsed/core": "6.102.8-rc.1",
28
+ "@tsed/di": "6.102.8-rc.1",
28
29
  "@types/passport": "1.0.4",
29
30
  "@types/passport-http": "0.3.8",
30
31
  "@types/passport-local": "1.0.34",
@@ -35,19 +36,19 @@
35
36
  "passport-strategy": "1.0.0"
36
37
  },
37
38
  "peerDependencies": {
38
- "@tsed/common": "^6.102.7",
39
- "@tsed/core": "^6.102.7",
40
- "@tsed/di": "^6.102.7",
41
- "@tsed/json-mapper": "^6.102.7",
39
+ "@tsed/common": "^6.102.8-rc.1",
40
+ "@tsed/core": "^6.102.8-rc.1",
41
+ "@tsed/di": "^6.102.8-rc.1",
42
+ "@tsed/json-mapper": "^6.102.8-rc.1",
42
43
  "@tsed/logger": ">=6.0.2",
43
- "@tsed/schema": "^6.102.7",
44
+ "@tsed/schema": "^6.102.8-rc.1",
44
45
  "passport": ">=0.4.1"
45
46
  },
46
47
  "repository": "https://github.com/tsedio/tsed",
47
48
  "bugs": {
48
49
  "url": "https://github.com/tsedio/tsed/issues"
49
50
  },
50
- "homepage": "https://github.com/tsedio/tsed/tree/production/packages/security/passport",
51
+ "homepage": "https://github.com/tsedio/tsed/tree/rc/packages/security/passport",
51
52
  "author": "Romain Lenzotti",
52
53
  "license": "MIT"
53
54
  }