@guardian/commercial-core 4.7.0 → 4.8.0

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.
@@ -22,6 +22,7 @@ declare class AdSize extends Array<number> {
22
22
  readonly [1]: number;
23
23
  constructor([width, height]: [number, number]);
24
24
  toString(): AdSizeString;
25
+ toArray(): number[];
25
26
  get width(): number;
26
27
  get height(): number;
27
28
  }
@@ -28,6 +28,9 @@ class AdSize extends Array {
28
28
  ? 'fluid'
29
29
  : `${this.width},${this.height}`;
30
30
  }
31
+ toArray() {
32
+ return [this[0], this[1]];
33
+ }
31
34
  get width() {
32
35
  return this[0];
33
36
  }
@@ -22,6 +22,7 @@ declare class AdSize extends Array<number> {
22
22
  readonly [1]: number;
23
23
  constructor([width, height]: [number, number]);
24
24
  toString(): AdSizeString;
25
+ toArray(): number[];
25
26
  get width(): number;
26
27
  get height(): number;
27
28
  }
@@ -25,6 +25,9 @@ class AdSize extends Array {
25
25
  ? 'fluid'
26
26
  : `${this.width},${this.height}`;
27
27
  }
28
+ toArray() {
29
+ return [this[0], this[1]];
30
+ }
28
31
  get width() {
29
32
  return this[0];
30
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guardian/commercial-core",
3
- "version": "4.7.0",
3
+ "version": "4.8.0",
4
4
  "description": "Guardian advertising business logic",
5
5
  "homepage": "https://github.com/guardian/commercial-core#readme",
6
6
  "bugs": {