From 368a82b3da6c964b21c9df1f733297ac0c40cc57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20Sefa=20Bal=C4=B1k?= Date: Thu, 25 Mar 2021 11:36:56 +0300 Subject: [PATCH 1/2] update - source is removed from fragment query parameters --- src/core.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core.ts b/src/core.ts index e42d401..54548c0 100644 --- a/src/core.ts +++ b/src/core.ts @@ -186,12 +186,12 @@ export class Core extends Module { private static prepareQueryString(fragmentAttributes: Record) { const attributes = Object.assign(window.location.search.slice(1).split('&').reduce((dict: { [name: string]: string }, i) => { const [key, value] = i.split('='); - if (typeof value !== "undefined" && key !== "source") { + if (typeof value !== "undefined") { dict[key] = value; } return dict; }, {}), fragmentAttributes); - + delete attributes.source; return Object.keys(attributes).reduce((query: string, key: string) => `${query}&${key}=${attributes[key]}`, '?__renderMode=stream'); } From 0699d1ca967bef70332da5b1627b68d888bab760 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20Sefa=20Bal=C4=B1k?= Date: Thu, 25 Mar 2021 11:39:30 +0300 Subject: [PATCH 2/2] version is updated --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index c2f787a..f6e59b6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@puzzle-js/client-lib", - "version": "1.4.5", + "version": "1.4.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 6e4a61a..9f95cea 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@puzzle-js/client-lib", "main": "dist/index.js", - "version": "1.4.1", + "version": "1.4.2", "author": "", "license": "MIT", "repository": {