zarebin-player-library 1.0.20 → 1.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -44
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,45 +1,5 @@
1
- #!/bin/sh
1
+ ## Installation
2
2
 
3
- # import from .env
4
-
5
- if [ -f .env ]; then
6
- export $(grep -v '^#' .env | xargs)
7
- fi
8
-
9
- # cheching variables
10
-
11
- if [ -z "$GITLAB_ACCESS_TOKEN" ] || [ -z "$GITLAB_URL" ] || [ -z "$PROJECT_ID" ]; then
12
- echo "❌ error: (GITLAB_ACCESS_TOKEN, GITLAB_URL, PROJECT_ID) not found"
13
- exit 1
14
- fi
15
-
16
- echo "🔍 Checking Merge Requests in GitLab..."
17
-
18
- # استفاده از curl برای گرفتن لیست MRها
19
-
20
- # دقت کنید: در ویندوز حتما باید jq نصب باشد
21
-
22
- MR_COUNT=$(curl -s --header "PRIVATE-TOKEN: $GITLAB_ACCESS_TOKEN" \
23
- "$GITLAB_URL/api/v4/projects/$PROJECT_ID/merge_requests?state=opened" | jq '. | length')
24
-
25
- if [ "$MR_COUNT" -gt 0 ]; then
26
- echo "❌ عملیات ممنوع: در این پروژه $MR_COUNT Merge Request باز وجود دارد."
27
- echo "✔ لطفا ابتدا همه MRها را ببندید."
28
- exit 1
29
- fi
30
-
31
- # ادامه چک کردن Push status...
32
-
33
- branch=$(git rev-parse --abbrev-ref HEAD)
34
- git fetch origin "$branch" --quiet
35
-
36
- local_commit=$(git rev-parse HEAD)
37
- remote_commit=$(git rev-parse "origin/$branch")
38
-
39
- if [ "$local_commit" != "$remote_commit" ]; then
40
- echo "❌ کامیت‌های لوکال با ریموت یکی نیست. لطفا push کنید."
41
- exit 1
42
- fi
43
-
44
- echo "🎉 Passed all conditions"
45
- exit 0
3
+ ```bash
4
+ npm install zarebin-player-library @reduxjs/toolkit react-redux keen-slider
5
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zarebin-player-library",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "type": "module",
5
5
  "main": "./dist/zarebin-player-library.js",
6
6
  "module": "./dist/zarebin-player-library.js",