@uniformdev/project-map 17.7.1-alpha.176 → 17.7.1-alpha.211
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.
- package/dist/cli/cli.js +64 -5
- package/dist/cli/cli.mjs +64 -5
- package/package.json +5 -5
package/dist/cli/cli.js
CHANGED
|
@@ -6653,7 +6653,7 @@ var require_encoding = __commonJS({
|
|
|
6653
6653
|
}
|
|
6654
6654
|
});
|
|
6655
6655
|
|
|
6656
|
-
// ../../node_modules/.pnpm/node-fetch@2.6.
|
|
6656
|
+
// ../../node_modules/.pnpm/node-fetch@2.6.8/node_modules/node-fetch/lib/index.mjs
|
|
6657
6657
|
var lib_exports = {};
|
|
6658
6658
|
__export(lib_exports, {
|
|
6659
6659
|
FetchError: () => FetchError,
|
|
@@ -7042,7 +7042,7 @@ function fetch(url, opts) {
|
|
|
7042
7042
|
let error = new AbortError("The user aborted a request.");
|
|
7043
7043
|
reject(error);
|
|
7044
7044
|
if (request.body && request.body instanceof import_stream.default.Readable) {
|
|
7045
|
-
request.body
|
|
7045
|
+
destroyStream(request.body, error);
|
|
7046
7046
|
}
|
|
7047
7047
|
if (!response || !response.body)
|
|
7048
7048
|
return;
|
|
@@ -7077,8 +7077,29 @@ function fetch(url, opts) {
|
|
|
7077
7077
|
}
|
|
7078
7078
|
req.on("error", function(err) {
|
|
7079
7079
|
reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, "system", err));
|
|
7080
|
+
if (response && response.body) {
|
|
7081
|
+
destroyStream(response.body, err);
|
|
7082
|
+
}
|
|
7080
7083
|
finalize();
|
|
7081
7084
|
});
|
|
7085
|
+
fixResponseChunkedTransferBadEnding(req, function(err) {
|
|
7086
|
+
if (signal && signal.aborted) {
|
|
7087
|
+
return;
|
|
7088
|
+
}
|
|
7089
|
+
destroyStream(response.body, err);
|
|
7090
|
+
});
|
|
7091
|
+
if (parseInt(process.version.substring(1)) < 14) {
|
|
7092
|
+
req.on("socket", function(s) {
|
|
7093
|
+
s.addListener("close", function(hadError) {
|
|
7094
|
+
const hasDataListener = s.listenerCount("data") > 0;
|
|
7095
|
+
if (response && hasDataListener && !hadError && !(signal && signal.aborted)) {
|
|
7096
|
+
const err = new Error("Premature close");
|
|
7097
|
+
err.code = "ERR_STREAM_PREMATURE_CLOSE";
|
|
7098
|
+
response.body.emit("error", err);
|
|
7099
|
+
}
|
|
7100
|
+
});
|
|
7101
|
+
});
|
|
7102
|
+
}
|
|
7082
7103
|
req.on("response", function(res) {
|
|
7083
7104
|
clearTimeout(reqTimeout);
|
|
7084
7105
|
const headers = createHeadersLenient(res.headers);
|
|
@@ -7129,7 +7150,7 @@ function fetch(url, opts) {
|
|
|
7129
7150
|
timeout: request.timeout,
|
|
7130
7151
|
size: request.size
|
|
7131
7152
|
};
|
|
7132
|
-
if (!isDomainOrSubdomain(request.url, locationURL)) {
|
|
7153
|
+
if (!isDomainOrSubdomain(request.url, locationURL) || !isSameProtocol(request.url, locationURL)) {
|
|
7133
7154
|
for (const name of ["authorization", "www-authenticate", "cookie", "cookie2"]) {
|
|
7134
7155
|
requestOpts.headers.delete(name);
|
|
7135
7156
|
}
|
|
@@ -7190,6 +7211,12 @@ function fetch(url, opts) {
|
|
|
7190
7211
|
response = new Response(body, response_options);
|
|
7191
7212
|
resolve5(response);
|
|
7192
7213
|
});
|
|
7214
|
+
raw.on("end", function() {
|
|
7215
|
+
if (!response) {
|
|
7216
|
+
response = new Response(body, response_options);
|
|
7217
|
+
resolve5(response);
|
|
7218
|
+
}
|
|
7219
|
+
});
|
|
7193
7220
|
return;
|
|
7194
7221
|
}
|
|
7195
7222
|
if (codings == "br" && typeof import_zlib.default.createBrotliDecompress === "function") {
|
|
@@ -7204,9 +7231,36 @@ function fetch(url, opts) {
|
|
|
7204
7231
|
writeToStream(req, request);
|
|
7205
7232
|
});
|
|
7206
7233
|
}
|
|
7207
|
-
|
|
7234
|
+
function fixResponseChunkedTransferBadEnding(request, errorCallback) {
|
|
7235
|
+
let socket;
|
|
7236
|
+
request.on("socket", function(s) {
|
|
7237
|
+
socket = s;
|
|
7238
|
+
});
|
|
7239
|
+
request.on("response", function(response) {
|
|
7240
|
+
const headers = response.headers;
|
|
7241
|
+
if (headers["transfer-encoding"] === "chunked" && !headers["content-length"]) {
|
|
7242
|
+
response.once("close", function(hadError) {
|
|
7243
|
+
const hasDataListener = socket.listenerCount("data") > 0;
|
|
7244
|
+
if (hasDataListener && !hadError) {
|
|
7245
|
+
const err = new Error("Premature close");
|
|
7246
|
+
err.code = "ERR_STREAM_PREMATURE_CLOSE";
|
|
7247
|
+
errorCallback(err);
|
|
7248
|
+
}
|
|
7249
|
+
});
|
|
7250
|
+
}
|
|
7251
|
+
});
|
|
7252
|
+
}
|
|
7253
|
+
function destroyStream(stream, err) {
|
|
7254
|
+
if (stream.destroy) {
|
|
7255
|
+
stream.destroy(err);
|
|
7256
|
+
} else {
|
|
7257
|
+
stream.emit("error", err);
|
|
7258
|
+
stream.end();
|
|
7259
|
+
}
|
|
7260
|
+
}
|
|
7261
|
+
var import_stream, import_http, import_url2, import_whatwg_url, import_https, import_zlib, Readable, BUFFER, TYPE, Blob2, convert, INTERNALS, PassThrough, invalidTokenRegex, invalidHeaderCharRegex, MAP, Headers, INTERNAL, HeadersIteratorPrototype, INTERNALS$1, STATUS_CODES, Response, INTERNALS$2, URL, parse_url, format_url, streamDestructionSupported, Request, URL$1, PassThrough$1, isDomainOrSubdomain, isSameProtocol, lib_default2;
|
|
7208
7262
|
var init_lib = __esm({
|
|
7209
|
-
"../../node_modules/.pnpm/node-fetch@2.6.
|
|
7263
|
+
"../../node_modules/.pnpm/node-fetch@2.6.8/node_modules/node-fetch/lib/index.mjs"() {
|
|
7210
7264
|
import_stream = __toESM(require("stream"), 1);
|
|
7211
7265
|
import_http = __toESM(require("http"), 1);
|
|
7212
7266
|
import_url2 = __toESM(require("url"), 1);
|
|
@@ -7717,6 +7771,11 @@ var init_lib = __esm({
|
|
|
7717
7771
|
const dest = new URL$1(destination).hostname;
|
|
7718
7772
|
return orig === dest || orig[orig.length - dest.length - 1] === "." && orig.endsWith(dest);
|
|
7719
7773
|
};
|
|
7774
|
+
isSameProtocol = function isSameProtocol2(destination, original) {
|
|
7775
|
+
const orig = new URL$1(original).protocol;
|
|
7776
|
+
const dest = new URL$1(destination).protocol;
|
|
7777
|
+
return orig === dest;
|
|
7778
|
+
};
|
|
7720
7779
|
fetch.isRedirect = function(code) {
|
|
7721
7780
|
return code === 301 || code === 302 || code === 303 || code === 307 || code === 308;
|
|
7722
7781
|
};
|
package/dist/cli/cli.mjs
CHANGED
|
@@ -6632,7 +6632,7 @@ var require_encoding = __commonJS({
|
|
|
6632
6632
|
}
|
|
6633
6633
|
});
|
|
6634
6634
|
|
|
6635
|
-
// ../../node_modules/.pnpm/node-fetch@2.6.
|
|
6635
|
+
// ../../node_modules/.pnpm/node-fetch@2.6.8/node_modules/node-fetch/lib/index.mjs
|
|
6636
6636
|
var lib_exports = {};
|
|
6637
6637
|
__export(lib_exports, {
|
|
6638
6638
|
FetchError: () => FetchError,
|
|
@@ -7026,7 +7026,7 @@ function fetch(url, opts) {
|
|
|
7026
7026
|
let error = new AbortError("The user aborted a request.");
|
|
7027
7027
|
reject(error);
|
|
7028
7028
|
if (request.body && request.body instanceof Stream.Readable) {
|
|
7029
|
-
request.body
|
|
7029
|
+
destroyStream(request.body, error);
|
|
7030
7030
|
}
|
|
7031
7031
|
if (!response || !response.body)
|
|
7032
7032
|
return;
|
|
@@ -7061,8 +7061,29 @@ function fetch(url, opts) {
|
|
|
7061
7061
|
}
|
|
7062
7062
|
req.on("error", function(err) {
|
|
7063
7063
|
reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, "system", err));
|
|
7064
|
+
if (response && response.body) {
|
|
7065
|
+
destroyStream(response.body, err);
|
|
7066
|
+
}
|
|
7064
7067
|
finalize();
|
|
7065
7068
|
});
|
|
7069
|
+
fixResponseChunkedTransferBadEnding(req, function(err) {
|
|
7070
|
+
if (signal && signal.aborted) {
|
|
7071
|
+
return;
|
|
7072
|
+
}
|
|
7073
|
+
destroyStream(response.body, err);
|
|
7074
|
+
});
|
|
7075
|
+
if (parseInt(process.version.substring(1)) < 14) {
|
|
7076
|
+
req.on("socket", function(s) {
|
|
7077
|
+
s.addListener("close", function(hadError) {
|
|
7078
|
+
const hasDataListener = s.listenerCount("data") > 0;
|
|
7079
|
+
if (response && hasDataListener && !hadError && !(signal && signal.aborted)) {
|
|
7080
|
+
const err = new Error("Premature close");
|
|
7081
|
+
err.code = "ERR_STREAM_PREMATURE_CLOSE";
|
|
7082
|
+
response.body.emit("error", err);
|
|
7083
|
+
}
|
|
7084
|
+
});
|
|
7085
|
+
});
|
|
7086
|
+
}
|
|
7066
7087
|
req.on("response", function(res) {
|
|
7067
7088
|
clearTimeout(reqTimeout);
|
|
7068
7089
|
const headers = createHeadersLenient(res.headers);
|
|
@@ -7113,7 +7134,7 @@ function fetch(url, opts) {
|
|
|
7113
7134
|
timeout: request.timeout,
|
|
7114
7135
|
size: request.size
|
|
7115
7136
|
};
|
|
7116
|
-
if (!isDomainOrSubdomain(request.url, locationURL)) {
|
|
7137
|
+
if (!isDomainOrSubdomain(request.url, locationURL) || !isSameProtocol(request.url, locationURL)) {
|
|
7117
7138
|
for (const name of ["authorization", "www-authenticate", "cookie", "cookie2"]) {
|
|
7118
7139
|
requestOpts.headers.delete(name);
|
|
7119
7140
|
}
|
|
@@ -7174,6 +7195,12 @@ function fetch(url, opts) {
|
|
|
7174
7195
|
response = new Response(body, response_options);
|
|
7175
7196
|
resolve5(response);
|
|
7176
7197
|
});
|
|
7198
|
+
raw.on("end", function() {
|
|
7199
|
+
if (!response) {
|
|
7200
|
+
response = new Response(body, response_options);
|
|
7201
|
+
resolve5(response);
|
|
7202
|
+
}
|
|
7203
|
+
});
|
|
7177
7204
|
return;
|
|
7178
7205
|
}
|
|
7179
7206
|
if (codings == "br" && typeof zlib.createBrotliDecompress === "function") {
|
|
@@ -7188,9 +7215,36 @@ function fetch(url, opts) {
|
|
|
7188
7215
|
writeToStream(req, request);
|
|
7189
7216
|
});
|
|
7190
7217
|
}
|
|
7191
|
-
|
|
7218
|
+
function fixResponseChunkedTransferBadEnding(request, errorCallback) {
|
|
7219
|
+
let socket;
|
|
7220
|
+
request.on("socket", function(s) {
|
|
7221
|
+
socket = s;
|
|
7222
|
+
});
|
|
7223
|
+
request.on("response", function(response) {
|
|
7224
|
+
const headers = response.headers;
|
|
7225
|
+
if (headers["transfer-encoding"] === "chunked" && !headers["content-length"]) {
|
|
7226
|
+
response.once("close", function(hadError) {
|
|
7227
|
+
const hasDataListener = socket.listenerCount("data") > 0;
|
|
7228
|
+
if (hasDataListener && !hadError) {
|
|
7229
|
+
const err = new Error("Premature close");
|
|
7230
|
+
err.code = "ERR_STREAM_PREMATURE_CLOSE";
|
|
7231
|
+
errorCallback(err);
|
|
7232
|
+
}
|
|
7233
|
+
});
|
|
7234
|
+
}
|
|
7235
|
+
});
|
|
7236
|
+
}
|
|
7237
|
+
function destroyStream(stream, err) {
|
|
7238
|
+
if (stream.destroy) {
|
|
7239
|
+
stream.destroy(err);
|
|
7240
|
+
} else {
|
|
7241
|
+
stream.emit("error", err);
|
|
7242
|
+
stream.end();
|
|
7243
|
+
}
|
|
7244
|
+
}
|
|
7245
|
+
var import_whatwg_url, Readable, BUFFER, TYPE, Blob2, convert, INTERNALS, PassThrough, invalidTokenRegex, invalidHeaderCharRegex, MAP, Headers, INTERNAL, HeadersIteratorPrototype, INTERNALS$1, STATUS_CODES, Response, INTERNALS$2, URL, parse_url, format_url, streamDestructionSupported, Request, URL$1, PassThrough$1, isDomainOrSubdomain, isSameProtocol, lib_default2;
|
|
7192
7246
|
var init_lib = __esm({
|
|
7193
|
-
"../../node_modules/.pnpm/node-fetch@2.6.
|
|
7247
|
+
"../../node_modules/.pnpm/node-fetch@2.6.8/node_modules/node-fetch/lib/index.mjs"() {
|
|
7194
7248
|
import_whatwg_url = __toESM(require_public_api(), 1);
|
|
7195
7249
|
Readable = Stream.Readable;
|
|
7196
7250
|
BUFFER = Symbol("buffer");
|
|
@@ -7696,6 +7750,11 @@ var init_lib = __esm({
|
|
|
7696
7750
|
const dest = new URL$1(destination).hostname;
|
|
7697
7751
|
return orig === dest || orig[orig.length - dest.length - 1] === "." && orig.endsWith(dest);
|
|
7698
7752
|
};
|
|
7753
|
+
isSameProtocol = function isSameProtocol2(destination, original) {
|
|
7754
|
+
const orig = new URL$1(original).protocol;
|
|
7755
|
+
const dest = new URL$1(destination).protocol;
|
|
7756
|
+
return orig === dest;
|
|
7757
|
+
};
|
|
7699
7758
|
fetch.isRedirect = function(code) {
|
|
7700
7759
|
return code === 301 || code === 302 || code === 303 || code === 307 || code === 308;
|
|
7701
7760
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/project-map",
|
|
3
|
-
"version": "17.7.1-alpha.
|
|
3
|
+
"version": "17.7.1-alpha.211+e51b76310",
|
|
4
4
|
"description": "Uniform Project Map",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -46,17 +46,17 @@
|
|
|
46
46
|
"/dist"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@uniformdev/canvas": "
|
|
50
|
-
"@uniformdev/context": "
|
|
49
|
+
"@uniformdev/canvas": "17.7.1-alpha.211+e51b76310",
|
|
50
|
+
"@uniformdev/context": "17.7.1-alpha.211+e51b76310",
|
|
51
51
|
"p-limit": "^3.1.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/yargs": "17.0.19",
|
|
55
|
-
"@uniformdev/cli": "
|
|
55
|
+
"@uniformdev/cli": "17.7.1-alpha.211+e51b76310",
|
|
56
56
|
"yargs": "17.6.2"
|
|
57
57
|
},
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "e51b76310a677d0f0f2b35bfa1f7416c733cf25d"
|
|
62
62
|
}
|