@prosopo/react-procaptcha-integration-demo 1.1.5 → 1.1.7

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,21 @@
1
1
  # @prosopo/react-procaptcha-integration-demo
2
2
 
3
+ ## 1.1.7
4
+ ### Patch Changes
5
+
6
+ - @prosopo/react-procaptcha-wrapper@1.1.7
7
+
8
+ ## 1.1.6
9
+ ### Patch Changes
10
+
11
+ - 3573f0b: build using vite, typecheck using tsc
12
+ - Updated dependencies [3573f0b]
13
+ - Updated dependencies [3573f0b]
14
+ - Updated dependencies [3573f0b]
15
+ - Updated dependencies [2d0dd8a]
16
+ - @prosopo/config@3.1.1
17
+ - @prosopo/react-procaptcha-wrapper@1.1.6
18
+
3
19
  ## 1.1.5
4
20
  ### Patch Changes
5
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosopo/react-procaptcha-integration-demo",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": "20",
@@ -8,20 +8,30 @@
8
8
  },
9
9
  "main": "dist/index.js",
10
10
  "types": "dist/index.d.ts",
11
+ "exports": {
12
+ ".": {
13
+ "import": "./dist/index.js",
14
+ "require": "./dist/cjs/index.cjs",
15
+ "types": "./dist/index.d.ts"
16
+ }
17
+ },
11
18
  "scripts": {
12
- "test": "echo \"No test specified\"",
13
- "clean": "del-cli ./dist",
14
- "build": "tsc",
15
- "bundle": "vite build",
16
- "dev": "vite dev --port=9330"
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",
21
+ "typecheck": "tsc --build --declaration --emitDeclarationOnly",
22
+ "test": "echo no tests",
23
+ "bundle": "NODE_ENV=${NODE_ENV:-production}; vite build --config vite.config.ts --mode $NODE_ENV",
24
+ "dev": "NODE_ENV=${NODE_ENV:-development}; vite dev --port=9330 --mode=$NODE_ENV",
25
+ "clean": "del-cli --verbose dist tsconfig.tsbuildinfo"
17
26
  },
18
27
  "dependencies": {
19
- "@prosopo/react-procaptcha-wrapper": "1.1.5",
28
+ "@prosopo/react-procaptcha-wrapper": "1.1.7",
20
29
  "react": "18.3.1",
21
- "react-dom": "18.3.1"
30
+ "react-dom": "18.3.1",
31
+ "@prosopo/config": "3.1.1"
22
32
  },
23
33
  "devDependencies": {
24
- "@prosopo/procaptcha-integration-build-config": "1.1.0",
34
+ "@prosopo/procaptcha-integration-build-config": "1.1.1",
25
35
  "@vitejs/plugin-react": "4.3.4",
26
36
  "del-cli": "6.0.0"
27
37
  },
@@ -0,0 +1,22 @@
1
+ import path from "node:path";
2
+ // Copyright 2021-2025 Prosopo (UK) Ltd.
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // http://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ import { ViteCommonJSConfig } from "@prosopo/config";
16
+
17
+ export default function () {
18
+ return ViteCommonJSConfig(
19
+ path.basename("."),
20
+ path.resolve("./tsconfig.json"),
21
+ );
22
+ }
@@ -0,0 +1,20 @@
1
+ // Copyright 2021-2025 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 path from "node:path";
16
+ import { ViteEsmConfig } from "@prosopo/config";
17
+
18
+ export default function () {
19
+ return ViteEsmConfig(path.basename("."), path.resolve("./tsconfig.json"));
20
+ }