@d-najd/universal-media-tracker-sdk 0.3.0 → 0.3.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.
@@ -1,9 +1,6 @@
1
1
  export default interface Navigator {
2
- screens: any[];
2
+ screens: NavigatorEntry[];
3
3
  push(path: string): void;
4
- /**
5
- * @return path
6
- */
7
- pop(): string;
4
+ pop(): void;
8
5
  replace(path: string): void;
9
6
  }
@@ -0,0 +1,5 @@
1
+ type NavigatorEntry = {
2
+ state: any;
3
+ path: string;
4
+ pattern: string;
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";
@@ -6,7 +6,7 @@ type CreateScreenHandler<S = any> = BaseHandler<ScreenHandlerArgs<S>, ScreenHand
6
6
  /**
7
7
  * /library/:id
8
8
  */
9
- readonly path: string;
9
+ readonly pattern: string;
10
10
  /**
11
11
  * If undefined screen state won't be stored
12
12
  */
@@ -9,10 +9,10 @@ type ScreenHandlerArgs<S = any> = {
9
9
  /**
10
10
  * /library/1
11
11
  */
12
- readonly resolvedPath: string;
12
+ readonly path: string;
13
13
  /**
14
14
  * /library/:id
15
15
  */
16
- readonly path: string;
16
+ readonly pattern: string;
17
17
  };
18
18
  export default ScreenHandlerArgs;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d-najd/universal-media-tracker-sdk",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [