@farm.js/workos 0.1.65 → 0.1.67
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/client.d.ts +4 -4
- package/dist/client.js +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/dist/client.d.ts
CHANGED
|
@@ -17,9 +17,9 @@ export interface WorkOSSessionResult {
|
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
export declare const workosClient: {
|
|
20
|
-
login: import("@farm.js/core
|
|
21
|
-
signup: import("@farm.js/core
|
|
22
|
-
logout: import("@farm.js/core
|
|
23
|
-
session: import("@farm.js/core
|
|
20
|
+
login: import("@farm.js/core").FarmIntegrationAPIOperation<never, WorkOSRedirectQuery, WorkOSRedirectResult, false, "GET">;
|
|
21
|
+
signup: import("@farm.js/core").FarmIntegrationAPIOperation<never, WorkOSRedirectQuery, WorkOSRedirectResult, false, "GET">;
|
|
22
|
+
logout: import("@farm.js/core").FarmIntegrationAPIOperation<never, never, WorkOSRedirectResult, false, "POST">;
|
|
23
|
+
session: import("@farm.js/core").FarmIntegrationAPIOperation<never, never, WorkOSSessionResult, false, "GET">;
|
|
24
24
|
};
|
|
25
25
|
//# sourceMappingURL=client.d.ts.map
|
package/dist/client.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WorkOS } from "@workos-inc/node";
|
|
2
|
-
import {
|
|
2
|
+
import type { FarmIntegrationLogger } from "@farm.js/core";
|
|
3
3
|
import type { WorkOSRedirectResult } from "./client.js";
|
|
4
4
|
export interface WorkOSIntegrationInput {
|
|
5
5
|
/** Existing WorkOS SDK instance. When provided, Farm does not construct its own client. */
|
|
@@ -53,8 +53,8 @@ export declare function workos(input?: WorkOSIntegrationInput): import("@farm.js
|
|
|
53
53
|
readonly kind: "farm-integration-api-operation";
|
|
54
54
|
path: string;
|
|
55
55
|
method: "GET";
|
|
56
|
-
bodyFormat?: import("@farm.js/core/
|
|
57
|
-
responseFormat?: import("@farm.js/core/
|
|
56
|
+
bodyFormat?: import("@farm.js/core/integrations").FarmIntegrationAPIBodyFormat | undefined;
|
|
57
|
+
responseFormat?: import("@farm.js/core/integrations").FarmIntegrationAPIResponseFormat | undefined;
|
|
58
58
|
headers?: {
|
|
59
59
|
[x: string]: string;
|
|
60
60
|
} | undefined;
|
|
@@ -83,8 +83,8 @@ export declare function workos(input?: WorkOSIntegrationInput): import("@farm.js
|
|
|
83
83
|
readonly kind: "farm-integration-api-operation";
|
|
84
84
|
path: string;
|
|
85
85
|
method: "POST";
|
|
86
|
-
bodyFormat?: import("@farm.js/core/
|
|
87
|
-
responseFormat?: import("@farm.js/core/
|
|
86
|
+
bodyFormat?: import("@farm.js/core/integrations").FarmIntegrationAPIBodyFormat | undefined;
|
|
87
|
+
responseFormat?: import("@farm.js/core/integrations").FarmIntegrationAPIResponseFormat | undefined;
|
|
88
88
|
headers?: {
|
|
89
89
|
[x: string]: string;
|
|
90
90
|
} | undefined;
|
|
@@ -105,9 +105,9 @@ export declare function workos(input?: WorkOSIntegrationInput): import("@farm.js
|
|
|
105
105
|
documentNavigations: {
|
|
106
106
|
matcher: string[];
|
|
107
107
|
}[];
|
|
108
|
-
routes: (import("@farm.js/core").FarmTypedIntegrationRoute<string, never, any, unknown, false, "GET",
|
|
108
|
+
routes: (import("@farm.js/core").FarmTypedIntegrationRoute<string, never, any, unknown, false, "GET", undefined> | import("@farm.js/core").FarmTypedIntegrationRoute<string, {
|
|
109
109
|
returnTo?: string;
|
|
110
|
-
}, never, WorkOSRedirectResult, false, "POST",
|
|
110
|
+
}, never, WorkOSRedirectResult, false, "POST", undefined>)[];
|
|
111
111
|
middleware: {
|
|
112
112
|
matcher: string[];
|
|
113
113
|
handler(request: Request): Promise<Response | undefined>;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAkB3D,OAAO,KAAK,EAAuB,oBAAoB,EAAuB,MAAM,aAAa,CAAC;AAQlG,MAAM,WAAW,sBAAsB;IACrC,2FAA2F;IAC3F,QAAQ,CAAC,EAAE,yBAAyB,CAAC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACpC;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,GAAG,CAAC,EAAE,qBAAqB,CAAC;CAC7B;AAED,MAAM,MAAM,yBAAyB,GAAG,MAAM,CAAC;AAY/C,UAAU,oBAAoB;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;CACxB;AAgGD,wBAAgB,MAAM,CAAC,KAAK,GAAE,sBAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAgPG,MAAM;;;;yBAyE7B,OAAO;;mDAe3C"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createHmac, randomBytes, timingSafeEqual } from "node:crypto";
|
|
2
2
|
import { WorkOS } from "@workos-inc/node";
|
|
3
|
-
import { defineIntegration, integrationRoute } from "@farm.js/core";
|
|
3
|
+
import { defineIntegration, integrationRoute } from "@farm.js/core/integrations";
|
|
4
4
|
import { describeIntegrationOriginRejection, resolveIntegrationAllowedOrigins, validateIntegrationRequestOrigin, } from "@farm.js/core/integrations";
|
|
5
5
|
import { clearRequestCookie, createPathInferredClientApi, createDocumentNavigationMatchers, createRequestCookie, getCookieValue, getReturnTo, integrationConfig, normalizeMatchers, } from "@farm.js/integration-utils";
|
|
6
6
|
import { resolveDevelopmentSecret } from "@farm.js/integration-utils/dev-secret";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@farm.js/workos",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.67",
|
|
4
4
|
"description": "WorkOS integration for Farm.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@workos-inc/node": "^8.9.0",
|
|
33
|
-
"@farm.js/core": "0.1.
|
|
34
|
-
"@farm.js/integration-utils": "0.1.
|
|
33
|
+
"@farm.js/core": "0.1.67",
|
|
34
|
+
"@farm.js/integration-utils": "0.1.67"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\" && tsc",
|