MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / wrap

Function wrap

packages/plugins/workos-vault/src/sdk/testing.ts:180–187  ·  view source on GitHub ↗
(
    operation: string,
    effect: Effect.Effect<A, TestWorkOSVaultError>,
  )

Source from the content-addressed store, hash-verified

178 });
179
180 const wrap = <A>(
181 operation: string,
182 effect: Effect.Effect<A, TestWorkOSVaultError>,
183 ): Effect.Effect<A, WorkOSVaultClientError> =>
184 effect.pipe(
185 Effect.mapError((cause) => new WorkOSVaultClientError({ cause, operation })),
186 Effect.withSpan(`workos_vault.test.${operation}`),
187 );
188
189 // Promise-shaped facade exposed to `use` callers, which may be plugin code
190 // that still calls into the underlying SDK directly via `client.use(...)`.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected