Skip to content

Commit

Permalink
Merge pull request #53 from guMcrey/hotfix/array-warning
Browse files Browse the repository at this point in the history
Hotfix/array warning
  • Loading branch information
guMcrey authored Oct 15, 2024
2 parents 735591f + 2cc40ef commit 7399476
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: CI
on:
push:
branches: [ "main" ]
branches: ['main']
pull_request:
branches: [ "main" ]
branches: ['main']

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -20,7 +20,7 @@ jobs:
npm ci
npm run build
npm run test:coverage
npm run codecov
# npm run codecov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@

---

## 1.7.4

`2024-10-15`

[#52](https://github.com/guMcrey/version-rocket/issues/52) (Thanks to [wjp980108](https://github.com/wjp980108) for the feedback)
- 🪲 Fix the `config.check-origin-specified-files-url`


## 1.7.3

`2024-09-19`
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@

---

## 1.7.4

`2024-10-15`

[#52](https://github.com/guMcrey/version-rocket/issues/52) (感谢 [wjp980108](https://github.com/wjp980108) 同学的反馈)
- 🪲 Fix the warning message when the `config.check-origin-specified-files-url` field is not provided.


## 1.7.3

`2024-09-19`
Expand Down
3 changes: 3 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ export const checkVersion = (
}

const processUserInput = (input: any) => {
if (!input) {
return
}
if (!Array.isArray(input)) {
console.warn('Invalid input: Expected an array.')
return []
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "version-rocket",
"version": "1.7.3",
"version": "1.7.4",
"description": "Tools to check version monitoring (updates) for web application. web 应用版本监测(更新)工具",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 7399476

Please sign in to comment.