@scaffoldly/rowdy 0.0.2-1-beta.20251028095209.ac8bae8 → 0.0.2-1-beta.20251028111924.3c076b1

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +3 -6
  2. package/dist/index.js +1061 -1049
  3. package/package.json +3 -2
package/dist/index.d.ts CHANGED
@@ -3,8 +3,7 @@ import { Observable, ReplaySubject } from 'rxjs';
3
3
  import { AxiosInstance, AxiosHeaders, AxiosResponseHeaders } from 'axios';
4
4
  import * as path_to_regexp from 'path-to-regexp';
5
5
  import { PassThrough, Readable, Writable } from 'stream';
6
- import { CRIServices, Router, Response as Response$1 } from '@scaffoldly/rowdy-grpc';
7
- import { Transport } from '@connectrpc/connect';
6
+ import { GrpcRouter, GrpcResponse } from '@scaffoldly/rowdy-grpc';
8
7
  import { Agent } from 'https';
9
8
  import { APIGatewayProxyEventV2 } from 'aws-lambda';
10
9
 
@@ -46,7 +45,7 @@ declare abstract class Pipeline implements ILoggable {
46
45
  get signal(): AbortSignal;
47
46
  get routes(): Routes;
48
47
  get createdAt(): number;
49
- abstract cri(transport: Transport): CRIServices;
48
+ abstract get cri(): GrpcRouter;
50
49
  abstract into(): Observable<Request<Pipeline>>;
51
50
  abstract repr(): string;
52
51
  }
@@ -364,9 +363,7 @@ declare class Rowdy {
364
363
  private _images;
365
364
  private _registry;
366
365
  private _proxy?;
367
- private _cri;
368
366
  constructor(log: Logger, signal: AbortSignal);
369
- get Cri(): Router;
370
367
  get Images(): IImageApi;
371
368
  get Registry(): IRegistryApi;
372
369
  get proxy(): HttpProxy<Pipeline> | undefined;
@@ -396,7 +393,7 @@ declare class Rowdy {
396
393
  };
397
394
  withProxy(proxy: HttpProxy<Pipeline>): this;
398
395
  health(): Observable<ApiSchema<Health$1['res'], ApiResponseStatus>>;
399
- cri(proxy: HttpProxy<Pipeline>): Observable<Response$1>;
396
+ cri(proxy: HttpProxy<Pipeline>): Observable<GrpcResponse>;
400
397
  api(): Observable<ApiSchema<unknown, ApiResponseStatus>>;
401
398
  private notFound;
402
399
  private badRequest;