@@ -18,7 +18,7 @@ import {
18
18
ActorQueryOptionsSchema ,
19
19
createDefaultManagerContext ,
20
20
} from "@/components/actors/manager-context" ;
21
- import { shouldRetryAllExpect403 , throwAllExpect403 } from "./utils" ;
21
+ import { noThrow , shouldRetryAllExpect403 } from "./utils" ;
22
22
23
23
export const createClient = ( opts : { token : ( ( ) => string ) | string } ) =>
24
24
new RivetClient ( {
@@ -53,7 +53,7 @@ export const createEngineManagerContext = ({
53
53
return true ;
54
54
} ,
55
55
retry : shouldRetryAllExpect403 ,
56
- throwOnError : throwAllExpect403 ,
56
+ throwOnError : noThrow ,
57
57
meta : {
58
58
mightRequireAuth : true ,
59
59
} ,
@@ -74,7 +74,7 @@ export const createEngineManagerContext = ({
74
74
} ;
75
75
} ,
76
76
retry : shouldRetryAllExpect403 ,
77
- throwOnError : throwAllExpect403 ,
77
+ throwOnError : noThrow ,
78
78
meta : {
79
79
mightRequireAuth : true ,
80
80
} ,
@@ -100,7 +100,7 @@ export const createEngineManagerContext = ({
100
100
throw new Error ( `Region not found: ${ regionId } ` ) ;
101
101
} ,
102
102
retry : shouldRetryAllExpect403 ,
103
- throwOnError : throwAllExpect403 ,
103
+ throwOnError : noThrow ,
104
104
meta : {
105
105
mightRequireAuth : true ,
106
106
} ,
@@ -124,7 +124,7 @@ export const createEngineManagerContext = ({
124
124
return transformActor ( data . actors [ 0 ] ) ;
125
125
} ,
126
126
retry : shouldRetryAllExpect403 ,
127
- throwOnError : throwAllExpect403 ,
127
+ throwOnError : noThrow ,
128
128
meta : {
129
129
mightRequireAuth : true ,
130
130
} ,
@@ -199,7 +199,7 @@ export const createEngineManagerContext = ({
199
199
return lastPage . pagination . cursor ;
200
200
} ,
201
201
retry : shouldRetryAllExpect403 ,
202
- throwOnError : throwAllExpect403 ,
202
+ throwOnError : noThrow ,
203
203
meta : {
204
204
mightRequireAuth : true ,
205
205
} ,
@@ -237,7 +237,7 @@ export const createEngineManagerContext = ({
237
237
return lastPage . pagination . cursor ;
238
238
} ,
239
239
retry : shouldRetryAllExpect403 ,
240
- throwOnError : throwAllExpect403 ,
240
+ throwOnError : noThrow ,
241
241
meta : {
242
242
mightRequireAuth : true ,
243
243
} ,
@@ -260,7 +260,7 @@ export const createEngineManagerContext = ({
260
260
return response . actor . actorId ;
261
261
} ,
262
262
onSuccess : ( ) => { } ,
263
- throwOnError : throwAllExpect403 ,
263
+ throwOnError : noThrow ,
264
264
retry : shouldRetryAllExpect403 ,
265
265
meta : {
266
266
mightRequireAuth : true ,
@@ -270,7 +270,7 @@ export const createEngineManagerContext = ({
270
270
actorDestroyMutationOptions ( actorId ) {
271
271
return {
272
272
...def . actorDestroyMutationOptions ( actorId ) ,
273
- throwOnError : throwAllExpect403 ,
273
+ throwOnError : noThrow ,
274
274
retry : shouldRetryAllExpect403 ,
275
275
meta : {
276
276
mightRequireAuth : true ,
@@ -309,7 +309,7 @@ export const runnersQueryOptions = (opts: { namespace: NamespaceNameId }) => {
309
309
} ,
310
310
select : ( data ) => data . pages . flatMap ( ( page ) => page . runners ) ,
311
311
retry : shouldRetryAllExpect403 ,
312
- throwOnError : throwAllExpect403 ,
312
+ throwOnError : noThrow ,
313
313
meta : {
314
314
mightRequireAuth : true ,
315
315
} ,
@@ -333,7 +333,7 @@ export const runnerQueryOptions = (opts: {
333
333
) ;
334
334
return data . runner ;
335
335
} ,
336
- throwOnError : throwAllExpect403 ,
336
+ throwOnError : noThrow ,
337
337
retry : shouldRetryAllExpect403 ,
338
338
meta : {
339
339
mightRequireAuth : true ,
@@ -360,7 +360,7 @@ export const runnerByNameQueryOptions = (opts: {
360
360
}
361
361
return data . runners [ 0 ] ;
362
362
} ,
363
- throwOnError : throwAllExpect403 ,
363
+ throwOnError : noThrow ,
364
364
retry : shouldRetryAllExpect403 ,
365
365
meta : {
366
366
mightRequireAuth : true ,
@@ -394,7 +394,7 @@ export const runnerNamesQueryOptions = (opts: {
394
394
return lastPage . pagination . cursor ;
395
395
} ,
396
396
select : ( data ) => data . pages . flatMap ( ( page ) => page . names ) ,
397
- throwOnError : throwAllExpect403 ,
397
+ throwOnError : noThrow ,
398
398
retry : shouldRetryAllExpect403 ,
399
399
meta : {
400
400
mightRequireAuth : true ,
@@ -423,7 +423,7 @@ export const namespacesQueryOptions = () => {
423
423
return lastPage . pagination . cursor ;
424
424
} ,
425
425
select : ( data ) => data . pages . flatMap ( ( page ) => page . namespaces ) ,
426
- throwOnError : throwAllExpect403 ,
426
+ throwOnError : noThrow ,
427
427
retry : shouldRetryAllExpect403 ,
428
428
meta : {
429
429
mightRequireAuth : true ,
@@ -447,7 +447,7 @@ export const namespaceQueryOptions = (
447
447
: skipToken ,
448
448
449
449
retry : shouldRetryAllExpect403 ,
450
- throwOnError : throwAllExpect403 ,
450
+ throwOnError : noThrow ,
451
451
meta : {
452
452
mightRequireAuth : true ,
453
453
} ,
0 commit comments