publish-microfrontend 1.11.1-beta.efeabd1 → 1.11.1

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.
Files changed (2) hide show
  1. package/lib/index.js +5 -2
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -20446,6 +20446,9 @@ var require_form_data = __commonJS({
20446
20446
  var setToStringTag = require_es_set_tostringtag();
20447
20447
  var hasOwn = require_hasown();
20448
20448
  var populate = require_populate();
20449
+ function escapeHeaderParam(str) {
20450
+ return String(str).replace(/\r/g, "%0D").replace(/\n/g, "%0A").replace(/"/g, "%22");
20451
+ }
20449
20452
  function FormData4(options) {
20450
20453
  if (!(this instanceof FormData4)) {
20451
20454
  return new FormData4(options);
@@ -20535,7 +20538,7 @@ var require_form_data = __commonJS({
20535
20538
  var contents = "";
20536
20539
  var headers = {
20537
20540
  // add custom disposition as third element or keep it two elements if not
20538
- "Content-Disposition": ["form-data", 'name="' + field + '"'].concat(contentDisposition || []),
20541
+ "Content-Disposition": ["form-data", 'name="' + escapeHeaderParam(field) + '"'].concat(contentDisposition || []),
20539
20542
  // if no content type. allow it to be empty array
20540
20543
  "Content-Type": [].concat(contentType || [])
20541
20544
  };
@@ -20569,7 +20572,7 @@ var require_form_data = __commonJS({
20569
20572
  filename = path.basename(value.client._httpMessage.path || "");
20570
20573
  }
20571
20574
  if (filename) {
20572
- return 'filename="' + filename + '"';
20575
+ return 'filename="' + escapeHeaderParam(filename) + '"';
20573
20576
  }
20574
20577
  };
20575
20578
  FormData4.prototype._getContentType = function(value, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publish-microfrontend",
3
- "version": "1.11.1-beta.efeabd1",
3
+ "version": "1.11.1",
4
4
  "description": "A CLI for publishing micro frontends to a feed service.",
5
5
  "keywords": [
6
6
  "modules",
@@ -68,5 +68,5 @@
68
68
  "typescript": "^5",
69
69
  "yargs": "^15"
70
70
  },
71
- "gitHead": "efeabd123aee931a35e13054b9792ccfbc252715"
71
+ "gitHead": "5a57b813ac5cae4e60fbb7c6cd0f5120135371dd"
72
72
  }