@devrev/ts-adaas 1.4.0 → 1.4.1

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.
@@ -36,7 +36,7 @@ export interface NormalizedAttachment {
36
36
  file_name: string;
37
37
  parent_id: string;
38
38
  author_id?: string;
39
- grand_parent_id?: number;
39
+ grand_parent_id?: number | string;
40
40
  }
41
41
  /**
42
42
  * Item is an interface that defines the structure of an item.
@@ -24,10 +24,10 @@ export declare function createWorkerAdapter<ConnectorState>({ event, adapterStat
24
24
  export declare class WorkerAdapter<ConnectorState> {
25
25
  readonly event: AirdropEvent;
26
26
  readonly options?: WorkerAdapterOptions;
27
+ isTimeout: boolean;
27
28
  private adapterState;
28
29
  private _artifacts;
29
30
  private hasWorkerEmitted;
30
- private isTimeout;
31
31
  private repos;
32
32
  private loaderReports;
33
33
  private _processedFiles;
@@ -123,7 +123,7 @@ class WorkerAdapter {
123
123
  // Wait for all promises to settle and check for rate limiting
124
124
  const results = await Promise.all(promises);
125
125
  // Check if any of the results indicate rate limiting
126
- const rateLimit = results.find(result => result === null || result === void 0 ? void 0 : result.delay);
126
+ const rateLimit = results.find((result) => result === null || result === void 0 ? void 0 : result.delay);
127
127
  if (rateLimit) {
128
128
  // Return the delay information to the caller
129
129
  return { delay: rateLimit.delay };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devrev/ts-adaas",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "Typescript library containing the ADaaS(AirDrop as a Service) control protocol.",
5
5
  "type": "commonjs",
6
6
  "main": "./dist/index.js",
@@ -23,7 +23,7 @@
23
23
  "author": "devrev",
24
24
  "license": "ISC",
25
25
  "devDependencies": {
26
- "@types/jest": "^29.5.12",
26
+ "@types/jest": "^29.5.14",
27
27
  "@types/lambda-log": "^3.0.3",
28
28
  "@types/node": "^22.15.18",
29
29
  "@types/yargs": "^17.0.33",
@@ -33,12 +33,12 @@
33
33
  "eslint-config-prettier": "^10.1.5",
34
34
  "eslint-plugin-prettier": "^5.1.3",
35
35
  "jest": "^29.7.0",
36
- "ts-jest": "^29.1.2",
36
+ "ts-jest": "^29.3.3",
37
37
  "typescript": "^5.3.3"
38
38
  },
39
39
  "dependencies": {
40
- "@devrev/typescript-sdk": "^1.1.54",
41
- "axios": "^1.7.9",
40
+ "@devrev/typescript-sdk": "^1.1.59",
41
+ "axios": "^1.9.0",
42
42
  "axios-retry": "^4.5.0",
43
43
  "form-data": "^4.0.1",
44
44
  "js-jsonl": "^1.1.1",