@verii/agentdb-cli 1.0.0-pre.1756100765 → 1.0.0-pre.1756224043
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/package.json +8 -7
- package/test/metrics.test.js +5 -2
- package/test/offers.test.js +5 -2
- package/test/pii-purge.test.js +5 -2
- package/test/rotate-key.test.js +5 -2
- package/jest.config.js +0 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verii/agentdb-cli",
|
|
3
|
-
"version": "1.0.0-pre.
|
|
3
|
+
"version": "1.0.0-pre.1756224043",
|
|
4
4
|
"description": "A cli for working with agent database.",
|
|
5
5
|
"repository": "https://github.com/LFDT-Verii/core",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -8,8 +8,9 @@
|
|
|
8
8
|
"agentdb-cli": "src/index.js"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
|
-
"test": "
|
|
12
|
-
"lint": "eslint
|
|
11
|
+
"test": "cross-env NODE_ENV=test node --test --test-concurrency=1 --experimental-test-module-mocks --experimental-test-coverage **/*.test.js --passWithNoTests",
|
|
12
|
+
"lint": "eslint --ext .js .",
|
|
13
|
+
"lint:ci": "eslint . --format json >> eslint-results.json",
|
|
13
14
|
"lint:fix": "eslint --fix --ext .js ."
|
|
14
15
|
},
|
|
15
16
|
"author": "Denis Smolonski",
|
|
@@ -18,7 +19,7 @@
|
|
|
18
19
|
"access": "public"
|
|
19
20
|
},
|
|
20
21
|
"devDependencies": {
|
|
21
|
-
"@verii/tests-helpers": "1.0.0-pre.
|
|
22
|
+
"@verii/tests-helpers": "1.0.0-pre.1756224043",
|
|
22
23
|
"eslint": "8.57.1",
|
|
23
24
|
"eslint-config-airbnb-base": "14.2.1",
|
|
24
25
|
"eslint-config-prettier": "8.10.2",
|
|
@@ -26,14 +27,14 @@
|
|
|
26
27
|
"eslint-plugin-import": "2.32.0",
|
|
27
28
|
"eslint-plugin-prettier": "4.2.5",
|
|
28
29
|
"eslint-watch": "7.0.0",
|
|
29
|
-
"
|
|
30
|
+
"expect": "29.7.0",
|
|
30
31
|
"prettier": "2.8.8"
|
|
31
32
|
},
|
|
32
33
|
"dependencies": {
|
|
33
|
-
"@verii/crypto": "1.0.0-pre.
|
|
34
|
+
"@verii/crypto": "1.0.0-pre.1756224043",
|
|
34
35
|
"commander": "~13.1.0",
|
|
35
36
|
"lodash": "^4.17.21",
|
|
36
37
|
"mongodb": "~6.18.0"
|
|
37
38
|
},
|
|
38
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "21747614a1db416654bba4c198d1c1b883dbe6a5"
|
|
39
40
|
}
|
package/test/metrics.test.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
const { after, before, beforeEach, describe, it } = require('node:test');
|
|
2
|
+
const { expect } = require('expect');
|
|
3
|
+
|
|
1
4
|
const { buildMongoConnection } = require('@verii/tests-helpers');
|
|
2
5
|
const { getMetrics } = require('../src/metrics/get-metrics');
|
|
3
6
|
const { initMongoClient } = require('../src/helpers/init-mongo-client');
|
|
@@ -8,7 +11,7 @@ describe('metrics test suite', () => {
|
|
|
8
11
|
let db;
|
|
9
12
|
let persistOffer;
|
|
10
13
|
|
|
11
|
-
|
|
14
|
+
before(async () => {
|
|
12
15
|
client = await initMongoClient(
|
|
13
16
|
buildMongoConnection('test-credentialagent')
|
|
14
17
|
);
|
|
@@ -16,7 +19,7 @@ describe('metrics test suite', () => {
|
|
|
16
19
|
persistOffer = persistOfferFactory(db);
|
|
17
20
|
});
|
|
18
21
|
|
|
19
|
-
|
|
22
|
+
after(async () => {
|
|
20
23
|
await client.close();
|
|
21
24
|
});
|
|
22
25
|
|
package/test/offers.test.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
const { after, before, beforeEach, describe, it } = require('node:test');
|
|
2
|
+
const { expect } = require('expect');
|
|
3
|
+
|
|
1
4
|
const { buildMongoConnection } = require('@verii/tests-helpers');
|
|
2
5
|
const {
|
|
3
6
|
updateOfferExpirationDates,
|
|
@@ -9,12 +12,12 @@ describe('offers test suite', () => {
|
|
|
9
12
|
let client;
|
|
10
13
|
let db;
|
|
11
14
|
let persistOffer;
|
|
12
|
-
|
|
15
|
+
before(async () => {
|
|
13
16
|
client = await initMongoClient(buildMongoConnection('test-mockvendor'));
|
|
14
17
|
db = client.db();
|
|
15
18
|
persistOffer = persistOfferFactory(db);
|
|
16
19
|
});
|
|
17
|
-
|
|
20
|
+
after(async () => {
|
|
18
21
|
await client.close();
|
|
19
22
|
});
|
|
20
23
|
beforeEach(async () => {
|
package/test/pii-purge.test.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
const { after, before, beforeEach, describe, it } = require('node:test');
|
|
2
|
+
const { expect } = require('expect');
|
|
3
|
+
|
|
1
4
|
const { buildMongoConnection } = require('@verii/tests-helpers');
|
|
2
5
|
const {
|
|
3
6
|
removePiiFromFinalizedOffers,
|
|
@@ -12,14 +15,14 @@ describe('pii-purge test suite', () => {
|
|
|
12
15
|
let client;
|
|
13
16
|
let db;
|
|
14
17
|
let persistOffer;
|
|
15
|
-
|
|
18
|
+
before(async () => {
|
|
16
19
|
client = await initMongoClient(
|
|
17
20
|
buildMongoConnection('test-credentialagent')
|
|
18
21
|
);
|
|
19
22
|
db = client.db();
|
|
20
23
|
persistOffer = persistOfferFactory(db);
|
|
21
24
|
});
|
|
22
|
-
|
|
25
|
+
after(async () => {
|
|
23
26
|
await client.close();
|
|
24
27
|
});
|
|
25
28
|
beforeEach(async () => {
|
package/test/rotate-key.test.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
const { after, before, beforeEach, describe, it } = require('node:test');
|
|
2
|
+
const { expect } = require('expect');
|
|
3
|
+
|
|
1
4
|
const { buildMongoConnection } = require('@verii/tests-helpers');
|
|
2
5
|
const { ObjectId } = require('mongodb');
|
|
3
6
|
const { decryptCollection, encryptCollection } = require('@verii/crypto');
|
|
@@ -66,7 +69,7 @@ describe('rotate-key test suite', () => {
|
|
|
66
69
|
let persistTenant;
|
|
67
70
|
let testOptions;
|
|
68
71
|
|
|
69
|
-
|
|
72
|
+
before(async () => {
|
|
70
73
|
client = await initMongoClient(
|
|
71
74
|
buildMongoConnection('test-credentialagent')
|
|
72
75
|
);
|
|
@@ -76,7 +79,7 @@ describe('rotate-key test suite', () => {
|
|
|
76
79
|
persistTenant = persistTenantFactory(db);
|
|
77
80
|
});
|
|
78
81
|
|
|
79
|
-
|
|
82
|
+
after(async () => {
|
|
80
83
|
await client.close();
|
|
81
84
|
});
|
|
82
85
|
|
package/jest.config.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023 Velocity Team
|
|
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
|
-
*/
|
|
16
|
-
|
|
17
|
-
const jestConfig = require('../../jest.config.base');
|
|
18
|
-
const pack = require('./package.json');
|
|
19
|
-
|
|
20
|
-
module.exports = jestConfig(pack.name);
|