@pubinfo-pr/module-auth 0.1.1 → 0.171.2

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/dist/context.d.ts CHANGED
@@ -1 +1,2 @@
1
- export declare const ctx: any;
1
+ import { InternalContext } from './interface';
2
+ export declare const ctx: import('unctx').UseContext<InternalContext>;
package/dist/helper.d.ts CHANGED
@@ -3,7 +3,7 @@ import { ProviderUserOptions, Recordable, ThirdParty } from './interface';
3
3
  * 获取指定的 `Provider`
4
4
  * @param id
5
5
  */
6
- export declare function getProvider(id?: ThirdParty): any;
6
+ export declare function getProvider(id?: ThirdParty): import('./interface').ProviderOptions;
7
7
  /**
8
8
  * 构建第三方授权登录地址
9
9
  * @param provider
package/dist/index.js CHANGED
@@ -145,7 +145,7 @@ function y(B) {
145
145
  providers: f
146
146
  } = B, { signIn: Q = "/login" } = g;
147
147
  return P.set({ baseURL: C, providers: f }), {
148
- name: "pubinfo:auth",
148
+ name: "pubinfo-pr:auth",
149
149
  enforce: "pre",
150
150
  setup(v) {
151
151
  const { router: D } = v, o = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pubinfo-pr/module-auth",
3
3
  "type": "module",
4
- "version": "0.1.1",
4
+ "version": "0.171.2",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
@@ -23,10 +23,10 @@
23
23
  "node": "^20.19.0 || >=22.12.0"
24
24
  },
25
25
  "peerDependencies": {
26
- "pubinfo-pr": "0.1.1"
26
+ "pubinfo-pr": "0.171.2"
27
27
  },
28
28
  "devDependencies": {
29
- "pubinfo-pr": "0.1.1"
29
+ "pubinfo-pr": "0.171.2"
30
30
  },
31
31
  "scripts": {
32
32
  "dev": "pubinfo build --watch",
package/src/index.ts CHANGED
@@ -18,7 +18,7 @@ export function auth(options: AuthOptions): ModuleOptions {
18
18
  ctx.set({ baseURL, providers });
19
19
 
20
20
  return {
21
- name: 'pubinfo:auth',
21
+ name: 'pubinfo-pr:auth',
22
22
  enforce: 'pre',
23
23
  setup(ctx) {
24
24
  const { router } = ctx;