@inditextech/weave-store-azure-web-pubsub 0.77.0 → 0.77.2

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/server.cjs CHANGED
@@ -18693,10 +18693,6 @@ var require_response = __commonJS({ "../../node_modules/koa/lib/response.js"(exp
18693
18693
  back(alt) {
18694
18694
  const referrer = this.ctx.get("Referrer");
18695
18695
  if (referrer) {
18696
- if (referrer.startsWith("/")) {
18697
- this.redirect(referrer);
18698
- return;
18699
- }
18700
18696
  const url$1 = new URL(referrer, this.ctx.href);
18701
18697
  if (url$1.host === this.ctx.host) {
18702
18698
  this.redirect(referrer);
@@ -18706,7 +18702,7 @@ var require_response = __commonJS({ "../../node_modules/koa/lib/response.js"(exp
18706
18702
  this.redirect(alt || "/");
18707
18703
  },
18708
18704
  attachment(filename, options) {
18709
- if (filename) this.type = extname(filename);
18705
+ if (filename && !this.has("Content-Type")) this.type = extname(filename);
18710
18706
  this.set("Content-Disposition", contentDisposition(filename, options));
18711
18707
  },
18712
18708
  set type(type) {
package/dist/server.js CHANGED
@@ -18697,10 +18697,6 @@ var require_response = __commonJS({ "../../node_modules/koa/lib/response.js"(exp
18697
18697
  back(alt) {
18698
18698
  const referrer = this.ctx.get("Referrer");
18699
18699
  if (referrer) {
18700
- if (referrer.startsWith("/")) {
18701
- this.redirect(referrer);
18702
- return;
18703
- }
18704
18700
  const url$1 = new URL(referrer, this.ctx.href);
18705
18701
  if (url$1.host === this.ctx.host) {
18706
18702
  this.redirect(referrer);
@@ -18710,7 +18706,7 @@ var require_response = __commonJS({ "../../node_modules/koa/lib/response.js"(exp
18710
18706
  this.redirect(alt || "/");
18711
18707
  },
18712
18708
  attachment(filename, options) {
18713
- if (filename) this.type = extname(filename);
18709
+ if (filename && !this.has("Content-Type")) this.type = extname(filename);
18714
18710
  this.set("Content-Disposition", contentDisposition(filename, options));
18715
18711
  },
18716
18712
  set type(type) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inditextech/weave-store-azure-web-pubsub",
3
- "version": "0.77.0",
3
+ "version": "0.77.2",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Jesus Manuel Piñeiro Cid <jesusmpc@inditex.com>",
@@ -62,7 +62,7 @@
62
62
  "yjs": "13.6.27"
63
63
  },
64
64
  "devDependencies": {
65
- "@inditextech/weave-sdk": "0.77.0",
65
+ "@inditextech/weave-sdk": "0.77.2",
66
66
  "@koa/cors": "^5.0.0",
67
67
  "@types/express": "^5.0.1",
68
68
  "@types/ioredis": "^4.28.10",