@feasibleone/blong-gogo 1.14.0 → 1.14.1
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 +7 -0
- package/package.json +1 -1
- package/src/codec/test/test/testCodecMle.ts +18 -29
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.14.1](https://github.com/feasibleone/blong/compare/blong-gogo-v1.14.0...blong-gogo-v1.14.1) (2026-03-23)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* types and remove duplicated code ([cb5eb2b](https://github.com/feasibleone/blong/commit/cb5eb2bc7898cee6256317667a39d95e05186316))
|
|
9
|
+
|
|
3
10
|
## [1.14.0](https://github.com/feasibleone/blong/compare/blong-gogo-v1.13.8...blong-gogo-v1.14.0) (2026-03-20)
|
|
4
11
|
|
|
5
12
|
|
package/package.json
CHANGED
|
@@ -2,32 +2,21 @@ import {handler, type IMeta} from '@feasibleone/blong/types';
|
|
|
2
2
|
import type Assert from 'node:assert';
|
|
3
3
|
|
|
4
4
|
const DAY = 24 * 60 * 60 * 1000;
|
|
5
|
-
export default handler(
|
|
6
|
-
({
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
(await subjectTime({area: 'Europe', location: 'Sofia'}, $meta)) as {
|
|
24
|
-
abbreviation: string;
|
|
25
|
-
}
|
|
26
|
-
).abbreviation,
|
|
27
|
-
/^EEST|EET|UTC$/,
|
|
28
|
-
'Return date and time',
|
|
29
|
-
);
|
|
30
|
-
},
|
|
31
|
-
]),
|
|
32
|
-
}),
|
|
33
|
-
);
|
|
5
|
+
export default handler(({lib: {group}, handler: {testLoginTokenCreate, subjectAge}}) => ({
|
|
6
|
+
testCodecMle: ({name = 'Message Level Encryption'}: {name?: string}, $meta) =>
|
|
7
|
+
group(name)([
|
|
8
|
+
testLoginTokenCreate({}, $meta),
|
|
9
|
+
async function mle(assert: typeof Assert, {$meta}: {$meta: IMeta}) {
|
|
10
|
+
assert.deepStrictEqual(
|
|
11
|
+
await subjectAge({birthDate: new Date(Date.now() - DAY)}, $meta),
|
|
12
|
+
{age: 0},
|
|
13
|
+
'Return age',
|
|
14
|
+
);
|
|
15
|
+
assert.deepStrictEqual(
|
|
16
|
+
await subjectAge({birthDate: new Date(Date.now() - 367 * DAY)}, $meta),
|
|
17
|
+
{age: 1},
|
|
18
|
+
'Return age',
|
|
19
|
+
);
|
|
20
|
+
},
|
|
21
|
+
]),
|
|
22
|
+
}));
|