@rokkit/actions 1.0.0-next.93 → 1.0.0-next.94
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.
- package/package.json +9 -12
- package/src/fillable.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rokkit/actions",
|
|
3
|
-
"version": "1.0.0-next.
|
|
3
|
+
"version": "1.0.0-next.94",
|
|
4
4
|
"description": "Contains generic actions that can be used in various components.",
|
|
5
5
|
"author": "Jerry Thomas <me@jerrythomas.name>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,22 +14,20 @@
|
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@sveltejs/vite-plugin-svelte": "^3.0.2",
|
|
16
16
|
"@testing-library/svelte": "^4.1.0",
|
|
17
|
-
"@types/ramda": "^0.29.
|
|
17
|
+
"@types/ramda": "^0.29.12",
|
|
18
18
|
"@vitest/coverage-v8": "^1.4.0",
|
|
19
19
|
"@vitest/ui": "~1.4.0",
|
|
20
20
|
"jsdom": "^24.0.0",
|
|
21
21
|
"svelte": "^4.2.12",
|
|
22
|
-
"typescript": "^5.4.
|
|
23
|
-
"vite": "^5.2.
|
|
22
|
+
"typescript": "^5.4.4",
|
|
23
|
+
"vite": "^5.2.8",
|
|
24
24
|
"vitest": "~1.4.0",
|
|
25
|
-
"shared-config": "1.0.0-next.
|
|
26
|
-
"validators": "1.0.0-next.
|
|
25
|
+
"shared-config": "1.0.0-next.94",
|
|
26
|
+
"validators": "1.0.0-next.94"
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
|
29
29
|
"src/**/*.js",
|
|
30
|
-
"src/**/*.svelte"
|
|
31
|
-
"!src/mocks",
|
|
32
|
-
"!src/**/*.spec.js"
|
|
30
|
+
"src/**/*.svelte"
|
|
33
31
|
],
|
|
34
32
|
"exports": {
|
|
35
33
|
"./src": "./src",
|
|
@@ -42,13 +40,12 @@
|
|
|
42
40
|
},
|
|
43
41
|
"dependencies": {
|
|
44
42
|
"ramda": "^0.29.1",
|
|
45
|
-
"@rokkit/core": "1.0.0-next.
|
|
46
|
-
"@rokkit/stores": "1.0.0-next.
|
|
43
|
+
"@rokkit/core": "1.0.0-next.94",
|
|
44
|
+
"@rokkit/stores": "1.0.0-next.94"
|
|
47
45
|
},
|
|
48
46
|
"scripts": {
|
|
49
47
|
"format": "prettier --write .",
|
|
50
48
|
"lint": "eslint --fix .",
|
|
51
|
-
"test:ct": "playwright test -c playwright.config.js",
|
|
52
49
|
"test:ci": "vitest run",
|
|
53
50
|
"test:ui": "vitest --ui",
|
|
54
51
|
"test": "vitest",
|
package/src/fillable.js
CHANGED
|
@@ -96,8 +96,8 @@ function clear(event, node) {
|
|
|
96
96
|
* @param {import('./types').FillOptions} data
|
|
97
97
|
*/
|
|
98
98
|
function validate(blanks, data) {
|
|
99
|
-
Object.keys(blanks).map((ref) => {
|
|
100
|
-
let index = data.options.findIndex(({ actualIndex }) => actualIndex
|
|
99
|
+
Object.keys(blanks).map((_, ref) => {
|
|
100
|
+
let index = data.options.findIndex(({ actualIndex }) => actualIndex === ref)
|
|
101
101
|
if (index > -1)
|
|
102
102
|
blanks[ref].classList.add(
|
|
103
103
|
data.options[index].expectedIndex === data.options[index].actualIndex ? 'pass' : 'fail'
|