@studiocms/github 0.1.1 → 0.3.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/dist/effect/github.d.ts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -2
- package/package.json +6 -6
package/dist/effect/github.d.ts
CHANGED
|
@@ -45,11 +45,11 @@ declare const GitHubUser_base: Schema.Class<GitHubUser, {
|
|
|
45
45
|
export declare class GitHubUser extends GitHubUser_base {
|
|
46
46
|
}
|
|
47
47
|
declare const GitHubOAuthAPI_base: Effect.Service.Class<GitHubOAuthAPI, "GitHubOAuthAPI", {
|
|
48
|
-
readonly dependencies: readonly [import("effect/Layer").Layer<import("studiocms/lib/auth/verify-email").VerifyEmail, import("studiocms/sdk/base").DBClientInitializationError | import("studiocms/sdk/base").SDKInitializationError | import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("effect/Cause").UnknownException | import("
|
|
48
|
+
readonly dependencies: readonly [import("effect/Layer").Layer<import("studiocms/lib/auth/verify-email").VerifyEmail, import("effect/ConfigError").ConfigError | import("studiocms/sdk/base").DBClientInitializationError | import("studiocms/sdk/base").SDKInitializationError | import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("effect/Cause").UnknownException | import("@withstudiocms/effect/smtp").SMTPError, never>, import("effect/Layer").Layer<Platform.HttpClient.HttpClient, never, never>];
|
|
49
49
|
readonly effect: Effect.Effect<{
|
|
50
50
|
initSession: (context: APIContext) => Effect.Effect<Response, import("effect/ConfigError").ConfigError | import("@withstudiocms/auth-kit/errors").SessionError, never>;
|
|
51
|
-
initCallback: (context: APIContext) => Effect.Effect<Response,
|
|
52
|
-
}, import("
|
|
51
|
+
initCallback: (context: APIContext) => Effect.Effect<Response, import("effect/ConfigError").ConfigError | import("@withstudiocms/auth-kit/errors").SessionError, never>;
|
|
52
|
+
}, import("effect/ConfigError").ConfigError | import("studiocms/sdk/base").DBClientInitializationError | import("studiocms/sdk/base").SDKInitializationError | import("@withstudiocms/auth-kit/errors").SessionError | import("@withstudiocms/auth-kit/errors").UserError, import("studiocms/lib/auth/verify-email").VerifyEmail | Platform.HttpClient.HttpClient>;
|
|
53
53
|
}>;
|
|
54
54
|
/**
|
|
55
55
|
* Provides GitHub OAuth authentication effects for the StudioCMS API.
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* loaded when a user imports the StudioCMS plugin in their Astro configuration file. These
|
|
4
4
|
* directives must be first at the top of the file and can only be preceded by this comment.
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
6
|
+
import type { StudioCMSPluginDef } from 'studiocms/schemas';
|
|
7
7
|
/**
|
|
8
8
|
* Creates and returns the StudioCMS GitHub plugin configuration.
|
|
9
9
|
*
|
|
@@ -11,11 +11,11 @@ import { type StudioCMSPlugin } from 'studiocms/plugins';
|
|
|
11
11
|
* It sets up the necessary authentication service, including the provider's name,
|
|
12
12
|
* endpoint path, required environment variables, and SVG logo.
|
|
13
13
|
*
|
|
14
|
-
* @returns {
|
|
14
|
+
* @returns {StudioCMSPluginDef} The configured StudioCMS GitHub plugin.
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
17
|
* import { studiocmsGithub } from '@studiocms/github';
|
|
18
18
|
* const githubPlugin = studiocmsGithub();
|
|
19
19
|
*/
|
|
20
|
-
export declare function studiocmsGithub():
|
|
20
|
+
export declare function studiocmsGithub(): StudioCMSPluginDef;
|
|
21
21
|
export default studiocmsGithub;
|
package/dist/index.js
CHANGED
|
@@ -6,9 +6,8 @@ function studiocmsGithub() {
|
|
|
6
6
|
return definePlugin({
|
|
7
7
|
identifier: packageIdentifier,
|
|
8
8
|
name: "StudioCMS GitHub Plugin",
|
|
9
|
-
studiocmsMinimumVersion: "0.1.0-beta.22",
|
|
10
9
|
hooks: {
|
|
11
|
-
"studiocms:auth": ({ setAuthService }) => {
|
|
10
|
+
"studiocms:auth": async ({ setAuthService }) => {
|
|
12
11
|
setAuthService({
|
|
13
12
|
oAuthProvider: {
|
|
14
13
|
name: "github",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@studiocms/github",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Add GitHub OAuth Support to your StudioCMS project.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "withstudiocms",
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
"arctic": "^3.7.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@types/node": "^22.0.0"
|
|
55
|
-
},
|
|
56
|
-
"peerDependencies": {
|
|
54
|
+
"@types/node": "^22.0.0",
|
|
57
55
|
"astro": "^5.12.9",
|
|
58
|
-
"effect": "^3.19.14",
|
|
59
56
|
"vite": "^6.3.4",
|
|
60
|
-
"studiocms": "^0.
|
|
57
|
+
"studiocms": "^0.4.0"
|
|
58
|
+
},
|
|
59
|
+
"peerDependencies": {
|
|
60
|
+
"effect": "^3.19.19"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"build": "buildkit build 'src/**/*.{ts,astro,css,json,png}'",
|