e621 2.1.4 → 2.1.8

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.
@@ -119,25 +119,6 @@ export interface PostVoteResult {
119
119
  our_score: number;
120
120
  }
121
121
 
122
- export interface SearchPostHistoryOptions extends GenericSearchOptions {
123
- user?: string;
124
- userID?: number;
125
- post?: number;
126
- reason?: string;
127
- description?: string;
128
- ratingChangedTo?: Ratings;
129
- finalRating?: Ratings;
130
- parent?: number;
131
- parentChangedTo?: number;
132
- finalTags?: Array<string> | string;
133
- addedTags?: Array<string> | string;
134
- removedTags?: Array<string> | string;
135
- finalLockedTags?: Array<string> | string;
136
- addedLockedTags?: Array<string> | string;
137
- removedLockedTags?: Array<string> | string;
138
- source?: string;
139
- }
140
-
141
122
  export interface PostHistoryProperties {
142
123
  id: number;
143
124
  post_id: number;
@@ -165,9 +146,24 @@ export interface PostHistoryProperties {
165
146
  unchanged_tags: string;
166
147
  }
167
148
 
168
- export interface SearchPostApprovalsOptions extends GenericSearchOptions {
169
- approver?: string;
170
- tags?: Array<string> | string;
149
+ export interface SearchPostHistoryOptions extends GenericSearchOptions {
150
+ id?: number;
151
+ user?: string;
152
+ userID?: number;
153
+ post?: number;
154
+ reason?: string;
155
+ description?: string;
156
+ ratingChangedTo?: Ratings;
157
+ finalRating?: Ratings;
158
+ parent?: number;
159
+ parentChangedTo?: number;
160
+ finalTags?: Array<string> | string;
161
+ addedTags?: Array<string> | string;
162
+ removedTags?: Array<string> | string;
163
+ finalLockedTags?: Array<string> | string;
164
+ addedLockedTags?: Array<string> | string;
165
+ removedLockedTags?: Array<string> | string;
166
+ source?: string;
171
167
  }
172
168
 
173
169
  export interface PostApprovalProperties {
@@ -177,3 +173,9 @@ export interface PostApprovalProperties {
177
173
  created_at: string;
178
174
  updated_at: string;
179
175
  }
176
+
177
+ export interface SearchPostApprovalsOptions extends GenericSearchOptions {
178
+ id?: number;
179
+ approver?: string;
180
+ tags?: Array<string> | string;
181
+ }
@@ -41,7 +41,16 @@ export interface TagHistoryProperties {
41
41
  }
42
42
 
43
43
  export interface SearchTagHistoryOptions extends GenericSearchOptions {
44
+ id?: number;
44
45
  tag?: string;
45
46
  userName?: string;
46
47
  userID?: number;
47
48
  }
49
+
50
+ interface AutocompleteResult {
51
+ id: number;
52
+ name: string;
53
+ post_count: number;
54
+ category: number;
55
+ antecedent_name: string;
56
+ }
@@ -61,5 +61,6 @@ export interface WikiPageHistoryProperties {
61
61
  }
62
62
 
63
63
  export interface SearchWikiPageHistoryOptions extends GenericSearchOptions {
64
+ id?: number;
64
65
  wikiPage?: number;
65
66
  }
@@ -1,11 +1,16 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const debug_1 = __importDefault(require("debug"));
7
3
  function Debug(name, first, ...extra) {
8
- return (0, debug_1.default)(!name ? "e621:general" : `e621:${name}`)(first, ...extra);
4
+ // eslint-disable-next-line @typescript-eslint/consistent-type-imports
5
+ let debug;
6
+ try {
7
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
8
+ debug = require("debug");
9
+ }
10
+ catch {
11
+ return;
12
+ }
13
+ return debug(!name ? "e621:general" : `e621:${name}`)(first, ...extra);
9
14
  }
10
15
  exports.default = Debug;
11
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRGVidWcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdXRpbC9EZWJ1Zy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLGtEQUEwQjtBQUUxQixTQUF3QixLQUFLLENBQUMsSUFBWSxFQUFFLEtBQWMsRUFBRSxHQUFHLEtBQXFCO0lBQ25GLE9BQU8sSUFBQSxlQUFLLEVBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLGNBQWMsQ0FBQyxDQUFDLENBQUMsUUFBUSxJQUFJLEVBQUUsQ0FBQyxDQUFDLEtBQUssRUFBRSxHQUFHLEtBQUssQ0FBQyxDQUFDO0FBQ3hFLENBQUM7QUFGRCx3QkFFQyJ9
16
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRGVidWcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdXRpbC9EZWJ1Zy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLFNBQXdCLEtBQUssQ0FBQyxJQUFZLEVBQUUsS0FBYyxFQUFFLEdBQUcsS0FBcUI7SUFDbkYsc0VBQXNFO0lBQ3RFLElBQUksS0FBNEIsQ0FBQztJQUNqQyxJQUFJO1FBQ0gsbUVBQW1FO1FBQ25FLEtBQUssR0FBRyxPQUFPLENBQUMsT0FBTyxDQUFDLENBQUM7S0FDekI7SUFBQyxNQUFNO1FBQ1AsT0FBTztLQUNQO0lBQ0QsT0FBTyxLQUFLLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLGNBQWMsQ0FBQyxDQUFDLENBQUMsUUFBUSxJQUFJLEVBQUUsQ0FBQyxDQUFDLEtBQUssRUFBRSxHQUFHLEtBQUssQ0FBQyxDQUFDO0FBQ3hFLENBQUM7QUFWRCx3QkFVQyJ9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "e621",
3
- "version": "2.1.4",
3
+ "version": "2.1.8",
4
4
  "description": "A module for interfacing with e621.",
5
5
  "main": "build/src/index.js",
6
6
  "scripts": {
@@ -34,11 +34,11 @@
34
34
  "@uwu-codes/eslint-config": "^1.0.31",
35
35
  "@uwu-codes/tsconfig": "^1.0.1",
36
36
  "chai": "^4.3.4",
37
- "mocha": "^9.1.3",
37
+ "mocha": "^9.1.4",
38
38
  "ts-node": "^10.4.0",
39
39
  "typescript": "^4.5.4"
40
40
  },
41
- "dependencies": {
41
+ "optionalDependencies": {
42
42
  "debug": "^4.3.3"
43
43
  }
44
44
  }