Skip to content

Commit

Permalink
Merge pull request #47 from DIG-Network/release/v0.0.1-alpha.51
Browse files Browse the repository at this point in the history
Release/v0.0.1 alpha.51
  • Loading branch information
MichaelTaylor3D committed Sep 24, 2024
2 parents 15ee883 + f6d0e3c commit 0886833
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

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.51](https://github.com/DIG-Network/dig-content-server/compare/v0.0.1-alpha.50...v0.0.1-alpha.51) (2024-09-24)


### Features

* test new udi scheme ([0719f9d](https://github.com/DIG-Network/dig-content-server/commit/0719f9dcc88223eb8018fba4ee29afde8daf04af))

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


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.50",
"version": "0.0.1-alpha.51",
"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
@@ -1,6 +1,7 @@
import { Request, Response, NextFunction } from "express";
import { renderUnknownChainView } from "../views";
import { DataStore } from "@dignetwork/dig-sdk";
import { app } from "../app";

const validChainNames = ["chia"]; // List of valid chain names

Expand Down Expand Up @@ -69,6 +70,10 @@ export const parseUdi = async (
// Split the pathSegment by periods to extract potential components
const parts = pathSegment.split(".");

if (parts.length === 1 && parts[0].length === 64) {
appendPath = `/${parts[0]}${appendPath}`;
}

if (parts.length === 3) {
chainName = parts[0];
storeId = parts[1];
Expand Down

0 comments on commit 0886833

Please sign in to comment.