You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [[ "${public_sdk_version}"=="${local_sdk_version}" ]];then
30
+
echo"${RED}ERROR:${RESET} Your local web-sdk version matches the public web-sdk version. Please bump the version with ${BOLD}npm version patch${RESET} or a similar command"
31
+
exit 1
32
+
fi
33
+
34
+
echo"${GREEN}SUCCESS:${RESET} your local web-sdk version is different from the public web-sdk version"
35
+
echo
36
+
echo"local web-sdk version is ${YELLOW}${local_sdk_version}${RESET}"
37
+
echo"public web-sdk version is ${GREEN}${public_sdk_version}${RESET}"
38
+
echo
39
+
echo
40
+
41
+
# verify the user has required npm permissions
19
42
read -r -n 1 -p "Do you have a stripe npm account with 2FA? [y/n] "
20
43
echo
21
44
echo
@@ -25,14 +48,14 @@ if [[ ! "${REPLY}" =~ ^[Yy]$ ]]; then
25
48
fi
26
49
27
50
version=$(nodenv version | cut -d . -f 1)
28
-
if [ !"${version}"-gt"12" ];then
29
-
echo"${RED}ERROR:${RESET} must have node version 12 or greater"
51
+
if [ !"${version}"-gt"${MIN_NODE_VERSION}" ];then
52
+
echo"${RED}ERROR:${RESET} must have node version ${MIN_NODE_VERSION} or greater"
30
53
echo"current version is ${YELLOW}$(nodenv version | cut -d '' -f 1)${RESET}"
31
54
echo
32
-
echo"set new node version with ${BOLD}nodenv shell 14.7.0${RESET} or any other installed version 12 or greater to continue"
55
+
echo"set new node version with ${BOLD}nodenv shell 14.7.0${RESET} or any other installed version ${MIN_NODE_VERSION} or greater to continue"
33
56
exit 1
34
57
fi
35
-
echo"${GREEN}SUCCESS:${RESET} your current node version is 12 or greater (${GREEN}$(nodenv version | cut -d '' -f 1)${RESET})"
58
+
echo"${GREEN}SUCCESS:${RESET} your current node version is ${MIN_NODE_VERSION} or greater (${GREEN}$(nodenv version | cut -d '' -f 1)${RESET})"
36
59
echo
37
60
38
61
if! npm team ls @stripe:developers &> /dev/null;then
@@ -76,10 +99,12 @@ echo
76
99
echo"${GREEN}SUCCESS:${RESET} all tests have passed"
0 commit comments