assignment-user-matcher 1.0.9 → 1.0.11

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.
@@ -1,84 +1,82 @@
1
1
  name: CI and NPM Publish
2
2
 
3
3
  on:
4
- push:
5
- branches:
6
- - 'main'
7
- - '**'
8
- tags:
9
- - '*'
4
+ push:
5
+ branches:
6
+ - 'main'
7
+ - '**'
8
+ tags:
9
+ - '*'
10
10
 
11
11
  jobs:
12
- test:
13
- runs-on: ubuntu-latest
14
- env:
15
- FORCE_JAVASCRIPT_ACTIONS_TO_NODE20: true
16
- services:
17
- redis:
18
- image: redis:latest
19
- ports:
20
- - 6379:6379
21
- steps:
22
- - name: Checkout code
23
- uses: actions/checkout@v4
24
-
25
- - name: Install pnpm action
26
- uses: pnpm/action-setup@v4
27
- with:
28
- version: 9
29
- run_install: false
12
+ test:
13
+ runs-on: ubuntu-latest
14
+ env:
15
+ FORCE_JAVASCRIPT_ACTIONS_TO_NODE20: true
16
+ services:
17
+ redis:
18
+ image: redis:latest
19
+ ports:
20
+ - 6379:6379
21
+ steps:
22
+ - name: Checkout code
23
+ uses: actions/checkout@v4
24
+
25
+ - name: Install pnpm action
26
+ uses: pnpm/action-setup@v4
27
+ with:
28
+ version: 9
29
+ run_install: false
30
30
 
31
- - name: Set up Node.js
32
- uses: actions/setup-node@v4
33
- with:
34
- node-version: 22
35
- cache: 'pnpm'
31
+ - name: Set up Node.js
32
+ uses: actions/setup-node@v4
33
+ with:
34
+ node-version: 22
35
+ cache: 'pnpm'
36
36
 
37
- - name: Install dependencies using pnpm
38
- run: pnpm install --frozen-lockfile
37
+ - name: Install dependencies using pnpm
38
+ run: pnpm install --frozen-lockfile
39
39
 
40
- - name: Run tests
41
- run: pnpm run test
40
+ - name: Run tests
41
+ run: pnpm run test
42
42
 
43
- # - name: Upload coverage to Codecov
44
- # uses: codecov/codecov-action@v4
45
- # with:
46
- # token: ${{ secrets.CODECOV_TOKEN }}
47
- # fail_ci_if_error: true
43
+ # - name: Upload coverage to Codecov
44
+ # uses: codecov/codecov-action@v4
45
+ # with:
46
+ # token: ${{ secrets.CODECOV_TOKEN }}
47
+ # fail_ci_if_error: true
48
48
 
49
- publish_npm:
50
- name: Publish to NPM
51
- runs-on: ubuntu-latest
52
- env:
53
- FORCE_JAVASCRIPT_ACTIONS_TO_NODE20: true
54
- needs: test
55
- if: success() && startsWith(github.ref, 'refs/tags/')
56
- steps:
57
-
58
- - name: Checkout code
59
- uses: actions/checkout@v4
60
-
61
- - name: Install pnpm action
62
- uses: pnpm/action-setup@v4
63
- with:
64
- version: 9
65
- run_install: false
49
+ publish_npm:
50
+ name: Publish to NPM
51
+ runs-on: ubuntu-latest
52
+ env:
53
+ FORCE_JAVASCRIPT_ACTIONS_TO_NODE20: true
54
+ needs: test
55
+ if: success() && startsWith(github.ref, 'refs/tags/')
56
+ steps:
57
+ - name: Checkout code
58
+ uses: actions/checkout@v4
66
59
 
67
- - name: Set up Node.js
68
- uses: actions/setup-node@v4
69
- with:
70
- node-version: 22
71
- cache: 'pnpm'
72
- registry-url: 'https://registry.npmjs.org'
60
+ - name: Install pnpm action
61
+ uses: pnpm/action-setup@v4
62
+ with:
63
+ version: 9
64
+ run_install: false
73
65
 
74
- - name: Install dependencies using pnpm
75
- run: pnpm install --frozen-lockfile
66
+ - name: Set up Node.js
67
+ uses: actions/setup-node@v4
68
+ with:
69
+ node-version: 22
70
+ cache: 'pnpm'
71
+ registry-url: 'https://registry.npmjs.org'
76
72
 
77
- - name: Build package
78
- run: pnpm run build # Runs "rimraf dist && tsc"
73
+ - name: Install dependencies using pnpm
74
+ run: pnpm install --frozen-lockfile
79
75
 
80
- - name: Publish to NPM
81
- run: pnpm publish --no-git-checks
82
- env:
83
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
76
+ - name: Build package
77
+ run: pnpm run build # Runs "rimraf dist && tsc"
84
78
 
79
+ - name: Publish to NPM
80
+ run: pnpm publish --no-git-checks
81
+ env:
82
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/LICENCE ADDED
@@ -0,0 +1,53 @@
1
+ This Strict Commercial License ("License") is a legal agreement between the Owner identified below ("Owner") and any natural person or legal entity that receives, accesses, or uses the Software ("Recipient"). By receiving, accessing, or using the Software, Recipient acknowledges and agrees to the terms below. All capitalized terms not otherwise defined herein have the meanings given in Section 1.
2
+
3
+ 1. Definitions
4
+ - "Software" means the source code, binaries, documentation, designs, examples, data, configuration, and any other materials provided by Owner.
5
+ - "Use" means to copy, execute, run, display, distribute, host, provide as a service, sublicense, or otherwise employ the Software.
6
+ - "Modify" means to alter, adapt, translate, create derivative works of, reverse engineer, decompile, disassemble, or otherwise change the Software.
7
+
8
+ 2. No Grant
9
+ - Except for a specific, express, written license signed by Owner, no rights, licenses, or permissions are granted to Recipient, whether by implication, estoppel, or otherwise. Owner expressly reserves all rights in the Software.
10
+
11
+ 3. Prohibited Acts
12
+ - Without Owner's prior written permission, Recipient shall not, directly or indirectly, Use, copy, publish, distribute, sublicense, make available, or Modify the Software in whole or in part.
13
+ - Recipient shall not remove, alter, or obscure any proprietary, copyright, or other notices in or on the Software, nor attempt to bypass technological restrictions or authentication controls.
14
+
15
+ 4. Remedies; Liquidated Damages; Fees
16
+ - Each unauthorized Use or Modification of the Software (each an "Infringing Act") shall constitute a material breach and an actionable wrong.
17
+ - For each Infringing Act, Recipient agrees that Owner shall be entitled to recover liquidated damages in the amount of USD 250,000 (Two Hundred Fifty Thousand United States Dollars) per Infringing Act, which the parties agree is a reasonable pre-estimate of damages and not a penalty. In addition, Owner may recover:
18
+ - disgorgement of all profits and revenues derived from the Infringing Act;
19
+ - statutory damages available under applicable law (if greater than the liquidated damages amount);
20
+ - pre-judgment and post-judgment interest at the highest lawful rate;
21
+ - Owner's reasonable attorneys' fees, costs, and expenses incurred to investigate or enforce this License; and
22
+ - any other equitable or legal relief available, including injunctive and declaratory relief.
23
+ - The remedies in this Section are cumulative, not exclusive, and shall not limit other remedies at law or in equity. Owner need not post a bond to obtain injunctive relief.
24
+
25
+ 5. Indemnity
26
+ - Recipient shall indemnify, defend, and hold Owner harmless from and against any and all claims, liabilities, losses, damages, costs and expenses (including reasonable attorneys' fees) arising from any unauthorized Use, Modification, distribution, or other breach of this License.
27
+
28
+ 6. Termination and Return
29
+ - Owner may terminate this License immediately upon written notice if Recipient commits any breach, including any Infringing Act. Upon termination, Recipient shall immediately cease all Use of the Software and destroy or return all copies of the Software and related materials and certify such destruction or return in writing to Owner.
30
+
31
+ 7. Preservation of Notices
32
+ - Recipient shall not remove, alter, or obscure any copyright, trademark, patent, or other proprietary notices, legends, or labels contained in or on the Software.
33
+
34
+ 8. Warranty Disclaimer
35
+ - THE SOFTWARE IS PROVIDED "AS IS" AND OWNER DISCLAIMS ALL WARRANTIES, WHETHER EXPRESS, IMPLIED, OR STATUTORY, INCLUDING ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND NONINFRINGEMENT. THIS DISCLAIMER DOES NOT AFFECT OWNER'S RIGHT TO SEEK EQUITABLE RELIEF OR DAMAGES FOR UNAUTHORIZED USE.
36
+
37
+ 9. Limitation of Liability
38
+ - EXCEPT FOR OWNER'S RIGHTS AND REMEDIES FOR UNAUTHORIZED USE (WHICH ARE PRESERVED), IN NO EVENT SHALL OWNER BE LIABLE TO RECIPIENT FOR ANY INDIRECT, INCIDENTAL, CONSEQUENTIAL, SPECIAL, PUNITIVE, OR EXEMPLARY DAMAGES ARISING OUT OF OR RELATED TO THIS LICENSE OR THE SOFTWARE, WHETHER IN CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY, OR OTHERWISE.
39
+
40
+ 10. Governing Law and Venue
41
+ - This License shall be governed by and construed in accordance with the laws of [INSERT STATE/PROVINCE/COUNTRY], without regard to its conflicts of laws rules. The exclusive venue and jurisdiction for any dispute arising out of or related to this License shall be the state and federal courts located in [INSERT CITY, STATE/PROVINCE/COUNTRY]. Recipient consents to personal jurisdiction in those courts.
42
+
43
+ 11. Severability; Waiver; Entire Agreement
44
+ - If any provision of this License is held to be invalid or unenforceable, the remainder of this License shall remain in full force and effect. No waiver by Owner of any breach shall be deemed a waiver of any other or subsequent breach. This License constitutes the entire agreement between the parties regarding the subject matter hereof.
45
+
46
+ 12. Effective Date 21/05/2025 or since intiial commit of this repository
47
+ - Effective Date: the date Recipient first receives, accesses, or uses the Software.
48
+ - Owner: Viljar Võidula
49
+ - Contact: viljar@forgemaster.ai
50
+
51
+ Footnote — Non-Commercial Fair Use
52
+ - As a limited exception to Sections 2 and 3, non-commercial fair use (e.g., academic evaluation, internal demonstrations, code review excerpts) is permitted provided that, prior to any such use, Recipient contacts the Owner at viljar@forgemaster.ai and receives written confirmation authorizing the specific use.
53
+ - Any such authorization is non-exclusive, non-transferable, revocable at any time, and may be conditioned on additional terms. All other provisions of this License remain in full force and effect unless explicitly modified in the written confirmation.