@prosopo/fingerprint 2.5.3 → 2.6.2

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 ADDED
@@ -0,0 +1,29 @@
1
+ # @prosopo/fingerprint
2
+
3
+ ## 2.6.2
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/config@3.1.2
11
+
12
+ ## 2.6.1
13
+ ### Patch Changes
14
+
15
+ - 3573f0b: fix npm scripts bundle command
16
+ - 3573f0b: build using vite, typecheck using tsc
17
+ - efd8102: Add tests for unwrap error helper
18
+ - 3573f0b: standardise all vite based npm scripts for bundling
19
+ - Updated dependencies [3573f0b]
20
+ - Updated dependencies [3573f0b]
21
+ - Updated dependencies [3573f0b]
22
+ - Updated dependencies [2d0dd8a]
23
+ - @prosopo/config@3.1.1
24
+
25
+ ## 2.6.0
26
+
27
+ ### Minor Changes
28
+
29
+ - a0bfc8a: bump all pkg versions since independent versioning applied
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (let key of __getOwnPropNames(from))
11
+ if (!__hasOwnProp.call(to, key) && key !== except)
12
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ }
14
+ return to;
15
+ };
16
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
+ // If the importer is in node compatibility mode or this is not an ESM
18
+ // file that has been converted to a CommonJS file using a Babel-
19
+ // compatible transform (i.e. "__esModule" has not been set), then set
20
+ // "default" to the CommonJS "module.exports" for node compatibility.
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
25
+ const FingerprintJSImport = async () => (await import("@fingerprintjs/fingerprintjs")).default;
26
+ const getFingerprint = async () => {
27
+ const FingerprintJS = await FingerprintJSImport();
28
+ const fp = await FingerprintJS.load();
29
+ const result = await fp.get();
30
+ return result.visitorId;
31
+ };
32
+ exports.getFingerprint = getFingerprint;
package/dist/index.js CHANGED
@@ -1,8 +1,10 @@
1
1
  const FingerprintJSImport = async () => (await import("@fingerprintjs/fingerprintjs")).default;
2
- export const getFingerprint = async () => {
3
- const FingerprintJS = await FingerprintJSImport();
4
- const fp = await FingerprintJS.load();
5
- const result = await fp.get();
6
- return result.visitorId;
2
+ const getFingerprint = async () => {
3
+ const FingerprintJS = await FingerprintJSImport();
4
+ const fp = await FingerprintJS.load();
5
+ const result = await fp.get();
6
+ return result.visitorId;
7
+ };
8
+ export {
9
+ getFingerprint
7
10
  };
8
- //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@prosopo/fingerprint",
3
- "version": "2.5.3",
3
+ "version": "2.6.2",
4
4
  "description": "Provider fingerprint",
5
5
  "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
6
7
  "type": "module",
7
8
  "engines": {
8
9
  "node": "20",
@@ -10,15 +11,18 @@
10
11
  },
11
12
  "exports": {
12
13
  ".": {
14
+ "types": "./dist/index.d.ts",
13
15
  "import": "./dist/index.js",
14
16
  "require": "./dist/cjs/index.cjs"
15
17
  }
16
18
  },
17
19
  "scripts": {
18
- "test": "echo \"No test specified\"",
19
- "clean": "tsc --build --clean",
20
- "build": "tsc --build --verbose",
21
- "build:cjs": "npx vite --config vite.cjs.config.ts build"
20
+ "clean": "del-cli --verbose dist tsconfig.tsbuildinfo",
21
+ "build": "NODE_ENV=${NODE_ENV:-production}; vite build --config vite.esm.config.ts --mode $NODE_ENV",
22
+ "build:tsc": "tsc --build --verbose",
23
+ "build:cjs": "NODE_ENV=${NODE_ENV:-production}; vite build --config vite.cjs.config.ts --mode $NODE_ENV",
24
+ "typecheck": "tsc --build --declaration --emitDeclarationOnly --force",
25
+ "test": "echo no tests"
22
26
  },
23
27
  "repository": {
24
28
  "type": "git",
@@ -32,18 +36,24 @@
32
36
  "homepage": "https://github.com/prosopo/captcha#readme",
33
37
  "dependencies": {
34
38
  "@fingerprintjs/fingerprintjs": "3.4.2",
35
- "express": "4.21.2"
39
+ "@prosopo/config": "3.1.2",
40
+ "@typegoose/auto-increment": "4.13.0",
41
+ "axios": "1.10.0",
42
+ "esbuild": "0.25.6",
43
+ "express": "4.21.2",
44
+ "openpgp": "5.11.3",
45
+ "webpack-dev-server": "5.2.2"
36
46
  },
37
47
  "devDependencies": {
38
- "@vitest/coverage-v8": "2.1.1",
48
+ "@vitest/coverage-v8": "3.0.9",
39
49
  "concurrently": "9.0.1",
40
- "npm-run-all": "2.1.0",
50
+ "npm-run-all": "4.1.5",
41
51
  "rimraf": "6.0.1",
42
52
  "tslib": "2.7.0",
43
- "tsx": "4.19.1",
53
+ "tsx": "4.20.3",
44
54
  "typescript": "5.6.2",
45
- "vite": "5.4.6",
46
- "vitest": "2.1.1"
55
+ "vite": "6.3.5",
56
+ "vitest": "3.0.9"
47
57
  },
48
58
  "sideEffects": false
49
59
  }
@@ -15,5 +15,8 @@ import path from "node:path";
15
15
  import { ViteCommonJSConfig } from "@prosopo/config";
16
16
 
17
17
  export default function () {
18
- return ViteCommonJSConfig("fingerprint", path.resolve("./tsconfig.cjs.json"));
18
+ return ViteCommonJSConfig(
19
+ path.basename("."),
20
+ path.resolve("./tsconfig.json"),
21
+ );
19
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
+ }
package/dist/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export declare const getFingerprint: () => Promise<string>;
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,cAAc,uBAK1B,CAAC"}
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAcA,MAAM,mBAAmB,GAAG,KAAK,IAAI,EAAE,CACtC,CAAC,MAAM,MAAM,CAAC,8BAA8B,CAAC,CAAC,CAAC,OAAO,CAAC;AAExD,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,IAAI,EAAE;IACxC,MAAM,aAAa,GAAG,MAAM,mBAAmB,EAAE,CAAC;IAClD,MAAM,EAAE,GAAG,MAAM,aAAa,CAAC,IAAI,EAAE,CAAC;IACtC,MAAM,MAAM,GAAG,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC;IAC9B,OAAO,MAAM,CAAC,SAAS,CAAC;AACzB,CAAC,CAAC"}