@service-bridge/node 0.1.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/README.md +854 -0
- package/biome.json +28 -0
- package/bun.lock +249 -0
- package/dist/express.d.ts +51 -0
- package/dist/express.js +129 -0
- package/dist/fastify.d.ts +43 -0
- package/dist/fastify.js +122 -0
- package/dist/index.js +34410 -0
- package/dist/trace.d.ts +19 -0
- package/http/dist/express.d.ts +51 -0
- package/http/dist/express.d.ts.map +1 -0
- package/http/dist/express.test.d.ts +2 -0
- package/http/dist/express.test.d.ts.map +1 -0
- package/http/dist/fastify.d.ts +43 -0
- package/http/dist/fastify.d.ts.map +1 -0
- package/http/dist/fastify.test.d.ts +2 -0
- package/http/dist/fastify.test.d.ts.map +1 -0
- package/http/dist/index.d.ts +7 -0
- package/http/dist/index.d.ts.map +1 -0
- package/http/dist/trace.d.ts +19 -0
- package/http/dist/trace.d.ts.map +1 -0
- package/http/dist/trace.test.d.ts +2 -0
- package/http/dist/trace.test.d.ts.map +1 -0
- package/http/package.json +48 -0
- package/http/src/express.test.ts +125 -0
- package/http/src/express.ts +209 -0
- package/http/src/fastify.test.ts +142 -0
- package/http/src/fastify.ts +159 -0
- package/http/src/index.ts +10 -0
- package/http/src/sdk-augment.d.ts +11 -0
- package/http/src/servicebridge.d.ts +23 -0
- package/http/src/trace.test.ts +97 -0
- package/http/src/trace.ts +56 -0
- package/http/tsconfig.json +17 -0
- package/http/tsconfig.test.json +6 -0
- package/package.json +65 -0
- package/sdk/dist/generated/servicebridge-package-definition.d.ts +4709 -0
- package/sdk/dist/grpc-client.d.ts +304 -0
- package/sdk/dist/grpc-client.test.d.ts +1 -0
- package/sdk/dist/index.d.ts +2 -0
- package/sdk/package.json +30 -0
- package/sdk/scripts/generate-proto.ts +65 -0
- package/sdk/src/generated/servicebridge-package-definition.ts +5198 -0
- package/sdk/src/grpc-client.d.ts +305 -0
- package/sdk/src/grpc-client.d.ts.map +1 -0
- package/sdk/src/grpc-client.test.ts +422 -0
- package/sdk/src/grpc-client.ts +2924 -0
- package/sdk/src/index.d.ts +3 -0
- package/sdk/src/index.d.ts.map +1 -0
- package/sdk/src/index.ts +29 -0
- package/sdk/tsconfig.json +13 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type { EventContext, EventOpts, HandleEventOpts, HandleRpcOpts, HttpSpan, RetryPolicy, RpcContext, RpcFieldDef, RpcFieldType, RpcOpts, RpcSchema, RpcSchemaOpts, RunStreamEvent, ScheduleOpts, ServeOpts, ServiceBridgeErrorSeverity, ServiceBridgeOpts, ServiceBridgeService, StreamWriter, TraceCtx, WatchRunOpts, } from "./grpc-client";
|
|
2
|
+
export { getTraceContext, runWithTraceContext, ServiceBridgeError, servicebridge, } from "./grpc-client";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,YAAY,EACZ,SAAS,EACT,eAAe,EACf,aAAa,EACb,QAAQ,EACR,WAAW,EACX,UAAU,EACV,WAAW,EACX,YAAY,EACZ,OAAO,EACP,SAAS,EACT,aAAa,EACb,cAAc,EACd,YAAY,EACZ,SAAS,EACT,0BAA0B,EAC1B,iBAAiB,EACjB,oBAAoB,EACpB,YAAY,EACZ,QAAQ,EACR,YAAY,GACb,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,aAAa,GACd,MAAM,eAAe,CAAC"}
|
package/sdk/src/index.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export type {
|
|
2
|
+
EventContext,
|
|
3
|
+
EventOpts,
|
|
4
|
+
HandleEventOpts,
|
|
5
|
+
HandleRpcOpts,
|
|
6
|
+
HttpSpan,
|
|
7
|
+
RetryPolicy,
|
|
8
|
+
RpcContext,
|
|
9
|
+
RpcFieldDef,
|
|
10
|
+
RpcFieldType,
|
|
11
|
+
RpcOpts,
|
|
12
|
+
RpcSchema,
|
|
13
|
+
RpcSchemaOpts,
|
|
14
|
+
RunStreamEvent,
|
|
15
|
+
ScheduleOpts,
|
|
16
|
+
ServeOpts,
|
|
17
|
+
ServiceBridgeErrorSeverity,
|
|
18
|
+
ServiceBridgeOpts,
|
|
19
|
+
ServiceBridgeService,
|
|
20
|
+
StreamWriter,
|
|
21
|
+
TraceCtx,
|
|
22
|
+
WatchRunOpts,
|
|
23
|
+
} from "./grpc-client";
|
|
24
|
+
export {
|
|
25
|
+
getTraceContext,
|
|
26
|
+
runWithTraceContext,
|
|
27
|
+
ServiceBridgeError,
|
|
28
|
+
servicebridge,
|
|
29
|
+
} from "./grpc-client";
|