Skip to content

Commit

Permalink
Merge pull request #28 from DIG-Network/release/v0.0.1-alpha.31
Browse files Browse the repository at this point in the history
Release/v0.0.1 alpha.31
  • Loading branch information
MichaelTaylor3D authored Sep 18, 2024
2 parents 71f775f + 926b830 commit 85c3d77
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [0.0.1-alpha.31](https://github.com/DIG-Network/dig-content-server/compare/v0.0.1-alpha.30...v0.0.1-alpha.31) (2024-09-18)

### [0.0.1-alpha.30](https://github.com/DIG-Network/dig-content-server/compare/v0.0.1-alpha.29...v0.0.1-alpha.30) (2024-09-17)


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dig-content-server",
"version": "0.0.1-alpha.30",
"version": "0.0.1-alpha.31",
"description": "",
"type": "commonjs",
"main": "./dist/index.js",
Expand Down
5 changes: 5 additions & 0 deletions src/middleware/parseUdi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ export const parseUdi = async (
let storeId: string = "";
let rootHash: string | null = null;



// Extract the first path part as the storeId (assumed app identifier)
const pathSegment = req.params.storeId || ""; // Expecting storeId to be the first path segment
const originalPathSegments = req.originalUrl.split("/").slice(2); // Remove the first segment, which is the storeId part
Expand Down Expand Up @@ -50,6 +52,9 @@ export const parseUdi = async (
storeId = parts[0];
}


console.log(req.originalUrl);

// Check for the edge case where the first and second path parts are the same
if (originalPathSegments.length > 1 && storeId.length >= 64) {
const secondPathPart = originalPathSegments[0];
Expand Down

0 comments on commit 85c3d77

Please sign in to comment.