@prosopo/datasets 3.0.42 → 3.0.43
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/CHANGELOG.md +20 -0
- package/dist/captcha/captcha.js +173 -154
- package/dist/captcha/dataset.js +83 -69
- package/dist/captcha/index.js +27 -5
- package/dist/captcha/merkle.js +112 -109
- package/dist/captcha/util.js +19 -18
- package/dist/cjs/captcha/captcha.cjs +195 -0
- package/dist/cjs/captcha/dataset.cjs +94 -0
- package/dist/cjs/captcha/index.cjs +27 -0
- package/dist/cjs/captcha/merkle.cjs +128 -0
- package/dist/cjs/captcha/util.cjs +23 -0
- package/dist/cjs/index.cjs +31 -0
- package/dist/cjs/tests/mocks/data/captchas.cjs +1044 -0
- package/dist/index.js +31 -3
- package/dist/tests/mocks/data/captchas.js +1039 -1033
- package/dist/tests/mocks/data/captchas.json +886 -886
- package/dist/tests/mocks/data/captchas1.json +132 -132
- package/dist/tests/mocks/data/captchas2.json +175 -175
- package/dist/tests/mocks/data/captchas3.json +133 -133
- package/dist/tests/mocks/data/captchas4.json +132 -132
- package/package.json +7 -7
- package/coverage/base.css +0 -224
- package/coverage/block-navigation.js +0 -87
- package/coverage/clover.xml +0 -493
- package/coverage/coverage-final.json +0 -7
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +0 -131
- package/coverage/prettify.css +0 -1
- package/coverage/prettify.js +0 -2
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +0 -210
- package/coverage/src/captcha/captcha.ts.html +0 -1093
- package/coverage/src/captcha/dataset.ts.html +0 -490
- package/coverage/src/captcha/index.html +0 -176
- package/coverage/src/captcha/index.ts.html +0 -136
- package/coverage/src/captcha/merkle.ts.html +0 -610
- package/coverage/src/captcha/util.ts.html +0 -187
- package/coverage/src/index.html +0 -116
- package/coverage/src/index.ts.html +0 -139
- package/dist/captcha/captcha.d.ts +0 -21
- package/dist/captcha/captcha.d.ts.map +0 -1
- package/dist/captcha/captcha.js.map +0 -1
- package/dist/captcha/dataset.d.ts +0 -8
- package/dist/captcha/dataset.d.ts.map +0 -1
- package/dist/captcha/dataset.js.map +0 -1
- package/dist/captcha/index.d.ts +0 -5
- package/dist/captcha/index.d.ts.map +0 -1
- package/dist/captcha/index.js.map +0 -1
- package/dist/captcha/merkle.d.ts +0 -20
- package/dist/captcha/merkle.d.ts.map +0 -1
- package/dist/captcha/merkle.js.map +0 -1
- package/dist/captcha/util.d.ts +0 -2
- package/dist/captcha/util.d.ts.map +0 -1
- package/dist/captcha/util.js.map +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/tests/captcha.unit.test.d.ts +0 -2
- package/dist/tests/captcha.unit.test.d.ts.map +0 -1
- package/dist/tests/captcha.unit.test.js +0 -357
- package/dist/tests/captcha.unit.test.js.map +0 -1
- package/dist/tests/dataset.unit.test.d.ts +0 -2
- package/dist/tests/dataset.unit.test.d.ts.map +0 -1
- package/dist/tests/dataset.unit.test.js +0 -126
- package/dist/tests/dataset.unit.test.js.map +0 -1
- package/dist/tests/merkle.unit.test.d.ts +0 -2
- package/dist/tests/merkle.unit.test.d.ts.map +0 -1
- package/dist/tests/merkle.unit.test.js +0 -171
- package/dist/tests/merkle.unit.test.js.map +0 -1
- package/dist/tests/mocks/data/captchas.d.ts +0 -24
- package/dist/tests/mocks/data/captchas.d.ts.map +0 -1
- package/dist/tests/mocks/data/captchas.js.map +0 -1
|
@@ -1,135 +1,135 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
2
|
+
"captchas": [
|
|
3
|
+
{
|
|
4
|
+
"salt": "0x01",
|
|
5
|
+
"solution": [1, 6, 8],
|
|
6
|
+
"items": [
|
|
7
|
+
{
|
|
8
|
+
"data": "http://localhost:4000/img/test_image_png_82.png",
|
|
9
|
+
"type": "image"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"data": "http://localhost:4000/img/test_image_png_78.png",
|
|
13
|
+
"type": "image"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"data": "http://localhost:4000/img/test_image_png_89.png",
|
|
17
|
+
"type": "image"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"data": "http://localhost:4000/img/test_image_png_61.png",
|
|
21
|
+
"type": "image"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"data": "http://localhost:4000/img/test_image_png_69.png",
|
|
25
|
+
"type": "image"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"data": "http://localhost:4000/img/test_image_png_71.png",
|
|
29
|
+
"type": "image"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"data": "http://localhost:4000/img/test_image_png_33.png",
|
|
33
|
+
"type": "image"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"data": "http://localhost:4000/img/test_image_png_25.png",
|
|
37
|
+
"type": "image"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"data": "http://localhost:4000/img/test_image_png_21.png",
|
|
41
|
+
"type": "image"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"target": "cat"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"salt": "0x01",
|
|
48
|
+
"solution": [0, 3, 4],
|
|
49
|
+
"items": [
|
|
50
|
+
{
|
|
51
|
+
"data": "http://localhost:4000/img/test_image_png_82.png",
|
|
52
|
+
"type": "image"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"data": "http://localhost:4000/img/test_image_png_78.png",
|
|
56
|
+
"type": "image"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"data": "http://localhost:4000/img/test_image_png_89.png",
|
|
60
|
+
"type": "image"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"data": "http://localhost:4000/img/test_image_png_61.png",
|
|
64
|
+
"type": "image"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"data": "http://localhost:4000/img/test_image_png_69.png",
|
|
68
|
+
"type": "image"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"data": "http://localhost:4000/img/test_image_png_71.png",
|
|
72
|
+
"type": "image"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"data": "http://localhost:4000/img/test_image_png_33.png",
|
|
76
|
+
"type": "image"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"data": "http://localhost:4000/img/test_image_png_25.png",
|
|
80
|
+
"type": "image"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"data": "http://localhost:4000/img/test_image_png_21.png",
|
|
84
|
+
"type": "image"
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"target": "plane"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"salt": "0x01",
|
|
91
|
+
"solution": [2, 5, 7],
|
|
92
|
+
"items": [
|
|
93
|
+
{
|
|
94
|
+
"data": "http://localhost:4000/img/test_image_png_82.png",
|
|
95
|
+
"type": "image"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"data": "http://localhost:4000/img/test_image_png_78.png",
|
|
99
|
+
"type": "image"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"data": "http://localhost:4000/img/test_image_png_89.png",
|
|
103
|
+
"type": "image"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"data": "http://localhost:4000/img/test_image_png_61.png",
|
|
107
|
+
"type": "image"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"data": "http://localhost:4000/img/test_image_png_69.png",
|
|
111
|
+
"type": "image"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"data": "http://localhost:4000/img/test_image_png_71.png",
|
|
115
|
+
"type": "image"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"data": "http://localhost:4000/img/test_image_png_33.png",
|
|
119
|
+
"type": "image"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"data": "http://localhost:4000/img/test_image_png_25.png",
|
|
123
|
+
"type": "image"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"data": "http://localhost:4000/img/test_image_png_21.png",
|
|
127
|
+
"type": "image"
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
"target": "car"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"format": "SelectAll",
|
|
134
|
+
"datasetId": "0x494b806c43a270b0dfa750f72713412ccf7d5322e9a91b724e5ef0db7bfffe07"
|
|
135
135
|
}
|
|
@@ -1,134 +1,134 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
2
|
+
"datasetId": "0x185ce03db451ab1b4d72c20d31517543eeaac52e78cf102ecc6398f6fd7e2c9a",
|
|
3
|
+
"captchas": [
|
|
4
|
+
{
|
|
5
|
+
"salt": "0x010101",
|
|
6
|
+
"solution": [3, 6, 7],
|
|
7
|
+
"items": [
|
|
8
|
+
{
|
|
9
|
+
"data": "http://localhost:4000/img/test_image_png_16.png",
|
|
10
|
+
"type": "image"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"data": "http://localhost:4000/img/test_image_png_17.png",
|
|
14
|
+
"type": "image"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"data": "http://localhost:4000/img/test_image_png_27.png",
|
|
18
|
+
"type": "image"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"data": "http://localhost:4000/img/test_image_png_33.png",
|
|
22
|
+
"type": "image"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"data": "http://localhost:4000/img/test_image_png_40.png",
|
|
26
|
+
"type": "image"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"data": "http://localhost:4000/img/test_image_png_52.png",
|
|
30
|
+
"type": "image"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"data": "http://localhost:4000/img/test_image_png_78.png",
|
|
34
|
+
"type": "image"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"data": "http://localhost:4000/img/test_image_png_93.png",
|
|
38
|
+
"type": "image"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"data": "http://localhost:4000/img/test_image_png_70.png",
|
|
42
|
+
"type": "image"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"target": "cat"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"salt": "0x020202",
|
|
49
|
+
"solution": [8, 5, 1],
|
|
50
|
+
"items": [
|
|
51
|
+
{
|
|
52
|
+
"data": "http://localhost:4000/img/test_image_png_16.png",
|
|
53
|
+
"type": "image"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"data": "http://localhost:4000/img/test_image_png_17.png",
|
|
57
|
+
"type": "image"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"data": "http://localhost:4000/img/test_image_png_27.png",
|
|
61
|
+
"type": "image"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"data": "http://localhost:4000/img/test_image_png_33.png",
|
|
65
|
+
"type": "image"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"data": "http://localhost:4000/img/test_image_png_40.png",
|
|
69
|
+
"type": "image"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"data": "http://localhost:4000/img/test_image_png_52.png",
|
|
73
|
+
"type": "image"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"data": "http://localhost:4000/img/test_image_png_78.png",
|
|
77
|
+
"type": "image"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"data": "http://localhost:4000/img/test_image_png_93.png",
|
|
81
|
+
"type": "image"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"data": "http://localhost:4000/img/test_image_png_70.png",
|
|
85
|
+
"type": "image"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"target": "deer"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"salt": "0x030303",
|
|
92
|
+
"items": [
|
|
93
|
+
{
|
|
94
|
+
"data": "http://localhost:4000/img/test_image_png_16.png",
|
|
95
|
+
"type": "image"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"data": "http://localhost:4000/img/test_image_png_17.png",
|
|
99
|
+
"type": "image"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"data": "http://localhost:4000/img/test_image_png_27.png",
|
|
103
|
+
"type": "image"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"data": "http://localhost:4000/img/test_image_png_33.png",
|
|
107
|
+
"type": "image"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"data": "http://localhost:4000/img/test_image_png_40.png",
|
|
111
|
+
"type": "image"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"data": "http://localhost:4000/img/test_image_png_52.png",
|
|
115
|
+
"type": "image"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"data": "http://localhost:4000/img/test_image_png_78.png",
|
|
119
|
+
"type": "image"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"data": "http://localhost:4000/img/test_image_png_93.png",
|
|
123
|
+
"type": "image"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"data": "http://localhost:4000/img/test_image_png_70.png",
|
|
127
|
+
"type": "image"
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
"target": "dog"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"format": "SelectAll"
|
|
134
134
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/datasets",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.43",
|
|
4
4
|
"author": "PROSOPO LIMITED <info@prosopo.io>",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"private": false,
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@polkadot/util": "13.5.7",
|
|
44
|
-
"@prosopo/common": "3.1.
|
|
45
|
-
"@prosopo/types": "3.
|
|
46
|
-
"@prosopo/types-database": "
|
|
47
|
-
"@prosopo/util": "3.
|
|
48
|
-
"@prosopo/config": "3.1.
|
|
49
|
-
"@prosopo/util-crypto": "13.5.
|
|
44
|
+
"@prosopo/common": "3.1.22",
|
|
45
|
+
"@prosopo/types": "3.6.0",
|
|
46
|
+
"@prosopo/types-database": "4.0.0",
|
|
47
|
+
"@prosopo/util": "3.2.0",
|
|
48
|
+
"@prosopo/config": "3.1.22",
|
|
49
|
+
"@prosopo/util-crypto": "13.5.24"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/node": "22.10.2",
|