@guardian/commercial-core 0.0.0-beta-20260119180836 → 0.0.0-beta-20260121172637
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/README.md +9 -0
- package/dist/cjs/types.d.ts +1 -1
- package/dist/cjs/types.js +1 -1
- package/dist/esm/types.d.ts +1 -1
- package/dist/esm/types.js +1 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -22,6 +22,15 @@ pnpm build
|
|
|
22
22
|
|
|
23
23
|
This will build the package into the `dist` directory, which is what is published to npm.
|
|
24
24
|
|
|
25
|
+
### Testing
|
|
26
|
+
|
|
27
|
+
To run the unit tests:
|
|
28
|
+
|
|
29
|
+
`pnpm test`
|
|
30
|
+
|
|
31
|
+
This might fail if the base test coverage hasn't been met. This is set in jest.config.js. Ensure you add sufficient tests to meet the threshold if you can. If this is not possible for whatever reason, you can decrease the set thresholds but this should be considered a last resort
|
|
32
|
+
|
|
33
|
+
|
|
25
34
|
#### Beta Releases
|
|
26
35
|
You can add the [beta] @guardian/commercial-core label to your pull request, this will release a beta version of the bundle to NPM, the exact version will be commented on your PR.
|
|
27
36
|
|
package/dist/cjs/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { EventPayload } from '@guardian/ophan-tracker-js';
|
|
2
2
|
import type { AdSize, SizeMapping } from './ad-sizes.js';
|
|
3
3
|
import type { PageTargeting } from './targeting/build-page-targeting.js';
|
|
4
|
-
import '
|
|
4
|
+
import '@types/google-publisher-tag';
|
|
5
5
|
type HeaderBiddingSize = AdSize;
|
|
6
6
|
interface Advert {
|
|
7
7
|
id: string;
|
package/dist/cjs/types.js
CHANGED
package/dist/esm/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { EventPayload } from '@guardian/ophan-tracker-js';
|
|
2
2
|
import type { AdSize, SizeMapping } from './ad-sizes.js';
|
|
3
3
|
import type { PageTargeting } from './targeting/build-page-targeting.js';
|
|
4
|
-
import '
|
|
4
|
+
import '@types/google-publisher-tag';
|
|
5
5
|
type HeaderBiddingSize = AdSize;
|
|
6
6
|
interface Advert {
|
|
7
7
|
id: string;
|
package/dist/esm/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guardian/commercial-core",
|
|
3
|
-
"version": "0.0.0-beta-
|
|
3
|
+
"version": "0.0.0-beta-20260121172637",
|
|
4
4
|
"description": "Guardian advertising business logic",
|
|
5
5
|
"homepage": "https://github.com/guardian/commercial#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@guardian/ab-core": "9.0.0",
|
|
40
|
-
"@guardian/libs": "27.0.0"
|
|
41
|
-
"@types/google-publisher-tag": "~1.20251117.0"
|
|
40
|
+
"@guardian/libs": "27.0.0"
|
|
42
41
|
},
|
|
43
42
|
"devDependencies": {
|
|
44
43
|
"@guardian/ophan-tracker-js": "2.6.3",
|
|
44
|
+
"@types/google-publisher-tag": "~1.20251117.0",
|
|
45
45
|
"@types/jest": "30.0.0",
|
|
46
46
|
"@types/node": "24.10.1",
|
|
47
47
|
"jest": "^30.2.0",
|
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
"prettier:check": "prettier . --check --cache",
|
|
65
65
|
"prettier:fix": "prettier . --write --cache",
|
|
66
66
|
"test": "jest",
|
|
67
|
+
"test-cov": "jest --coverage",
|
|
67
68
|
"tsc": "tsc --noEmit"
|
|
68
69
|
}
|
|
69
70
|
}
|