modal 0.6.2 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -45032,7 +45032,8 @@ var SecretService = class {
45032
45032
  secret.secretId
45033
45033
  );
45034
45034
  } catch (err) {
45035
- if (err instanceof NotFoundError && params?.allowMissing) {
45035
+ const isNotFound = err instanceof NotFoundError || err instanceof import_nice_grpc2.ClientError && err.code === import_nice_grpc2.Status.NOT_FOUND;
45036
+ if (isNotFound && params?.allowMissing) {
45036
45037
  return;
45037
45038
  }
45038
45039
  throw err;
@@ -46245,7 +46246,8 @@ var QueueService = class {
46245
46246
  queue.queueId
46246
46247
  );
46247
46248
  } catch (err) {
46248
- if (err instanceof NotFoundError && params.allowMissing) {
46249
+ const isNotFound = err instanceof NotFoundError || err instanceof import_nice_grpc7.ClientError && err.code === import_nice_grpc7.Status.NOT_FOUND;
46250
+ if (isNotFound && params.allowMissing) {
46249
46251
  return;
46250
46252
  }
46251
46253
  throw err;
@@ -47622,7 +47624,8 @@ var VolumeService = class {
47622
47624
  volume.volumeId
47623
47625
  );
47624
47626
  } catch (err) {
47625
- if (err instanceof NotFoundError && params?.allowMissing) {
47627
+ const isNotFound = err instanceof NotFoundError || err instanceof import_nice_grpc9.ClientError && err.code === import_nice_grpc9.Status.NOT_FOUND;
47628
+ if (isNotFound && params?.allowMissing) {
47626
47629
  return;
47627
47630
  }
47628
47631
  throw err;
@@ -47876,7 +47879,7 @@ var AuthTokenManager = class {
47876
47879
 
47877
47880
  // src/version.ts
47878
47881
  function getSDKVersion() {
47879
- return true ? "0.6.2" : "0.0.0";
47882
+ return true ? "0.6.3" : "0.0.0";
47880
47883
  }
47881
47884
 
47882
47885
  // src/logger.ts
@@ -48072,7 +48075,10 @@ var ModalClient2 = class {
48072
48075
  const channel = (0, import_nice_grpc10.createChannel)(profile.serverUrl, void 0, {
48073
48076
  "grpc.max_receive_message_length": 100 * 1024 * 1024,
48074
48077
  "grpc.max_send_message_length": 100 * 1024 * 1024,
48075
- "grpc-node.flow_control_window": 64 * 1024 * 1024
48078
+ "grpc-node.flow_control_window": 64 * 1024 * 1024,
48079
+ "grpc.keepalive_time_ms": 3e4,
48080
+ "grpc.keepalive_timeout_ms": 1e4,
48081
+ "grpc.keepalive_permit_without_calls": 1
48076
48082
  });
48077
48083
  let factory = (0, import_nice_grpc10.createClientFactory)().use(this.authMiddleware(profile)).use(this.retryMiddleware()).use(timeoutMiddleware);
48078
48084
  for (const middleware of this.customMiddleware) {
package/dist/index.js CHANGED
@@ -44964,7 +44964,8 @@ var SecretService = class {
44964
44964
  secret.secretId
44965
44965
  );
44966
44966
  } catch (err) {
44967
- if (err instanceof NotFoundError && params?.allowMissing) {
44967
+ const isNotFound = err instanceof NotFoundError || err instanceof ClientError2 && err.code === Status2.NOT_FOUND;
44968
+ if (isNotFound && params?.allowMissing) {
44968
44969
  return;
44969
44970
  }
44970
44971
  throw err;
@@ -46177,7 +46178,8 @@ var QueueService = class {
46177
46178
  queue.queueId
46178
46179
  );
46179
46180
  } catch (err) {
46180
- if (err instanceof NotFoundError && params.allowMissing) {
46181
+ const isNotFound = err instanceof NotFoundError || err instanceof ClientError6 && err.code === Status6.NOT_FOUND;
46182
+ if (isNotFound && params.allowMissing) {
46181
46183
  return;
46182
46184
  }
46183
46185
  throw err;
@@ -47554,7 +47556,8 @@ var VolumeService = class {
47554
47556
  volume.volumeId
47555
47557
  );
47556
47558
  } catch (err) {
47557
- if (err instanceof NotFoundError && params?.allowMissing) {
47559
+ const isNotFound = err instanceof NotFoundError || err instanceof ClientError8 && err.code === Status8.NOT_FOUND;
47560
+ if (isNotFound && params?.allowMissing) {
47558
47561
  return;
47559
47562
  }
47560
47563
  throw err;
@@ -47808,7 +47811,7 @@ var AuthTokenManager = class {
47808
47811
 
47809
47812
  // src/version.ts
47810
47813
  function getSDKVersion() {
47811
- return true ? "0.6.2" : "0.0.0";
47814
+ return true ? "0.6.3" : "0.0.0";
47812
47815
  }
47813
47816
 
47814
47817
  // src/logger.ts
@@ -48004,7 +48007,10 @@ var ModalClient2 = class {
48004
48007
  const channel = createChannel(profile.serverUrl, void 0, {
48005
48008
  "grpc.max_receive_message_length": 100 * 1024 * 1024,
48006
48009
  "grpc.max_send_message_length": 100 * 1024 * 1024,
48007
- "grpc-node.flow_control_window": 64 * 1024 * 1024
48010
+ "grpc-node.flow_control_window": 64 * 1024 * 1024,
48011
+ "grpc.keepalive_time_ms": 3e4,
48012
+ "grpc.keepalive_timeout_ms": 1e4,
48013
+ "grpc.keepalive_permit_without_calls": 1
48008
48014
  });
48009
48015
  let factory = createClientFactory().use(this.authMiddleware(profile)).use(this.retryMiddleware()).use(timeoutMiddleware);
48010
48016
  for (const middleware of this.customMiddleware) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "modal",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "Modal SDK for JavaScript/TypeScript",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://modal.com/docs/guide/sdk-javascript-go",