@prosopo/svelte-procaptcha-integration-demo 1.1.7 → 1.1.8
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 +10 -0
- package/package.json +4 -4
- package/dist/cjs/index.cjs +0 -11
- package/dist/cjs/integrationDemo.svelte.cjs +0 -38
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @prosopo/svelte-procaptcha-integration-demo
|
|
2
2
|
|
|
3
|
+
## 1.1.8
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- eb71691: configure typecheck before bundle for vue packages
|
|
7
|
+
- eb71691: make typecheck script always recompile
|
|
8
|
+
- Updated dependencies [eb71691]
|
|
9
|
+
- Updated dependencies [eb71691]
|
|
10
|
+
- @prosopo/svelte-procaptcha-wrapper@1.1.8
|
|
11
|
+
- @prosopo/config@3.1.2
|
|
12
|
+
|
|
3
13
|
## 1.1.7
|
|
4
14
|
### Patch Changes
|
|
5
15
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/svelte-procaptcha-integration-demo",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "20",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"clean": "del-cli --verbose dist tsconfig.tsbuildinfo"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@prosopo/svelte-procaptcha-wrapper": "1.1.
|
|
29
|
-
"@prosopo/config": "3.1.
|
|
28
|
+
"@prosopo/svelte-procaptcha-wrapper": "1.1.8",
|
|
29
|
+
"@prosopo/config": "3.1.2",
|
|
30
30
|
"svelte": "^5.0.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@prosopo/procaptcha-integration-build-config": "1.1.
|
|
33
|
+
"@prosopo/procaptcha-integration-build-config": "1.1.2",
|
|
34
34
|
"@sveltejs/vite-plugin-svelte": "5.0.3",
|
|
35
35
|
"del-cli": "6.0.0",
|
|
36
36
|
"svelte-check": "4.2.2"
|
package/dist/cjs/index.cjs
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const svelte = require("svelte");
|
|
3
|
-
const integrationDemo = require("./integrationDemo.svelte.cjs");
|
|
4
|
-
const root = document.getElementById("root");
|
|
5
|
-
if (root instanceof HTMLElement) {
|
|
6
|
-
svelte.mount(integrationDemo, {
|
|
7
|
-
target: root
|
|
8
|
-
});
|
|
9
|
-
} else {
|
|
10
|
-
throw new Error("root element not found");
|
|
11
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const $ = require("svelte/internal/server");
|
|
3
|
-
const svelteProcaptchaWrapper = require("@prosopo/svelte-procaptcha-wrapper");
|
|
4
|
-
function _interopNamespaceDefault(e) {
|
|
5
|
-
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
6
|
-
if (e) {
|
|
7
|
-
for (const k in e) {
|
|
8
|
-
if (k !== "default") {
|
|
9
|
-
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
10
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: () => e[k]
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
n.default = e;
|
|
18
|
-
return Object.freeze(n);
|
|
19
|
-
}
|
|
20
|
-
const $__namespace = /* @__PURE__ */ _interopNamespaceDefault($);
|
|
21
|
-
function IntegrationDemo($$payload, $$props) {
|
|
22
|
-
$__namespace.push();
|
|
23
|
-
const siteKey = "";
|
|
24
|
-
const handleVerification = (token) => {
|
|
25
|
-
console.log("verified", token);
|
|
26
|
-
};
|
|
27
|
-
$$payload.out += `<div>`;
|
|
28
|
-
svelteProcaptchaWrapper.ProcaptchaComponent($$payload, {
|
|
29
|
-
siteKey,
|
|
30
|
-
captchaType: "pow",
|
|
31
|
-
language: "en",
|
|
32
|
-
callback: handleVerification,
|
|
33
|
-
htmlAttributes: { class: "my-app__procaptcha" }
|
|
34
|
-
});
|
|
35
|
-
$$payload.out += `<!----></div>`;
|
|
36
|
-
$__namespace.pop();
|
|
37
|
-
}
|
|
38
|
-
module.exports = IntegrationDemo;
|