@chronicle.app/twitter 0.3.0 → 0.4.0

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.
@@ -77,7 +77,7 @@ export class TwitterArchiveDirectMessagesExtractor extends TwitterArchiveExtract
77
77
  }
78
78
  }
79
79
  catch (error) {
80
- console.warn(`Could not process 1:1 direct messages: ${error}`);
80
+ this.logger.warn('Could not process 1:1 direct messages', { error: String(error) });
81
81
  }
82
82
  return messages;
83
83
  }
@@ -102,7 +102,7 @@ export class TwitterArchiveDirectMessagesExtractor extends TwitterArchiveExtract
102
102
  }
103
103
  }
104
104
  catch (error) {
105
- console.warn(`Could not load group headers: ${error}`);
105
+ this.logger.warn('Could not load group headers', { error: String(error) });
106
106
  }
107
107
  return groupHeaders;
108
108
  }
@@ -146,7 +146,7 @@ export class TwitterArchiveDirectMessagesExtractor extends TwitterArchiveExtract
146
146
  }
147
147
  }
148
148
  catch (error) {
149
- console.warn(`Could not process group direct messages: ${error}`);
149
+ this.logger.warn('Could not process group direct messages', { error: String(error) });
150
150
  }
151
151
  return messages;
152
152
  }
@@ -25,7 +25,7 @@ export class TwitterArchiveExtractor extends ArchiveExtractor {
25
25
  this.accountInfo = jsData[0]?.account || null;
26
26
  }
27
27
  catch (error) {
28
- console.warn(`Could not load account info: ${error}`);
28
+ this.logger.warn('Could not load account info', { error: String(error) });
29
29
  this.accountInfo = null;
30
30
  }
31
31
  }
@@ -42,7 +42,7 @@ export class TwitterArchiveLikesExtractor extends TwitterArchiveExtractor {
42
42
  }
43
43
  }
44
44
  catch (error) {
45
- console.warn(`Could not process likes: ${error}`);
45
+ this.logger.warn('Could not process likes', { error: String(error) });
46
46
  }
47
47
  }
48
48
  async determineCount() {
@@ -50,7 +50,7 @@ export class TwitterArchiveTweetsExtractor extends TwitterArchiveExtractor {
50
50
  }
51
51
  }
52
52
  catch (error) {
53
- console.warn(`Could not process tweets: ${error}`);
53
+ this.logger.warn('Could not process tweets', { error: String(error) });
54
54
  }
55
55
  }
56
56
  async determineCount() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chronicle.app/twitter",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [
@@ -22,9 +22,9 @@
22
22
  "type": "module",
23
23
  "description": "Chronicle plugin for twitter",
24
24
  "devDependencies": {
25
- "@chronicle.app/etl": "0.3.0",
26
- "@chronicle.app/schema": "0.3.0",
27
- "@chronicle.app/tsconfig": "0.3.0",
25
+ "@chronicle.app/etl": "0.4.0",
26
+ "@chronicle.app/schema": "0.4.0",
27
+ "@chronicle.app/tsconfig": "0.4.0",
28
28
  "@types/node": "^22.10.1",
29
29
  "typescript": "^5.7.2"
30
30
  },