@temporary-name/standard-server 1.9.3-alpha.afd18ec2afa743b08cf1b5c2eb6252ded18a1f43 → 1.9.3-alpha.b7ce8fb6e9463a26fd2564cb172dc612ae4de52d

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.
@@ -1,5 +1,4 @@
1
- import { S as StandardHeaders, c as StandardRequest, e as StandardResponse } from '../shared/standard-server.BD8Sg1A5.mjs';
2
- import { Promisable } from '@temporary-name/shared';
1
+ import { StandardHeaders, StandardRequest, StandardResponse, Promisable } from '@temporary-name/shared';
3
2
 
4
3
  interface ToBatchRequestOptions {
5
4
  url: URL;
@@ -1,5 +1,4 @@
1
- import { S as StandardHeaders, c as StandardRequest, e as StandardResponse } from '../shared/standard-server.BD8Sg1A5.js';
2
- import { Promisable } from '@temporary-name/shared';
1
+ import { StandardHeaders, StandardRequest, StandardResponse, Promisable } from '@temporary-name/shared';
3
2
 
4
3
  interface ToBatchRequestOptions {
5
4
  url: URL;
package/dist/index.d.mts CHANGED
@@ -1,6 +1,4 @@
1
- import { AsyncIteratorClass } from '@temporary-name/shared';
2
- import { S as StandardHeaders, a as StandardLazyResponse } from './shared/standard-server.BD8Sg1A5.mjs';
3
- export { b as StandardBody, d as StandardLazyRequest, c as StandardRequest, e as StandardResponse } from './shared/standard-server.BD8Sg1A5.mjs';
1
+ import { AsyncIteratorClass, StandardHeaders, StandardLazyResponse } from '@temporary-name/shared';
4
2
 
5
3
  interface EventMessage {
6
4
  event: string | undefined;
@@ -76,5 +74,5 @@ declare function flattenHeader(header: string | readonly string[] | undefined):
76
74
  declare function replicateStandardLazyResponse(response: StandardLazyResponse, count: number): StandardLazyResponse[];
77
75
  declare function isEventIteratorHeaders(headers: StandardHeaders): boolean;
78
76
 
79
- export { ErrorEvent, EventDecoder, EventDecoderError, EventDecoderStream, EventEncoderError, HibernationEventIterator, StandardHeaders, StandardLazyResponse, assertEventComment, assertEventId, assertEventName, assertEventRetry, decodeEventMessage, encodeEventComments, encodeEventData, encodeEventMessage, flattenHeader, generateContentDisposition, getEventMeta, getFilenameFromContentDisposition, isEventIteratorHeaders, mapEventIterator, mergeStandardHeaders, replicateStandardLazyResponse, withEventMeta };
77
+ export { ErrorEvent, EventDecoder, EventDecoderError, EventDecoderStream, EventEncoderError, HibernationEventIterator, assertEventComment, assertEventId, assertEventName, assertEventRetry, decodeEventMessage, encodeEventComments, encodeEventData, encodeEventMessage, flattenHeader, generateContentDisposition, getEventMeta, getFilenameFromContentDisposition, isEventIteratorHeaders, mapEventIterator, mergeStandardHeaders, replicateStandardLazyResponse, withEventMeta };
80
78
  export type { ErrorEventOptions, EventDecoderOptions, EventMessage, EventMeta, HibernationEventIteratorCallback };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,4 @@
1
- import { AsyncIteratorClass } from '@temporary-name/shared';
2
- import { S as StandardHeaders, a as StandardLazyResponse } from './shared/standard-server.BD8Sg1A5.js';
3
- export { b as StandardBody, d as StandardLazyRequest, c as StandardRequest, e as StandardResponse } from './shared/standard-server.BD8Sg1A5.js';
1
+ import { AsyncIteratorClass, StandardHeaders, StandardLazyResponse } from '@temporary-name/shared';
4
2
 
5
3
  interface EventMessage {
6
4
  event: string | undefined;
@@ -76,5 +74,5 @@ declare function flattenHeader(header: string | readonly string[] | undefined):
76
74
  declare function replicateStandardLazyResponse(response: StandardLazyResponse, count: number): StandardLazyResponse[];
77
75
  declare function isEventIteratorHeaders(headers: StandardHeaders): boolean;
78
76
 
79
- export { ErrorEvent, EventDecoder, EventDecoderError, EventDecoderStream, EventEncoderError, HibernationEventIterator, StandardHeaders, StandardLazyResponse, assertEventComment, assertEventId, assertEventName, assertEventRetry, decodeEventMessage, encodeEventComments, encodeEventData, encodeEventMessage, flattenHeader, generateContentDisposition, getEventMeta, getFilenameFromContentDisposition, isEventIteratorHeaders, mapEventIterator, mergeStandardHeaders, replicateStandardLazyResponse, withEventMeta };
77
+ export { ErrorEvent, EventDecoder, EventDecoderError, EventDecoderStream, EventEncoderError, HibernationEventIterator, assertEventComment, assertEventId, assertEventName, assertEventRetry, decodeEventMessage, encodeEventComments, encodeEventData, encodeEventMessage, flattenHeader, generateContentDisposition, getEventMeta, getFilenameFromContentDisposition, isEventIteratorHeaders, mapEventIterator, mergeStandardHeaders, replicateStandardLazyResponse, withEventMeta };
80
78
  export type { ErrorEventOptions, EventDecoderOptions, EventMessage, EventMeta, HibernationEventIteratorCallback };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@temporary-name/standard-server",
3
3
  "type": "module",
4
- "version": "1.9.3-alpha.afd18ec2afa743b08cf1b5c2eb6252ded18a1f43",
4
+ "version": "1.9.3-alpha.b7ce8fb6e9463a26fd2564cb172dc612ae4de52d",
5
5
  "license": "MIT",
6
6
  "homepage": "https://www.stainless.com/",
7
7
  "repository": {
@@ -28,7 +28,7 @@
28
28
  "dist"
29
29
  ],
30
30
  "dependencies": {
31
- "@temporary-name/shared": "1.9.3-alpha.afd18ec2afa743b08cf1b5c2eb6252ded18a1f43"
31
+ "@temporary-name/shared": "1.9.3-alpha.b7ce8fb6e9463a26fd2564cb172dc612ae4de52d"
32
32
  },
33
33
  "scripts": {
34
34
  "build": "unbuild",
@@ -1,38 +0,0 @@
1
- interface StandardHeaders {
2
- [key: string]: string | string[] | undefined;
3
- }
4
- type StandardBody = undefined | unknown | Blob | URLSearchParams | FormData | AsyncIterator<unknown | void, unknown | void, undefined>;
5
- interface StandardRequest {
6
- method: string;
7
- url: URL;
8
- headers: StandardHeaders;
9
- /**
10
- * The body has been parsed based on the content-type header.
11
- */
12
- body: StandardBody;
13
- signal: AbortSignal | undefined;
14
- }
15
- interface StandardLazyRequest extends Omit<StandardRequest, 'body'> {
16
- /**
17
- * The body has been parsed based on the content-type header.
18
- * This method can safely call multiple times (cached).
19
- */
20
- body: () => Promise<StandardBody>;
21
- }
22
- interface StandardResponse {
23
- status: number;
24
- headers: StandardHeaders;
25
- /**
26
- * The body has been parsed based on the content-type header.
27
- */
28
- body: StandardBody;
29
- }
30
- interface StandardLazyResponse extends Omit<StandardResponse, 'body'> {
31
- /**
32
- * The body has been parsed based on the content-type header.
33
- * This method can safely call multiple times (cached).
34
- */
35
- body: () => Promise<StandardBody>;
36
- }
37
-
38
- export type { StandardHeaders as S, StandardLazyResponse as a, StandardBody as b, StandardRequest as c, StandardLazyRequest as d, StandardResponse as e };
@@ -1,38 +0,0 @@
1
- interface StandardHeaders {
2
- [key: string]: string | string[] | undefined;
3
- }
4
- type StandardBody = undefined | unknown | Blob | URLSearchParams | FormData | AsyncIterator<unknown | void, unknown | void, undefined>;
5
- interface StandardRequest {
6
- method: string;
7
- url: URL;
8
- headers: StandardHeaders;
9
- /**
10
- * The body has been parsed based on the content-type header.
11
- */
12
- body: StandardBody;
13
- signal: AbortSignal | undefined;
14
- }
15
- interface StandardLazyRequest extends Omit<StandardRequest, 'body'> {
16
- /**
17
- * The body has been parsed based on the content-type header.
18
- * This method can safely call multiple times (cached).
19
- */
20
- body: () => Promise<StandardBody>;
21
- }
22
- interface StandardResponse {
23
- status: number;
24
- headers: StandardHeaders;
25
- /**
26
- * The body has been parsed based on the content-type header.
27
- */
28
- body: StandardBody;
29
- }
30
- interface StandardLazyResponse extends Omit<StandardResponse, 'body'> {
31
- /**
32
- * The body has been parsed based on the content-type header.
33
- * This method can safely call multiple times (cached).
34
- */
35
- body: () => Promise<StandardBody>;
36
- }
37
-
38
- export type { StandardHeaders as S, StandardLazyResponse as a, StandardBody as b, StandardRequest as c, StandardLazyRequest as d, StandardResponse as e };