@gooddata/util 11.19.0-alpha.4 → 11.19.0-alpha.6

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,7 +1,7 @@
1
1
  /**
2
2
  * @internal
3
3
  */
4
- export type GuardType<T> = T extends (o: unknown) => o is infer U ? U : never;
4
+ export type GuardType<T> = T extends ((o: unknown) => o is infer U) ? U : never;
5
5
  /**
6
6
  * Returns combine guard from input guards as a result type is union type of guarded types
7
7
  * Its good for array filtering base on multiple guards and its return correct result union type
@@ -1 +1 @@
1
- {"version":3,"file":"typesUtils.d.ts","sourceRoot":"","sources":["../src/typesUtils.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,OAAO,KAAK,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAE9E;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,OAAO,KAAK,CAAC,IAAI,OAAO,CAAC,EAAE,EACpE,GAAG,MAAM,EAAE,CAAC,GACb,CAAC,CAAC,EAAE,OAAO,KAAK,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAI3C;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"typesUtils.d.ts","sourceRoot":"","sources":["../src/typesUtils.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,OAAO,KAAK,CAAC,IAAI,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAEhF;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,OAAO,KAAK,CAAC,IAAI,OAAO,CAAC,EAAE,EACpE,GAAG,MAAM,EAAE,CAAC,GACb,CAAC,CAAC,EAAE,OAAO,KAAK,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAI3C;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC"}
package/esm/util.d.ts CHANGED
@@ -54,7 +54,7 @@ export declare function escapeRegExp(value: string): string;
54
54
  /**
55
55
  * @internal
56
56
  */
57
- export declare type GuardType<T> = T extends (o: unknown) => o is infer U ? U : never;
57
+ export declare type GuardType<T> = T extends ((o: unknown) => o is infer U) ? U : never;
58
58
 
59
59
  /**
60
60
  * Returns a hash code for a string.
package/package.json CHANGED
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "name": "@gooddata/util",
3
- "version": "11.19.0-alpha.4",
3
+ "version": "11.19.0-alpha.6",
4
4
  "description": "GoodData Utility Functions",
5
+ "license": "MIT",
6
+ "author": "GoodData",
5
7
  "repository": {
6
8
  "type": "git",
7
9
  "url": "https://github.com/gooddata/gooddata-ui-sdk.git",
8
10
  "directory": "libs/util"
9
11
  },
10
- "license": "MIT",
11
- "author": "GoodData",
12
- "sideEffects": false,
13
- "type": "module",
14
- "exports": "./esm/index.js",
15
- "browser": "./esm/index.js",
16
- "types": "./esm/index.d.ts",
17
12
  "files": [
18
13
  "esm/**/*.js",
19
14
  "esm/**/*.json",
20
15
  "esm/**/*.d.ts",
21
16
  "esm/**/*.map"
22
17
  ],
18
+ "type": "module",
19
+ "sideEffects": false,
20
+ "browser": "./esm/index.js",
21
+ "types": "./esm/index.d.ts",
22
+ "exports": "./esm/index.js",
23
23
  "dependencies": {
24
24
  "lodash-es": "^4.17.23",
25
25
  "ts-invariant": "^0.7.5",
@@ -41,10 +41,10 @@
41
41
  "eslint-plugin-no-only-tests": "3.3.0",
42
42
  "eslint-plugin-sonarjs": "3.0.6",
43
43
  "npm-run-all": "^4.1.5",
44
- "prettier": "^3.6.2",
44
+ "oxfmt": "0.27.0",
45
45
  "typescript": "5.9.3",
46
46
  "vitest": "4.0.8",
47
- "@gooddata/eslint-config": "11.19.0-alpha.4"
47
+ "@gooddata/eslint-config": "11.19.0-alpha.6"
48
48
  },
49
49
  "scripts": {
50
50
  "_phase:build": "npm run build",
@@ -58,11 +58,11 @@
58
58
  "dep-cruiser": "depcruise --validate .dependency-cruiser.cjs --output-type err-long src/",
59
59
  "eslint": "eslint .",
60
60
  "eslint-fix": "eslint . --fix",
61
- "prettier-check": "prettier --check .",
62
- "prettier-write": "prettier --write .",
61
+ "oxfmt-check": "oxfmt --check .",
62
+ "oxfmt-write": "oxfmt .",
63
63
  "test": "vitest watch",
64
64
  "test-once": "vitest run",
65
- "validate": "npm run eslint && npm run dep-cruiser && npm run prettier-check",
65
+ "validate": "npm run eslint && npm run dep-cruiser && npm run oxfmt-check",
66
66
  "validate-esm": "node --input-type=module --eval 'import \"@gooddata/util\"'"
67
67
  }
68
68
  }