@uniformdev/project-map 18.9.0 → 18.10.1-alpha.7

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 CHANGED
@@ -6653,7 +6653,7 @@ var require_encoding = __commonJS({
6653
6653
  }
6654
6654
  });
6655
6655
 
6656
- // ../../node_modules/.pnpm/node-fetch@2.6.8/node_modules/node-fetch/lib/index.mjs
6656
+ // ../../node_modules/.pnpm/node-fetch@2.6.7/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
- destroyStream(request.body, error);
7045
+ request.body.destroy(error);
7046
7046
  }
7047
7047
  if (!response || !response.body)
7048
7048
  return;
@@ -7077,29 +7077,8 @@ 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
- }
7083
7080
  finalize();
7084
7081
  });
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
- }
7103
7082
  req.on("response", function(res) {
7104
7083
  clearTimeout(reqTimeout);
7105
7084
  const headers = createHeadersLenient(res.headers);
@@ -7150,7 +7129,7 @@ function fetch(url, opts) {
7150
7129
  timeout: request.timeout,
7151
7130
  size: request.size
7152
7131
  };
7153
- if (!isDomainOrSubdomain(request.url, locationURL) || !isSameProtocol(request.url, locationURL)) {
7132
+ if (!isDomainOrSubdomain(request.url, locationURL)) {
7154
7133
  for (const name of ["authorization", "www-authenticate", "cookie", "cookie2"]) {
7155
7134
  requestOpts.headers.delete(name);
7156
7135
  }
@@ -7211,12 +7190,6 @@ function fetch(url, opts) {
7211
7190
  response = new Response(body, response_options);
7212
7191
  resolve5(response);
7213
7192
  });
7214
- raw.on("end", function() {
7215
- if (!response) {
7216
- response = new Response(body, response_options);
7217
- resolve5(response);
7218
- }
7219
- });
7220
7193
  return;
7221
7194
  }
7222
7195
  if (codings == "br" && typeof import_zlib.default.createBrotliDecompress === "function") {
@@ -7231,36 +7204,9 @@ function fetch(url, opts) {
7231
7204
  writeToStream(req, request);
7232
7205
  });
7233
7206
  }
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;
7207
+ 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, lib_default2;
7262
7208
  var init_lib = __esm({
7263
- "../../node_modules/.pnpm/node-fetch@2.6.8/node_modules/node-fetch/lib/index.mjs"() {
7209
+ "../../node_modules/.pnpm/node-fetch@2.6.7/node_modules/node-fetch/lib/index.mjs"() {
7264
7210
  import_stream = __toESM(require("stream"), 1);
7265
7211
  import_http = __toESM(require("http"), 1);
7266
7212
  import_url2 = __toESM(require("url"), 1);
@@ -7771,11 +7717,6 @@ var init_lib = __esm({
7771
7717
  const dest = new URL$1(destination).hostname;
7772
7718
  return orig === dest || orig[orig.length - dest.length - 1] === "." && orig.endsWith(dest);
7773
7719
  };
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
- };
7779
7720
  fetch.isRedirect = function(code) {
7780
7721
  return code === 301 || code === 302 || code === 303 || code === 307 || code === 308;
7781
7722
  };
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.8/node_modules/node-fetch/lib/index.mjs
6635
+ // ../../node_modules/.pnpm/node-fetch@2.6.7/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
- destroyStream(request.body, error);
7029
+ request.body.destroy(error);
7030
7030
  }
7031
7031
  if (!response || !response.body)
7032
7032
  return;
@@ -7061,29 +7061,8 @@ 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
- }
7067
7064
  finalize();
7068
7065
  });
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
- }
7087
7066
  req.on("response", function(res) {
7088
7067
  clearTimeout(reqTimeout);
7089
7068
  const headers = createHeadersLenient(res.headers);
@@ -7134,7 +7113,7 @@ function fetch(url, opts) {
7134
7113
  timeout: request.timeout,
7135
7114
  size: request.size
7136
7115
  };
7137
- if (!isDomainOrSubdomain(request.url, locationURL) || !isSameProtocol(request.url, locationURL)) {
7116
+ if (!isDomainOrSubdomain(request.url, locationURL)) {
7138
7117
  for (const name of ["authorization", "www-authenticate", "cookie", "cookie2"]) {
7139
7118
  requestOpts.headers.delete(name);
7140
7119
  }
@@ -7195,12 +7174,6 @@ function fetch(url, opts) {
7195
7174
  response = new Response(body, response_options);
7196
7175
  resolve5(response);
7197
7176
  });
7198
- raw.on("end", function() {
7199
- if (!response) {
7200
- response = new Response(body, response_options);
7201
- resolve5(response);
7202
- }
7203
- });
7204
7177
  return;
7205
7178
  }
7206
7179
  if (codings == "br" && typeof zlib.createBrotliDecompress === "function") {
@@ -7215,36 +7188,9 @@ function fetch(url, opts) {
7215
7188
  writeToStream(req, request);
7216
7189
  });
7217
7190
  }
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;
7191
+ 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, lib_default2;
7246
7192
  var init_lib = __esm({
7247
- "../../node_modules/.pnpm/node-fetch@2.6.8/node_modules/node-fetch/lib/index.mjs"() {
7193
+ "../../node_modules/.pnpm/node-fetch@2.6.7/node_modules/node-fetch/lib/index.mjs"() {
7248
7194
  import_whatwg_url = __toESM(require_public_api(), 1);
7249
7195
  Readable = Stream.Readable;
7250
7196
  BUFFER = Symbol("buffer");
@@ -7750,11 +7696,6 @@ var init_lib = __esm({
7750
7696
  const dest = new URL$1(destination).hostname;
7751
7697
  return orig === dest || orig[orig.length - dest.length - 1] === "." && orig.endsWith(dest);
7752
7698
  };
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
- };
7758
7699
  fetch.isRedirect = function(code) {
7759
7700
  return code === 301 || code === 302 || code === 303 || code === 307 || code === 308;
7760
7701
  };
package/dist/index.d.ts CHANGED
@@ -375,6 +375,8 @@ interface components {
375
375
  * @default screen
376
376
  */
377
377
  icon?: string;
378
+ /** @description Friendly name of this Composition's Definition */
379
+ typeName?: string;
378
380
  };
379
381
  ProjectMapNodeUpdate: {
380
382
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/project-map",
3
- "version": "18.9.0",
3
+ "version": "18.10.1-alpha.7+f2a138dc5",
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": "18.9.0",
50
- "@uniformdev/context": "18.9.0",
49
+ "@uniformdev/canvas": "18.10.1-alpha.7+f2a138dc5",
50
+ "@uniformdev/context": "18.10.1-alpha.7+f2a138dc5",
51
51
  "p-limit": "^3.1.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/yargs": "17.0.22",
55
- "@uniformdev/cli": "18.9.0",
55
+ "@uniformdev/cli": "18.10.1-alpha.7+f2a138dc5",
56
56
  "yargs": "17.6.2"
57
57
  },
58
58
  "publishConfig": {
59
59
  "access": "public"
60
60
  },
61
- "gitHead": "684988a2ac324b69e6b4799e55f2d33db0c7b652"
61
+ "gitHead": "f2a138dc52971e9e89b453928f938a84283701bc"
62
62
  }