@atproto/oauth-client-browser 0.2.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,22 +1,19 @@
1
- /// <reference types="node" />
2
- import { HandleResolver } from '@atproto-labs/handle-resolver';
3
- import { AuthorizeOptions, Fetch, OAuthClient, OAuthSession } from '@atproto/oauth-client';
4
- import { OAuthClientMetadataInput } from '@atproto/oauth-types';
5
- export type BrowserOAuthClientOptions = {
6
- clientMetadata?: OAuthClientMetadataInput;
7
- handleResolver: HandleResolver | string | URL;
8
- responseMode?: 'query' | 'fragment';
9
- plcDirectoryUrl?: string | URL;
1
+ import { AuthorizeOptions, Fetch, OAuthClient, OAuthClientOptions, OAuthSession } from '@atproto/oauth-client';
2
+ import { OAuthClientMetadataInput, OAuthResponseMode } from '@atproto/oauth-types';
3
+ import { Simplify } from './util.js';
4
+ export type BrowserOAuthClientOptions = Simplify<{
5
+ clientMetadata?: Readonly<OAuthClientMetadataInput>;
6
+ responseMode?: Exclude<OAuthResponseMode, 'form_post'>;
10
7
  fetch?: Fetch;
11
- };
12
- export type BrowserOAuthClientLoadOptions = Omit<BrowserOAuthClientOptions, 'clientMetadata'> & {
8
+ } & Omit<OAuthClientOptions, 'clientMetadata' | 'responseMode' | 'keyset' | 'fetch' | 'runtimeImplementation' | 'sessionStore' | 'stateStore' | 'didCache' | 'handleCache' | 'dpopNonceCache' | 'authorizationServerMetadataCache' | 'protectedResourceMetadataCache'>>;
9
+ export type BrowserOAuthClientLoadOptions = Simplify<{
13
10
  clientId: string;
14
11
  signal?: AbortSignal;
15
- };
12
+ } & Omit<BrowserOAuthClientOptions, 'clientMetadata'>>;
16
13
  export declare class BrowserOAuthClient extends OAuthClient implements Disposable {
17
14
  static load({ clientId, ...options }: BrowserOAuthClientLoadOptions): Promise<BrowserOAuthClient>;
18
15
  readonly [Symbol.dispose]: () => void;
19
- constructor({ handleResolver, clientMetadata, responseMode, plcDirectoryUrl, fetch, }: BrowserOAuthClientOptions);
16
+ constructor({ clientMetadata, responseMode, ...options }: BrowserOAuthClientOptions);
20
17
  init(refresh?: boolean): Promise<{
21
18
  session: OAuthSession;
22
19
  state: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"browser-oauth-client.d.ts","sourceRoot":"","sources":["../src/browser-oauth-client.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAC9D,OAAO,EACL,gBAAgB,EAEhB,KAAK,EAEL,WAAW,EACX,YAAY,EAEb,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAIL,wBAAwB,EACzB,MAAM,sBAAsB,CAAA;AAO7B,MAAM,MAAM,yBAAyB,GAAG;IACtC,cAAc,CAAC,EAAE,wBAAwB,CAAA;IACzC,cAAc,EAAE,cAAc,GAAG,MAAM,GAAG,GAAG,CAAA;IAC7C,YAAY,CAAC,EAAE,OAAO,GAAG,UAAU,CAAA;IACnC,eAAe,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;IAE9B,KAAK,CAAC,EAAE,KAAK,CAAA;CACd,CAAA;AA8BD,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAC9C,yBAAyB,EACzB,gBAAgB,CACjB,GAAG;IACF,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,WAAW,CAAA;CACrB,CAAA;AAED,qBAAa,kBAAmB,SAAQ,WAAY,YAAW,UAAU;WAC1D,IAAI,CAAC,EAAE,QAAQ,EAAE,GAAG,OAAO,EAAE,EAAE,6BAA6B;IAgBzE,QAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;gBAEzB,EACV,cAAc,EACd,cAEC,EAED,YAAyB,EACzB,eAA2B,EAC3B,KAAiB,GAClB,EAAE,yBAAyB;IAyEtB,IAAI,CAAC,OAAO,CAAC,EAAE,OAAO;;;;;;IAqBtB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,YAAY,CAAC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thClient extends oauth_client_1.OAuthClient {
31
31
  throw new TypeError(`Invalid client id: ${clientId}`);
32
32
  }
33
33
  }
34
- constructor({ handleResolver, clientMetadata = (0, oauth_types_1.atprotoLoopbackClientMetadata)((0, util_js_1.buildLoopbackClientId)(window.location)),
34
+ constructor({ clientMetadata = (0, oauth_types_1.atprotoLoopbackClientMetadata)((0, util_js_1.buildLoopbackClientId)(window.location)),
35
35
  // "fragment" is a safer default as the query params will not be sent to the server
36
- responseMode = 'fragment', plcDirectoryUrl = undefined, fetch = undefined, }) {
36
+ responseMode = 'fragment', ...options }) {
37
37
  if (!globalThis.crypto?.subtle) {
38
38
  throw new Error('WebCrypto API is required');
39
39
  }
@@ -43,11 +43,10 @@ class BrowserOAuthClient extends oauth_client_1.OAuthClient {
43
43
  }
44
44
  const database = new browser_oauth_database_js_1.BrowserOAuthDatabase();
45
45
  super({
46
+ ...options,
46
47
  clientMetadata,
47
48
  responseMode,
48
- fetch,
49
- plcDirectoryUrl,
50
- handleResolver,
49
+ keyset: undefined,
51
50
  runtimeImplementation: new browser_runtime_implementation_js_1.BrowserRuntimeImplementation(),
52
51
  sessionStore: database.getSessionStore(),
53
52
  stateStore: database.getStateStore(),
@@ -1 +1 @@
1
- {"version":3,"file":"browser-oauth-client.js","sourceRoot":"","sources":["../src/browser-oauth-client.ts"],"names":[],"mappings":";;;;AACA,wDAQ8B;AAC9B,sDAK6B;AAE7B,2EAAkE;AAClE,2FAAkF;AAClF,2CAA+D;AAC/D,uCAAwE;AAWxE,MAAM,SAAS,GAAG,gCAAgC,CAAA;AAElD,iBAAiB;AAEjB,MAAM,kBAAkB,GAAG,GAAG,SAAS,iBAAiB,CAAA;AACxD,MAAM,kBAAkB,GAAG,GAAG,SAAS,gBAAgB,CAAA;AAoBvD,MAAM,WAAW,GACf,IAAI,gBAAgB,CAAC,GAAG,SAAS,2BAA2B,CAAC,CAAA;AAU/D,MAAa,kBAAmB,SAAQ,0BAAW;IACjD,MAAM,CAAC,KAAK,CAA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AA;AACH,CAAC"}
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { DBObjectStore } from './db-object-store.js';
3
2
  import { DatabaseSchema } from './schema.js';
4
3
  export declare class DBTransaction<Schema extends DatabaseSchema> implements Disposable {
@@ -1 +1 @@
1
- {"version":3,"file":"db-transaction.d.ts","sourceRoot":"","sources":["../../src/indexed-db/db-transaction.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C,qBAAa,aAAa,CAAC,MAAM,SAAS,cAAc,CACtD,YAAW,UAAU;;gBAIT,EAAE,EAAE,cAAc;IAkB9B,SAAS,KAAK,EAAE,IAAI,cAAc,CAGjC;IAEK,KAAK;IAML,MAAM;IAMZ,WAAW,CAAC,CAAC,SAAS,MAAM,MAAM,GAAG,MAAM,EAAE,IAAI,EAAE,CAAC;IAKpD,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,IAAI;CAGzB"}
1
+ {"version":3,"file":"db-transaction.d.ts","sourceRoot":"","sources":["../../src/indexed-db/db-transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C,qBAAa,aAAa,CAAC,MAAM,SAAS,cAAc,CACtD,YAAW,UAAU;;gBAIT,EAAE,EAAE,cAAc;IAkB9B,SAAS,KAAK,EAAE,IAAI,cAAc,CAGjC;IAEK,KAAK;IAML,MAAM;IAMZ,WAAW,CAAC,CAAC,SAAS,MAAM,MAAM,GAAG,MAAM,EAAE,IAAI,EAAE,CAAC;IAKpD,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,IAAI;CAGzB"}
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { DatabaseSchema } from './schema.js';
3
2
  import { DBTransaction } from './db-transaction.js';
4
3
  export declare class DB<Schema extends DatabaseSchema> implements Disposable {
@@ -1 +1 @@
1
- {"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../../src/indexed-db/db.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAEnD,qBAAa,EAAE,CAAC,MAAM,SAAS,cAAc,CAAE,YAAW,UAAU;;IAqChE,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC;WApClB,IAAI,CAAC,MAAM,SAAS,cAAc,GAAG,cAAc,EAC9D,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,aAAa,CAAC,CAAC,EAAE,EAAE,WAAW,KAAK,IAAI,CAAC,EACpD,SAAS,CAAC,EAAE,qBAAqB;gBAgCjC,EAAE,EAAE,WAAW,EACI,SAAS,CAAC,mCAAuB;IAetD,SAAS,KAAK,EAAE,IAAI,WAAW,CAG9B;IAED,IAAI,IAAI,WAEP;IAED,IAAI,gBAAgB,kBAEnB;IAED,IAAI,OAAO,WAEV;IAEK,WAAW,CAAC,CAAC,SAAS,SAAS,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,EAAE,EAAE,CAAC,EAC/D,UAAU,EAAE,CAAC,EACb,IAAI,EAAE,kBAAkB,EACxB,GAAG,EAAE,CAAC,EAAE,EAAE,aAAa,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,GACtE,OAAO,CAAC,CAAC,CAAC;IA4Bb,KAAK;IAML,CAAC,MAAM,CAAC,OAAO,CAAC;CAGjB"}
1
+ {"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../../src/indexed-db/db.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAEnD,qBAAa,EAAE,CAAC,MAAM,SAAS,cAAc,CAAE,YAAW,UAAU;;IAqChE,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,qBAAqB;WApCzC,IAAI,CAAC,MAAM,SAAS,cAAc,GAAG,cAAc,EAC9D,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,aAAa,CAAC,CAAC,EAAE,EAAE,WAAW,KAAK,IAAI,CAAC,EACpD,SAAS,CAAC,EAAE,qBAAqB;gBAgCjC,EAAE,EAAE,WAAW,EACI,SAAS,CAAC,EAAE,qBAAqB,YAAA;IAetD,SAAS,KAAK,EAAE,IAAI,WAAW,CAG9B;IAED,IAAI,IAAI,WAEP;IAED,IAAI,gBAAgB,kBAEnB;IAED,IAAI,OAAO,WAEV;IAEK,WAAW,CAAC,CAAC,SAAS,SAAS,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,EAAE,EAAE,CAAC,EAC/D,UAAU,EAAE,CAAC,EACb,IAAI,EAAE,kBAAkB,EACxB,GAAG,EAAE,CAAC,EAAE,EAAE,aAAa,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,GACtE,OAAO,CAAC,CAAC,CAAC;IA4Bb,KAAK;IAML,CAAC,MAAM,CAAC,OAAO,CAAC;CAGjB"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.promisify = exports.handleRequest = void 0;
3
+ exports.handleRequest = handleRequest;
4
+ exports.promisify = promisify;
4
5
  function handleRequest(request, onSuccess, onError) {
5
6
  const cleanup = () => {
6
7
  request.removeEventListener('success', success);
@@ -17,11 +18,9 @@ function handleRequest(request, onSuccess, onError) {
17
18
  request.addEventListener('success', success);
18
19
  request.addEventListener('error', error);
19
20
  }
20
- exports.handleRequest = handleRequest;
21
21
  function promisify(request) {
22
22
  return new Promise((resolve, reject) => {
23
23
  handleRequest(request, resolve, reject);
24
24
  });
25
25
  }
26
- exports.promisify = promisify;
27
26
  //# sourceMappingURL=util.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"util.js","sourceRoot":"","sources":["../../src/indexed-db/util.ts"],"names":[],"mappings":";;;AAAA,SAAgB,aAAa,CAC3B,OAAsB,EACtB,SAA8B,EAC9B,OAA+B;IAE/B,MAAM,OAAO,GAAG,GAAG,EAAE;QACnB,OAAO,CAAC,mBAAmB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;QAC/C,OAAO,CAAC,mBAAmB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;IAC7C,CAAC,CAAA;IACD,MAAM,OAAO,GAAG,GAAG,EAAE;QACnB,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;QACzB,OAAO,EAAE,CAAA;IACX,CAAC,CAAA;IACD,MAAM,KAAK,GAAG,GAAG,EAAE;QACjB,OAAO,CAAC,OAAO,CAAC,KAAK,IAAI,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC,CAAA;QACpD,OAAO,EAAE,CAAA;IACX,CAAC,CAAA;IACD,OAAO,CAAC,gBAAgB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;IAC5C,OAAO,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;AAC1C,CAAC;AAnBD,sCAmBC;AAED,SAAgB,SAAS,CAAI,OAAsB;IACjD,OAAO,IAAI,OAAO,CAAI,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACxC,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,CAAA;IACzC,CAAC,CAAC,CAAA;AACJ,CAAC;AAJD,8BAIC"}
1
+ {"version":3,"file":"util.js","sourceRoot":"","sources":["../../src/indexed-db/util.ts"],"names":[],"mappings":";;AAAA,sCAmBC;AAED,8BAIC;AAzBD,SAAgB,aAAa,CAC3B,OAAsB,EACtB,SAA8B,EAC9B,OAA+B;IAE/B,MAAM,OAAO,GAAG,GAAG,EAAE;QACnB,OAAO,CAAC,mBAAmB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;QAC/C,OAAO,CAAC,mBAAmB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;IAC7C,CAAC,CAAA;IACD,MAAM,OAAO,GAAG,GAAG,EAAE;QACnB,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;QACzB,OAAO,EAAE,CAAA;IACX,CAAC,CAAA;IACD,MAAM,KAAK,GAAG,GAAG,EAAE;QACjB,OAAO,CAAC,OAAO,CAAC,KAAK,IAAI,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC,CAAA;QACpD,OAAO,EAAE,CAAA;IACX,CAAC,CAAA;IACD,OAAO,CAAC,gBAAgB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;IAC5C,OAAO,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;AAC1C,CAAC;AAED,SAAgB,SAAS,CAAI,OAAsB;IACjD,OAAO,IAAI,OAAO,CAAI,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACxC,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,CAAA;IACzC,CAAC,CAAC,CAAA;AACJ,CAAC"}
package/dist/util.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.buildLoopbackClientId = void 0;
3
+ exports.buildLoopbackClientId = buildLoopbackClientId;
4
4
  const oauth_types_1 = require("@atproto/oauth-types");
5
5
  /**
6
6
  * @example
@@ -15,5 +15,4 @@ function buildLoopbackClientId(location, localhost = '127.0.0.1') {
15
15
  const redirectUri = `http://${location.hostname === 'localhost' ? localhost : location.hostname}${location.port && !location.port.startsWith(':') ? `:${location.port}` : location.port}${location.pathname}`;
16
16
  return `http://localhost${location.pathname === '/' ? '' : location.pathname}?redirect_uri=${encodeURIComponent(redirectUri)}`;
17
17
  }
18
- exports.buildLoopbackClientId = buildLoopbackClientId;
19
18
  //# sourceMappingURL=util.js.map
package/dist/util.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":";;;AAAA,sDAAqD;AASrD;;;;;GAKG;AACH,SAAgB,qBAAqB,CACnC,QAIC,EACD,SAAS,GAAG,WAAW;IAEvB,IAAI,CAAC,IAAA,4BAAc,EAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;QACvC,MAAM,IAAI,SAAS,CAAC,iCAAiC,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAA;IAC3E,CAAC;IAED,MAAM,WAAW,GAAG,UAAU,QAAQ,CAAC,QAAQ,KAAK,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,GAAG,QAAQ,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,QAAQ,EAAE,CAAA;IAE7M,OAAO,mBACL,QAAQ,CAAC,QAAQ,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,QAC5C,iBAAiB,kBAAkB,CAAC,WAAW,CAAC,EAAE,CAAA;AACpD,CAAC;AAjBD,sDAiBC"}
1
+ {"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":";;AAeA,sDAiBC;AAhCD,sDAAqD;AASrD;;;;;GAKG;AACH,SAAgB,qBAAqB,CACnC,QAIC,EACD,SAAS,GAAG,WAAW;IAEvB,IAAI,CAAC,IAAA,4BAAc,EAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;QACvC,MAAM,IAAI,SAAS,CAAC,iCAAiC,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAA;IAC3E,CAAC;IAED,MAAM,WAAW,GAAG,UAAU,QAAQ,CAAC,QAAQ,KAAK,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,GAAG,QAAQ,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,QAAQ,EAAE,CAAA;IAE7M,OAAO,mBACL,QAAQ,CAAC,QAAQ,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,QAC5C,iBAAiB,kBAAkB,CAAC,WAAW,CAAC,EAAE,CAAA;AACpD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/oauth-client-browser",
3
- "version": "0.2.2",
3
+ "version": "0.3.0",
4
4
  "license": "MIT",
5
5
  "description": "ATPROTO OAuth client for the browser (relies on WebCrypto & Indexed DB)",
6
6
  "keywords": [
@@ -31,42 +31,19 @@
31
31
  "dist"
32
32
  ],
33
33
  "dependencies": {
34
- "@atproto-labs/did-resolver": "0.1.4",
35
- "@atproto-labs/handle-resolver": "0.1.3",
34
+ "@atproto-labs/did-resolver": "0.1.5",
35
+ "@atproto-labs/handle-resolver": "0.1.4",
36
36
  "@atproto-labs/simple-store": "0.1.1",
37
- "@atproto/did": "0.1.2",
37
+ "@atproto/did": "0.1.3",
38
38
  "@atproto/jwk": "0.1.1",
39
39
  "@atproto/jwk-webcrypto": "0.1.2",
40
- "@atproto/oauth-client": "0.2.2",
41
- "@atproto/oauth-types": "0.1.5"
40
+ "@atproto/oauth-client": "0.3.0",
41
+ "@atproto/oauth-types": "0.2.0"
42
42
  },
43
43
  "devDependencies": {
44
- "@rollup/plugin-commonjs": "^25.0.7",
45
- "@rollup/plugin-html": "^1.0.3",
46
- "@rollup/plugin-json": "^6.1.0",
47
- "@rollup/plugin-node-resolve": "^15.2.3",
48
- "@rollup/plugin-replace": "^5.0.5",
49
- "@rollup/plugin-terser": "^0.4.4",
50
- "@rollup/plugin-typescript": "^11.1.6",
51
- "@types/react": "^18.2.50",
52
- "@types/react-dom": "^18.2.18",
53
- "autoprefixer": "^10.4.17",
54
- "postcss": "^8.4.33",
55
- "react": "^18.2.0",
56
- "react-dom": "^18.2.0",
57
- "rollup": "^4.13.0",
58
- "rollup-plugin-postcss": "^4.0.2",
59
- "rollup-plugin-serve": "^1.1.1",
60
- "tailwindcss": "^3.4.1",
61
- "typescript": "^5.3.3",
62
- "@atproto/api": "0.13.8",
63
- "@atproto/oauth-client": "0.2.2",
64
- "@atproto/oauth-client-browser": "0.2.2",
65
- "@atproto/oauth-types": "0.1.5",
66
- "@atproto/xrpc": "0.6.3"
44
+ "typescript": "^5.6.3"
67
45
  },
68
46
  "scripts": {
69
- "build": "tsc --build tsconfig.build.json",
70
- "dev": "cd ./example && rollup --config rollup.config.js --watch"
47
+ "build": "tsc --build tsconfig.build.json"
71
48
  }
72
49
  }