@prosopo/vue-procaptcha-integration-demo 1.1.8 → 1.1.9

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 CHANGED
@@ -1,5 +1,27 @@
1
1
  # @prosopo/vue-procaptcha-integration-demo
2
2
 
3
+ ## 1.1.9
4
+ ### Patch Changes
5
+
6
+ - 91d56e7: enable nx caching
7
+ - 828066d: remove empty test npm scripts, add missing npm test scripts
8
+ - 91bbe87: configure typecheck before bundle for vue packages
9
+ - 686c5f5: fix bundling setup wrt types
10
+ - 91bbe87: make typecheck script always recompile
11
+ - 346e092: NODE_ENV default to "development"
12
+ - 5d36e05: remove tsc --force
13
+ - Updated dependencies [91d56e7]
14
+ - Updated dependencies [828066d]
15
+ - Updated dependencies [df4e030]
16
+ - Updated dependencies [91bbe87]
17
+ - Updated dependencies [3ef4fd2]
18
+ - Updated dependencies [91bbe87]
19
+ - Updated dependencies [346e092]
20
+ - Updated dependencies [5d36e05]
21
+ - @prosopo/vue-procaptcha-wrapper@1.1.9
22
+ - @prosopo/types@3.0.6
23
+ - @prosopo/config@3.1.3
24
+
3
25
  ## 1.1.8
4
26
  ### Patch Changes
5
27
 
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ const vue = require("vue");
3
+ require("./integrationDemo.vue.cjs");
4
+ const integrationDemo_vue_vue_type_script_setup_true_lang = require("./integrationDemo.vue2.cjs");
5
+ const integrationDemo = vue.createApp(integrationDemo_vue_vue_type_script_setup_true_lang);
6
+ integrationDemo.mount("#root");
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ const integrationDemo_vue_vue_type_script_setup_true_lang = require("./integrationDemo.vue2.cjs");
3
+ const vue = require("vue");
4
+ const _sfc_setup = integrationDemo_vue_vue_type_script_setup_true_lang.setup;
5
+ integrationDemo_vue_vue_type_script_setup_true_lang.setup = (props, ctx) => {
6
+ const ssrContext = vue.useSSRContext();
7
+ (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/integrationDemo.vue");
8
+ return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
9
+ };
10
+ module.exports = integrationDemo_vue_vue_type_script_setup_true_lang;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ const vue = require("vue");
3
+ const serverRenderer = require("vue/server-renderer");
4
+ const vueProcaptchaWrapper = require("@prosopo/vue-procaptcha-wrapper");
5
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
6
+ __name: "integrationDemo",
7
+ __ssrInlineRender: true,
8
+ setup(__props) {
9
+ const siteKey = "";
10
+ return (_ctx, _push, _parent, _attrs) => {
11
+ _push(serverRenderer.ssrRenderComponent(vue.unref(vueProcaptchaWrapper.ProcaptchaComponent), vue.mergeProps({
12
+ siteKey: vue.unref(siteKey),
13
+ captchaType: "pow",
14
+ language: "en",
15
+ callback: (token) => {
16
+ console.log("verified", token);
17
+ },
18
+ htmlAttributes: { class: "my-app__procaptcha" }
19
+ }, _attrs), null, _parent));
20
+ };
21
+ }
22
+ });
23
+ module.exports = _sfc_main;
@@ -0,0 +1,11 @@
1
+ import _sfc_main from "./integrationDemo.vue2.js";
2
+ import { useSSRContext } from "vue";
3
+ const _sfc_setup = _sfc_main.setup;
4
+ _sfc_main.setup = (props, ctx) => {
5
+ const ssrContext = useSSRContext();
6
+ (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/integrationDemo.vue");
7
+ return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
8
+ };
9
+ export {
10
+ _sfc_main as default
11
+ };
@@ -0,0 +1,24 @@
1
+ import { defineComponent, unref, mergeProps } from "vue";
2
+ import { ssrRenderComponent } from "vue/server-renderer";
3
+ import { ProcaptchaComponent } from "@prosopo/vue-procaptcha-wrapper";
4
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5
+ __name: "integrationDemo",
6
+ __ssrInlineRender: true,
7
+ setup(__props) {
8
+ const siteKey = "";
9
+ return (_ctx, _push, _parent, _attrs) => {
10
+ _push(ssrRenderComponent(unref(ProcaptchaComponent), mergeProps({
11
+ siteKey: unref(siteKey),
12
+ captchaType: "pow",
13
+ language: "en",
14
+ callback: (token) => {
15
+ console.log("verified", token);
16
+ },
17
+ htmlAttributes: { class: "my-app__procaptcha" }
18
+ }, _attrs), null, _parent));
19
+ };
20
+ }
21
+ });
22
+ export {
23
+ _sfc_main as default
24
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosopo/vue-procaptcha-integration-demo",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": "20",
@@ -16,22 +16,21 @@
16
16
  }
17
17
  },
18
18
  "scripts": {
19
- "build": "NODE_ENV=${NODE_ENV:-production}; vite build --config vite.esm.config.ts --mode $NODE_ENV",
20
- "build:cjs": "NODE_ENV=${NODE_ENV:-production}; vite build --config vite.cjs.config.ts --mode $NODE_ENV",
19
+ "build": "NODE_ENV=${NODE_ENV:-development}; vite build --config vite.esm.config.ts --mode $NODE_ENV",
20
+ "build:cjs": "NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV",
21
21
  "clean": "del-cli --verbose dist tsconfig.tsbuildinfo",
22
- "typecheck": "vue-tsc --build --declaration --emitDeclarationOnly --force",
23
- "test": "echo no tests",
24
- "bundle": "NODE_ENV=${NODE_ENV:-production}; vite build --config vite.config.ts --mode $NODE_ENV",
22
+ "typecheck": "vue-tsc --build --declaration --emitDeclarationOnly",
23
+ "bundle": "NODE_ENV=${NODE_ENV:-development}; vite build --config vite.config.ts --mode $NODE_ENV",
25
24
  "dev": "NODE_ENV=${NODE_ENV:-development}; vite dev --port=9331 --mode=$NODE_ENV"
26
25
  },
27
26
  "dependencies": {
28
- "@prosopo/vue-procaptcha-wrapper": "1.1.8",
29
- "@prosopo/config": "3.1.2",
30
- "@prosopo/types": "3.0.5",
27
+ "@prosopo/vue-procaptcha-wrapper": "1.1.9",
28
+ "@prosopo/config": "3.1.3",
29
+ "@prosopo/types": "3.0.6",
31
30
  "vue": "3.5.13"
32
31
  },
33
32
  "devDependencies": {
34
- "@prosopo/procaptcha-integration-build-config": "1.1.2",
33
+ "@prosopo/procaptcha-integration-build-config": "1.1.3",
35
34
  "@vitejs/plugin-vue": "5.2.3",
36
35
  "del-cli": "6.0.0",
37
36
  "vue-tsc": "2.2.10"
package/project.json CHANGED
@@ -1,17 +1,9 @@
1
1
  {
2
2
  "targets": {
3
3
  "build": {
4
- "executor": "nx:run-script",
5
- "options": {
6
- "script": "build"
7
- },
8
4
  "dependsOn": ["^build", "^typecheck"]
9
5
  },
10
6
  "build:cjs": {
11
- "executor": "nx:run-script",
12
- "options": {
13
- "script": "build"
14
- },
15
7
  "dependsOn": ["^build:cjs", "^typecheck"]
16
8
  }
17
9
  }