@sports-alliance/sports-lib 7.0.5 → 7.0.7

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.
Files changed (43) hide show
  1. package/.vscode/launch.json +49 -0
  2. package/.vscode/tasks.json +34 -0
  3. package/lib/cjs/data/data.array.d.ts +3 -2
  4. package/lib/cjs/data/data.array.js +1 -1
  5. package/lib/cjs/data/data.bare.d.ts +1 -2
  6. package/lib/cjs/data/data.d.ts +5 -5
  7. package/lib/cjs/data/data.number.d.ts +2 -1
  8. package/lib/cjs/data/data.position.d.ts +3 -2
  9. package/lib/cjs/data/data.position.js +1 -1
  10. package/lib/cjs/data/data.string.d.ts +3 -2
  11. package/lib/cjs/data/data.string.js +1 -1
  12. package/lib/cjs/package.json +1 -0
  13. package/lib/cjs/specs/fixtures/streams/strava/rides/3171472783.json +52534 -0
  14. package/lib/cjs/specs/fixtures/streams/strava/rides/3171487458.json +78818 -0
  15. package/lib/cjs/specs/fixtures/streams/strava/rides/343080886.json +105090 -0
  16. package/lib/cjs/specs/fixtures/streams/strava/rides/5910143591.json +110711 -0
  17. package/lib/cjs/specs/fixtures/streams/strava/runs/2451375851.json +74846 -0
  18. package/lib/cjs/specs/fixtures/streams/strava/runs/2709634581.json +66817 -0
  19. package/lib/cjs/specs/fixtures/streams/strava/runs/3156040843.json +17594 -0
  20. package/lib/cjs/specs/fixtures/streams/strava/runs/3182900697.json +17322 -0
  21. package/lib/cjs/specs/fixtures/streams/strava/runs/3183465494.json +20463 -0
  22. package/lib/cjs/specs/fixtures/streams/strava/runs/3183490558.json +58202 -0
  23. package/lib/esm/data/data.array.d.ts +3 -2
  24. package/lib/esm/data/data.array.js +1 -1
  25. package/lib/esm/data/data.bare.d.ts +1 -2
  26. package/lib/esm/data/data.d.ts +5 -5
  27. package/lib/esm/data/data.number.d.ts +2 -1
  28. package/lib/esm/data/data.position.d.ts +3 -2
  29. package/lib/esm/data/data.position.js +1 -1
  30. package/lib/esm/data/data.string.d.ts +3 -2
  31. package/lib/esm/data/data.string.js +1 -1
  32. package/lib/esm/package.json +1 -0
  33. package/lib/esm/specs/fixtures/streams/strava/rides/3171472783.json +52534 -0
  34. package/lib/esm/specs/fixtures/streams/strava/rides/3171487458.json +78818 -0
  35. package/lib/esm/specs/fixtures/streams/strava/rides/343080886.json +105090 -0
  36. package/lib/esm/specs/fixtures/streams/strava/rides/5910143591.json +110711 -0
  37. package/lib/esm/specs/fixtures/streams/strava/runs/2451375851.json +74846 -0
  38. package/lib/esm/specs/fixtures/streams/strava/runs/2709634581.json +66817 -0
  39. package/lib/esm/specs/fixtures/streams/strava/runs/3156040843.json +17594 -0
  40. package/lib/esm/specs/fixtures/streams/strava/runs/3182900697.json +17322 -0
  41. package/lib/esm/specs/fixtures/streams/strava/runs/3183465494.json +20463 -0
  42. package/lib/esm/specs/fixtures/streams/strava/runs/3183490558.json +58202 -0
  43. package/package.json +2 -2
@@ -0,0 +1,49 @@
1
+ {
2
+ "version": "0.2.0",
3
+ "configurations": [
4
+ {
5
+ "name": "Run Watch Mode",
6
+ "type": "node",
7
+ "request": "launch",
8
+ "runtimeExecutable": "npm",
9
+ "runtimeArgs": [
10
+ "run",
11
+ "watch"
12
+ ],
13
+ "console": "integratedTerminal"
14
+ },
15
+ {
16
+ "type": "pwa-node",
17
+ "request": "launch",
18
+ "name": "Debug Jest Tests",
19
+ "program": "${workspaceFolder}/node_modules/.bin/jest",
20
+ "args": [
21
+ "--runInBand",
22
+ "--watchAll=false"
23
+ ],
24
+ "console": "integratedTerminal",
25
+ "internalConsoleOptions": "neverOpen",
26
+ "disableOptimisticBPs": true,
27
+ "windows": {
28
+ "program": "${workspaceFolder}/node_modules/jest/bin/jest.js"
29
+ }
30
+ },
31
+ {
32
+ "type": "pwa-node",
33
+ "request": "launch",
34
+ "name": "Debug Current Test File",
35
+ "program": "${workspaceFolder}/node_modules/.bin/jest",
36
+ "args": [
37
+ "${fileBasenameNoExtension}",
38
+ "--runInBand",
39
+ "--watchAll=false"
40
+ ],
41
+ "console": "integratedTerminal",
42
+ "internalConsoleOptions": "neverOpen",
43
+ "disableOptimisticBPs": true,
44
+ "windows": {
45
+ "program": "${workspaceFolder}/node_modules/jest/bin/jest.js"
46
+ }
47
+ }
48
+ ]
49
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "tasks": [
4
+ {
5
+ "type": "npm",
6
+ "script": "build",
7
+ "group": "build",
8
+ "problemMatcher": [],
9
+ "label": "npm: build",
10
+ "detail": "npm run clean && tsc --project tsconfig.lib.json"
11
+ },
12
+ {
13
+ "type": "npm",
14
+ "script": "watch",
15
+ "group": "build",
16
+ "isBackground": true,
17
+ "problemMatcher": {
18
+ "owner": "typescript",
19
+ "pattern": "$tsc",
20
+ "background": {
21
+ "activeOnStart": true,
22
+ "beginsPattern": {
23
+ "regexp": "^.*Starting compilation in watch mode.*$"
24
+ },
25
+ "endsPattern": {
26
+ "regexp": "^.*Found [0-9]+ errors.*$"
27
+ }
28
+ }
29
+ },
30
+ "label": "npm: watch",
31
+ "detail": "npm run build -- --watch"
32
+ }
33
+ ]
34
+ }
@@ -1,6 +1,7 @@
1
1
  import { DataBare } from './data.bare';
2
- export declare abstract class DataArray extends DataBare<string[]> {
2
+ export declare abstract class DataArray extends DataBare {
3
+ protected value: string[];
3
4
  constructor(value: string[]);
4
- getValue(formatForDataType?: string): string[];
5
+ getValue(): string[];
5
6
  isValueTypeValid(value: any): boolean;
6
7
  }
@@ -7,7 +7,7 @@ class DataArray extends data_bare_1.DataBare {
7
7
  super(value);
8
8
  this.value = value;
9
9
  }
10
- getValue(formatForDataType) {
10
+ getValue() {
11
11
  return this.value;
12
12
  }
13
13
  isValueTypeValid(value) {
@@ -1,5 +1,4 @@
1
1
  import { Data } from './data';
2
- import { DataPositionInterface } from './data.position.interface';
3
- export declare abstract class DataBare<T extends number | string | boolean | string[] | DataPositionInterface = number | string | boolean | string[] | DataPositionInterface> extends Data<T> {
2
+ export declare abstract class DataBare extends Data {
4
3
  static unit: string;
5
4
  }
@@ -1,15 +1,15 @@
1
1
  import { DataInterface, UnitSystem } from './data.interface';
2
2
  import { DataJSONInterface } from './data.json.interface';
3
3
  import { DataPositionInterface } from './data.position.interface';
4
- export declare abstract class Data<T extends number | string | boolean | string[] | DataPositionInterface = number | string | boolean | string[] | DataPositionInterface> implements DataInterface {
4
+ export declare abstract class Data implements DataInterface {
5
5
  static type: string;
6
6
  static unit: string;
7
7
  static displayType?: string;
8
8
  static unitSystem: UnitSystem;
9
- protected value: T;
10
- protected constructor(value: T);
11
- setValue(value: number | string | boolean | string[] | DataPositionInterface): this;
12
- getValue(formatForDataType?: string): T;
9
+ protected value: number | string | boolean | string[] | DataPositionInterface;
10
+ protected constructor(value: string | number | boolean | string[] | DataPositionInterface);
11
+ setValue(value: string | number | boolean | string[] | DataPositionInterface): this;
12
+ getValue(formatForDataType?: string): string | number | boolean | string[] | DataPositionInterface;
13
13
  getDisplayValue(): number | string | string[];
14
14
  getType(): string;
15
15
  getUnit(): string;
@@ -1,5 +1,6 @@
1
1
  import { DataBare } from './data.bare';
2
- export declare abstract class DataNumber extends DataBare<number> {
2
+ export declare abstract class DataNumber extends DataBare {
3
+ protected value: number;
3
4
  constructor(value: number);
4
5
  getValue(formatForDataType?: string): number;
5
6
  isValueTypeValid(value: any): boolean;
@@ -1,9 +1,10 @@
1
1
  import { DataBare } from './data.bare';
2
2
  import { DataPositionInterface } from './data.position.interface';
3
- export declare class DataPosition extends DataBare<DataPositionInterface> {
3
+ export declare class DataPosition extends DataBare {
4
4
  static type: string;
5
+ protected value: DataPositionInterface;
5
6
  constructor(value: DataPositionInterface);
6
- getValue(formatForDataType?: string): DataPositionInterface;
7
+ getValue(): DataPositionInterface;
7
8
  getDisplayValue(): string;
8
9
  isValueTypeValid(value: any): boolean;
9
10
  }
@@ -8,7 +8,7 @@ class DataPosition extends data_bare_1.DataBare {
8
8
  super(value);
9
9
  this.value = value;
10
10
  }
11
- getValue(formatForDataType) {
11
+ getValue() {
12
12
  return this.value;
13
13
  }
14
14
  getDisplayValue() {
@@ -1,6 +1,7 @@
1
1
  import { DataBare } from './data.bare';
2
- export declare abstract class DataString extends DataBare<string> {
2
+ export declare abstract class DataString extends DataBare {
3
+ protected value: string;
3
4
  constructor(value: string);
4
- getValue(formatForDataType?: string): string;
5
+ getValue(): string;
5
6
  isValueTypeValid(value: any): boolean;
6
7
  }
@@ -7,7 +7,7 @@ class DataString extends data_bare_1.DataBare {
7
7
  super(value);
8
8
  this.value = value;
9
9
  }
10
- getValue(formatForDataType) {
10
+ getValue() {
11
11
  return this.value;
12
12
  }
13
13
  isValueTypeValid(value) {
@@ -0,0 +1 @@
1
+ {"type": "commonjs"}