@logto/vue 2.0.2 → 2.1.0

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/README.md CHANGED
@@ -5,8 +5,6 @@
5
5
 
6
6
  The Logto Vue SDK written in TypeScript. Check out our [integration guide](https://docs.logto.io/docs/recipes/integrate-logto/vue) or [docs](https://docs.logto.io/sdk/JavaScript/vue/) for more information.
7
7
 
8
- We also provide [集成指南](https://docs.logto.io/zh-cn/docs/recipes/integrate-logto/vue/) and [文档](https://docs.logto.io/zh-cn/sdk/JavaScript/vue/) in Simplified Chinese.
9
-
10
8
  ## Installation
11
9
 
12
10
  ### Using npm
package/lib/index.cjs CHANGED
@@ -121,10 +121,18 @@ Object.defineProperty(exports, 'LogtoError', {
121
121
  enumerable: true,
122
122
  get: function () { return LogtoClient.LogtoError; }
123
123
  });
124
+ Object.defineProperty(exports, 'LogtoRequestError', {
125
+ enumerable: true,
126
+ get: function () { return LogtoClient.LogtoRequestError; }
127
+ });
124
128
  Object.defineProperty(exports, 'OidcError', {
125
129
  enumerable: true,
126
130
  get: function () { return LogtoClient.OidcError; }
127
131
  });
132
+ Object.defineProperty(exports, 'PersistKey', {
133
+ enumerable: true,
134
+ get: function () { return LogtoClient.PersistKey; }
135
+ });
128
136
  Object.defineProperty(exports, 'Prompt', {
129
137
  enumerable: true,
130
138
  get: function () { return LogtoClient.Prompt; }
@@ -137,6 +145,18 @@ Object.defineProperty(exports, 'UserScope', {
137
145
  enumerable: true,
138
146
  get: function () { return LogtoClient.UserScope; }
139
147
  });
148
+ Object.defineProperty(exports, 'buildOrganizationUrn', {
149
+ enumerable: true,
150
+ get: function () { return LogtoClient.buildOrganizationUrn; }
151
+ });
152
+ Object.defineProperty(exports, 'getOrganizationIdFromUrn', {
153
+ enumerable: true,
154
+ get: function () { return LogtoClient.getOrganizationIdFromUrn; }
155
+ });
156
+ Object.defineProperty(exports, 'organizationUrnPrefix', {
157
+ enumerable: true,
158
+ get: function () { return LogtoClient.organizationUrnPrefix; }
159
+ });
140
160
  exports.createLogto = createLogto;
141
161
  exports.useHandleSignInCallback = useHandleSignInCallback;
142
162
  exports.useLogto = useLogto;
package/lib/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { IdTokenClaims, LogtoConfig, UserInfoResponse } from '@logto/browser';
2
2
  import type { App, Ref } from 'vue';
3
3
  export type { LogtoConfig, IdTokenClaims, UserInfoResponse, LogtoErrorCode, LogtoClientErrorCode, InteractionMode, } from '@logto/browser';
4
- export { LogtoError, LogtoClientError, OidcError, Prompt, ReservedScope, UserScope, } from '@logto/browser';
4
+ export { LogtoError, LogtoRequestError, LogtoClientError, OidcError, Prompt, ReservedScope, UserScope, organizationUrnPrefix, buildOrganizationUrn, getOrganizationIdFromUrn, PersistKey, } from '@logto/browser';
5
5
  type LogtoVuePlugin = {
6
6
  install: (app: App, config: LogtoConfig) => void;
7
7
  };
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import LogtoClient from '@logto/browser';
2
- export { LogtoClientError, LogtoError, OidcError, Prompt, ReservedScope, UserScope } from '@logto/browser';
2
+ export { LogtoClientError, LogtoError, LogtoRequestError, OidcError, PersistKey, Prompt, ReservedScope, UserScope, buildOrganizationUrn, getOrganizationIdFromUrn, organizationUrnPrefix } from '@logto/browser';
3
3
  import { readonly, inject, watchEffect } from 'vue';
4
4
  import { contextInjectionKey, logtoInjectionKey } from './consts.js';
5
5
  import { createContext, throwContextError } from './context.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logto/vue",
3
- "version": "2.0.2",
3
+ "version": "2.1.0",
4
4
  "type": "module",
5
5
  "main": "./lib/index.cjs",
6
6
  "module": "./lib/index.js",
@@ -21,19 +21,19 @@
21
21
  "directory": "packages/vue"
22
22
  },
23
23
  "dependencies": {
24
- "@logto/browser": "^2.0.0"
24
+ "@logto/browser": "^2.2.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@silverhand/eslint-config": "^3.0.1",
28
- "@silverhand/ts-config": "^3.0.0",
27
+ "@silverhand/eslint-config": "^4.0.1",
28
+ "@silverhand/ts-config": "^4.0.0",
29
29
  "@swc/core": "^1.3.50",
30
30
  "@swc/jest": "^0.2.24",
31
31
  "@types/jest": "^29.5.0",
32
- "eslint": "^8.38.0",
32
+ "eslint": "^8.44.0",
33
33
  "jest": "^29.5.0",
34
- "lint-staged": "^13.0.0",
35
- "postcss": "^8.4.6",
36
- "prettier": "^2.8.7",
34
+ "lint-staged": "^15.0.0",
35
+ "postcss": "^8.4.31",
36
+ "prettier": "^3.0.0",
37
37
  "stylelint": "^15.0.0",
38
38
  "typescript": "^5.0.0",
39
39
  "vue": "^3.2.35"