@prosopo/datasets 2.0.1 → 2.0.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.
@@ -11,7 +11,7 @@ export declare function sortAndComputeHashes(received: CaptchaSolution[], stored
11
11
  }[];
12
12
  export declare function compareCaptchaSolutions(received: CaptchaSolution[], stored: Captcha[]): boolean;
13
13
  export declare function computeCaptchaHash(captcha: CaptchaWithoutId, includeSolution: boolean, includeSalt: boolean, sortItemHashes: boolean): string;
14
- export declare function getSolutionValueToHash(solution?: HashedSolution[] | RawSolution[]): number[] | string[];
14
+ export declare function getSolutionValueToHash(solution?: HashedSolution[] | RawSolution[]): string[] | number[];
15
15
  export declare function computeItemHash(item: Item): Promise<HashedItem>;
16
16
  export declare function matchItemsToSolutions(solutions: RawSolution[] | HashedSolution[], items: HashedItem[] | undefined): HashedSolution[];
17
17
  export declare function computeCaptchaSolutionHash(captcha: CaptchaSolution): string;
@@ -8,7 +8,7 @@ export declare const datasetWithIndexSolutions: {
8
8
  assetURI?: string | undefined;
9
9
  datasetId?: string | undefined;
10
10
  datasetContentId?: string | undefined;
11
- unlabelled?: number[] | string[] | undefined;
11
+ unlabelled?: string[] | number[] | undefined;
12
12
  salt: string;
13
13
  items: {
14
14
  hash: string;
package/package.json CHANGED
@@ -1,72 +1,72 @@
1
1
  {
2
- "name": "@prosopo/datasets",
3
- "version": "2.0.1",
4
- "author": "PROSOPO LIMITED <info@prosopo.io>",
5
- "license": "Apache-2.0",
6
- "private": false,
7
- "engines": {
8
- "node": ">=20",
9
- "npm": ">=9"
10
- },
11
- "scripts": {
12
- "clean": "tsc --build --clean",
13
- "build": "tsc --build --verbose",
14
- "build:cjs": "npx vite --config vite.cjs.config.ts build",
15
- "test": "NODE_ENV=${NODE_ENV:-test}; npx vitest run --config ./vite.test.config.ts",
16
- "cli": "node ./dist/cli.js"
17
- },
18
- "main": "./dist/index.js",
19
- "type": "module",
20
- "types": "./dist/index.d.ts",
21
- "exports": {
22
- ".": {
23
- "import": "./dist/index.js",
24
- "require": "./dist/cjs/index.cjs"
25
- },
26
- "./captcha": {
27
- "types": "./dist/captcha/index.d.ts",
28
- "import": "./dist/captcha/index.js",
29
- "require": "./dist/cjs/captcha/index.cjs",
30
- "default": "./dist/captcha/index.js"
31
- }
32
- },
33
- "typesVersions": {
34
- "*": {
35
- "types": [
36
- "dist/types"
37
- ],
38
- "captcha": [
39
- "dist/captcha"
40
- ]
41
- }
42
- },
43
- "dependencies": {
44
- "@polkadot/util": "12.6.2",
45
- "@prosopo/common": "2.0.1",
46
- "@prosopo/types": "2.0.1",
47
- "@prosopo/util": "2.0.1",
48
- "vitest": "^1.3.1"
49
- },
50
- "devDependencies": {
51
- "@prosopo/config": "2.0.1",
52
- "dotenv": "^16.0.1",
53
- "tslib": "2.6.2",
54
- "typescript": "5.1.6"
55
- },
56
- "repository": {
57
- "type": "git",
58
- "url": "git+https://github.com/prosopo/captcha.git"
59
- },
60
- "bugs": {
61
- "url": "https://github.com/prosopo/captcha/issues"
62
- },
63
- "homepage": "https://github.com/prosopo/captcha#readme",
64
- "publishConfig": {
65
- "registry": "https://registry.npmjs.org"
66
- },
67
- "description": "Datasets for use with providers",
68
- "directories": {
69
- "test": "tests"
70
- },
71
- "sideEffects": false
2
+ "name": "@prosopo/datasets",
3
+ "version": "2.0.2",
4
+ "author": "PROSOPO LIMITED <info@prosopo.io>",
5
+ "license": "Apache-2.0",
6
+ "private": false,
7
+ "engines": {
8
+ "node": ">=20",
9
+ "npm": ">=9"
10
+ },
11
+ "scripts": {
12
+ "clean": "tsc --build --clean",
13
+ "build": "tsc --build --verbose",
14
+ "build:cjs": "npx vite --config vite.cjs.config.ts build",
15
+ "test": "NODE_ENV=${NODE_ENV:-test}; npx vitest run --config ./vite.test.config.ts",
16
+ "cli": "node ./dist/cli.js"
17
+ },
18
+ "main": "./dist/index.js",
19
+ "type": "module",
20
+ "types": "./dist/index.d.ts",
21
+ "exports": {
22
+ ".": {
23
+ "import": "./dist/index.js",
24
+ "require": "./dist/cjs/index.cjs"
25
+ },
26
+ "./captcha": {
27
+ "types": "./dist/captcha/index.d.ts",
28
+ "import": "./dist/captcha/index.js",
29
+ "require": "./dist/cjs/captcha/index.cjs",
30
+ "default": "./dist/captcha/index.js"
31
+ }
32
+ },
33
+ "typesVersions": {
34
+ "*": {
35
+ "types": [
36
+ "dist/types"
37
+ ],
38
+ "captcha": [
39
+ "dist/captcha"
40
+ ]
41
+ }
42
+ },
43
+ "dependencies": {
44
+ "@polkadot/util": "12.6.2",
45
+ "@prosopo/common": "2.0.2",
46
+ "@prosopo/types": "2.0.2",
47
+ "@prosopo/util": "2.0.2",
48
+ "vitest": "^1.3.1"
49
+ },
50
+ "devDependencies": {
51
+ "@prosopo/config": "2.0.2",
52
+ "dotenv": "^16.0.1",
53
+ "tslib": "2.6.2",
54
+ "typescript": "5.1.6"
55
+ },
56
+ "repository": {
57
+ "type": "git",
58
+ "url": "git+https://github.com/prosopo/captcha.git"
59
+ },
60
+ "bugs": {
61
+ "url": "https://github.com/prosopo/captcha/issues"
62
+ },
63
+ "homepage": "https://github.com/prosopo/captcha#readme",
64
+ "publishConfig": {
65
+ "registry": "https://registry.npmjs.org"
66
+ },
67
+ "description": "Datasets for use with providers",
68
+ "directories": {
69
+ "test": "tests"
70
+ },
71
+ "sideEffects": false
72
72
  }