@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.
@@ -1,5 +1,4 @@
1
- function check_recaptcha_params(event) {
2
- const { name, email, launch } = JSON.parse(event.body)
1
+ function check_recaptcha_params(name, email, launch) {
3
2
  console.log("check_recaptcha_params", { name, email, launch })
4
3
  if (name !== "") {
5
4
  return {
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-rc.7",
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": "next",
18
- "@geode/opengeodeweb-viewer": "next",
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",
@@ -5,4 +5,4 @@
5
5
  # pip-compile --output-file=tests/integration/microservices/back/requirements.txt tests/integration/microservices/back/requirements.in
6
6
  #
7
7
 
8
- opengeodeweb-back==6.*,>=6.1.0rc3
8
+ opengeodeweb-back==6.*,>=6.1.0
@@ -5,4 +5,4 @@
5
5
  # pip-compile --output-file=tests/integration/microservices/viewer/requirements.txt tests/integration/microservices/viewer/requirements.in
6
6
  #
7
7
 
8
- opengeodeweb-viewer==1.*,>=1.15.1rc1
8
+ opengeodeweb-viewer==1.*,>=1.15.1rc2
@@ -14,54 +14,26 @@ describe("recaptcha", () => {
14
14
  describe("wrong params", () => {
15
15
  test("name", () => {
16
16
  const name = "test"
17
- const event = {
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 event = {
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 event = {
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 event = {
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
  })