Skip to content

Commit 34daa2b

Browse files
committed
Move functions out of the client and make pure for React
1 parent c9c0397 commit 34daa2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pelican/permissions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { getObjectToken } from "./index";
22
import {Namespace, TokenPermission} from "../types";
3-
import {parsePelicanObjectUrl} from "../../dist/pelican";
3+
import {parseObjectUrl} from "../pelican";
44

55
/**
66
* Reports the permissions associated with the objectUrl prefix
@@ -14,7 +14,7 @@ import {parsePelicanObjectUrl} from "../../dist/pelican";
1414
*/
1515
const permissions = async (objectUrl: string, namespace: Namespace): Promise<TokenPermission[]> => {
1616

17-
const {federationHostname, objectPrefix} = parsePelicanObjectUrl(objectUrl)
17+
const {federationHostname, objectPrefix} = parseObjectUrl(objectUrl)
1818
const token = await getObjectToken(namespace)
1919

2020
// Pull out the federation and namespace paths that the token will be relative to

0 commit comments

Comments
 (0)