Compare commits
1 commit
318a249b29
...
adc5771187
Author | SHA1 | Date | |
---|---|---|---|
adc5771187 |
10 changed files with 77 additions and 161 deletions
|
@ -26,7 +26,6 @@ $ random-bunny
|
||||||
Archived = false
|
Archived = false
|
||||||
Author = Rabbit_Owner
|
Author = Rabbit_Owner
|
||||||
Downvotes = 0
|
Downvotes = 0
|
||||||
Gallery = https://i.redd.it/sfz0srdrimjc1.png, https://i.redd.it/sfz0srdrimjc1.png
|
|
||||||
Hidden = false
|
Hidden = false
|
||||||
Permalink = /r/Rabbits/comments/1av1rg9/cute_baby_bun/
|
Permalink = /r/Rabbits/comments/1av1rg9/cute_baby_bun/
|
||||||
Subreddit = Rabbits
|
Subreddit = Rabbits
|
||||||
|
@ -36,8 +35,6 @@ Upvotes = 211
|
||||||
Url = https://i.redd.it/sfz0srdrimjc1.png
|
Url = https://i.redd.it/sfz0srdrimjc1.png
|
||||||
```
|
```
|
||||||
|
|
||||||
- The `Gallery` field is only shown when there is more than 1 image returned, which then the `Url` field is the first image of that list.
|
|
||||||
|
|
||||||
## Help
|
## Help
|
||||||
|
|
||||||
The command also includes a help option in case you are stuck.
|
The command also includes a help option in case you are stuck.
|
||||||
|
@ -75,11 +72,9 @@ $ random-bunny --json
|
||||||
|
|
||||||
$ randon-bunny -j
|
$ randon-bunny -j
|
||||||
|
|
||||||
{"Archived":false,"Author":"Rabbit_Owner","Downs":0,"Hidden":false,"Permalink":"/r/Rabbits/comments/1av1rg9/cute_baby_bun/","Subreddit":"Rabbits","SubredditSubscribers":486085,"Title":"Cute baby bun","Ups":210,"Url":"https://i.redd.it/sfz0srdrimjc1.png","Gallery":["https://i.redd.it/sfz0srdrimjc1.png"]}
|
{"Archived":false,"Author":"Rabbit_Owner","Downs":0,"Hidden":false,"Permalink":"/r/Rabbits/comments/1av1rg9/cute_baby_bun/","Subreddit":"Rabbits","SubredditSubscribers":486085,"Title":"Cute baby bun","Ups":210,"Url":"https://i.redd.it/sfz0srdrimjc1.png"}
|
||||||
```
|
```
|
||||||
|
|
||||||
- The `Url` field is the first image of the `Gallery` array
|
|
||||||
|
|
||||||
## Sort
|
## Sort
|
||||||
|
|
||||||
You can also choose the sorting option which reddit will use to return the available posts to randomise from.
|
You can also choose the sorting option which reddit will use to return the available posts to randomise from.
|
||||||
|
|
|
@ -39,7 +39,6 @@ The json string which gets returned consists of:
|
||||||
- archived
|
- archived
|
||||||
- author
|
- author
|
||||||
- downs
|
- downs
|
||||||
- gallery
|
|
||||||
- hidden
|
- hidden
|
||||||
- permalink
|
- permalink
|
||||||
- subreddit
|
- subreddit
|
||||||
|
|
|
@ -2,12 +2,11 @@ export default interface IRedditResult {
|
||||||
Archived: boolean,
|
Archived: boolean,
|
||||||
Author: string,
|
Author: string,
|
||||||
Downs: number,
|
Downs: number,
|
||||||
Gallery: string[],
|
|
||||||
Hidden: boolean,
|
Hidden: boolean,
|
||||||
Permalink: string,
|
Permalink: string,
|
||||||
Subreddit: string,
|
Subreddit: string,
|
||||||
SubredditSubscribers: number,
|
SubredditSubscribers: number,
|
||||||
Title: string,
|
Title: string,
|
||||||
Ups: number,
|
Ups: number,
|
||||||
Url: string,
|
Url: string
|
||||||
}
|
}
|
|
@ -2,19 +2,17 @@ import fetch from "got-cjs";
|
||||||
import * as htmlparser from "htmlparser2";
|
import * as htmlparser from "htmlparser2";
|
||||||
|
|
||||||
export default class ImageHelper {
|
export default class ImageHelper {
|
||||||
public static async FetchImageFromRedditGallery(url: string): Promise<string[]> {
|
public static async FetchImageFromRedditGallery(url: string): Promise<string | undefined> {
|
||||||
const fetched = await fetch(url);
|
const fetched = await fetch(url);
|
||||||
|
|
||||||
if (!fetched || fetched.errored || fetched.statusCode != 200) {
|
if (!fetched || fetched.errored || fetched.statusCode != 200) {
|
||||||
return [];
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
const dom = htmlparser.parseDocument(fetched.body);
|
const dom = htmlparser.parseDocument(fetched.body);
|
||||||
const img = htmlparser.DomUtils.findAll((x => x.tagName == "img" && x.attributes.find(y => y.value.includes("https://preview.redd.it")) != null), dom.children);
|
const img = htmlparser.DomUtils.findOne((x => x.tagName == "img" && x.attributes.find(y => y.value.includes("https://preview.redd.it")) != null), dom.children, true);
|
||||||
|
|
||||||
const imgSrc = img
|
const imgSrc = img?.attributes.find(x => x.name == "src")?.value;
|
||||||
.flatMap(x => x.attributes.find(x => x.name == "src")?.value)
|
|
||||||
.filter(x => x != undefined);
|
|
||||||
|
|
||||||
return imgSrc;
|
return imgSrc;
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,13 +14,7 @@ export default class OutputHelper {
|
||||||
outputLines.push(`Archived = ${result.Archived}`);
|
outputLines.push(`Archived = ${result.Archived}`);
|
||||||
outputLines.push(`Author = ${result.Author}`);
|
outputLines.push(`Author = ${result.Author}`);
|
||||||
outputLines.push(`Downvotes = ${result.Downs}`);
|
outputLines.push(`Downvotes = ${result.Downs}`);
|
||||||
|
|
||||||
if (result.Gallery.length > 1) {
|
|
||||||
outputLines.push(`Gallery = ${result.Gallery.join(", ")}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
outputLines.push(`Hidden = ${result.Hidden}`);
|
outputLines.push(`Hidden = ${result.Hidden}`);
|
||||||
|
|
||||||
outputLines.push(`Permalink = ${result.Permalink}`);
|
outputLines.push(`Permalink = ${result.Permalink}`);
|
||||||
outputLines.push(`Subreddit = ${result.Subreddit}`);
|
outputLines.push(`Subreddit = ${result.Subreddit}`);
|
||||||
outputLines.push(`Subreddit Subscribers = ${result.SubredditSubscribers}`);
|
outputLines.push(`Subreddit Subscribers = ${result.SubredditSubscribers}`);
|
||||||
|
@ -28,7 +22,6 @@ export default class OutputHelper {
|
||||||
outputLines.push(`Upvotes = ${result.Ups}`);
|
outputLines.push(`Upvotes = ${result.Ups}`);
|
||||||
outputLines.push(`Url = ${result.Url}`);
|
outputLines.push(`Url = ${result.Url}`);
|
||||||
|
|
||||||
|
|
||||||
if (options.queryMetadata != null) {
|
if (options.queryMetadata != null) {
|
||||||
outputLines.push(`Query.Subreddit = ${response.Query.subreddit}`);
|
outputLines.push(`Query.Subreddit = ${response.Query.subreddit}`);
|
||||||
outputLines.push(`Query.Sort By = ${response.Query.sortBy}`);
|
outputLines.push(`Query.Sort By = ${response.Query.sortBy}`);
|
||||||
|
|
|
@ -93,7 +93,6 @@ export default async function randomBunny(subreddit: string, sortBy: "new" | "ho
|
||||||
const randomData = randomSelect.data;
|
const randomData = randomSelect.data;
|
||||||
|
|
||||||
let url: string;
|
let url: string;
|
||||||
let gallery: string[];
|
|
||||||
|
|
||||||
if (randomData.url.includes("/gallery")) {
|
if (randomData.url.includes("/gallery")) {
|
||||||
const galleryImage = await ImageHelper.FetchImageFromRedditGallery(randomData.url);
|
const galleryImage = await ImageHelper.FetchImageFromRedditGallery(randomData.url);
|
||||||
|
@ -113,11 +112,9 @@ export default async function randomBunny(subreddit: string, sortBy: "new" | "ho
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
url = galleryImage[0];
|
url = galleryImage;
|
||||||
gallery = galleryImage;
|
|
||||||
} else {
|
} else {
|
||||||
url = randomData.url;
|
url = randomData.url;
|
||||||
gallery = [randomData.url];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const redditResult: IRedditResult = {
|
const redditResult: IRedditResult = {
|
||||||
|
@ -131,7 +128,6 @@ export default async function randomBunny(subreddit: string, sortBy: "new" | "ho
|
||||||
Title: randomData['title'],
|
Title: randomData['title'],
|
||||||
Ups: randomData['ups'],
|
Ups: randomData['ups'],
|
||||||
Url: url,
|
Url: url,
|
||||||
Gallery: gallery,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -13,7 +13,7 @@ Upvotes = 17
|
||||||
Url = https://preview.redd.it/d5yno653zf7d1.jpg?width=640&crop=smart&auto=webp&s=5064d1caec3c12ac2855eb57ff131d0b313d5e9d"
|
Url = https://preview.redd.it/d5yno653zf7d1.jpg?width=640&crop=smart&auto=webp&s=5064d1caec3c12ac2855eb57ff131d0b313d5e9d"
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`GenerateOutput GIVEN options.json is true, EXPECT output to be returned as JSON 1`] = `"{"Archived":false,"Author":"author","Downs":0,"Hidden":false,"Permalink":"/r/Rabbits/comments/1dj8pbt/this_is_my_ms_bear/","Subreddit":"Rabbits","SubredditSubscribers":654751,"Title":"This is my Ms Bear!","Ups":17,"Url":"https://preview.redd.it/d5yno653zf7d1.jpg?width=640&crop=smart&auto=webp&s=5064d1caec3c12ac2855eb57ff131d0b313d5e9d","Gallery":["https://preview.redd.it/d5yno653zf7d1.jpg?width=640&crop=smart&auto=webp&s=5064d1caec3c12ac2855eb57ff131d0b313d5e9d"]}"`;
|
exports[`GenerateOutput GIVEN options.json is true, EXPECT output to be returned as JSON 1`] = `"{"Archived":false,"Author":"author","Downs":0,"Hidden":false,"Permalink":"/r/Rabbits/comments/1dj8pbt/this_is_my_ms_bear/","Subreddit":"Rabbits","SubredditSubscribers":654751,"Title":"This is my Ms Bear!","Ups":17,"Url":"https://preview.redd.it/d5yno653zf7d1.jpg?width=640&crop=smart&auto=webp&s=5064d1caec3c12ac2855eb57ff131d0b313d5e9d"}"`;
|
||||||
|
|
||||||
exports[`GenerateOutput GIVEN options.queryMetadata is supplied, EXPECT query metadata to be added 1`] = `
|
exports[`GenerateOutput GIVEN options.queryMetadata is supplied, EXPECT query metadata to be added 1`] = `
|
||||||
"Archived = false
|
"Archived = false
|
||||||
|
@ -30,17 +30,3 @@ Query.Subreddit = rabbits
|
||||||
Query.Sort By = hot
|
Query.Sort By = hot
|
||||||
Query.Limit = 100"
|
Query.Limit = 100"
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`GenerateOutput GIVEN the Gallery input has more than 1 item, EXPECT Gallery line to be added 1`] = `
|
|
||||||
"Archived = false
|
|
||||||
Author = author
|
|
||||||
Downvotes = 0
|
|
||||||
Gallery = https://preview.redd.it/d5yno653zf7d1.jpg?width=640&crop=smart&auto=webp&s=5064d1caec3c12ac2855eb57ff131d0b313d5e9d, https://preview.redd.it/d5yno653zf7d1.jpg?width=640&crop=smart&auto=webp&s=5064d1caec3c12ac2855eb57ff131d0b313d5e9d
|
|
||||||
Hidden = false
|
|
||||||
Permalink = /r/Rabbits/comments/1dj8pbt/this_is_my_ms_bear/
|
|
||||||
Subreddit = Rabbits
|
|
||||||
Subreddit Subscribers = 654751
|
|
||||||
Title = This is my Ms Bear!
|
|
||||||
Upvotes = 17
|
|
||||||
Url = https://preview.redd.it/d5yno653zf7d1.jpg?width=640&crop=smart&auto=webp&s=5064d1caec3c12ac2855eb57ff131d0b313d5e9d"
|
|
||||||
`;
|
|
||||||
|
|
|
@ -17,19 +17,18 @@ describe("FetchImageFromRedditGallery", () => {
|
||||||
expect(fetchMock).toHaveBeenCalledTimes(1);
|
expect(fetchMock).toHaveBeenCalledTimes(1);
|
||||||
expect(fetchMock).toHaveBeenCalledWith("https://redd.it/gallery/image");
|
expect(fetchMock).toHaveBeenCalledWith("https://redd.it/gallery/image");
|
||||||
|
|
||||||
expect(result.length).toBe(1);
|
expect(result).toBe("https://preview.redd.it/image.png");
|
||||||
expect(result[0]).toBe("https://preview.redd.it/image.png");
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test("GIVEN fetch is unable to return data, EXPECT empty array returned", async () => {
|
test("GIVEN fetch is unable to return data, EXPECT undefined returned", async () => {
|
||||||
fetchMock.mockResolvedValue(null);
|
fetchMock.mockResolvedValue(null);
|
||||||
|
|
||||||
const result = await ImageHelper.FetchImageFromRedditGallery("https://redd.it/gallery/image");
|
const result = await ImageHelper.FetchImageFromRedditGallery("https://redd.it/gallery/image");
|
||||||
|
|
||||||
expect(result.length).toBe(0);
|
expect(result).toBeUndefined();
|
||||||
});
|
});
|
||||||
|
|
||||||
test("GIVEN fetch is an error, EXPECT empty array returned", async () => {
|
test("GIVEN fetch is an error, EXPECT undefined returned", async () => {
|
||||||
fetchMock.mockResolvedValue({
|
fetchMock.mockResolvedValue({
|
||||||
body: "<html><body><img src='https://preview.redd.it/image.png' /></body></html>",
|
body: "<html><body><img src='https://preview.redd.it/image.png' /></body></html>",
|
||||||
errored: "Error",
|
errored: "Error",
|
||||||
|
@ -38,10 +37,10 @@ describe("FetchImageFromRedditGallery", () => {
|
||||||
|
|
||||||
const result = await ImageHelper.FetchImageFromRedditGallery("https://redd.it/gallery/image");
|
const result = await ImageHelper.FetchImageFromRedditGallery("https://redd.it/gallery/image");
|
||||||
|
|
||||||
expect(result.length).toBe(0);
|
expect(result).toBeUndefined();
|
||||||
});
|
});
|
||||||
|
|
||||||
test("GIVEN fetch is not status code of 200, EXPECT empty array returned", async () => {
|
test("GIVEN fetch is not status code of 200, EXPECT undefined returned", async () => {
|
||||||
fetchMock.mockResolvedValue({
|
fetchMock.mockResolvedValue({
|
||||||
body: "<html><body><img src='https://preview.redd.it/image.png' /></body></html>",
|
body: "<html><body><img src='https://preview.redd.it/image.png' /></body></html>",
|
||||||
errored: undefined,
|
errored: undefined,
|
||||||
|
@ -50,10 +49,10 @@ describe("FetchImageFromRedditGallery", () => {
|
||||||
|
|
||||||
const result = await ImageHelper.FetchImageFromRedditGallery("https://redd.it/gallery/image");
|
const result = await ImageHelper.FetchImageFromRedditGallery("https://redd.it/gallery/image");
|
||||||
|
|
||||||
expect(result.length).toBe(0);
|
expect(result).toBeUndefined();
|
||||||
});
|
});
|
||||||
|
|
||||||
test("GIVEN image tag is not found, EXPECT empty array returned", async () => {
|
test("GIVEN image tag is not found, EXPECT undefined returned", async () => {
|
||||||
fetchMock.mockResolvedValue({
|
fetchMock.mockResolvedValue({
|
||||||
body: "<html><body></body></html>",
|
body: "<html><body></body></html>",
|
||||||
errored: undefined,
|
errored: undefined,
|
||||||
|
@ -62,10 +61,10 @@ describe("FetchImageFromRedditGallery", () => {
|
||||||
|
|
||||||
const result = await ImageHelper.FetchImageFromRedditGallery("https://redd.it/gallery/image");
|
const result = await ImageHelper.FetchImageFromRedditGallery("https://redd.it/gallery/image");
|
||||||
|
|
||||||
expect(result.length).toBe(0);
|
expect(result).toBeUndefined();
|
||||||
});
|
});
|
||||||
|
|
||||||
test("GIVEN image source attribute is not found, EXPECT empty array returned", async () => {
|
test("GIVEN image source attribute is not found, EXPECT undefined returned", async () => {
|
||||||
fetchMock.mockResolvedValue({
|
fetchMock.mockResolvedValue({
|
||||||
body: "<html><body><img /></body></html>",
|
body: "<html><body><img /></body></html>",
|
||||||
errored: undefined,
|
errored: undefined,
|
||||||
|
@ -74,10 +73,10 @@ describe("FetchImageFromRedditGallery", () => {
|
||||||
|
|
||||||
const result = await ImageHelper.FetchImageFromRedditGallery("https://redd.it/gallery/image");
|
const result = await ImageHelper.FetchImageFromRedditGallery("https://redd.it/gallery/image");
|
||||||
|
|
||||||
expect(result.length).toBe(0);
|
expect(result).toBeUndefined();
|
||||||
});
|
});
|
||||||
|
|
||||||
test("GIVEN image source attribute is not found that is a preview.redd.it url, EXPECT empty array returned", async () => {
|
test("GIVEN image source attribute is not found that is a preview.redd.it url, EXPECT undefined returned", async () => {
|
||||||
fetchMock.mockResolvedValue({
|
fetchMock.mockResolvedValue({
|
||||||
body: "<html><body><img src='main.png' /></body></html>",
|
body: "<html><body><img src='main.png' /></body></html>",
|
||||||
errored: undefined,
|
errored: undefined,
|
||||||
|
@ -86,6 +85,6 @@ describe("FetchImageFromRedditGallery", () => {
|
||||||
|
|
||||||
const result = await ImageHelper.FetchImageFromRedditGallery("https://redd.it/gallery/image");
|
const result = await ImageHelper.FetchImageFromRedditGallery("https://redd.it/gallery/image");
|
||||||
|
|
||||||
expect(result.length).toBe(0);
|
expect(result).toBeUndefined();
|
||||||
});
|
});
|
||||||
});
|
});
|
|
@ -23,7 +23,6 @@ describe("GenerateOutput", () => {
|
||||||
Title: "This is my Ms Bear!",
|
Title: "This is my Ms Bear!",
|
||||||
Ups: 17,
|
Ups: 17,
|
||||||
Url: "https://preview.redd.it/d5yno653zf7d1.jpg?width=640&crop=smart&auto=webp&s=5064d1caec3c12ac2855eb57ff131d0b313d5e9d",
|
Url: "https://preview.redd.it/d5yno653zf7d1.jpg?width=640&crop=smart&auto=webp&s=5064d1caec3c12ac2855eb57ff131d0b313d5e9d",
|
||||||
Gallery: ["https://preview.redd.it/d5yno653zf7d1.jpg?width=640&crop=smart&auto=webp&s=5064d1caec3c12ac2855eb57ff131d0b313d5e9d"],
|
|
||||||
},
|
},
|
||||||
} as IReturnResult;
|
} as IReturnResult;
|
||||||
|
|
||||||
|
@ -56,7 +55,6 @@ describe("GenerateOutput", () => {
|
||||||
Title: "This is my Ms Bear!",
|
Title: "This is my Ms Bear!",
|
||||||
Ups: 17,
|
Ups: 17,
|
||||||
Url: "https://preview.redd.it/d5yno653zf7d1.jpg?width=640&crop=smart&auto=webp&s=5064d1caec3c12ac2855eb57ff131d0b313d5e9d",
|
Url: "https://preview.redd.it/d5yno653zf7d1.jpg?width=640&crop=smart&auto=webp&s=5064d1caec3c12ac2855eb57ff131d0b313d5e9d",
|
||||||
Gallery: ["https://preview.redd.it/d5yno653zf7d1.jpg?width=640&crop=smart&auto=webp&s=5064d1caec3c12ac2855eb57ff131d0b313d5e9d"],
|
|
||||||
},
|
},
|
||||||
} as IReturnResult;
|
} as IReturnResult;
|
||||||
|
|
||||||
|
@ -91,7 +89,6 @@ describe("GenerateOutput", () => {
|
||||||
Title: "This is my Ms Bear!",
|
Title: "This is my Ms Bear!",
|
||||||
Ups: 17,
|
Ups: 17,
|
||||||
Url: "https://preview.redd.it/d5yno653zf7d1.jpg?width=640&crop=smart&auto=webp&s=5064d1caec3c12ac2855eb57ff131d0b313d5e9d",
|
Url: "https://preview.redd.it/d5yno653zf7d1.jpg?width=640&crop=smart&auto=webp&s=5064d1caec3c12ac2855eb57ff131d0b313d5e9d",
|
||||||
Gallery: ["https://preview.redd.it/d5yno653zf7d1.jpg?width=640&crop=smart&auto=webp&s=5064d1caec3c12ac2855eb57ff131d0b313d5e9d"],
|
|
||||||
},
|
},
|
||||||
} as IReturnResult;
|
} as IReturnResult;
|
||||||
|
|
||||||
|
@ -105,40 +102,4 @@ describe("GenerateOutput", () => {
|
||||||
// Assert
|
// Assert
|
||||||
expect(result).toMatchSnapshot();
|
expect(result).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
|
|
||||||
test("GIVEN the Gallery input has more than 1 item, EXPECT Gallery line to be added", () => {
|
|
||||||
// Arrange
|
|
||||||
const response = {
|
|
||||||
IsSuccess: true,
|
|
||||||
Query: {
|
|
||||||
subreddit: "rabbits",
|
|
||||||
sortBy: "hot",
|
|
||||||
limit: 100,
|
|
||||||
},
|
|
||||||
Result: {
|
|
||||||
Archived: false,
|
|
||||||
Author: 'author',
|
|
||||||
Downs: 0,
|
|
||||||
Hidden: false,
|
|
||||||
Permalink: "/r/Rabbits/comments/1dj8pbt/this_is_my_ms_bear/",
|
|
||||||
Subreddit: "Rabbits",
|
|
||||||
SubredditSubscribers: 654751,
|
|
||||||
Title: "This is my Ms Bear!",
|
|
||||||
Ups: 17,
|
|
||||||
Url: "https://preview.redd.it/d5yno653zf7d1.jpg?width=640&crop=smart&auto=webp&s=5064d1caec3c12ac2855eb57ff131d0b313d5e9d",
|
|
||||||
Gallery: [
|
|
||||||
"https://preview.redd.it/d5yno653zf7d1.jpg?width=640&crop=smart&auto=webp&s=5064d1caec3c12ac2855eb57ff131d0b313d5e9d",
|
|
||||||
"https://preview.redd.it/d5yno653zf7d1.jpg?width=640&crop=smart&auto=webp&s=5064d1caec3c12ac2855eb57ff131d0b313d5e9d"
|
|
||||||
],
|
|
||||||
},
|
|
||||||
} as IReturnResult;
|
|
||||||
|
|
||||||
const options = {} as ICliOptions;
|
|
||||||
|
|
||||||
// Act
|
|
||||||
const result = OutputHelper.GenerateOutput(response, options);
|
|
||||||
|
|
||||||
// Assert
|
|
||||||
expect(result).toMatchSnapshot();
|
|
||||||
});
|
|
||||||
});
|
});
|
122
yarn.lock
122
yarn.lock
|
@ -401,12 +401,7 @@
|
||||||
dependencies:
|
dependencies:
|
||||||
eslint-visitor-keys "^3.3.0"
|
eslint-visitor-keys "^3.3.0"
|
||||||
|
|
||||||
"@eslint-community/regexpp@^4.10.0":
|
"@eslint-community/regexpp@^4.10.0", "@eslint-community/regexpp@^4.11.0":
|
||||||
version "4.11.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.11.1.tgz#a547badfc719eb3e5f4b556325e542fbe9d7a18f"
|
|
||||||
integrity sha512-m4DVN9ZqskZoLU5GlWZadwDnYo3vAEydiUayB9widCl9ffWx2IvPnp6n3on5rJmziJSw9Bv+Z3ChDVdMwXCY8Q==
|
|
||||||
|
|
||||||
"@eslint-community/regexpp@^4.11.0":
|
|
||||||
version "4.11.0"
|
version "4.11.0"
|
||||||
resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.11.0.tgz#b0ffd0312b4a3fd2d6f77237e7248a5ad3a680ae"
|
resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.11.0.tgz#b0ffd0312b4a3fd2d6f77237e7248a5ad3a680ae"
|
||||||
integrity sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==
|
integrity sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==
|
||||||
|
@ -435,16 +430,11 @@
|
||||||
minimatch "^3.1.2"
|
minimatch "^3.1.2"
|
||||||
strip-json-comments "^3.1.1"
|
strip-json-comments "^3.1.1"
|
||||||
|
|
||||||
"@eslint/js@9.10.0":
|
"@eslint/js@9.10.0", "@eslint/js@^9.8.0":
|
||||||
version "9.10.0"
|
version "9.10.0"
|
||||||
resolved "https://registry.yarnpkg.com/@eslint/js/-/js-9.10.0.tgz#eaa3cb0baec497970bb29e43a153d0d5650143c6"
|
resolved "https://registry.yarnpkg.com/@eslint/js/-/js-9.10.0.tgz#eaa3cb0baec497970bb29e43a153d0d5650143c6"
|
||||||
integrity sha512-fuXtbiP5GWIn8Fz+LWoOMVf/Jxm+aajZYkhi6CuEm4SxymFM+eUWzbO9qXT+L0iCkL5+KGYMCSGxo686H19S1g==
|
integrity sha512-fuXtbiP5GWIn8Fz+LWoOMVf/Jxm+aajZYkhi6CuEm4SxymFM+eUWzbO9qXT+L0iCkL5+KGYMCSGxo686H19S1g==
|
||||||
|
|
||||||
"@eslint/js@^9.8.0":
|
|
||||||
version "9.13.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/@eslint/js/-/js-9.13.0.tgz#c5f89bcd57eb54d5d4fa8b77693e9c28dc97e547"
|
|
||||||
integrity sha512-IFLyoY4d72Z5y/6o/BazFBezupzI/taV8sGumxTAVw3lXG9A6md1Dc34T9s1FoD/an9pJH8RHbAxsaEbBed9lA==
|
|
||||||
|
|
||||||
"@eslint/object-schema@^2.1.4":
|
"@eslint/object-schema@^2.1.4":
|
||||||
version "2.1.4"
|
version "2.1.4"
|
||||||
resolved "https://registry.yarnpkg.com/@eslint/object-schema/-/object-schema-2.1.4.tgz#9e69f8bb4031e11df79e03db09f9dbbae1740843"
|
resolved "https://registry.yarnpkg.com/@eslint/object-schema/-/object-schema-2.1.4.tgz#9e69f8bb4031e11df79e03db09f9dbbae1740843"
|
||||||
|
@ -918,9 +908,9 @@
|
||||||
integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==
|
integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==
|
||||||
|
|
||||||
"@types/node@*", "@types/node@^22.0.0":
|
"@types/node@*", "@types/node@^22.0.0":
|
||||||
version "22.7.7"
|
version "22.5.5"
|
||||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-22.7.7.tgz#6cd9541c3dccb4f7e8b141b491443f4a1570e307"
|
resolved "https://registry.yarnpkg.com/@types/node/-/node-22.5.5.tgz#52f939dd0f65fc552a4ad0b392f3c466cc5d7a44"
|
||||||
integrity sha512-SRxCrrg9CL/y54aiMCG3edPKdprgMVGDXjA3gB8UmmBW5TcXzRUYAh8EWzTnSJFAd1rgImPELza+A3bJ+qxz8Q==
|
integrity sha512-Xjs4y5UPO/CLdzpgR6GirZJx36yScjh73+2NlLlkFRSoQN8B0DpfXPdZGnvVmLRLOsqDpOfTNv7D9trgGhmOIA==
|
||||||
dependencies:
|
dependencies:
|
||||||
undici-types "~6.19.2"
|
undici-types "~6.19.2"
|
||||||
|
|
||||||
|
@ -969,15 +959,15 @@
|
||||||
ts-api-utils "^1.3.0"
|
ts-api-utils "^1.3.0"
|
||||||
|
|
||||||
"@typescript-eslint/eslint-plugin@^8.0.0":
|
"@typescript-eslint/eslint-plugin@^8.0.0":
|
||||||
version "8.10.0"
|
version "8.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.10.0.tgz#9c8218ed62f9a322df10ded7c34990f014df44f2"
|
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.2.0.tgz#bf50e9c8dac6bdf15dd1b52ca29448550903558e"
|
||||||
integrity sha512-phuB3hoP7FFKbRXxjl+DRlQDuJqhpOnm5MmtROXyWi3uS/Xg2ZXqiQfcG2BJHiN4QKyzdOJi3NEn/qTnjUlkmQ==
|
integrity sha512-02tJIs655em7fvt9gps/+4k4OsKULYGtLBPJfOsmOq1+3cdClYiF0+d6mHu6qDnTcg88wJBkcPLpQhq7FyDz0A==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@eslint-community/regexpp" "^4.10.0"
|
"@eslint-community/regexpp" "^4.10.0"
|
||||||
"@typescript-eslint/scope-manager" "8.10.0"
|
"@typescript-eslint/scope-manager" "8.2.0"
|
||||||
"@typescript-eslint/type-utils" "8.10.0"
|
"@typescript-eslint/type-utils" "8.2.0"
|
||||||
"@typescript-eslint/utils" "8.10.0"
|
"@typescript-eslint/utils" "8.2.0"
|
||||||
"@typescript-eslint/visitor-keys" "8.10.0"
|
"@typescript-eslint/visitor-keys" "8.2.0"
|
||||||
graphemer "^1.4.0"
|
graphemer "^1.4.0"
|
||||||
ignore "^5.3.1"
|
ignore "^5.3.1"
|
||||||
natural-compare "^1.4.0"
|
natural-compare "^1.4.0"
|
||||||
|
@ -995,14 +985,14 @@
|
||||||
debug "^4.3.4"
|
debug "^4.3.4"
|
||||||
|
|
||||||
"@typescript-eslint/parser@^8.0.0":
|
"@typescript-eslint/parser@^8.0.0":
|
||||||
version "8.11.0"
|
version "8.10.0"
|
||||||
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-8.11.0.tgz#2ad1481388dc1c937f50b2d138c9ca57cc6c5cce"
|
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-8.10.0.tgz#3cbe7206f5e42835878a74a76da533549f977662"
|
||||||
integrity sha512-lmt73NeHdy1Q/2ul295Qy3uninSqi6wQI18XwSpm8w0ZbQXUpjCAWP1Vlv/obudoBiIjJVjlztjQ+d/Md98Yxg==
|
integrity sha512-E24l90SxuJhytWJ0pTQydFT46Nk0Z+bsLKo/L8rtQSL93rQ6byd1V/QbDpHUTdLPOMsBCcYXZweADNCfOCmOAg==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@typescript-eslint/scope-manager" "8.11.0"
|
"@typescript-eslint/scope-manager" "8.10.0"
|
||||||
"@typescript-eslint/types" "8.11.0"
|
"@typescript-eslint/types" "8.10.0"
|
||||||
"@typescript-eslint/typescript-estree" "8.11.0"
|
"@typescript-eslint/typescript-estree" "8.10.0"
|
||||||
"@typescript-eslint/visitor-keys" "8.11.0"
|
"@typescript-eslint/visitor-keys" "8.10.0"
|
||||||
debug "^4.3.4"
|
debug "^4.3.4"
|
||||||
|
|
||||||
"@typescript-eslint/scope-manager@7.18.0":
|
"@typescript-eslint/scope-manager@7.18.0":
|
||||||
|
@ -1021,13 +1011,13 @@
|
||||||
"@typescript-eslint/types" "8.10.0"
|
"@typescript-eslint/types" "8.10.0"
|
||||||
"@typescript-eslint/visitor-keys" "8.10.0"
|
"@typescript-eslint/visitor-keys" "8.10.0"
|
||||||
|
|
||||||
"@typescript-eslint/scope-manager@8.11.0":
|
"@typescript-eslint/scope-manager@8.2.0":
|
||||||
version "8.11.0"
|
version "8.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-8.11.0.tgz#9d399ce624118966732824878bc9a83593a30405"
|
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-8.2.0.tgz#4a4bd7e7df5522acc8795c3b6f21e8c41b951138"
|
||||||
integrity sha512-Uholz7tWhXmA4r6epo+vaeV7yjdKy5QFCERMjs1kMVsLRKIrSdM6o21W2He9ftp5PP6aWOVpD5zvrvuHZC0bMQ==
|
integrity sha512-OFn80B38yD6WwpoHU2Tz/fTz7CgFqInllBoC3WP+/jLbTb4gGPTy9HBSTsbDWkMdN55XlVU0mMDYAtgvlUspGw==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@typescript-eslint/types" "8.11.0"
|
"@typescript-eslint/types" "8.2.0"
|
||||||
"@typescript-eslint/visitor-keys" "8.11.0"
|
"@typescript-eslint/visitor-keys" "8.2.0"
|
||||||
|
|
||||||
"@typescript-eslint/type-utils@7.18.0":
|
"@typescript-eslint/type-utils@7.18.0":
|
||||||
version "7.18.0"
|
version "7.18.0"
|
||||||
|
@ -1039,13 +1029,13 @@
|
||||||
debug "^4.3.4"
|
debug "^4.3.4"
|
||||||
ts-api-utils "^1.3.0"
|
ts-api-utils "^1.3.0"
|
||||||
|
|
||||||
"@typescript-eslint/type-utils@8.10.0":
|
"@typescript-eslint/type-utils@8.2.0":
|
||||||
version "8.10.0"
|
version "8.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-8.10.0.tgz#99f1d2e21f8c74703e7d9c4a67a87271eaf57597"
|
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-8.2.0.tgz#5cd7fef50f492e5a0f508bdd40678861a57c3549"
|
||||||
integrity sha512-PCpUOpyQSpxBn230yIcK+LeCQaXuxrgCm2Zk1S+PTIRJsEfU6nJ0TtwyH8pIwPK/vJoA+7TZtzyAJSGBz+s/dg==
|
integrity sha512-g1CfXGFMQdT5S+0PSO0fvGXUaiSkl73U1n9LTK5aRAFnPlJ8dLKkXr4AaLFvPedW8lVDoMgLLE3JN98ZZfsj0w==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@typescript-eslint/typescript-estree" "8.10.0"
|
"@typescript-eslint/typescript-estree" "8.2.0"
|
||||||
"@typescript-eslint/utils" "8.10.0"
|
"@typescript-eslint/utils" "8.2.0"
|
||||||
debug "^4.3.4"
|
debug "^4.3.4"
|
||||||
ts-api-utils "^1.3.0"
|
ts-api-utils "^1.3.0"
|
||||||
|
|
||||||
|
@ -1059,10 +1049,10 @@
|
||||||
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-8.10.0.tgz#eb29c4bc2ed23489348c297469c76d28c38fb618"
|
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-8.10.0.tgz#eb29c4bc2ed23489348c297469c76d28c38fb618"
|
||||||
integrity sha512-k/E48uzsfJCRRbGLapdZgrX52csmWJ2rcowwPvOZ8lwPUv3xW6CcFeJAXgx4uJm+Ge4+a4tFOkdYvSpxhRhg1w==
|
integrity sha512-k/E48uzsfJCRRbGLapdZgrX52csmWJ2rcowwPvOZ8lwPUv3xW6CcFeJAXgx4uJm+Ge4+a4tFOkdYvSpxhRhg1w==
|
||||||
|
|
||||||
"@typescript-eslint/types@8.11.0":
|
"@typescript-eslint/types@8.2.0":
|
||||||
version "8.11.0"
|
version "8.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-8.11.0.tgz#7c766250502097f49bbc2e651132e6bf489e20b8"
|
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-8.2.0.tgz#dfe9895a2812f7c6bf7af863054c22a67060420c"
|
||||||
integrity sha512-tn6sNMHf6EBAYMvmPUaKaVeYvhUsrE6x+bXQTxjQRp360h1giATU0WvgeEys1spbvb5R+VpNOZ+XJmjD8wOUHw==
|
integrity sha512-6a9QSK396YqmiBKPkJtxsgZZZVjYQ6wQ/TlI0C65z7vInaETuC6HAHD98AGLC8DyIPqHytvNuS8bBVvNLKyqvQ==
|
||||||
|
|
||||||
"@typescript-eslint/typescript-estree@7.18.0":
|
"@typescript-eslint/typescript-estree@7.18.0":
|
||||||
version "7.18.0"
|
version "7.18.0"
|
||||||
|
@ -1092,15 +1082,15 @@
|
||||||
semver "^7.6.0"
|
semver "^7.6.0"
|
||||||
ts-api-utils "^1.3.0"
|
ts-api-utils "^1.3.0"
|
||||||
|
|
||||||
"@typescript-eslint/typescript-estree@8.11.0":
|
"@typescript-eslint/typescript-estree@8.2.0":
|
||||||
version "8.11.0"
|
version "8.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-8.11.0.tgz#35fe5d3636fc5727c52429393415412e552e222b"
|
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-8.2.0.tgz#fbdb93a1c7ac7f1f96ae2de4fc97cd64c60ae894"
|
||||||
integrity sha512-yHC3s1z1RCHoCz5t06gf7jH24rr3vns08XXhfEqzYpd6Hll3z/3g23JRi0jM8A47UFKNc3u/y5KIMx8Ynbjohg==
|
integrity sha512-kiG4EDUT4dImplOsbh47B1QnNmXSoUqOjWDvCJw/o8LgfD0yr7k2uy54D5Wm0j4t71Ge1NkynGhpWdS0dEIAUA==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@typescript-eslint/types" "8.11.0"
|
"@typescript-eslint/types" "8.2.0"
|
||||||
"@typescript-eslint/visitor-keys" "8.11.0"
|
"@typescript-eslint/visitor-keys" "8.2.0"
|
||||||
debug "^4.3.4"
|
debug "^4.3.4"
|
||||||
fast-glob "^3.3.2"
|
globby "^11.1.0"
|
||||||
is-glob "^4.0.3"
|
is-glob "^4.0.3"
|
||||||
minimatch "^9.0.4"
|
minimatch "^9.0.4"
|
||||||
semver "^7.6.0"
|
semver "^7.6.0"
|
||||||
|
@ -1116,15 +1106,15 @@
|
||||||
"@typescript-eslint/types" "7.18.0"
|
"@typescript-eslint/types" "7.18.0"
|
||||||
"@typescript-eslint/typescript-estree" "7.18.0"
|
"@typescript-eslint/typescript-estree" "7.18.0"
|
||||||
|
|
||||||
"@typescript-eslint/utils@8.10.0":
|
"@typescript-eslint/utils@8.2.0":
|
||||||
version "8.10.0"
|
version "8.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-8.10.0.tgz#d78d1ce3ea3d2a88a2593ebfb1c98490131d00bf"
|
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-8.2.0.tgz#02d442285925f28d520587185f295f932702e733"
|
||||||
integrity sha512-Oq4uZ7JFr9d1ZunE/QKy5egcDRXT/FrS2z/nlxzPua2VHFtmMvFNDvpq1m/hq0ra+T52aUezfcjGRIB7vNJF9w==
|
integrity sha512-O46eaYKDlV3TvAVDNcoDzd5N550ckSe8G4phko++OCSC1dYIb9LTc3HDGYdWqWIAT5qDUKphO6sd9RrpIJJPfg==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@eslint-community/eslint-utils" "^4.4.0"
|
"@eslint-community/eslint-utils" "^4.4.0"
|
||||||
"@typescript-eslint/scope-manager" "8.10.0"
|
"@typescript-eslint/scope-manager" "8.2.0"
|
||||||
"@typescript-eslint/types" "8.10.0"
|
"@typescript-eslint/types" "8.2.0"
|
||||||
"@typescript-eslint/typescript-estree" "8.10.0"
|
"@typescript-eslint/typescript-estree" "8.2.0"
|
||||||
|
|
||||||
"@typescript-eslint/visitor-keys@7.18.0":
|
"@typescript-eslint/visitor-keys@7.18.0":
|
||||||
version "7.18.0"
|
version "7.18.0"
|
||||||
|
@ -1142,12 +1132,12 @@
|
||||||
"@typescript-eslint/types" "8.10.0"
|
"@typescript-eslint/types" "8.10.0"
|
||||||
eslint-visitor-keys "^3.4.3"
|
eslint-visitor-keys "^3.4.3"
|
||||||
|
|
||||||
"@typescript-eslint/visitor-keys@8.11.0":
|
"@typescript-eslint/visitor-keys@8.2.0":
|
||||||
version "8.11.0"
|
version "8.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-8.11.0.tgz#273de1cbffe63d9f9cd7dfc20b5a5af66310cb92"
|
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-8.2.0.tgz#f6abb3b6508898a117175ddc11f9b9869cc96834"
|
||||||
integrity sha512-EaewX6lxSjRJnc+99+dqzTeoDZUfyrA52d2/HRrkI830kgovWsmIiTfmr0NZorzqic7ga+1bS60lRBUgR3n/Bw==
|
integrity sha512-sbgsPMW9yLvS7IhCi8IpuK1oBmtbWUNP+hBdwl/I9nzqVsszGnNGti5r9dUtF5RLivHUFFIdRvLiTsPhzSyJ3Q==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@typescript-eslint/types" "8.11.0"
|
"@typescript-eslint/types" "8.2.0"
|
||||||
eslint-visitor-keys "^3.4.3"
|
eslint-visitor-keys "^3.4.3"
|
||||||
|
|
||||||
"@yao-pkg/pkg-fetch@3.5.10":
|
"@yao-pkg/pkg-fetch@3.5.10":
|
||||||
|
@ -2605,12 +2595,12 @@ ignore-walk@^6.0.4:
|
||||||
dependencies:
|
dependencies:
|
||||||
minimatch "^9.0.0"
|
minimatch "^9.0.0"
|
||||||
|
|
||||||
ignore@^5.2.0, ignore@^5.3.1:
|
ignore@^5.2.0:
|
||||||
version "5.3.2"
|
version "5.3.2"
|
||||||
resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.2.tgz#3cd40e729f3643fd87cb04e50bf0eb722bc596f5"
|
resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.2.tgz#3cd40e729f3643fd87cb04e50bf0eb722bc596f5"
|
||||||
integrity sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==
|
integrity sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==
|
||||||
|
|
||||||
ignore@^5.2.4:
|
ignore@^5.2.4, ignore@^5.3.1:
|
||||||
version "5.3.1"
|
version "5.3.1"
|
||||||
resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.1.tgz#5073e554cd42c5b33b394375f538b8593e34d4ef"
|
resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.1.tgz#5073e554cd42c5b33b394375f538b8593e34d4ef"
|
||||||
integrity sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==
|
integrity sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==
|
||||||
|
|
Loading…
Reference in a new issue