Bluesky app fork with some witchin' additions 馃挮
witchsky.app
bluesky
fork
client
1diff --git a/node_modules/@atproto/oauth-client-expo/dist/expo-oauth-client.native.js b/node_modules/@atproto/oauth-client-expo/dist/expo-oauth-client.native.js
2index 979db40..300a11c 100644
3--- a/node_modules/@atproto/oauth-client-expo/dist/expo-oauth-client.native.js
4+++ b/node_modules/@atproto/oauth-client-expo/dist/expo-oauth-client.native.js
5@@ -62,6 +62,30 @@ const runtimeImplementation = {
6 digest: async (bytes, { name }) => NativeModule.digest(bytes, name),
7 getRandomValues: async (length) => NativeModule.getRandomValues(length),
8 };
9+class DisposableStack {
10+ stack;
11+ constructor() {
12+ this.stack = [];
13+ }
14+ use(value) {
15+ return __addDisposableResource({ stack: this.stack, error: void 0, hasError: false }, value, false);
16+ }
17+ async dispose() {
18+ await __disposeResources({ stack: this.stack, error: void 0, hasError: false });
19+ }
20+ move() {
21+ const newStack = new DisposableStack();
22+ newStack.stack = this.stack;
23+ this.stack = [];
24+ return newStack;
25+ }
26+ [Symbol.dispose]() {
27+ this.dispose();
28+ }
29+ [Symbol.asyncDispose]() {
30+ return this.dispose();
31+ }
32+}
33 export class ExpoOAuthClient extends OAuthClient {
34 #disposables;
35 constructor(options) {
36diff --git a/node_modules/@atproto/oauth-client-expo/dist/polyfill.native.js b/node_modules/@atproto/oauth-client-expo/dist/polyfill.native.js
37index 32656aa..a2fe17e 100644
38--- a/node_modules/@atproto/oauth-client-expo/dist/polyfill.native.js
39+++ b/node_modules/@atproto/oauth-client-expo/dist/polyfill.native.js
40@@ -1,3 +1,8 @@
41-import 'core-js/proposals/explicit-resource-management';
42+if (typeof Symbol.dispose === 'undefined') {
43+ Symbol.dispose = Symbol('Symbol.dispose');
44+}
45+if (typeof Symbol.asyncDispose === 'undefined') {
46+ Symbol.asyncDispose = Symbol('Symbol.asyncDispose');
47+}
48 import 'react-native-url-polyfill/auto';
49 //# sourceMappingURL=polyfill.native.js.map
50\ No newline at end of file
51diff --git a/node_modules/@atproto/oauth-client-expo/dist/polyfill.web.js b/node_modules/@atproto/oauth-client-expo/dist/polyfill.web.js
52index b7dc3e4..8f4a8ef 100644
53--- a/node_modules/@atproto/oauth-client-expo/dist/polyfill.web.js
54+++ b/node_modules/@atproto/oauth-client-expo/dist/polyfill.web.js
55@@ -1,2 +1,7 @@
56-import 'core-js/proposals/explicit-resource-management';
57+if (typeof Symbol.dispose === 'undefined') {
58+ Symbol.dispose = Symbol('Symbol.dispose');
59+}
60+if (typeof Symbol.asyncDispose === 'undefined') {
61+ Symbol.asyncDispose = Symbol('Symbol.asyncDispose');
62+}
63 //# sourceMappingURL=polyfill.web.js.map
64\ No newline at end of file