@gooddata/util 11.18.0-alpha.4 → 11.18.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.
- package/esm/index.d.ts +5 -7
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +5 -6
- package/esm/index.js.map +1 -1
- package/esm/stringUtils.d.ts.map +1 -1
- package/esm/stringUtils.js +1 -1
- package/esm/stringUtils.js.map +1 -1
- package/esm/tsdoc-metadata.json +1 -1
- package/esm/util.d.ts +13 -57
- package/package.json +3 -3
package/esm/index.d.ts
CHANGED
|
@@ -6,12 +6,10 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @packageDocumentation
|
|
8
8
|
*/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
export { shiftArrayRight } from "./arrayUtils.js";
|
|
10
|
+
export { shallowEqualObjects } from "./objectUtils.js";
|
|
11
|
+
export { type IShortenTextOptions, hashCodeString, randomString, shortenText, escapeRegExp, simplifyText, parseStringToArray, } from "./stringUtils.js";
|
|
12
|
+
export { removeMetadata, sanitizeLocaleForMoment } from "./translationUtils.js";
|
|
13
|
+
export { type GuardType, type EmptyObject, combineGuards } from "./typesUtils.js";
|
|
14
14
|
export { type MatcherFunction, type ConsoleFunction, type Matcher, type SpecificMatcherFunction, type ConsoleType, delay, suppressConsole, } from "./testUtils.js";
|
|
15
|
-
export { stringUtils, translationUtils, arrayUtils, objectUtils, typesUtils };
|
|
16
|
-
export type { EmptyObject } from "./typesUtils.js";
|
|
17
15
|
//# sourceMappingURL=index.d.ts.map
|
package/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EACH,KAAK,mBAAmB,EACxB,cAAc,EACd,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,kBAAkB,GACrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,WAAW,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAClF,OAAO,EACH,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,OAAO,EACZ,KAAK,uBAAuB,EAC5B,KAAK,WAAW,EAChB,KAAK,EACL,eAAe,GAClB,MAAM,gBAAgB,CAAC"}
|
package/esm/index.js
CHANGED
|
@@ -8,11 +8,10 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @packageDocumentation
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
export { shiftArrayRight } from "./arrayUtils.js";
|
|
12
|
+
export { shallowEqualObjects } from "./objectUtils.js";
|
|
13
|
+
export { hashCodeString, randomString, shortenText, escapeRegExp, simplifyText, parseStringToArray, } from "./stringUtils.js";
|
|
14
|
+
export { removeMetadata, sanitizeLocaleForMoment } from "./translationUtils.js";
|
|
15
|
+
export { combineGuards } from "./typesUtils.js";
|
|
16
16
|
export { delay, suppressConsole, } from "./testUtils.js";
|
|
17
|
-
export { stringUtils, translationUtils, arrayUtils, objectUtils, typesUtils };
|
|
18
17
|
//# sourceMappingURL=index.js.map
|
package/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,oDAAoD;AAEpD;;;;;;;GAOG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,oDAAoD;AAEpD;;;;;;;GAOG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAEH,cAAc,EACd,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,kBAAkB,GACrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAoC,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAClF,OAAO,EAMH,KAAK,EACL,eAAe,GAClB,MAAM,gBAAgB,CAAC"}
|
package/esm/stringUtils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stringUtils.d.ts","sourceRoot":"","sources":["../src/stringUtils.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,GAAE,mBAAwB,GAAG,MAAM,CAQpF;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAElD;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAOhD;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,MAAM,CAGlE;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAe/D;AAED;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"stringUtils.d.ts","sourceRoot":"","sources":["../src/stringUtils.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,GAAE,mBAAwB,GAAG,MAAM,CAQpF;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAElD;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAOhD;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,MAAM,CAGlE;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAe/D;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAYpD"}
|
package/esm/stringUtils.js
CHANGED
package/esm/stringUtils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stringUtils.js","sourceRoot":"","sources":["../src/stringUtils.ts"],"names":[],"mappings":"AAAA,qCAAqC;AASrC;;;;;;;;;GASG;AACH,MAAM,UAAU,WAAW,CAAC,KAAa,EAAE,UAA+B,EAAE;IACxE,MAAM,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;IAE9B,IAAI,KAAK,IAAI,SAAS,IAAI,KAAK,CAAC,MAAM,GAAG,SAAS,EAAE,CAAC;QACjD,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC;IAC5C,CAAC;IAED,OAAO,KAAK,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
export { arrayUtils }
|
|
16
|
-
|
|
17
10
|
/**
|
|
18
11
|
* Returns combine guard from input guards as a result type is union type of guarded types
|
|
19
12
|
* Its good for array filtering base on multiple guards and its return correct result union type
|
|
20
13
|
*
|
|
21
14
|
* @internal
|
|
22
15
|
*/
|
|
23
|
-
declare function combineGuards<T extends ((x: unknown) => x is unknown)[]>(...guards: T): (x: unknown) => x is GuardType<T[number]>;
|
|
16
|
+
export declare function combineGuards<T extends ((x: unknown) => x is unknown)[]>(...guards: T): (x: unknown) => x is GuardType<T[number]>;
|
|
24
17
|
|
|
25
18
|
/**
|
|
26
19
|
* A console function, like log, warn or error
|
|
@@ -56,12 +49,12 @@ export declare type EmptyObject = Record<never, never>;
|
|
|
56
49
|
*
|
|
57
50
|
* @internal
|
|
58
51
|
*/
|
|
59
|
-
declare function escapeRegExp(value: string): string;
|
|
52
|
+
export declare function escapeRegExp(value: string): string;
|
|
60
53
|
|
|
61
54
|
/**
|
|
62
55
|
* @internal
|
|
63
56
|
*/
|
|
64
|
-
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;
|
|
65
58
|
|
|
66
59
|
/**
|
|
67
60
|
* Returns a hash code for a string.
|
|
@@ -78,12 +71,12 @@ declare type GuardType<T> = T extends (o: unknown) => o is infer U ? U : never;
|
|
|
78
71
|
*
|
|
79
72
|
* @internal
|
|
80
73
|
*/
|
|
81
|
-
declare function hashCodeString(value: string): number;
|
|
74
|
+
export declare function hashCodeString(value: string): number;
|
|
82
75
|
|
|
83
76
|
/**
|
|
84
77
|
* @internal
|
|
85
78
|
*/
|
|
86
|
-
declare interface IShortenTextOptions {
|
|
79
|
+
export declare interface IShortenTextOptions {
|
|
87
80
|
maxLength?: number;
|
|
88
81
|
}
|
|
89
82
|
|
|
@@ -107,13 +100,6 @@ export declare type Matcher = {
|
|
|
107
100
|
*/
|
|
108
101
|
export declare type MatcherFunction = (console: Record<ConsoleType, ConsoleFunction>, type: ConsoleType, message: string) => boolean;
|
|
109
102
|
|
|
110
|
-
declare namespace objectUtils {
|
|
111
|
-
export {
|
|
112
|
-
shallowEqualObjects
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
export { objectUtils }
|
|
116
|
-
|
|
117
103
|
/**
|
|
118
104
|
* Parse string in a form of [foo, bar] to an array of objects.
|
|
119
105
|
* Assume alphanumeric strings in the array and spaces; if some is not alphanumeric , return null
|
|
@@ -122,7 +108,7 @@ export { objectUtils }
|
|
|
122
108
|
*
|
|
123
109
|
* @internal
|
|
124
110
|
*/
|
|
125
|
-
declare function parseStringToArray(str: string): string[] | null;
|
|
111
|
+
export declare function parseStringToArray(str: string): string[] | null;
|
|
126
112
|
|
|
127
113
|
/**
|
|
128
114
|
* Generates pseudo-random string.
|
|
@@ -132,7 +118,7 @@ declare function parseStringToArray(str: string): string[] | null;
|
|
|
132
118
|
*
|
|
133
119
|
* @internal
|
|
134
120
|
*/
|
|
135
|
-
declare function randomString(len: number): string;
|
|
121
|
+
export declare function randomString(len: number): string;
|
|
136
122
|
|
|
137
123
|
/**
|
|
138
124
|
* Given an object containing the parsed translation bundle, this function creates a new object which contains
|
|
@@ -141,7 +127,7 @@ declare function randomString(len: number): string;
|
|
|
141
127
|
* @param translationsWithMetadata - parsed translation bundle
|
|
142
128
|
* @internal
|
|
143
129
|
*/
|
|
144
|
-
declare function removeMetadata(translationsWithMetadata: Record<string, any>): Record<string, string>;
|
|
130
|
+
export declare function removeMetadata(translationsWithMetadata: Record<string, any>): Record<string, string>;
|
|
145
131
|
|
|
146
132
|
/**
|
|
147
133
|
* Handles difference between GD locale and moment.js locale identifiers
|
|
@@ -149,12 +135,12 @@ declare function removeMetadata(translationsWithMetadata: Record<string, any>):
|
|
|
149
135
|
* @param intlLocale - locale identifier
|
|
150
136
|
* @internal
|
|
151
137
|
*/
|
|
152
|
-
declare const sanitizeLocaleForMoment: (intlLocale: string) => string;
|
|
138
|
+
export declare const sanitizeLocaleForMoment: (intlLocale: string) => string;
|
|
153
139
|
|
|
154
140
|
/**
|
|
155
141
|
* @internal
|
|
156
142
|
*/
|
|
157
|
-
declare function shallowEqualObjects(objA: Record<string, any>, objB: Record<string, any>): boolean;
|
|
143
|
+
export declare function shallowEqualObjects(objA: Record<string, any>, objB: Record<string, any>): boolean;
|
|
158
144
|
|
|
159
145
|
/**
|
|
160
146
|
* Shift array once to the right
|
|
@@ -162,7 +148,7 @@ declare function shallowEqualObjects(objA: Record<string, any>, objB: Record<str
|
|
|
162
148
|
* @param array - some array
|
|
163
149
|
* @internal
|
|
164
150
|
*/
|
|
165
|
-
declare function shiftArrayRight<T>(array: Array<T>): Array<T>;
|
|
151
|
+
export declare function shiftArrayRight<T>(array: Array<T>): Array<T>;
|
|
166
152
|
|
|
167
153
|
/**
|
|
168
154
|
* Shortens string if it exceeds maximum length. If the shortening occurs, the ellipsis char will
|
|
@@ -174,7 +160,7 @@ declare function shiftArrayRight<T>(array: Array<T>): Array<T>;
|
|
|
174
160
|
*
|
|
175
161
|
* @internal
|
|
176
162
|
*/
|
|
177
|
-
declare function shortenText(value: string, options?: IShortenTextOptions): string;
|
|
163
|
+
export declare function shortenText(value: string, options?: IShortenTextOptions): string;
|
|
178
164
|
|
|
179
165
|
/**
|
|
180
166
|
* Replaces non-alphanumerical characters with underscore and lower-cases all characters.
|
|
@@ -184,7 +170,7 @@ declare function shortenText(value: string, options?: IShortenTextOptions): stri
|
|
|
184
170
|
*
|
|
185
171
|
* @internal
|
|
186
172
|
*/
|
|
187
|
-
declare function simplifyText(value: string | number | null): string;
|
|
173
|
+
export declare function simplifyText(value: string | number | null): string;
|
|
188
174
|
|
|
189
175
|
/**
|
|
190
176
|
* A specific matcher function
|
|
@@ -193,19 +179,6 @@ declare function simplifyText(value: string | number | null): string;
|
|
|
193
179
|
*/
|
|
194
180
|
export declare type SpecificMatcherFunction = (message: string) => boolean;
|
|
195
181
|
|
|
196
|
-
declare namespace stringUtils {
|
|
197
|
-
export {
|
|
198
|
-
shortenText,
|
|
199
|
-
escapeRegExp,
|
|
200
|
-
randomString,
|
|
201
|
-
simplifyText,
|
|
202
|
-
parseStringToArray,
|
|
203
|
-
hashCodeString,
|
|
204
|
-
IShortenTextOptions
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
export { stringUtils }
|
|
208
|
-
|
|
209
182
|
/**
|
|
210
183
|
* Suppresses certain console outputs
|
|
211
184
|
*
|
|
@@ -227,21 +200,4 @@ export declare function suppressConsole<T>(fn: () => T | Promise<T>, type?: Cons
|
|
|
227
200
|
*/
|
|
228
201
|
export declare function suppressConsole<T>(fn: () => T | Promise<T>, matcherFn: MatcherFunction): T | Promise<T>;
|
|
229
202
|
|
|
230
|
-
declare namespace translationUtils {
|
|
231
|
-
export {
|
|
232
|
-
removeMetadata,
|
|
233
|
-
sanitizeLocaleForMoment
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
export { translationUtils }
|
|
237
|
-
|
|
238
|
-
declare namespace typesUtils {
|
|
239
|
-
export {
|
|
240
|
-
combineGuards,
|
|
241
|
-
GuardType,
|
|
242
|
-
EmptyObject
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
export { typesUtils }
|
|
246
|
-
|
|
247
203
|
export { }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/util",
|
|
3
|
-
"version": "11.18.0-alpha.
|
|
3
|
+
"version": "11.18.0-alpha.6",
|
|
4
4
|
"description": "GoodData Utility Functions",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@microsoft/api-documenter": "^7.17.0",
|
|
30
|
-
"@microsoft/api-extractor": "^7.
|
|
30
|
+
"@microsoft/api-extractor": "^7.55.2",
|
|
31
31
|
"@types/lodash-es": "^4.17.12",
|
|
32
32
|
"@typescript-eslint/eslint-plugin": "8.52.0",
|
|
33
33
|
"@typescript-eslint/parser": "8.52.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"prettier": "^3.6.2",
|
|
49
49
|
"typescript": "5.9.3",
|
|
50
50
|
"vitest": "4.0.8",
|
|
51
|
-
"@gooddata/eslint-config": "11.18.0-alpha.
|
|
51
|
+
"@gooddata/eslint-config": "11.18.0-alpha.6"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"_phase:build": "npm run build",
|