WIP - add extractor, generate snippet_data
This commit is contained in:
22
node_modules/cross-fetch/dist/node-ponyfill.js
generated
vendored
Normal file
22
node_modules/cross-fetch/dist/node-ponyfill.js
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
var nodeFetch = require('node-fetch');
|
||||
var realFetch = nodeFetch.default || nodeFetch;
|
||||
|
||||
var fetch = function (url, options) {
|
||||
// Support schemaless URIs on the server for parity with the browser.
|
||||
// Ex: //github.com/ -> https://github.com/
|
||||
if (/^\/\//.test(url)) {
|
||||
url = 'https:' + url;
|
||||
}
|
||||
return realFetch.call(this, url, options);
|
||||
};
|
||||
|
||||
fetch.polyfill = false;
|
||||
|
||||
module.exports = exports = fetch;
|
||||
exports.fetch = fetch;
|
||||
exports.Headers = nodeFetch.Headers;
|
||||
exports.Request = nodeFetch.Request;
|
||||
exports.Response = nodeFetch.Response;
|
||||
|
||||
// Needed for TypeScript.
|
||||
exports.default = fetch;
|
||||
Reference in New Issue
Block a user