@geode/opengeodeweb-front 10.2.1-rc.7 → 10.2.1
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/app/utils/recaptcha.js
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@geode/opengeodeweb-front",
|
|
3
3
|
"description": "OpenSource Vue/Nuxt/Pinia/Vuetify framework for web applications",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "10.2.1
|
|
5
|
+
"version": "10.2.1",
|
|
6
6
|
"main": "./nuxt.config.js",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"lint": "eslint --fix --ext .js,.vue --ignore-path .gitignore .",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"build": ""
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@geode/opengeodeweb-back": "
|
|
18
|
-
"@geode/opengeodeweb-viewer": "
|
|
17
|
+
"@geode/opengeodeweb-back": "latest",
|
|
18
|
+
"@geode/opengeodeweb-viewer": "latest",
|
|
19
19
|
"@kitware/vtk.js": "33.3.0",
|
|
20
20
|
"@mdi/font": "7.4.47",
|
|
21
21
|
"@pinia/nuxt": "0.11.3",
|
|
@@ -14,54 +14,26 @@ describe("recaptcha", () => {
|
|
|
14
14
|
describe("wrong params", () => {
|
|
15
15
|
test("name", () => {
|
|
16
16
|
const name = "test"
|
|
17
|
-
const
|
|
18
|
-
body: JSON.stringify({
|
|
19
|
-
name,
|
|
20
|
-
email,
|
|
21
|
-
launch,
|
|
22
|
-
}),
|
|
23
|
-
}
|
|
24
|
-
const result = check_recaptcha_params(event)
|
|
17
|
+
const result = check_recaptcha_params(name, email, launch)
|
|
25
18
|
expect(result.statusCode).toBe(internal_error)
|
|
26
19
|
})
|
|
27
20
|
|
|
28
21
|
test("email", () => {
|
|
29
22
|
const email = "test"
|
|
30
|
-
const
|
|
31
|
-
body: JSON.stringify({
|
|
32
|
-
name,
|
|
33
|
-
email,
|
|
34
|
-
launch,
|
|
35
|
-
}),
|
|
36
|
-
}
|
|
37
|
-
const result = check_recaptcha_params(event)
|
|
23
|
+
const result = check_recaptcha_params(name, email, launch)
|
|
38
24
|
expect(result.statusCode).toBe(internal_error)
|
|
39
25
|
})
|
|
40
26
|
|
|
41
27
|
test("launch", () => {
|
|
42
28
|
const launch = true
|
|
43
|
-
const
|
|
44
|
-
body: JSON.stringify({
|
|
45
|
-
name,
|
|
46
|
-
email,
|
|
47
|
-
launch,
|
|
48
|
-
}),
|
|
49
|
-
}
|
|
50
|
-
const result = check_recaptcha_params(event)
|
|
29
|
+
const result = check_recaptcha_params(name, email, launch)
|
|
51
30
|
expect(result.statusCode).toBe(internal_error)
|
|
52
31
|
})
|
|
53
32
|
})
|
|
54
33
|
|
|
55
34
|
describe("right params", () => {
|
|
56
35
|
test("name", () => {
|
|
57
|
-
const
|
|
58
|
-
body: JSON.stringify({
|
|
59
|
-
name,
|
|
60
|
-
email,
|
|
61
|
-
launch,
|
|
62
|
-
}),
|
|
63
|
-
}
|
|
64
|
-
const result = check_recaptcha_params(event)
|
|
36
|
+
const result = check_recaptcha_params(name, email, launch)
|
|
65
37
|
expect(result.statusCode).toBe(success)
|
|
66
38
|
})
|
|
67
39
|
})
|