@prosopo/vue-procaptcha-integration-demo 1.1.44 → 1.1.76
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/.turbo/turbo-build$colon$cjs.log +3 -3
- package/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +160 -0
- package/dist/cjs/integrationDemo.vue2.cjs +0 -1
- package/dist/integrationDemo.vue2.js +0 -1
- package/package.json +9 -4
- package/src/index.ts +20 -0
- package/src/integrationDemo.vue +15 -0
- package/tsconfig.cjs.json +21 -0
- package/tsconfig.json +27 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/vue-procaptcha-integration-demo@1.1.
|
|
2
|
+
> @prosopo/vue-procaptcha-integration-demo@1.1.76 build:cjs
|
|
3
3
|
> NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV
|
|
4
4
|
|
|
5
5
|
▲ [WARNING] The condition "types" here will never be used as it comes after both "import" and "require" [package.json]
|
|
@@ -51,5 +51,5 @@ Build end
|
|
|
51
51
|
rendering chunks...
|
|
52
52
|
[2mdist/cjs/[22m[36mindex.cjs [39m[1m[2m0.30 kB[22m[1m[22m
|
|
53
53
|
[2mdist/cjs/[22m[36mintegrationDemo.vue.cjs [39m[1m[2m0.57 kB[22m[1m[22m
|
|
54
|
-
[2mdist/cjs/[22m[36mintegrationDemo.vue2.cjs [39m[1m[2m0.
|
|
55
|
-
[32m✓ built in
|
|
54
|
+
[2mdist/cjs/[22m[36mintegrationDemo.vue2.cjs [39m[1m[2m0.77 kB[22m[1m[22m
|
|
55
|
+
[32m✓ built in 240ms[39m
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/vue-procaptcha-integration-demo@1.1.
|
|
2
|
+
> @prosopo/vue-procaptcha-integration-demo@1.1.76 build
|
|
3
3
|
> npm run build:cross-env -- --mode ${NODE_ENV:-development}
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @prosopo/vue-procaptcha-integration-demo@1.1.
|
|
6
|
+
> @prosopo/vue-procaptcha-integration-demo@1.1.76 build:cross-env
|
|
7
7
|
> vite build --config vite.esm.config.ts --mode production
|
|
8
8
|
|
|
9
9
|
▲ [WARNING] The condition "types" here will never be used as it comes after both "import" and "require" [package.json]
|
|
@@ -55,5 +55,5 @@ Build end
|
|
|
55
55
|
rendering chunks...
|
|
56
56
|
[2mdist/[22m[36mindex.js [39m[1m[2m0.20 kB[22m[1m[22m
|
|
57
57
|
[2mdist/[22m[36mintegrationDemo.vue.js [39m[1m[2m0.40 kB[22m[1m[22m
|
|
58
|
-
[2mdist/[22m[36mintegrationDemo.vue2.js [39m[1m[2m0.
|
|
59
|
-
[32m✓ built in
|
|
58
|
+
[2mdist/[22m[36mintegrationDemo.vue2.js [39m[1m[2m0.74 kB[22m[1m[22m
|
|
59
|
+
[32m✓ built in 226ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,165 @@
|
|
|
1
1
|
# @prosopo/vue-procaptcha-integration-demo
|
|
2
2
|
|
|
3
|
+
## 1.1.76
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- @prosopo/vue-procaptcha-wrapper@1.1.76
|
|
7
|
+
|
|
8
|
+
## 1.1.75
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- @prosopo/vue-procaptcha-wrapper@1.1.75
|
|
12
|
+
|
|
13
|
+
## 1.1.74
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- @prosopo/vue-procaptcha-wrapper@1.1.74
|
|
17
|
+
|
|
18
|
+
## 1.1.73
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- @prosopo/vue-procaptcha-wrapper@1.1.73
|
|
22
|
+
|
|
23
|
+
## 1.1.72
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- @prosopo/vue-procaptcha-wrapper@1.1.72
|
|
27
|
+
|
|
28
|
+
## 1.1.71
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- @prosopo/vue-procaptcha-wrapper@1.1.71
|
|
32
|
+
|
|
33
|
+
## 1.1.70
|
|
34
|
+
### Patch Changes
|
|
35
|
+
|
|
36
|
+
- @prosopo/vue-procaptcha-wrapper@1.1.70
|
|
37
|
+
|
|
38
|
+
## 1.1.69
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- @prosopo/vue-procaptcha-wrapper@1.1.69
|
|
42
|
+
|
|
43
|
+
## 1.1.68
|
|
44
|
+
### Patch Changes
|
|
45
|
+
|
|
46
|
+
- @prosopo/vue-procaptcha-wrapper@1.1.68
|
|
47
|
+
|
|
48
|
+
## 1.1.67
|
|
49
|
+
### Patch Changes
|
|
50
|
+
|
|
51
|
+
- @prosopo/vue-procaptcha-wrapper@1.1.67
|
|
52
|
+
|
|
53
|
+
## 1.1.66
|
|
54
|
+
### Patch Changes
|
|
55
|
+
|
|
56
|
+
- @prosopo/vue-procaptcha-wrapper@1.1.66
|
|
57
|
+
|
|
58
|
+
## 1.1.65
|
|
59
|
+
### Patch Changes
|
|
60
|
+
|
|
61
|
+
- @prosopo/vue-procaptcha-wrapper@1.1.65
|
|
62
|
+
|
|
63
|
+
## 1.1.64
|
|
64
|
+
### Patch Changes
|
|
65
|
+
|
|
66
|
+
- @prosopo/vue-procaptcha-wrapper@1.1.64
|
|
67
|
+
|
|
68
|
+
## 1.1.63
|
|
69
|
+
### Patch Changes
|
|
70
|
+
|
|
71
|
+
- @prosopo/vue-procaptcha-wrapper@1.1.63
|
|
72
|
+
|
|
73
|
+
## 1.1.62
|
|
74
|
+
### Patch Changes
|
|
75
|
+
|
|
76
|
+
- @prosopo/vue-procaptcha-wrapper@1.1.62
|
|
77
|
+
|
|
78
|
+
## 1.1.61
|
|
79
|
+
### Patch Changes
|
|
80
|
+
|
|
81
|
+
- @prosopo/vue-procaptcha-wrapper@1.1.61
|
|
82
|
+
|
|
83
|
+
## 1.1.60
|
|
84
|
+
### Patch Changes
|
|
85
|
+
|
|
86
|
+
- @prosopo/vue-procaptcha-wrapper@1.1.60
|
|
87
|
+
|
|
88
|
+
## 1.1.59
|
|
89
|
+
### Patch Changes
|
|
90
|
+
|
|
91
|
+
- @prosopo/vue-procaptcha-wrapper@1.1.59
|
|
92
|
+
|
|
93
|
+
## 1.1.58
|
|
94
|
+
### Patch Changes
|
|
95
|
+
|
|
96
|
+
- @prosopo/vue-procaptcha-wrapper@1.1.58
|
|
97
|
+
|
|
98
|
+
## 1.1.57
|
|
99
|
+
### Patch Changes
|
|
100
|
+
|
|
101
|
+
- @prosopo/vue-procaptcha-wrapper@1.1.57
|
|
102
|
+
|
|
103
|
+
## 1.1.56
|
|
104
|
+
### Patch Changes
|
|
105
|
+
|
|
106
|
+
- @prosopo/vue-procaptcha-wrapper@1.1.56
|
|
107
|
+
|
|
108
|
+
## 1.1.55
|
|
109
|
+
### Patch Changes
|
|
110
|
+
|
|
111
|
+
- @prosopo/vue-procaptcha-wrapper@1.1.55
|
|
112
|
+
|
|
113
|
+
## 1.1.54
|
|
114
|
+
### Patch Changes
|
|
115
|
+
|
|
116
|
+
- @prosopo/vue-procaptcha-wrapper@1.1.54
|
|
117
|
+
|
|
118
|
+
## 1.1.53
|
|
119
|
+
### Patch Changes
|
|
120
|
+
|
|
121
|
+
- @prosopo/vue-procaptcha-wrapper@1.1.53
|
|
122
|
+
|
|
123
|
+
## 1.1.52
|
|
124
|
+
### Patch Changes
|
|
125
|
+
|
|
126
|
+
- @prosopo/vue-procaptcha-wrapper@1.1.52
|
|
127
|
+
|
|
128
|
+
## 1.1.51
|
|
129
|
+
### Patch Changes
|
|
130
|
+
|
|
131
|
+
- @prosopo/vue-procaptcha-wrapper@1.1.51
|
|
132
|
+
|
|
133
|
+
## 1.1.50
|
|
134
|
+
### Patch Changes
|
|
135
|
+
|
|
136
|
+
- @prosopo/vue-procaptcha-wrapper@1.1.50
|
|
137
|
+
|
|
138
|
+
## 1.1.49
|
|
139
|
+
### Patch Changes
|
|
140
|
+
|
|
141
|
+
- @prosopo/vue-procaptcha-wrapper@1.1.49
|
|
142
|
+
|
|
143
|
+
## 1.1.48
|
|
144
|
+
### Patch Changes
|
|
145
|
+
|
|
146
|
+
- @prosopo/vue-procaptcha-wrapper@1.1.48
|
|
147
|
+
|
|
148
|
+
## 1.1.47
|
|
149
|
+
### Patch Changes
|
|
150
|
+
|
|
151
|
+
- @prosopo/vue-procaptcha-wrapper@1.1.47
|
|
152
|
+
|
|
153
|
+
## 1.1.46
|
|
154
|
+
### Patch Changes
|
|
155
|
+
|
|
156
|
+
- @prosopo/vue-procaptcha-wrapper@1.1.46
|
|
157
|
+
|
|
158
|
+
## 1.1.45
|
|
159
|
+
### Patch Changes
|
|
160
|
+
|
|
161
|
+
- @prosopo/vue-procaptcha-wrapper@1.1.45
|
|
162
|
+
|
|
3
163
|
## 1.1.44
|
|
4
164
|
### Patch Changes
|
|
5
165
|
|
|
@@ -10,7 +10,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
10
10
|
return (_ctx, _push, _parent, _attrs) => {
|
|
11
11
|
_push(serverRenderer.ssrRenderComponent(vue.unref(vueProcaptchaWrapper.ProcaptchaComponent), vue.mergeProps({
|
|
12
12
|
siteKey: vue.unref(siteKey),
|
|
13
|
-
captchaType: "pow",
|
|
14
13
|
language: "en",
|
|
15
14
|
callback: (token) => {
|
|
16
15
|
console.log("verified", token);
|
|
@@ -9,7 +9,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9
9
|
return (_ctx, _push, _parent, _attrs) => {
|
|
10
10
|
_push(ssrRenderComponent(unref(ProcaptchaComponent), mergeProps({
|
|
11
11
|
siteKey: unref(siteKey),
|
|
12
|
-
captchaType: "pow",
|
|
13
12
|
language: "en",
|
|
14
13
|
callback: (token) => {
|
|
15
14
|
console.log("verified", token);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/vue-procaptcha-integration-demo",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.76",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "^24",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"dev": "NODE_ENV=${NODE_ENV:-development}; vite dev --port=9331 --mode=$NODE_ENV"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@prosopo/vue-procaptcha-wrapper": "1.1.
|
|
28
|
+
"@prosopo/vue-procaptcha-wrapper": "1.1.76",
|
|
29
29
|
"vue": "3.5.13"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@prosopo/config": "3.3.
|
|
32
|
+
"@prosopo/config": "3.3.1",
|
|
33
33
|
"@prosopo/procaptcha-integration-build-config": "1.1.28",
|
|
34
34
|
"@types/node": "22.10.2",
|
|
35
35
|
"@vitejs/plugin-vue": "5.2.3",
|
|
@@ -42,5 +42,10 @@
|
|
|
42
42
|
"url": "https://github.com/prosopo/captcha/issues"
|
|
43
43
|
},
|
|
44
44
|
"homepage": "https://github.com/prosopo/captcha#readme",
|
|
45
|
-
"sideEffects": false
|
|
45
|
+
"sideEffects": false,
|
|
46
|
+
"repository": {
|
|
47
|
+
"type": "git",
|
|
48
|
+
"url": "git+https://github.com/prosopo/captcha.git",
|
|
49
|
+
"directory": "integration/frameworks/vue/vue-procaptcha-integration-demo"
|
|
50
|
+
}
|
|
46
51
|
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Copyright 2021-2026 Prosopo (UK) Ltd.
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
import { createApp } from "vue";
|
|
16
|
+
import IntegrationDemo from "./integrationDemo.vue";
|
|
17
|
+
|
|
18
|
+
const integrationDemo = createApp(IntegrationDemo);
|
|
19
|
+
|
|
20
|
+
integrationDemo.mount("#root");
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<ProcaptchaComponent :siteKey="siteKey"
|
|
3
|
+
language="en"
|
|
4
|
+
:callback="(token: string): void => {
|
|
5
|
+
console.log('verified', token)
|
|
6
|
+
}"
|
|
7
|
+
:htmlAttributes="{class:'my-app__procaptcha'}"/>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script setup lang="ts">
|
|
11
|
+
import {ProcaptchaComponent} from "@prosopo/vue-procaptcha-wrapper";
|
|
12
|
+
|
|
13
|
+
// @ts-expect-error Env variables will be read by Vite
|
|
14
|
+
const siteKey = import.meta.env.VITE_PROCAPTCHA_SITE_KEY || "";
|
|
15
|
+
</script>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"rootDir": "./src",
|
|
5
|
+
"outDir": "./dist",
|
|
6
|
+
"module": "NodeNext",
|
|
7
|
+
"moduleResolution": "NodeNext"
|
|
8
|
+
},
|
|
9
|
+
"include": ["./src"],
|
|
10
|
+
"references": [
|
|
11
|
+
{
|
|
12
|
+
"path": "../../../../dev/config/tsconfig.cjs.json"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"path": "../vue-procaptcha-wrapper"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"path": "../../../procaptcha-integration-build-config"
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"rootDir": "./src",
|
|
5
|
+
"outDir": "./dist",
|
|
6
|
+
"module": "NodeNext",
|
|
7
|
+
"moduleResolution": "NodeNext"
|
|
8
|
+
},
|
|
9
|
+
"include": [
|
|
10
|
+
"./src",
|
|
11
|
+
"src/**/*.ts",
|
|
12
|
+
"src/**/*.tsx",
|
|
13
|
+
"src/**/*.json",
|
|
14
|
+
"src/**/*.d.ts"
|
|
15
|
+
],
|
|
16
|
+
"references": [
|
|
17
|
+
{
|
|
18
|
+
"path": "../../../../dev/config/tsconfig.json"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"path": "../vue-procaptcha-wrapper"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"path": "../../../procaptcha-integration-build-config"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|