Skip to content

Commit

Permalink
Merge pull request #6 from Adscore/fix/structHeader
Browse files Browse the repository at this point in the history
Fix removal of struct header in Rfc3986
  • Loading branch information
mLicznerskiIterative authored Oct 30, 2024
2 parents ed9cb18 + e49c873 commit fbb1c00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adscore/nodejs-common",
"version": "1.0.6",
"version": "1.0.7",
"description": "NodeJS client library for Adscore",
"scripts": {
"prepare-package": "rm -r -f ./dist && npm run generate-barrels && tsc && npm run copy-files",
Expand Down
2 changes: 1 addition & 1 deletion src/struct/rfc3986.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class Rfc3986 extends AbstractStruct {
* @return array
*/
public unpack(data: Buffer): string {
const searchParams = new URLSearchParams(data.toString());
const searchParams = new URLSearchParams(super.unpack(data).toString());

const res = Array.from(searchParams.entries()).reduce((curr, prev) => {
curr[prev[0]] = prev[1];
Expand Down

0 comments on commit fbb1c00

Please sign in to comment.