Skip to content

Commit 7efabb8

Browse files
committed
workaround some typescript issues for now to be able to build compute library
1 parent b76b027 commit 7efabb8

File tree

6 files changed

+13
-104
lines changed

6 files changed

+13
-104
lines changed

src/compute/compute/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"references": [
99
{ "path": "../api-client" },
1010
{ "path": "../backend" },
11+
{ "path": "../conat" },
1112
{ "path": "../jupyter" },
1213
{ "path": "../project" },
1314
{ "path": "../sync" },

src/compute/pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/packages/backend/conat/test/persist/cluster2.test.ts

Lines changed: 0 additions & 92 deletions
This file was deleted.

src/packages/conat/files/read.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ async function sendData(mesg, createReadStream) {
125125
// (heartbeats, etc.) and disconnect us, when transfering a large file.
126126
seq += 1;
127127
logger.debug("sendData: sending", { path, seq });
128-
const data = Buffer.concat(chunks);
128+
const data = Buffer.concat(chunks as any);
129129
const { count } = await mesg.respond(data, getSeqHeader(seq));
130130
if (count == 0) {
131131
logger.debug("sendData: nobody is listening");

src/packages/jupyter/zmq/message.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
This is from https://github.com/n-riesco/jmp but rewritten in typescript.
33
4-
The original and all modifications in CoCalc of the code in THIS DIRECTORY
4+
The original and all modifications in CoCalc of the code in THIS DIRECTORY
55
are: * BSD 3-Clause License *
66
77
*/
@@ -153,10 +153,10 @@ export class Message {
153153
if (key) {
154154
const hmac = crypto.createHmac(scheme, key);
155155
const encoding = "utf8";
156-
hmac.update(Buffer.from(header, encoding));
157-
hmac.update(Buffer.from(parent_header, encoding));
158-
hmac.update(Buffer.from(metadata, encoding));
159-
hmac.update(Buffer.from(content, encoding));
156+
hmac.update(Buffer.from(header, encoding) as any);
157+
hmac.update(Buffer.from(parent_header, encoding) as any);
158+
hmac.update(Buffer.from(metadata, encoding) as any);
159+
hmac.update(Buffer.from(content, encoding) as any);
160160
signature = hmac.digest("hex");
161161
}
162162

src/packages/sync-fs/lib/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export async function writeFileLz4(path: string, contents: string) {
157157
// lz4-napi has no docs, but compressFrame works to create a file
158158
// that the lz4 command can decompress, but "compress" does not.
159159
const compressed = await compressFrame(Buffer.from(contents));
160-
await writeFile(path, compressed);
160+
await writeFile(path, compressed as any);
161161
}
162162

163163
/*

0 commit comments

Comments
 (0)