@logto/capacitor 1.0.0 → 1.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/lib/index.cjs +48 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/package.json +3 -3
package/lib/index.cjs
CHANGED
|
@@ -152,4 +152,52 @@ class CapacitorLogtoClient extends LogtoBaseClient__default.default {
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
+
Object.defineProperty(exports, 'LogtoClientError', {
|
|
156
|
+
enumerable: true,
|
|
157
|
+
get: function () { return LogtoBaseClient.LogtoClientError; }
|
|
158
|
+
});
|
|
159
|
+
Object.defineProperty(exports, 'LogtoError', {
|
|
160
|
+
enumerable: true,
|
|
161
|
+
get: function () { return LogtoBaseClient.LogtoError; }
|
|
162
|
+
});
|
|
163
|
+
Object.defineProperty(exports, 'LogtoRequestError', {
|
|
164
|
+
enumerable: true,
|
|
165
|
+
get: function () { return LogtoBaseClient.LogtoRequestError; }
|
|
166
|
+
});
|
|
167
|
+
Object.defineProperty(exports, 'OidcError', {
|
|
168
|
+
enumerable: true,
|
|
169
|
+
get: function () { return LogtoBaseClient.OidcError; }
|
|
170
|
+
});
|
|
171
|
+
Object.defineProperty(exports, 'PersistKey', {
|
|
172
|
+
enumerable: true,
|
|
173
|
+
get: function () { return LogtoBaseClient.PersistKey; }
|
|
174
|
+
});
|
|
175
|
+
Object.defineProperty(exports, 'Prompt', {
|
|
176
|
+
enumerable: true,
|
|
177
|
+
get: function () { return LogtoBaseClient.Prompt; }
|
|
178
|
+
});
|
|
179
|
+
Object.defineProperty(exports, 'ReservedResource', {
|
|
180
|
+
enumerable: true,
|
|
181
|
+
get: function () { return LogtoBaseClient.ReservedResource; }
|
|
182
|
+
});
|
|
183
|
+
Object.defineProperty(exports, 'ReservedScope', {
|
|
184
|
+
enumerable: true,
|
|
185
|
+
get: function () { return LogtoBaseClient.ReservedScope; }
|
|
186
|
+
});
|
|
187
|
+
Object.defineProperty(exports, 'UserScope', {
|
|
188
|
+
enumerable: true,
|
|
189
|
+
get: function () { return LogtoBaseClient.UserScope; }
|
|
190
|
+
});
|
|
191
|
+
Object.defineProperty(exports, 'buildOrganizationUrn', {
|
|
192
|
+
enumerable: true,
|
|
193
|
+
get: function () { return LogtoBaseClient.buildOrganizationUrn; }
|
|
194
|
+
});
|
|
195
|
+
Object.defineProperty(exports, 'getOrganizationIdFromUrn', {
|
|
196
|
+
enumerable: true,
|
|
197
|
+
get: function () { return LogtoBaseClient.getOrganizationIdFromUrn; }
|
|
198
|
+
});
|
|
199
|
+
Object.defineProperty(exports, 'organizationUrnPrefix', {
|
|
200
|
+
enumerable: true,
|
|
201
|
+
get: function () { return LogtoBaseClient.organizationUrnPrefix; }
|
|
202
|
+
});
|
|
155
203
|
exports.default = CapacitorLogtoClient;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type OpenOptions } from '@capacitor/browser';
|
|
2
2
|
import LogtoBaseClient, { type InteractionMode, type LogtoConfig } from '@logto/browser';
|
|
3
|
+
export { LogtoError, LogtoRequestError, LogtoClientError, OidcError, Prompt, ReservedScope, ReservedResource, UserScope, organizationUrnPrefix, buildOrganizationUrn, getOrganizationIdFromUrn, PersistKey, } from '@logto/browser';
|
|
3
4
|
export type CapacitorConfig = {
|
|
4
5
|
/**
|
|
5
6
|
* The options to pass to the `open` method of the Capacitor Browser plugin.
|
package/lib/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import { App } from '@capacitor/app';
|
|
|
2
2
|
import { Browser } from '@capacitor/browser';
|
|
3
3
|
import { Preferences } from '@capacitor/preferences';
|
|
4
4
|
import LogtoBaseClient, { LogtoClientError } from '@logto/browser';
|
|
5
|
+
export { LogtoClientError, LogtoError, LogtoRequestError, OidcError, PersistKey, Prompt, ReservedResource, ReservedScope, UserScope, buildOrganizationUrn, getOrganizationIdFromUrn, organizationUrnPrefix } from '@logto/browser';
|
|
5
6
|
|
|
6
7
|
class CapacitorLogtoClient extends LogtoBaseClient {
|
|
7
8
|
constructor(config, capacitorConfig = {}) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logto/capacitor",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./lib/index.cjs",
|
|
6
6
|
"module": "./lib/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"directory": "packages/capacitor"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@logto/browser": "^2.
|
|
24
|
+
"@logto/browser": "^2.2.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@capacitor/app": "^5.0.6",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"jest": "^29.5.0",
|
|
37
37
|
"jest-environment-jsdom": "^29.5.0",
|
|
38
38
|
"jest-matcher-specific-error": "^1.0.0",
|
|
39
|
-
"lint-staged": "^
|
|
39
|
+
"lint-staged": "^15.0.0",
|
|
40
40
|
"prettier": "^3.0.0",
|
|
41
41
|
"text-encoder": "^0.0.4",
|
|
42
42
|
"typescript": "^5.0.0"
|