@fougere/transport-http 0.8.4-alpha.0 → 0.9.0-alpha.0

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/client.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /** Sending half — frame the call, POST it, unframe the result. */
2
2
  import { type Transport, type FrondCall, type InvocationContext, type SignedCall } from '@fougere/core/contract';
3
3
  import type { RpcRequest } from './jsonrpc.js';
4
- export type { RpcRequest, RpcResponse } from './jsonrpc.js';
4
+ export type { RpcResponse } from './jsonrpc.js';
5
5
  /** Frame a call as a JSON-RPC request. */
6
6
  export declare function frameCall(call: FrondCall, invocation: InvocationContext, id: number): RpcRequest;
7
7
  /** Unframe a JSON-RPC response — the result, or the revived FougereError thrown. */
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,OAAO,EAA2B,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,iBAAiB,EAAE,KAAK,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAC1I,OAAO,KAAK,EAAE,UAAU,EAA8B,MAAM,cAAc,CAAC;AAC3E,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE5D,0CAA0C;AAC1C,wBAAgB,SAAS,CAAC,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,iBAAiB,EAAE,EAAE,EAAE,MAAM,GAAG,UAAU,CAEhG;AAED,oFAAoF;AACpF,wBAAgB,eAAe,CAAC,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,CA4B3E;AAED,MAAM,WAAW,oBAAoB;IACnC,8FAA8F;IAC9F,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oFAAoF;IACpF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,U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AAG,SAAS,CA6ElG"}
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- export { createHttpTransport, frameCall, unframeResponse, type HttpTransportOptions } from './client.js';
2
- export { handleRpc, type ReceiveOptions } from './server.js';
3
- export { receive, type ReceiveHttpOptions } from './receive.js';
4
- export { CALL_PATH, MAX_BODY_BYTES } from './policy.js';
5
- export { serve, type ServeOptions, type RunningReceiver } from './serve.js';
6
- export { APP_ERROR, PARSE_ERROR, INVALID_REQUEST } from './jsonrpc.js';
7
- export type { RpcRequest, RpcResponse, RpcErrorShape } from './jsonrpc.js';
1
+ export { createHttpTransport, frameCall, unframeResponse } from './client.js';
2
+ export { handleRpc } from './server.js';
3
+ export { receive } from './receive.js';
4
+ export { MAX_BODY_BYTES } from './policy.js';
5
+ export { serve, type RunningReceiver } from './serve.js';
6
+ export { PARSE_ERROR } from './jsonrpc.js';
7
+ export type { RpcResponse } from './jsonrpc.js';
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,SAAS,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACzG,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,KAAK,YAAY,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAC5E,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACvE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,YAAY,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC"}
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export { createHttpTransport, frameCall, unframeResponse } from './client.js';
2
2
  export { handleRpc } from './server.js';
3
3
  export { receive } from './receive.js';
4
- export { CALL_PATH, MAX_BODY_BYTES } from './policy.js';
4
+ export { MAX_BODY_BYTES } from './policy.js';
5
5
  export { serve } from './serve.js';
6
- export { APP_ERROR, PARSE_ERROR, INVALID_REQUEST } from './jsonrpc.js';
6
+ export { PARSE_ERROR } from './jsonrpc.js';
7
7
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,SAAS,EAAE,eAAe,EAA6B,MAAM,aAAa,CAAC;AACzG,OAAO,EAAE,SAAS,EAAuB,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,OAAO,EAA2B,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,KAAK,EAA2C,MAAM,YAAY,CAAC;AAC5E,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAwB,MAAM,YAAY,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fougere/transport-http",
3
- "version": "0.8.4-alpha.0",
3
+ "version": "0.9.0-alpha.0",
4
4
  "description": "The call contract on the wire, in JSON-RPC 2.0 (server + client).",
5
5
  "keywords": [
6
6
  "fougere",
@@ -38,13 +38,13 @@
38
38
  "src"
39
39
  ],
40
40
  "dependencies": {
41
- "@fougere/core": "0.8.4-alpha.0"
41
+ "@fougere/core": "0.9.0-alpha.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "jiti": "^2.6.1",
45
- "@fougere/container": "0.8.4-alpha.0",
46
- "@fougere/schema": "0.8.4-alpha.0",
47
- "@fougere/compiler": "0.8.4-alpha.0"
45
+ "@fougere/schema": "0.9.0-alpha.0",
46
+ "@fougere/compiler": "0.9.0-alpha.0",
47
+ "@fougere/container": "0.9.0-alpha.0"
48
48
  },
49
49
  "publishConfig": {
50
50
  "access": "public"
package/src/client.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /** Sending half — frame the call, POST it, unframe the result. */
2
2
  import { FougereError, ErrorCode, type Transport, type FrondCall, type InvocationContext, type SignedCall } from '@fougere/core/contract';
3
3
  import type { RpcRequest, RpcResponse, RpcErrorShape } from './jsonrpc.js';
4
- export type { RpcRequest, RpcResponse } from './jsonrpc.js';
4
+ export type { RpcResponse } from './jsonrpc.js';
5
5
 
6
6
  /** Frame a call as a JSON-RPC request. */
7
7
  export function frameCall(call: FrondCall, invocation: InvocationContext, id: number): RpcRequest {
package/src/index.ts CHANGED
@@ -1,7 +1,7 @@
1
- export { createHttpTransport, frameCall, unframeResponse, type HttpTransportOptions } from './client.js';
2
- export { handleRpc, type ReceiveOptions } from './server.js';
3
- export { receive, type ReceiveHttpOptions } from './receive.js';
4
- export { CALL_PATH, MAX_BODY_BYTES } from './policy.js';
5
- export { serve, type ServeOptions, type RunningReceiver } from './serve.js';
6
- export { APP_ERROR, PARSE_ERROR, INVALID_REQUEST } from './jsonrpc.js';
7
- export type { RpcRequest, RpcResponse, RpcErrorShape } from './jsonrpc.js';
1
+ export { createHttpTransport, frameCall, unframeResponse } from './client.js';
2
+ export { handleRpc } from './server.js';
3
+ export { receive } from './receive.js';
4
+ export { MAX_BODY_BYTES } from './policy.js';
5
+ export { serve, type RunningReceiver } from './serve.js';
6
+ export { PARSE_ERROR } from './jsonrpc.js';
7
+ export type { RpcResponse } from './jsonrpc.js';