| /expo/packages/@expo/cli/src/start/server/middleware/__tests__/ |
| H A D | RuntimeRedirectMiddleware-test.ts | 49 const response = createMockResponse(); constant 55 response 57 expect(response.statusCode).toBe(307); 58 expect(response.end).toBeCalledWith(); 68 const response = createMockResponse(); constant 77 response 79 expect(response.statusCode).toBe(307); 80 expect(response.end).toBeCalledWith(); 90 const response = createMockResponse(); constant 95 response [all …]
|
| H A D | CreateFileMiddleware-test.ts | 51 const response = createMockResponse(); constant 56 response 58 expect(response.statusCode).toBe(405); 64 const response = createMockResponse(); constant 74 response 76 expect(response.statusCode).toBe(200); 85 const response = createMockResponse(); constant 95 response 97 expect(response.statusCode).toBe(200); 104 const response = createMockResponse(); constant [all …]
|
| H A D | InterstitialPageMiddleware-test.ts | 164 const response = { constant 172 response 174 expect(response.statusCode).toBe(200); 175 expect(response.end).toBeCalledWith('mock-value'); 176 expect(response.setHeader).toHaveBeenNthCalledWith( 181 expect(response.setHeader).toHaveBeenNthCalledWith(2, 'Expires', '-1'); 201 const response = { constant 215 response 217 expect(response.statusCode).toBe(200); 218 expect(response.end).toBeCalledWith('mock-value'); [all …]
|
| /expo/packages/expo-auth-session/build/ |
| H A D | TokenRequest.js | 65 constructor(response) { argument 68 this.expiresIn = response.expiresIn; 70 this.scope = response.scope; 71 this.state = response.state; 72 this.idToken = response.idToken; 75 applyResponseConfig(response) { argument 104 response.refreshToken = response.refreshToken ?? this.refreshToken; 168 if ('error' in response) { 176 scope: response.scope, 177 idToken: response.id_token, [all …]
|
| H A D | Errors.js | 83 constructor(response) { argument 84 super(response, 'auth'); 85 this.state = response.state; 92 constructor(response) { argument 93 super(response, 'token');
|
| /expo/packages/expo-image-picker/src/__tests__/ |
| H A D | ExponentImagePicker-test.web.ts | 6 const response = await ExponentImagePicker.getMediaLibraryPermissionsAsync(true); constant 7 expect(response.granted).toBeTruthy(); 8 expect(response.status).toBe('granted'); 14 const response = await ExponentImagePicker.requestMediaLibraryPermissionsAsync(true); constant 15 expect(response.granted).toBeTruthy(); 16 expect(response.status).toBe('granted');
|
| /expo/packages/expo-auth-session/src/ |
| H A D | TokenRequest.ts | 88 this.scope = response.scope; 89 this.state = response.state; 90 this.idToken = response.idToken; 128 response.refreshToken = response.refreshToken ?? this.refreshToken; 207 if ('error' in response) { 208 throw new TokenError(response); 213 tokenType: response.token_type, 214 expiresIn: response.expires_in, 216 scope: response.scope, 217 idToken: response.id_token, [all …]
|
| H A D | Errors.ts | 121 constructor(response: AuthErrorConfig) { 122 super(response, 'auth'); 123 this.state = response.state; 131 constructor(response: ResponseErrorConfig) { 132 super(response, 'token');
|
| /expo/packages/create-expo/src/ |
| H A D | Examples.ts | 30 const response = await fetch('https://api.github.com/repos/expo/examples/contents'); constant 31 if (!response.ok) { 35 const data: GithubContent[] = await response.json(); 41 const response = await fetch( constant 46 if (response.status === 404 || response.ok) { 47 return response.ok; 50 throw new Error(`Unexpected GitHub API response: ${response.status} - ${response.statusText}`); 89 const response = await fetch('https://codeload.github.com/expo/examples/tar.gz/master'); constant 90 if (!response.ok) { 91 debug(`Failed to fetch the examples code, received status "${response.status}"`); [all …]
|
| /expo/packages/@expo/cli/src/run/ios/appleDevice/client/ |
| H A D | AFCClient.ts | 40 debug(`getFileInfo:response: %O`, response); 44 const tokens = response.data; 65 debug(`writeFile:response:`, response); 66 return response; 85 if (response.operation === AFC_OPS.FILE_OPEN_RES) { 86 return response.data; 92 response.data 104 debug(`closeFile:response:`, response); 105 return response; 134 debug(`makeDirectory:response:`, response); [all …]
|
| /expo/android/expoview/src/main/java/host/exp/exponent/network/ |
| H A D | ExponentHttpClient.kt | 25 fun onResponse(response: ExpoResponse) in onFailure() 36 override fun onResponse(call: Call, response: Response) { in onFailure() 37 callback.onResponse(OkHttpV1ExpoResponse(response)) in onFailure() 51 if (response.isSuccessful) { in callSafe() 52 callback.onResponse(OkHttpV1ExpoResponse(response)) in callSafe() 75 callback.onResponse(response) in callDefaultCache() 81 override fun onResponse(response: ExpoResponse) { in callDefaultCache() 82 callback.onResponse(response) in callDefaultCache() 86 callback.onCachedResponse(response, isEmbedded) in callDefaultCache() 114 if (response.isSuccessful) { in tryForcedCachedResponse() [all …]
|
| /expo/packages/expo-in-app-purchases/android/src/main/java/expo/modules/inapppurchases/ |
| H A D | UpdateListener.java | 32 Bundle response = new Bundle(); in onConsumeFinished() local 33 response.putInt("responseCode", result.getResponseCode()); in onConsumeFinished() 34 response.putString("token", token); in onConsumeFinished() 39 promise.resolve(response); in onConsumeFinished() 45 Bundle response = new Bundle(); in onPurchasesUpdated() local 50 response.putParcelableArrayList("results", results); in onPurchasesUpdated() 51 response.putInt("responseCode", BillingResponseCode.OK); in onPurchasesUpdated() 53 mEventEmitter.emit(BillingManager.PURCHASES_UPDATED_EVENT, response); in onPurchasesUpdated()
|
| /expo/packages/expo-notifications/src/ |
| H A D | getExpoPushTokenAsync.ts | 92 const response = await fetch(url, { constant 105 if (!response.ok) { 106 const statusInfo = response.statusText || response.status; 109 body = await response.text(); 119 const expoPushToken = getExpoPushToken(await parseResponse(response)); 142 async function parseResponse(response: Response) { 144 return await response.json(); 150 await response.text() 157 response
|
| H A D | useLastNotificationResponse.ts | 49 const subscription = addNotificationResponseReceivedListener((response) => { 50 setLastNotificationResponse(response); 61 NotificationsEmitterModule.getLastNotificationResponseAsync?.().then((response) => { 65 setLastNotificationResponse((currentResponse) => currentResponse ?? response);
|
| /expo/packages/expo-dev-launcher/android/src/main/java/expo/modules/devlauncher/launcher/manifest/ |
| H A D | DevLauncherManifestParser.kt | 18 val response = fetch(url, "HEAD", getHeaders()).await(httpClient) in isManifestUrl() constant 19 val contentType = response.header("Content-Type") in isManifestUrl() 21 return !response.isSuccessful || in isManifestUrl() 22 response.header("Exponent-Server", null) != null || in isManifestUrl() 27 val response = fetch(url, "GET", getHeaders()).await(httpClient) in downloadManifest() constant 28 if (!response.isSuccessful) { in downloadManifest() 32 return response.body()!!.charStream() in downloadManifest()
|
| /expo/packages/@expo/cli/src/api/ |
| H A D | getExpoGoIntermediateCertificate.ts | 5 const response = await fetchAsync( constant 13 if (!response.ok) { 14 throw new CommandError('API', `Unexpected error from Expo servers: ${response.statusText}.`); 16 const buffer = await response.buffer();
|
| H A D | getProjectDevelopmentCertificate.ts | 8 const response = await fetchAsync( constant 17 if (!response.ok) { 18 throw new CommandError('API', `Unexpected error from Expo servers: ${response.statusText}.`); 20 const buffer = await response.buffer();
|
| /expo/packages/expo-notifications/build/ |
| H A D | getExpoPushTokenAsync.js | 71 const response = await fetch(url, { 80 if (!response.ok) { 81 const statusInfo = response.statusText || response.status; 84 body = await response.text(); 91 const expoPushToken = getExpoPushToken(await parseResponse(response)); 108 async function parseResponse(response) { argument 110 return await response.json(); 114 …e from server when fetching Expo token, received body: ${JSON.stringify(await response.text())}.`); 117 …N response from server when fetching Expo token, received response: ${JSON.stringify(response)}.`);
|
| H A D | useLastNotificationResponse.js | 43 const subscription = addNotificationResponseReceivedListener((response) => { 44 setLastNotificationResponse(response); 54 NotificationsEmitterModule.getLastNotificationResponseAsync?.().then((response) => { 58 setLastNotificationResponse((currentResponse) => currentResponse ?? response);
|
| /expo/packages/expo-modules-core/build/ |
| H A D | PermissionsHook.js | 12 …const response = await methods.getMethod(Object.keys(permissionOptions).length > 0 ? permissionOpt… 14 setStatus(response); 15 return response; 18 …const response = await methods.requestMethod(Object.keys(permissionOptions).length > 0 ? permissio… 20 setStatus(response); 21 return response;
|
| /expo/packages/expo-modules-core/android/src/main/java/expo/modules/kotlin/devtools/ |
| H A D | ExpoNetworkInspectOkHttpInterceptors.kt | 22 val response = chain.proceed(request) in intercept() constant 28 if (response.isRedirect) { in intercept() 29 response.request.tag(RedirectResponse::class.java)?.let { in intercept() 31 it.priorResponse = response in intercept() 34 delegate.didReceiveResponse(requestId, request, response) in intercept() 39 return response in intercept() 67 fun didReceiveResponse(requestId: String, request: Request, response: Response) in willSendRequest()
|
| /expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/expo/modules/kotlin/devtools/ |
| H A D | ExpoNetworkInspectOkHttpInterceptors.kt | 22 val response = chain.proceed(request) in intercept() constant 28 if (response.isRedirect) { in intercept() 29 response.request.tag(RedirectResponse::class.java)?.let { in intercept() 31 it.priorResponse = response in intercept() 34 delegate.didReceiveResponse(requestId, request, response) in intercept() 39 return response in intercept() 67 fun didReceiveResponse(requestId: String, request: Request, response: Response) in willSendRequest()
|
| /expo/packages/expo-dev-menu/ios/OverlayContainer/ |
| H A D | SpringOverlayTranslationAnimationController.swift | 25 public var response: CGFloat = Constant.defaultResponse variable 54 response: response, in interruptibleAnimator() 65 convenience init(damping: CGFloat, response: CGFloat, mass: CGFloat) { 66 let stiffness = pow(2 * .pi / response, 2) 67 let damp = 4 * .pi * damping / response
|
| /expo/packages/@expo/metro-runtime/src/async-require/ |
| H A D | fetchAsync.ts | 8 const response = await fetch(url, { constant 16 body: await response.text(), 17 headers: response.headers,
|
| /expo/packages/expo-modules-core/src/ |
| H A D | PermissionsHook.ts | 39 const response = await methods.getMethod( 42 if (isMounted.current) setStatus(response); 43 return response; 47 const response = await methods.requestMethod( 50 if (isMounted.current) setStatus(response); 51 return response;
|