Skip to content

Commit

Permalink
better tar import
Browse files Browse the repository at this point in the history
  • Loading branch information
deliciousmonster committed Mar 19, 2024
1 parent 6072b28 commit 27f9b49
Show file tree
Hide file tree
Showing 3 changed files with 874 additions and 799 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "harperdb-studio",
"version": "4.4.1",
"version": "4.4.2",
"description": "A UI for HarperDB",
"deploymentUrl": "studio.harperdb.io",
"private": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ function isValidUrl(url) {

function isValidTarballUrl(url) {
// npm restrictions on the tarball url install here: https://docs.npmjs.com/cli/v9/commands/npm-install
return isValidUrl(url) && (url.endsWith('.tar') || url.endsWith('.tar.gz') || url.endsWith('.tgz'));
// updated to indexOf to allow signed URLs (with tokens appended)
return isValidUrl(url) && (url.indexOf('.tar') !== -1 || url.indexOf('.tar.gz') !== -1 || url.indexOf('.tgz') !== -1);
}

export default function UrlInstallField({ pkg, setPackageSpec }) {
Expand Down
Loading

0 comments on commit 27f9b49

Please sign in to comment.