Skip to content

Commit 6d4ffeb

Browse files
authored
Reduce the min npm version for supporting scoped auth (#1316)
1 parent 10bbbc8 commit 6d4ffeb

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

artifactory/commands/npm/npmcommand.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ import (
44
"bufio"
55
"errors"
66
"fmt"
7+
"os"
8+
"path/filepath"
9+
"strconv"
10+
"strings"
11+
712
"github.com/jfrog/build-info-go/build"
813
biUtils "github.com/jfrog/build-info-go/build/utils"
914
"github.com/jfrog/gofrog/version"
@@ -18,10 +23,6 @@ import (
1823
"github.com/jfrog/jfrog-client-go/utils/errorutils"
1924
"github.com/jfrog/jfrog-client-go/utils/log"
2025
"github.com/spf13/viper"
21-
"os"
22-
"path/filepath"
23-
"strconv"
24-
"strings"
2526
)
2627

2728
const (
@@ -31,7 +32,7 @@ const (
3132

3233
// Scoped authentication env var that sets the _auth or _authToken npm config variables.
3334
npmConfigAuthEnv = "npm_config_%s:%s"
34-
npmVersionSupportingScopedAuthEnv = "9.3.1"
35+
npmVersionSupportingScopedAuthEnv = "9.2.0"
3536
// Legacy un-scoped auth env vars doesn't support access tokens (with _authToken suffix).
3637
npmLegacyConfigAuthEnv = "npm_config__auth"
3738
)

0 commit comments

Comments
 (0)