doers-comms-types 1.0.3 → 1.0.4

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.
@@ -4,7 +4,6 @@ export declare class Tweet {
4
4
  readonly url: string;
5
5
  readonly tweet_time: string;
6
6
  readonly tweet_content: string;
7
- readonly replying_to: string[];
8
7
  readonly quote?: string;
9
8
  readonly html: string;
10
9
  constructor(tweet: any);
@@ -4,7 +4,6 @@ export class Tweet {
4
4
  url;
5
5
  tweet_time;
6
6
  tweet_content;
7
- replying_to;
8
7
  quote;
9
8
  html;
10
9
  constructor(tweet) {
@@ -16,7 +15,6 @@ export class Tweet {
16
15
  this.url = tweet.url;
17
16
  this.tweet_time = tweet.tweet_time;
18
17
  this.tweet_content = tweet.tweet_content;
19
- this.replying_to = tweet.replying_to;
20
18
  this.quote = tweet.quote;
21
19
  this.html = tweet.html;
22
20
  }
@@ -28,7 +26,6 @@ export class Tweet {
28
26
  typeof tweet.tweet_time === "string" &&
29
27
  typeof tweet.tweet_content === "string" &&
30
28
  Array.isArray(tweet.replying_to) &&
31
- tweet.replying_to.every((username) => typeof username === "string") &&
32
29
  (tweet.quote === undefined || typeof tweet.quote === "string") &&
33
30
  (typeof tweet.html === "string"));
34
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doers-comms-types",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
@@ -4,7 +4,6 @@ export class Tweet {
4
4
  readonly url : string
5
5
  readonly tweet_time : string
6
6
  readonly tweet_content : string
7
- readonly replying_to : string[]
8
7
  readonly quote? : string
9
8
  readonly html : string
10
9
 
@@ -17,7 +16,6 @@ export class Tweet {
17
16
  this.url = tweet.url
18
17
  this.tweet_time = tweet.tweet_time
19
18
  this.tweet_content = tweet.tweet_content
20
- this.replying_to = tweet.replying_to
21
19
  this.quote = tweet.quote
22
20
  this.html = tweet.html
23
21
  }
@@ -31,7 +29,6 @@ export class Tweet {
31
29
  typeof tweet.tweet_time === "string" &&
32
30
  typeof tweet.tweet_content === "string" &&
33
31
  Array.isArray(tweet.replying_to) &&
34
- tweet.replying_to.every((username : any) => typeof username === "string") &&
35
32
  (tweet.quote === undefined || typeof tweet.quote === "string") &&
36
33
  (typeof tweet.html === "string")
37
34
  )