alp-node-auth 6.1.0 → 6.1.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [6.1.1](https://github.com/christophehurpeau/alp/compare/alp-node-auth@6.1.0...alp-node-auth@6.1.1) (2022-10-19)
7
+
8
+ **Note:** Version bump only for package alp-node-auth
9
+
10
+
11
+
12
+
13
+
6
14
  # [6.1.0](https://github.com/christophehurpeau/alp/compare/alp-node-auth@6.0.8...alp-node-auth@6.1.0) (2022-10-16)
7
15
 
8
16
 
package/README.md CHANGED
@@ -8,6 +8,9 @@
8
8
 
9
9
  <p align="center">
10
10
  <a href="https://npmjs.org/package/alp-node-auth"><img src="https://img.shields.io/npm/v/alp-node-auth.svg?style=flat-square"></a>
11
+ <a href="https://npmjs.org/package/alp-node-auth"><img src="https://img.shields.io/npm/dw/alp-node-auth.svg?style=flat-square"></a>
12
+ <a href="https://npmjs.org/package/alp-node-auth"><img src="https://img.shields.io/node/v/alp-node-auth.svg?style=flat-square"></a>
13
+ <a href="https://npmjs.org/package/alp-node-auth"><img src="https://img.shields.io/npm/types/alp-node-auth.svg?style=flat-square"></a>
11
14
  </p>
12
15
 
13
16
  ## Install
@@ -2,5 +2,5 @@ import type { NodeApplication } from 'alp-types';
2
2
  import type { Option } from 'cookies';
3
3
  import type { User } from '../types.d';
4
4
  import type MongoUsersManager from './MongoUsersManager';
5
- export declare const authSocketIO: <U extends User = User>(app: NodeApplication, usersManager: MongoUsersManager<U, import("../types.d").UserSanitized>, io: any, options?: Pick<Option, "keys"> | undefined) => void;
5
+ export declare const authSocketIO: <U extends User = User>(app: NodeApplication, usersManager: MongoUsersManager<U, import("../types.d").UserSanitized>, io: any, options?: Pick<Option, Exclude<keyof Option, 'secure'>>) => void;
6
6
  //# sourceMappingURL=authSocketIO.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"authSocketIO.d.ts","sourceRoot":"","sources":["../src/authSocketIO.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,iBAAiB,MAAM,qBAAqB,CAAC;AAMzD,eAAO,MAAM,YAAY,+BAClB,eAAe,8EAGhB,GAAG,iDAEN,IAgCF,CAAC"}
1
+ {"version":3,"file":"authSocketIO.d.ts","sourceRoot":"","sources":["../src/authSocketIO.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,iBAAiB,MAAM,qBAAqB,CAAC;AAMzD,eAAO,MAAM,YAAY,+BAClB,eAAe,8EAGhB,GAAG,YACG,KAAK,MAAM,EAAE,QAAQ,MAAM,MAAM,EAAE,QAAQ,CAAC,CAAC,KACtD,IAgCF,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { IncomingMessage } from 'http';
2
2
  import type { Option } from 'cookies';
3
3
  export declare const COOKIE_NAME = "connectedUser";
4
- export declare const getTokenFromRequest: (req: IncomingMessage, options?: Pick<Option, "keys"> | undefined) => string | undefined;
4
+ export declare const getTokenFromRequest: (req: IncomingMessage, options?: Pick<Option, Exclude<keyof Option, 'secure'>>) => string | undefined;
5
5
  //# sourceMappingURL=cookies.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cookies.d.ts","sourceRoot":"","sources":["../../src/utils/cookies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAC5C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAGtC,eAAO,MAAM,WAAW,kBAAkB,CAAC;AAE3C,eAAO,MAAM,mBAAmB,QACzB,eAAe,iDAEnB,MAAM,GAAG,SAQX,CAAC"}
1
+ {"version":3,"file":"cookies.d.ts","sourceRoot":"","sources":["../../src/utils/cookies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAC5C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAGtC,eAAO,MAAM,WAAW,kBAAkB,CAAC;AAE3C,eAAO,MAAM,mBAAmB,QACzB,eAAe,YACV,KAAK,MAAM,EAAE,QAAQ,MAAM,MAAM,EAAE,QAAQ,CAAC,CAAC,KACtD,MAAM,GAAG,SAQX,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alp-node-auth",
3
- "version": "6.1.0",
3
+ "version": "6.1.1",
4
4
  "description": "authentication with alp",
5
5
  "keywords": [
6
6
  "alp"
@@ -46,16 +46,12 @@
46
46
  "build": "yarn clean:build && rollup --config rollup.config.mjs && yarn run build:definitions",
47
47
  "build:definitions": "tsc -p tsconfig.build.json",
48
48
  "clean": "yarn clean:build",
49
- "clean:build": "rm -Rf dist",
49
+ "clean:build": "pob-babel-clean-out dist",
50
50
  "lint": "yarn run lint:eslint",
51
51
  "lint:eslint": "cd ../.. && yarn run eslint --report-unused-disable-directives --resolve-plugins-relative-to . --quiet packages/alp-node-auth",
52
52
  "watch": "yarn clean:build && rollup --config rollup.config.mjs --watch"
53
53
  },
54
- "prettier": {
55
- "trailingComma": "all",
56
- "singleQuote": true,
57
- "arrowParens": "always"
58
- },
54
+ "prettier": "@pob/root/prettier-config",
59
55
  "pob": {
60
56
  "babelEnvs": [
61
57
  {
@@ -95,14 +91,14 @@
95
91
  "simple-oauth2": "^2.2.1"
96
92
  },
97
93
  "devDependencies": {
98
- "@babel/core": "7.17.10",
99
- "alp-node": "4.2.0",
100
- "alp-router": "5.2.0",
94
+ "@babel/core": "7.19.3",
95
+ "alp-node": "4.2.1",
96
+ "alp-router": "5.2.1",
101
97
  "liwi-mongo": "9.1.0",
102
98
  "pob-babel": "34.2.0",
103
99
  "react": "18.1.0",
104
100
  "router-segments": "5.0.0",
105
- "typescript": "4.6.2"
101
+ "typescript": "4.8.4"
106
102
  },
107
- "gitHead": "de936d28d0779f271849b412d8a40ade84f22012"
103
+ "gitHead": "37573847487da0689917f2667f5c810f0136eab7"
108
104
  }
@@ -7,7 +7,8 @@
7
7
  "plugins": ["@typescript-eslint"],
8
8
  "extends": [
9
9
  "@pob/eslint-config-typescript",
10
- "@pob/eslint-config-typescript/node"
10
+ "@pob/eslint-config-typescript/node",
11
+ "@pob/eslint-config-typescript-react"
11
12
  ],
12
13
  "ignorePatterns": ["*.d.ts"],
13
14
  "rules": {
@@ -18,7 +19,7 @@
18
19
  },
19
20
  "overrides": [
20
21
  {
21
- "files": ["**/*.test.ts", "__tests__/**/*.ts"],
22
+ "files": ["**/*.test.{ts,tsx}", "__tests__/**/*.{ts,tsx}"],
22
23
  "extends": ["@pob/eslint-config-typescript/test"],
23
24
  "env": {
24
25
  "jest": true
package/rollup.config.mjs DELETED
@@ -1,5 +0,0 @@
1
- import createRollupConfig from 'pob-babel/createRollupConfig.js';
2
-
3
- export default createRollupConfig({
4
- cwd: new URL('.', import.meta.url).pathname,
5
- });
@@ -1,7 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
-
4
- "compilerOptions": {
5
- "noEmit": true
6
- }
7
- }