Something went wrong. Try again.
Private notes, end to end encrypted, on atproto. wholebit.studio/stones
Something went wrong. Try again.
1234567891011121314151617181920212223import { existsSync, readFileSync, writeFileSync } from 'node:fs'
function patch(file, from, to) { if (!existsSync(file)) return const src = readFileSync(file, 'utf8') if (!src.includes(to)) writeFileSync(file, src.replace(from, to))}
// CocoaPods does not match prerelease versions like 0.0.0-spaces-alpha-*, so pod install fails.patch( 'node_modules/@atproto/oauth-client-expo/ios/ExpoAtprotoOAuthClient.podspec', "s.version = package['version']\n", "s.version = package['version'].split('-').first\n",)
// React Native's Response cannot take a ReadableStream body, so peekJson reads "[object ReadableStream]".// The DPoP client then never sees use_dpop_nonce and does not retry with the server nonce.patch( 'node_modules/@atproto-labs/fetch/dist/fetch-response.js', 'const limitedResponse = response.body && maxSize < Infinity\n', "const limitedResponse = response.body && maxSize < Infinity && globalThis.navigator?.product !== 'ReactNative'\n",)