@logto/vue 2.2.0 → 2.2.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.
Files changed (3) hide show
  1. package/README.md +10 -6
  2. package/lib/index.cjs +11 -11
  3. package/package.json +5 -5
package/README.md CHANGED
@@ -1,9 +1,12 @@
1
1
  # Logto Vue SDK
2
+
2
3
  [![Version](https://img.shields.io/npm/v/@logto/vue)](https://www.npmjs.com/package/@logto/vue)
3
4
  [![Build Status](https://github.com/logto-io/js/actions/workflows/main.yml/badge.svg)](https://github.com/logto-io/js/actions/workflows/main.yml)
4
5
  [![Codecov](https://img.shields.io/codecov/c/github/logto-io/js)](https://app.codecov.io/gh/logto-io/js?branch=master)
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
+ The Logto Vue SDK written in TypeScript.
8
+
9
+ Check out our [docs](https://docs.logto.io/sdk/vue/) for more information.
7
10
 
8
11
  ## Installation
9
12
 
@@ -27,16 +30,17 @@ pnpm add @logto/vue
27
30
 
28
31
  ## Get sample
29
32
 
30
- A sample Vue project with the integration of @logto/vue SDK can be found at [Vue Sample](https://github.com/logto-io/js/tree/master/packages/vue-sample). Check out the source code and try it with ease.
33
+ A sample Vue project with the integration of @logto/vue SDK can be found at [Vue Sample](https://github.com/logto-io/js/tree/master/packages/vue-sample).
34
+
35
+ Check out the source code and try it with ease.
31
36
 
32
37
  ```bash
33
- pnpm i && pnpm start
38
+ pnpm i && pnpm build
39
+ cd packages/vue-sample && pnpm start
34
40
  ```
35
41
 
36
- Note: Currently only supports Vue 3.x and its [composition API](https://vuejs.org/api/composition-api-setup.html#composition-api-setup). Please let us know if you would like Logto to support Vue 2.x or options API by filing a [feature request](https://github.com/logto-io/logto/issues/new?assignees=&labels=feature-request&template=feature_request.md&title=feature+request%3A+).
37
-
38
42
  ## Resources
39
43
 
40
44
  [![Website](https://img.shields.io/badge/website-logto.io-8262F8.svg)](https://logto.io/)
41
- [![Docs](https://img.shields.io/badge/docs-logto.io-green.svg)](https://docs.logto.io/sdk/JavaScript/vue/)
45
+ [![Docs](https://img.shields.io/badge/docs-logto.io-green.svg)](https://docs.logto.io/)
42
46
  [![Discord](https://img.shields.io/discord/965845662535147551?logo=discord&logoColor=ffffff&color=7389D8&cacheSeconds=600)](https://discord.gg/UEPaF3j5e6)
package/lib/index.cjs CHANGED
@@ -113,47 +113,47 @@ const useHandleSignInCallback = (callback) => {
113
113
  };
114
114
  };
115
115
 
116
- Object.defineProperty(exports, 'LogtoClientError', {
116
+ Object.defineProperty(exports, "LogtoClientError", {
117
117
  enumerable: true,
118
118
  get: function () { return LogtoClient.LogtoClientError; }
119
119
  });
120
- Object.defineProperty(exports, 'LogtoError', {
120
+ Object.defineProperty(exports, "LogtoError", {
121
121
  enumerable: true,
122
122
  get: function () { return LogtoClient.LogtoError; }
123
123
  });
124
- Object.defineProperty(exports, 'LogtoRequestError', {
124
+ Object.defineProperty(exports, "LogtoRequestError", {
125
125
  enumerable: true,
126
126
  get: function () { return LogtoClient.LogtoRequestError; }
127
127
  });
128
- Object.defineProperty(exports, 'OidcError', {
128
+ Object.defineProperty(exports, "OidcError", {
129
129
  enumerable: true,
130
130
  get: function () { return LogtoClient.OidcError; }
131
131
  });
132
- Object.defineProperty(exports, 'PersistKey', {
132
+ Object.defineProperty(exports, "PersistKey", {
133
133
  enumerable: true,
134
134
  get: function () { return LogtoClient.PersistKey; }
135
135
  });
136
- Object.defineProperty(exports, 'Prompt', {
136
+ Object.defineProperty(exports, "Prompt", {
137
137
  enumerable: true,
138
138
  get: function () { return LogtoClient.Prompt; }
139
139
  });
140
- Object.defineProperty(exports, 'ReservedScope', {
140
+ Object.defineProperty(exports, "ReservedScope", {
141
141
  enumerable: true,
142
142
  get: function () { return LogtoClient.ReservedScope; }
143
143
  });
144
- Object.defineProperty(exports, 'UserScope', {
144
+ Object.defineProperty(exports, "UserScope", {
145
145
  enumerable: true,
146
146
  get: function () { return LogtoClient.UserScope; }
147
147
  });
148
- Object.defineProperty(exports, 'buildOrganizationUrn', {
148
+ Object.defineProperty(exports, "buildOrganizationUrn", {
149
149
  enumerable: true,
150
150
  get: function () { return LogtoClient.buildOrganizationUrn; }
151
151
  });
152
- Object.defineProperty(exports, 'getOrganizationIdFromUrn', {
152
+ Object.defineProperty(exports, "getOrganizationIdFromUrn", {
153
153
  enumerable: true,
154
154
  get: function () { return LogtoClient.getOrganizationIdFromUrn; }
155
155
  });
156
- Object.defineProperty(exports, 'organizationUrnPrefix', {
156
+ Object.defineProperty(exports, "organizationUrnPrefix", {
157
157
  enumerable: true,
158
158
  get: function () { return LogtoClient.organizationUrnPrefix; }
159
159
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logto/vue",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "type": "module",
5
5
  "main": "./lib/index.cjs",
6
6
  "module": "./lib/index.js",
@@ -21,8 +21,8 @@
21
21
  "directory": "packages/vue"
22
22
  },
23
23
  "dependencies": {
24
- "@logto/browser": "^2.2.1",
25
- "@silverhand/essentials": "^2.6.2"
24
+ "@logto/browser": "^2.2.3",
25
+ "@silverhand/essentials": "^2.8.7"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@silverhand/eslint-config": "^5.0.0",
@@ -35,8 +35,8 @@
35
35
  "lint-staged": "^15.0.0",
36
36
  "postcss": "^8.4.31",
37
37
  "prettier": "^3.0.0",
38
- "stylelint": "^15.0.0",
39
- "typescript": "^5.0.0",
38
+ "stylelint": "^16.0.0",
39
+ "typescript": "^5.3.3",
40
40
  "vue": "^3.3.13"
41
41
  },
42
42
  "peerDependencies": {