@prosopo/database 4.4.1 → 4.4.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/.turbo/turbo-build$colon$cjs.log +1 -1
- package/.turbo/turbo-build$colon$esm.log +1 -1
- package/.turbo/turbo-build$colon$tsc.log +15 -15
- package/CHANGELOG.md +13 -0
- package/dist/tsc/tests/unit/captchaLabel.unit.test.js +4 -0
- package/dist/tsc/tests/unit/captchaLabel.unit.test.js.map +1 -1
- package/package.json +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
$ tsc --build --verbose
|
|
2
|
-
|
|
2
|
+
12:27:56 PM - Projects in this build:
|
|
3
3
|
* ../../dev/config/tsconfig.json
|
|
4
4
|
* ../util/tsconfig.json
|
|
5
5
|
* ../locale/tsconfig.json
|
|
@@ -14,31 +14,31 @@ $ tsc --build --verbose
|
|
|
14
14
|
* ../types-database/tsconfig.json
|
|
15
15
|
* tsconfig.json
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
12:27:56 PM - Project '../../dev/config/tsconfig.json' is up to date because newest input '../../dev/config/src/vite/vite.esm.config.ts' is older than output '../../dev/config/dist/tsc/tsconfig.tsbuildinfo'
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
12:27:56 PM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/dist/tsc/tsconfig.tsbuildinfo'
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
12:27:56 PM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/dist/tsc/tsconfig.tsbuildinfo'
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
12:27:56 PM - Project '../util-crypto/tsconfig.json' is up to date because newest input '../util-crypto/src/types.ts' is older than output '../util-crypto/dist/tsc/tsconfig.tsbuildinfo'
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
12:27:56 PM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/types.test-d.ts' is older than output '../types/dist/tsc/tsconfig.tsbuildinfo'
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
12:27:56 PM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/error.ts' is older than output '../common/dist/tsc/tsconfig.tsbuildinfo'
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
12:27:56 PM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/tests/loggerBrowser.unit.test.ts' is older than output '../logger/dist/tsc/tsconfig.tsbuildinfo'
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
12:27:56 PM - Project '../api-route/tsconfig.json' is up to date because newest input '../api-route/src/apiRoutes.ts' is older than output '../api-route/dist/tsc/tsconfig.tsbuildinfo'
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
12:27:56 PM - Project '../redis-client/tsconfig.json' is up to date because newest input '../redis-client/src/index.ts' is older than output '../redis-client/dist/tsc/tsconfig.tsbuildinfo'
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
12:27:57 PM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/index.ts' is older than output '../api/dist/tsc/tsconfig.tsbuildinfo'
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
12:27:57 PM - Project '../user-access-policy/tsconfig.json' is up to date because newest input '../user-access-policy/src/transformRule.ts' is older than output '../user-access-policy/dist/tsc/tsconfig.tsbuildinfo'
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
12:27:57 PM - Project '../types-database/tsconfig.json' is up to date because newest input '../types-database/src/index.ts' is older than output '../types-database/dist/tsc/tsconfig.tsbuildinfo'
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
12:27:57 PM - Project 'tsconfig.json' is out of date because output file 'dist/tsc/tsconfig.tsbuildinfo' does not exist
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
12:27:57 PM - Building project '/home/runner/work/captcha/captcha/packages/database/tsconfig.json'...
|
|
44
44
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @prosopo/database
|
|
2
2
|
|
|
3
|
+
## 4.4.2
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- Updated dependencies [23ef59a]
|
|
7
|
+
- Updated dependencies [b52263f]
|
|
8
|
+
- @prosopo/types@5.20.2
|
|
9
|
+
- @prosopo/common@3.3.2
|
|
10
|
+
- @prosopo/types-database@5.13.2
|
|
11
|
+
- @prosopo/user-access-policy@3.15.11
|
|
12
|
+
- @prosopo/logger@2.1.7
|
|
13
|
+
- @prosopo/redis-client@1.0.44
|
|
14
|
+
- @prosopo/util@3.4.0
|
|
15
|
+
|
|
3
16
|
## 4.4.1
|
|
4
17
|
### Patch Changes
|
|
5
18
|
|
|
@@ -12,6 +12,9 @@ describe("captcha labelling schema fields", () => {
|
|
|
12
12
|
expect(CaptchaLabelSchema.parse(value)).toBe(value);
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
|
+
it("CaptchaLabelSchema accepts the solver label", () => {
|
|
16
|
+
expect(CaptchaLabelSchema.parse("solver")).toBe(CaptchaLabel.solver);
|
|
17
|
+
});
|
|
15
18
|
it("CaptchaLabelSchema rejects unknown labels", () => {
|
|
16
19
|
expect(() => CaptchaLabelSchema.parse("definitely-not-a-label")).toThrow();
|
|
17
20
|
});
|
|
@@ -35,6 +38,7 @@ describe("captcha labelling schema fields", () => {
|
|
|
35
38
|
for (const schema of recordSchemas) {
|
|
36
39
|
const enumValues = schema.path("label").options.enum;
|
|
37
40
|
expect(enumValues).toEqual(expect.arrayContaining(Object.values(CaptchaLabel)));
|
|
41
|
+
expect(enumValues).toContain(CaptchaLabel.solver);
|
|
38
42
|
}
|
|
39
43
|
});
|
|
40
44
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"captchaLabel.unit.test.js","sourceRoot":"","sources":["../../../../src/tests/unit/captchaLabel.unit.test.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAA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F,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/database",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.2",
|
|
4
4
|
"description": "Prosopo database plugins for provider",
|
|
5
5
|
"main": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"@prosopo/common": "3.3.2",
|
|
32
32
|
"@prosopo/logger": "2.1.7",
|
|
33
33
|
"@prosopo/redis-client": "1.0.44",
|
|
34
|
-
"@prosopo/types": "5.20.
|
|
35
|
-
"@prosopo/types-database": "5.13.
|
|
36
|
-
"@prosopo/user-access-policy": "3.15.
|
|
34
|
+
"@prosopo/types": "5.20.2",
|
|
35
|
+
"@prosopo/types-database": "5.13.2",
|
|
36
|
+
"@prosopo/user-access-policy": "3.15.11",
|
|
37
37
|
"@prosopo/util": "3.4.0",
|
|
38
38
|
"bson": "7.3.3",
|
|
39
39
|
"make-dir": "5.1.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"mongoose": "9.11.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@prosopo/config": "3.5.
|
|
45
|
+
"@prosopo/config": "3.5.3",
|
|
46
46
|
"@types/node": "22.10.2",
|
|
47
47
|
"@vitest/coverage-v8": "5.0.4",
|
|
48
48
|
"concurrently": "9.0.1",
|