Skip to content

Commit 573f0b6

Browse files
authored
Merge pull request #143 from step-security/fix_subscription
fix: fixed subscription check code
2 parents 2dfdfd4 + d9b9621 commit 573f0b6

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53154,7 +53154,7 @@ async function validateSubscription() {
5315453154
try {
5315553155
await axios.get(API_URL, {timeout: 3000});
5315653156
} catch (error) {
53157-
if (error.response) {
53157+
if (error.response && error.response.status === 403) {
5315853158
console.error(
5315953159
'Subscription is not valid. Reach out to support@stepsecurity.io'
5316053160
);

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,6 @@
4545
"engines": {
4646
"node": "^24.0.0"
4747
},
48-
"prettier": "eslint-config-molindo/.prettierrc.json"
48+
"prettier": "eslint-config-molindo/.prettierrc.json",
49+
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
4950
}

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ async function validateSubscription() {
179179
try {
180180
await axios.get(API_URL, {timeout: 3000});
181181
} catch (error) {
182-
if (error.response) {
182+
if (error.response && error.response.status === 403) {
183183
console.error(
184184
'Subscription is not valid. Reach out to support@stepsecurity.io'
185185
);

0 commit comments

Comments
 (0)