Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@devrev/ts-adaas",
"version": "1.19.3",
"version": "1.19.4-beta.0",
"description": "Typescript library containing the ADaaS(AirDrop as a Service) control protocol.",
"type": "commonjs",
"main": "./dist/index.js",
Expand Down Expand Up @@ -46,7 +46,7 @@
},
"dependencies": {
"@devrev/typescript-sdk": "^1.1.59",
"axios": "^1.15.0",
"axios": "^1.15.2",
"axios-retry": "^4.5.0",
"form-data": "^4.0.4",
"js-jsonl": "^1.1.1",
Expand Down
10 changes: 2 additions & 8 deletions src/attachments-streaming/attachments-streaming-pool.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ import {
ProcessAttachmentReturnType,
} from '../types';
import { AttachmentsStreamingPool } from './attachments-streaming-pool';
import {
runWithSdkLogContext,
runWithUserLogContext,
getSdkLogContextValue,
} from '../logger/logger.context';

// Mock types
interface TestState {
Expand Down Expand Up @@ -656,7 +651,6 @@ describe(AttachmentsStreamingPool.name, () => {
});

it('should process user stream callback correctly while maintaining context isolation', async () => {
let userCallbackContextId: string | undefined;
let userCallbackExecuted = false;

// Mock stream to capture context info
Expand All @@ -665,10 +659,10 @@ describe(AttachmentsStreamingPool.name, () => {
.mockImplementation(async () => {
userCallbackExecuted = true;
// Record that the callback executed
return {
return Promise.resolve({
httpStream: undefined,
error: undefined,
};
});
});

mockAdapter.processAttachment.mockImplementation(
Expand Down
7 changes: 3 additions & 4 deletions src/multithreading/worker-adapter/worker-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -913,11 +913,10 @@ export class WorkerAdapter<ConnectorState> {
if (httpStream) {
const fileType =
attachment.content_type ||
httpStream.headers['content-type'] ||
httpStream.headers['content-type']?.toString() ||
'application/octet-stream';
const fileSize = httpStream.headers['content-length']
? parseInt(httpStream.headers['content-length'])
: undefined;
const contentLength = httpStream.headers['content-length']?.toString();
const fileSize = contentLength ? parseInt(contentLength) : undefined;

// Get upload URL
const { error: artifactUrlError, response: artifactUrlResponse } =
Expand Down
Loading