Skip to content

Commit

Permalink
Reduce the min npm version for supporting scoped auth
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalb4doc committed Dec 23, 2024
1 parent 556265c commit 7f91133
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions artifactory/commands/npm/npmcommand.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ import (
"bufio"
"errors"
"fmt"
"os"
"path/filepath"
"strconv"
"strings"

"github.com/jfrog/build-info-go/build"
biUtils "github.com/jfrog/build-info-go/build/utils"
"github.com/jfrog/gofrog/version"
Expand All @@ -18,10 +23,6 @@ import (
"github.com/jfrog/jfrog-client-go/utils/errorutils"
"github.com/jfrog/jfrog-client-go/utils/log"
"github.com/spf13/viper"
"os"
"path/filepath"
"strconv"
"strings"
)

const (
Expand All @@ -31,7 +32,7 @@ const (

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

0 comments on commit 7f91133

Please sign in to comment.