-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
56cdd06
commit 360bd68
Showing
10 changed files
with
841 additions
and
1 deletion.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
node-fetch | ||
MIT | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2016 David Frank | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Third-party notices | ||
|
||
This software contains third-party libraries | ||
used under the terms of the following licences: | ||
|
||
| Library | Used under the terms of | | ||
|---------------|-----------------------------------------------------------------------------------------------------------| | ||
| aom | BSD 2-Clause + [Alliance for Open Media Patent License 1.0](https://aomedia.org/license/patent-license/) | | ||
| cairo | Mozilla Public License 2.0 | | ||
| cgif | MIT Licence | | ||
| expat | MIT Licence | | ||
| fontconfig | [fontconfig Licence](https://gitlab.freedesktop.org/fontconfig/fontconfig/blob/main/COPYING) (BSD-like) | | ||
| freetype | [freetype Licence](https://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/docs/FTL.TXT) (BSD-like) | | ||
| fribidi | LGPLv3 | | ||
| gdk-pixbuf | LGPLv3 | | ||
| glib | LGPLv3 | | ||
| harfbuzz | MIT Licence | | ||
| lcms | MIT Licence | | ||
| libexif | LGPLv3 | | ||
| libffi | MIT Licence | | ||
| libheif | LGPLv3 | | ||
| libimagequant | [BSD 2-Clause](https://github.com/lovell/libimagequant/blob/main/COPYRIGHT) | | ||
| mozjpeg | [zlib License, IJG License, BSD-3-Clause](https://github.com/mozilla/mozjpeg/blob/master/LICENSE.md) | | ||
| libnsgif | MIT Licence | | ||
| libpng | [libpng License](https://github.com/glennrp/libpng/blob/master/LICENSE) | | ||
| librsvg | LGPLv3 | | ||
| libspng | [BSD 2-Clause, libpng License](https://github.com/randy408/libspng/blob/master/LICENSE) | | ||
| libtiff | [libtiff License](https://libtiff.gitlab.io/libtiff/misc.html) (BSD-like) | | ||
| libvips | LGPLv3 | | ||
| libwebp | New BSD License | | ||
| libxml2 | MIT Licence | | ||
| orc | [orc License](https://gitlab.freedesktop.org/gstreamer/orc/blob/master/COPYING) (BSD-like) | | ||
| pango | LGPLv3 | | ||
| pixman | MIT Licence | | ||
| proxy-libintl | LGPLv3 | | ||
| zlib-ng | [zlib Licence](https://github.com/zlib-ng/zlib-ng/blob/develop/LICENSE.md) | | ||
|
||
Use of libraries under the terms of the LGPLv3 is via the | ||
"any later version" clause of the LGPLv2 or LGPLv2.1. | ||
|
||
Please report any errors or omissions via | ||
https://github.com/lovell/sharp-libvips/issues/new |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"linux-x64" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"aom": "3.6.0", | ||
"cairo": "1.17.8", | ||
"cgif": "0.3.0", | ||
"exif": "0.6.24", | ||
"expat": "2.5.0", | ||
"ffi": "3.4.4", | ||
"fontconfig": "2.14.2", | ||
"freetype": "2.13.0", | ||
"fribidi": "1.0.12", | ||
"gdkpixbuf": "2.42.10", | ||
"glib": "2.76.0", | ||
"harfbuzz": "7.1.0", | ||
"heif": "1.15.1", | ||
"imagequant": "2.4.1", | ||
"lcms": "2.15", | ||
"mozjpeg": "4.1.1", | ||
"orc": "0.4.33", | ||
"pango": "1.50.14", | ||
"pixman": "0.42.2", | ||
"png": "1.6.39", | ||
"proxy-libintl": "0.4", | ||
"rsvg": "2.56.0", | ||
"spng": "0.7.3", | ||
"tiff": "4.5.0", | ||
"vips": "8.14.2", | ||
"webp": "1.3.0", | ||
"xml": "2.10.3", | ||
"zlib-ng": "2.0.7" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
"use strict"; | ||
/* eslint-disable no-process-exit */ | ||
const util = require("util"); | ||
const { JSDOM } = require("../../../.."); | ||
const { READY_STATES } = require("./xhr-utils"); | ||
const idlUtils = require("../generated/utils"); | ||
const tough = require("tough-cookie"); | ||
|
||
const dom = new JSDOM(); | ||
const xhr = new dom.window.XMLHttpRequest(); | ||
const xhrImpl = idlUtils.implForWrapper(xhr); | ||
|
||
const chunks = []; | ||
|
||
process.stdin.on("data", chunk => { | ||
chunks.push(chunk); | ||
}); | ||
|
||
process.stdin.on("end", () => { | ||
const buffer = Buffer.concat(chunks); | ||
|
||
const flag = JSON.parse(buffer.toString()); | ||
if (flag.body && flag.body.type === "Buffer" && flag.body.data) { | ||
flag.body = Buffer.from(flag.body.data); | ||
} | ||
if (flag.cookieJar) { | ||
flag.cookieJar = tough.CookieJar.fromJSON(flag.cookieJar); | ||
} | ||
|
||
flag.synchronous = false; | ||
Object.assign(xhrImpl.flag, flag); | ||
const { properties } = xhrImpl; | ||
xhrImpl.readyState = READY_STATES.OPENED; | ||
try { | ||
xhr.addEventListener("loadend", () => { | ||
if (properties.error) { | ||
properties.error = properties.error.stack || util.inspect(properties.error); | ||
} | ||
process.stdout.write(JSON.stringify({ | ||
responseURL: xhrImpl.responseURL, | ||
status: xhrImpl.status, | ||
statusText: xhrImpl.statusText, | ||
properties | ||
}), () => { | ||
process.exit(0); | ||
}); | ||
}, false); | ||
xhr.send(flag.body); | ||
} catch (error) { | ||
properties.error += error.stack || util.inspect(error); | ||
process.stdout.write(JSON.stringify({ | ||
responseURL: xhrImpl.responseURL, | ||
status: xhrImpl.status, | ||
statusText: xhrImpl.statusText, | ||
properties | ||
}), () => { | ||
process.exit(0); | ||
}); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters