@adobe/spacecat-shared-data-access 1.1.0 → 1.1.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 +2 -2
- package/src/models/audit.js +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-data-access-v1.1.1](https://github.com/adobe-rnd/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.1.0...@adobe/spacecat-shared-data-access-v1.1.1) (2023-12-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* distinguish lhs-mobile vs lhs-desktop ([#27](https://github.com/adobe-rnd/spacecat-shared/issues/27)) ([18fd1b1](https://github.com/adobe-rnd/spacecat-shared/commit/18fd1b18ae400c32bbb3a175f7d6a6cde104f4a1))
|
|
7
|
+
|
|
1
8
|
# [@adobe/spacecat-shared-data-access-v1.1.0](https://github.com/adobe-rnd/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.0.2...@adobe/spacecat-shared-data-access-v1.1.0) (2023-12-02)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/spacecat-shared-data-access",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Shared modules of the Spacecat Services - Data Access",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "src/
|
|
6
|
+
"main": "src/index.js",
|
|
7
7
|
"types": "src/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"test:it": "mocha --spec \"test/it/**/*.test.js\"",
|
package/src/models/audit.js
CHANGED
|
@@ -14,13 +14,15 @@ import { hasText, isIsoDate, isObject } from '@adobe/spacecat-shared-utils';
|
|
|
14
14
|
import { Base } from './base.js';
|
|
15
15
|
|
|
16
16
|
export const AUDIT_TYPE_CWV = 'cwv';
|
|
17
|
-
export const
|
|
17
|
+
export const AUDIT_TYPE_LHS_DESKTOP = 'lhs-desktop';
|
|
18
|
+
export const AUDIT_TYPE_LHS_MOBILE = 'lhs-mobile';
|
|
18
19
|
|
|
19
20
|
const EXPIRES_IN_DAYS = 30;
|
|
20
21
|
|
|
21
22
|
const AUDIT_TYPE_PROPERTIES = {
|
|
22
23
|
[AUDIT_TYPE_CWV]: [],
|
|
23
|
-
[
|
|
24
|
+
[AUDIT_TYPE_LHS_DESKTOP]: ['performance', 'seo', 'accessibility', 'best-practices'],
|
|
25
|
+
[AUDIT_TYPE_LHS_MOBILE]: ['performance', 'seo', 'accessibility', 'best-practices'],
|
|
24
26
|
};
|
|
25
27
|
|
|
26
28
|
/**
|