booru 2.6.2 → 2.6.3

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.
@@ -1 +1,51 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});class Site{domain;type;aliases;nsfw;api;paginate;random;tagQuery;tagJoin;insecure;defaultTags;constructor(a){this.domain=a.domain,this.type=a.type??"json",this.aliases=a.aliases??[],this.nsfw=a.nsfw,this.api=a.api??{},this.paginate=a.paginate??"page",this.random=a.random??!1,this.tagQuery=a.tagQuery??"tags",this.tagJoin=a.tagJoin??"+",this.insecure=a.insecure??!1,this.defaultTags=a.defaultTags??[]}}exports.default=Site;
1
+ "use strict";
2
+ /**
3
+ * @packageDocumentation
4
+ * @module Structures
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ /**
8
+ * Represents a site, mostly used for JSDoc
9
+ */
10
+ class Site {
11
+ /** The domain of the Site (the "google.com" part of "https://google.com/foo") */
12
+ domain;
13
+ /** The type of this site (json/xml/derpi) */
14
+ type;
15
+ /** The aliases of this site */
16
+ aliases;
17
+ /** If this site serves NSFW posts or not */
18
+ nsfw;
19
+ /** An object representing the api of this site */
20
+ api;
21
+ /** The url query param to paginate on the site */
22
+ paginate;
23
+ /**
24
+ * If the site supports `order:random`.
25
+ * If a string, this means a custom random system is used :/
26
+ */
27
+ random;
28
+ /** The url query param for tags */
29
+ tagQuery;
30
+ /** The character to use to join tags when creating the search url */
31
+ tagJoin;
32
+ /** If this site supports only http:// */
33
+ insecure;
34
+ /** Tags to add to every request, if not included */
35
+ defaultTags;
36
+ constructor(data) {
37
+ this.domain = data.domain;
38
+ this.type = data.type ?? 'json';
39
+ this.aliases = data.aliases ?? [];
40
+ this.nsfw = data.nsfw;
41
+ this.api = data.api ?? {};
42
+ this.paginate = data.paginate ?? 'page';
43
+ this.random = data.random ?? false;
44
+ this.tagQuery = data.tagQuery ?? 'tags';
45
+ this.tagJoin = data.tagJoin ?? '+';
46
+ this.insecure = data.insecure ?? false;
47
+ this.defaultTags = data.defaultTags ?? [];
48
+ }
49
+ }
50
+ exports.default = Site;
51
+ //# sourceMappingURL=Site.js.map
@@ -1 +1,7 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
1
+ "use strict";
2
+ /**
3
+ * @packageDocumentation
4
+ * @module Structures
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ //# sourceMappingURL=SiteApi.js.map
@@ -1 +1,7 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
1
+ "use strict";
2
+ /**
3
+ * @packageDocumentation
4
+ * @module Structures
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ //# sourceMappingURL=SiteInfo.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "booru",
3
- "version": "2.6.2",
3
+ "version": "2.6.3",
4
4
  "description": "Search (and do other things) on a bunch of different boorus!",
5
5
  "author": "AtoraSuunva (https://github.com/AtoraSuunva/)",
6
6
  "license": "MIT",
@@ -43,27 +43,27 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "fast-xml-parser": "^4.0.9",
46
- "undici": "^5.7.0"
46
+ "undici": "^5.10.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@babel/core": "^7.18.6",
49
+ "@babel/core": "^7.19.0",
50
50
  "@babel/polyfill": "^7.12.1",
51
- "@babel/preset-env": "^7.18.6",
51
+ "@babel/preset-env": "^7.19.0",
52
52
  "@babel/preset-typescript": "^7.18.6",
53
- "@swc/core": "^1.2.212",
54
- "@types/jest": "^28.1.5",
55
- "@types/node": "^18.0.3",
56
- "@typescript-eslint/eslint-plugin": "^5.30.6",
57
- "@typescript-eslint/parser": "^5.30.6",
58
- "eslint": "^8.19.0",
53
+ "@swc/core": "^1.3.0",
54
+ "@types/jest": "^29.0.1",
55
+ "@types/node": "^18.7.16",
56
+ "@typescript-eslint/eslint-plugin": "^5.36.2",
57
+ "@typescript-eslint/parser": "^5.36.2",
58
+ "eslint": "^8.23.0",
59
59
  "eslint-config-prettier": "^8.5.0",
60
60
  "eslint-plugin-import": "^2.26.0",
61
- "eslint-plugin-jsdoc": "^39.3.3",
62
- "jest": "^28.1.2",
61
+ "eslint-plugin-jsdoc": "^39.3.6",
62
+ "jest": "^29.0.3",
63
63
  "prettier": "^2.7.1",
64
- "terser": "^5.14.1",
65
- "ts-node": "^10.8.2",
66
- "typescript": "^4.7.4"
64
+ "terser": "^5.15.0",
65
+ "ts-node": "^10.9.1",
66
+ "typescript": "^4.8.3"
67
67
  },
68
68
  "files": [
69
69
  "dist/"