oauthbridge 0.0.1 → 0.0.3

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/index.d.ts CHANGED
@@ -1,2 +1,7 @@
1
- /** The first stable surface of the package. */
2
- export declare const oauthbridge = "0.0.1";
1
+ export interface OAuthIdentity {
2
+ provider: string;
3
+ subject: string;
4
+ email?: string;
5
+ name?: string;
6
+ }
7
+ export declare function bridgeOAuthIdentity(input: OAuthIdentity): Readonly<OAuthIdentity>;
package/dist/index.js CHANGED
@@ -1,2 +1 @@
1
- /** The first stable surface of the package. */
2
- export const oauthbridge = "0.0.1";
1
+ function r(e){if(!e.provider||!e.subject)throw new TypeError("OAuth provider and subject are required.");return Object.freeze({...e})}export{r as bridgeOAuthIdentity};
package/package.json CHANGED
@@ -1,20 +1,50 @@
1
1
  {
2
2
  "name": "oauthbridge",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "Small, framework-neutral primitives for bridging OAuth providers to identity systems.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
8
- "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js", "default": "./dist/index.js" } },
9
- "files": ["dist", "README.md"],
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js",
12
+ "default": "./dist/index.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "README.md"
18
+ ],
10
19
  "sideEffects": false,
11
- "scripts": { "build": "tsc --project tsconfig.json", "prepublishOnly": "npm run build" },
12
- "keywords": ["auth", "authentication", "oauth", "identity", "bridge"],
20
+ "scripts": {
21
+ "build": "tsc --project tsconfig.json",
22
+ "postbuild": "npm run dist --prefix \"$npm_config_local_prefix\" -- \"$PWD\"",
23
+ "prepack": "npm run build",
24
+ "prepublishOnly": "npm run build"
25
+ },
26
+ "keywords": [
27
+ "auth",
28
+ "authentication",
29
+ "oauth",
30
+ "identity",
31
+ "bridge"
32
+ ],
13
33
  "homepage": "https://signway.dev/",
14
34
  "author": "Mosanic <dev@mosanic.io>",
15
35
  "license": "MIT",
16
- "engines": { "node": ">=20" },
17
- "publishConfig": { "access": "public" },
18
- "devDependencies": { "typescript": "^5.9.3" },
19
- "repository": { "type": "git", "url": "git+https://github.com/mosanic/mosa-platform.git", "directory": "packages/oauthbridge" }
36
+ "engines": {
37
+ "node": ">=20"
38
+ },
39
+ "publishConfig": {
40
+ "access": "public"
41
+ },
42
+ "devDependencies": {
43
+ "typescript": "^5.9.3"
44
+ },
45
+ "repository": {
46
+ "type": "git",
47
+ "url": "git+https://github.com/mosanic/mosa-platform.git",
48
+ "directory": "packages/oauthbridge"
49
+ }
20
50
  }