@@ -18,7 +18,7 @@ import {
1818 ActorQueryOptionsSchema ,
1919 createDefaultManagerContext ,
2020} from "@/components/actors/manager-context" ;
21- import { shouldRetryAllExpect403 , throwAllExpect403 } from "./utils" ;
21+ import { noThrow , shouldRetryAllExpect403 } from "./utils" ;
2222
2323export const createClient = ( opts : { token : ( ( ) => string ) | string } ) =>
2424 new RivetClient ( {
@@ -53,7 +53,7 @@ export const createEngineManagerContext = ({
5353 return true ;
5454 } ,
5555 retry : shouldRetryAllExpect403 ,
56- throwOnError : throwAllExpect403 ,
56+ throwOnError : noThrow ,
5757 meta : {
5858 mightRequireAuth : true ,
5959 } ,
@@ -74,7 +74,7 @@ export const createEngineManagerContext = ({
7474 } ;
7575 } ,
7676 retry : shouldRetryAllExpect403 ,
77- throwOnError : throwAllExpect403 ,
77+ throwOnError : noThrow ,
7878 meta : {
7979 mightRequireAuth : true ,
8080 } ,
@@ -100,7 +100,7 @@ export const createEngineManagerContext = ({
100100 throw new Error ( `Region not found: ${ regionId } ` ) ;
101101 } ,
102102 retry : shouldRetryAllExpect403 ,
103- throwOnError : throwAllExpect403 ,
103+ throwOnError : noThrow ,
104104 meta : {
105105 mightRequireAuth : true ,
106106 } ,
@@ -124,7 +124,7 @@ export const createEngineManagerContext = ({
124124 return transformActor ( data . actors [ 0 ] ) ;
125125 } ,
126126 retry : shouldRetryAllExpect403 ,
127- throwOnError : throwAllExpect403 ,
127+ throwOnError : noThrow ,
128128 meta : {
129129 mightRequireAuth : true ,
130130 } ,
@@ -199,7 +199,7 @@ export const createEngineManagerContext = ({
199199 return lastPage . pagination . cursor ;
200200 } ,
201201 retry : shouldRetryAllExpect403 ,
202- throwOnError : throwAllExpect403 ,
202+ throwOnError : noThrow ,
203203 meta : {
204204 mightRequireAuth : true ,
205205 } ,
@@ -237,7 +237,7 @@ export const createEngineManagerContext = ({
237237 return lastPage . pagination . cursor ;
238238 } ,
239239 retry : shouldRetryAllExpect403 ,
240- throwOnError : throwAllExpect403 ,
240+ throwOnError : noThrow ,
241241 meta : {
242242 mightRequireAuth : true ,
243243 } ,
@@ -260,7 +260,7 @@ export const createEngineManagerContext = ({
260260 return response . actor . actorId ;
261261 } ,
262262 onSuccess : ( ) => { } ,
263- throwOnError : throwAllExpect403 ,
263+ throwOnError : noThrow ,
264264 retry : shouldRetryAllExpect403 ,
265265 meta : {
266266 mightRequireAuth : true ,
@@ -270,7 +270,7 @@ export const createEngineManagerContext = ({
270270 actorDestroyMutationOptions ( actorId ) {
271271 return {
272272 ...def . actorDestroyMutationOptions ( actorId ) ,
273- throwOnError : throwAllExpect403 ,
273+ throwOnError : noThrow ,
274274 retry : shouldRetryAllExpect403 ,
275275 meta : {
276276 mightRequireAuth : true ,
@@ -309,7 +309,7 @@ export const runnersQueryOptions = (opts: { namespace: NamespaceNameId }) => {
309309 } ,
310310 select : ( data ) => data . pages . flatMap ( ( page ) => page . runners ) ,
311311 retry : shouldRetryAllExpect403 ,
312- throwOnError : throwAllExpect403 ,
312+ throwOnError : noThrow ,
313313 meta : {
314314 mightRequireAuth : true ,
315315 } ,
@@ -333,7 +333,7 @@ export const runnerQueryOptions = (opts: {
333333 ) ;
334334 return data . runner ;
335335 } ,
336- throwOnError : throwAllExpect403 ,
336+ throwOnError : noThrow ,
337337 retry : shouldRetryAllExpect403 ,
338338 meta : {
339339 mightRequireAuth : true ,
@@ -360,7 +360,7 @@ export const runnerByNameQueryOptions = (opts: {
360360 }
361361 return data . runners [ 0 ] ;
362362 } ,
363- throwOnError : throwAllExpect403 ,
363+ throwOnError : noThrow ,
364364 retry : shouldRetryAllExpect403 ,
365365 meta : {
366366 mightRequireAuth : true ,
@@ -394,7 +394,7 @@ export const runnerNamesQueryOptions = (opts: {
394394 return lastPage . pagination . cursor ;
395395 } ,
396396 select : ( data ) => data . pages . flatMap ( ( page ) => page . names ) ,
397- throwOnError : throwAllExpect403 ,
397+ throwOnError : noThrow ,
398398 retry : shouldRetryAllExpect403 ,
399399 meta : {
400400 mightRequireAuth : true ,
@@ -423,7 +423,7 @@ export const namespacesQueryOptions = () => {
423423 return lastPage . pagination . cursor ;
424424 } ,
425425 select : ( data ) => data . pages . flatMap ( ( page ) => page . namespaces ) ,
426- throwOnError : throwAllExpect403 ,
426+ throwOnError : noThrow ,
427427 retry : shouldRetryAllExpect403 ,
428428 meta : {
429429 mightRequireAuth : true ,
@@ -447,7 +447,7 @@ export const namespaceQueryOptions = (
447447 : skipToken ,
448448
449449 retry : shouldRetryAllExpect403 ,
450- throwOnError : throwAllExpect403 ,
450+ throwOnError : noThrow ,
451451 meta : {
452452 mightRequireAuth : true ,
453453 } ,
0 commit comments