@ibm-aspera/sdk 0.4.12 → 0.4.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -162,6 +162,11 @@ export interface AsperaSdkSpec {
|
|
|
162
162
|
* alongside the transfer.
|
|
163
163
|
*/
|
|
164
164
|
preview_base64?: string;
|
|
165
|
+
/**
|
|
166
|
+
* When `false`, IBM Aspera for desktop disables automatic UI prompts, except when the user must authorize
|
|
167
|
+
* transfers to untrusted hosts.
|
|
168
|
+
*/
|
|
169
|
+
allow_dialogs?: boolean;
|
|
165
170
|
/**
|
|
166
171
|
* HTTP Gateway Server override. This will not verify server but switch a transfer to use
|
|
167
172
|
* this server instead of the default one that initiated the SDK.
|
package/package.json
CHANGED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
set -euo pipefail
|
|
4
|
+
|
|
5
|
+
# Get the version from package.json
|
|
6
|
+
VERSION=$(node -p "require('./package.json').version")
|
|
7
|
+
TAG="v$VERSION"
|
|
8
|
+
|
|
9
|
+
# Check if we're on main branch
|
|
10
|
+
BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
|
11
|
+
if [ "$BRANCH" != "main" ]; then
|
|
12
|
+
echo "Error: You must be on the main branch to release. Currently on: $BRANCH"
|
|
13
|
+
exit 1
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
# Check for uncommitted changes
|
|
17
|
+
if [ -n "$(git status --porcelain)" ]; then
|
|
18
|
+
echo "Error: You have uncommitted changes. Please commit or stash them first."
|
|
19
|
+
exit 1
|
|
20
|
+
fi
|
|
21
|
+
|
|
22
|
+
# Pull latest changes
|
|
23
|
+
echo "Pulling latest changes from main..."
|
|
24
|
+
git pull origin main
|
|
25
|
+
|
|
26
|
+
# Re-read version after pull (in case version.yml updated it)
|
|
27
|
+
VERSION=$(node -p "require('./package.json').version")
|
|
28
|
+
TAG="v$VERSION"
|
|
29
|
+
|
|
30
|
+
# Check if tag already exists
|
|
31
|
+
if git rev-parse "$TAG" >/dev/null 2>&1; then
|
|
32
|
+
echo "Error: Tag $TAG already exists."
|
|
33
|
+
exit 1
|
|
34
|
+
fi
|
|
35
|
+
|
|
36
|
+
echo "Creating release for version $VERSION..."
|
|
37
|
+
|
|
38
|
+
# Create and push the tag
|
|
39
|
+
git tag "$TAG"
|
|
40
|
+
git push origin "$TAG"
|
|
41
|
+
|
|
42
|
+
echo ""
|
|
43
|
+
echo "Release $TAG triggered successfully!"
|
|
44
|
+
echo ""
|
|
45
|
+
echo "Follow the publish workflow here:"
|
|
46
|
+
echo "https://github.com/IBM/aspera-sdk-js/actions/workflows/publish.yml"
|