Skip to content

Commit f0b450b

Browse files
committed
patch
1 parent f5e852b commit f0b450b

File tree

16 files changed

+1333
-45
lines changed

16 files changed

+1333
-45
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION=0.0.11-alpha
1+
VERSION=0.0.11-alpha.2

examples/typescript/minimal/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"browser"
1919
],
2020
"devDependencies": {
21+
"@swc/core": "^1.4.0",
2122
"@types/node": "^18.7.20",
2223
"bebop-tools": "^3.0.3-beta.2",
2324
"tsup": "^6.7.0",
@@ -26,8 +27,8 @@
2627
"wait-port": "^1.0.4"
2728
},
2829
"dependencies": {
29-
"@tempojs/client": "^0.0.11-alpha",
30-
"@tempojs/node-http-router": "^0.0.11-alpha",
31-
"bebop": "3.0.3-beta.2"
30+
"@tempojs/client": "^0.0.11-alpha.2",
31+
"@tempojs/node-http-router": "^0.0.11-alpha.2",
32+
"bebop": "3.0.3-beta.3"
3233
}
3334
}

examples/typescript/minimal/shared/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//
55
//
66
// bebopc version:
7-
// 3.0.3-beta.1
7+
// 3.0.3-beta.2
88
//
99
//
1010
// bebopc source:

examples/typescript/minimal/yarn.lock

Lines changed: 1287 additions & 0 deletions
Large diffs are not rendered by default.

typescript/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tempojs",
3-
"version": "0.0.11-alpha",
3+
"version": "0.0.11-alpha.2",
44
"description": "something",
55
"private": true,
66
"workspaces": [
@@ -26,8 +26,8 @@
2626
"vitest": "^0.30.1"
2727
},
2828
"dependencies": {
29-
"@tempojs/client": "^0.0.11-alpha",
30-
"@tempojs/common": "^0.0.11-alpha",
31-
"@tempojs/server": "^0.0.11-alpha"
29+
"@tempojs/client": "^0.0.11-alpha.2",
30+
"@tempojs/common": "^0.0.11-alpha.2",
31+
"@tempojs/server": "^0.0.11-alpha.2"
3232
}
3333
}

typescript/packages/cf-router/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tempojs/cloudflare-worker-router",
3-
"version": "0.0.11-alpha",
3+
"version": "0.0.11-alpha.2",
44
"description": "",
55
"main": "./dist/index.js",
66
"module": "./dist/index.mjs",
@@ -19,7 +19,7 @@
1919
"author": "andrew",
2020
"license": "",
2121
"dependencies": {
22-
"@tempojs/server": "^0.0.11-alpha"
22+
"@tempojs/server": "^0.0.11-alpha.2"
2323
},
2424
"devDependencies": {
2525
"@cloudflare/workers-types": "^4.20221111.1"

typescript/packages/client/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tempojs/client",
3-
"version": "0.0.11-alpha",
3+
"version": "0.0.11-alpha.2",
44
"description": "xrpc client",
55
"main": "./dist/index.js",
66
"module": "./dist/index.mjs",
@@ -16,6 +16,6 @@
1616
"test": "vitest"
1717
},
1818
"dependencies": {
19-
"@tempojs/common": "^0.0.11-alpha"
19+
"@tempojs/common": "^0.0.11-alpha.2"
2020
}
2121
}

typescript/packages/client/src/channel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export abstract class BaseChannel {
159159
case 'bebop':
160160
return method.serialize(request);
161161
case 'json':
162-
return TempoUtil.utf8GetBytes(method.toJSON(request));
162+
return TempoUtil.utf8GetBytes(method.stringify(request));
163163
default:
164164
throw new TempoError(TempoStatusCode.UNKNOWN_CONTENT_TYPE, `invalid request content type: ${this.contentType}`);
165165
}

typescript/packages/client/src/method.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export interface MethodInfo<TRequest extends BebopRecord, TResponse extends Bebo
4141
* @param value - The request object to convert.
4242
* @returns A JSON string representation of the request object.
4343
*/
44-
toJSON(value: TRequest): string;
44+
stringify(value: TRequest): string;
4545

4646
/**
4747
* Converts the given JSON string to a response object.
Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
2-
"name": "@tempojs/common",
3-
"version": "0.0.11-alpha",
4-
"description": "tempo common",
5-
"main": "./dist/index.js",
6-
"module": "./dist/index.mjs",
7-
"types": "./dist/index.d.ts",
8-
"exports": {
9-
".": {
10-
"require": "./dist/index.js",
11-
"import": "./dist/index.mjs",
12-
"types": "./dist/index.d.ts"
13-
}
14-
},
15-
"dependencies": {
16-
"bebop": "^3.0.3-beta.2"
17-
},
18-
"scripts": {
19-
"test": "vitest"
20-
}
2+
"name": "@tempojs/common",
3+
"version": "0.0.11-alpha.2",
4+
"description": "tempo common",
5+
"main": "./dist/index.js",
6+
"module": "./dist/index.mjs",
7+
"types": "./dist/index.d.ts",
8+
"exports": {
9+
".": {
10+
"require": "./dist/index.js",
11+
"import": "./dist/index.mjs",
12+
"types": "./dist/index.d.ts"
13+
}
14+
},
15+
"dependencies": {
16+
"bebop": "^3.0.3-beta.3"
17+
},
18+
"scripts": {
19+
"test": "vitest"
20+
}
2121
}

0 commit comments

Comments
 (0)