Update neo-scraper (adds Zerochan support)

feature-show_image_resolution
neobooru 2019-11-10 01:30:31 +01:00
parent 90bb7475a7
commit 61916415f8
3 changed files with 7 additions and 7 deletions

8
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "szuru-chrome",
"version": "0.1.2",
"version": "0.1.3",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@ -4036,9 +4036,9 @@
"dev": true
},
"neo-scraper": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/neo-scraper/-/neo-scraper-0.1.0.tgz",
"integrity": "sha512-XfSFRKwB9vVldWGPecOxWeMfBfNkhOklPbb4qYknnsyW7gkbudY5L3VkqM8DFnsvXyXEGW2rFTsc1JTfigypKg=="
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/neo-scraper/-/neo-scraper-0.2.0.tgz",
"integrity": "sha512-trO7FNdlXnxifI/XY/DBeG5JvHkf+wtEvlPO3gZeVhKFIRcmiA3mRIc4q6T/ffSGCz4a5q6MYLo7SUeJFhK/FQ=="
},
"nice-try": {
"version": "1.0.5",

View File

@ -1,6 +1,6 @@
{
"name": "szuru-chrome",
"version": "0.1.2",
"version": "0.1.3",
"description": "Import media from various sites into szurubooru",
"author": "neobooru",
"license": "MIT",
@ -13,7 +13,7 @@
},
"dependencies": {
"axios": "^0.19.0",
"neo-scraper": "^0.1.0",
"neo-scraper": "^0.2.0",
"ts-optchain": "^0.1.8",
"vue": "^2.6.10",
"webextension-polyfill": "^0.3.1"

View File

@ -123,7 +123,7 @@ export default Vue.extend({
}))[0];
// Send 'grab_post' to the content script on the active tab
const x = (await browser.tabs.sendMessage(activeTab.id!, "grab_post"));
const x = await browser.tabs.sendMessage(activeTab.id!, "grab_post");
// We need to create a new ScrapeResults object and fill it with our data, because the get_posts()
// method gets 'lost' when sent from the contentscript to the popup (it gets JSON.stringified and any prototype defines are lost there)
const res = Object.assign(new ScrapeResults(), x);