File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11import { getObjectToken } from "./index" ;
22import { 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 */
1515const 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
You can’t perform that action at this time.
0 commit comments