@rh-support/utils 2.5.18 → 2.5.21
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/lib/esm/apiUtils.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare function getApiDeletionStatus(isDeleting?: boolean, isError?: boo
|
|
|
7
7
|
export declare function haventLoadedMetadata<T>(apiResponse: IApiResponseDetails<T>, isEmptyCallback?: (data: T) => boolean): boolean;
|
|
8
8
|
export declare function haventLoadedProductsMetadata(apiResponse: IApiResponseDetails<ITroubleshootProductResponse>): boolean;
|
|
9
9
|
/**
|
|
10
|
-
* we are trimming text as per limit set and then decode the string.
|
|
10
|
+
* we are trimming text as per limit set and then decode the string. test
|
|
11
11
|
* @param description Description string
|
|
12
12
|
* @param limit Limit to trim the string
|
|
13
13
|
* @returns
|
package/lib/esm/apiUtils.js
CHANGED
|
@@ -20,7 +20,7 @@ export function haventLoadedProductsMetadata(apiResponse) {
|
|
|
20
20
|
return isEmpty(apiResponse.data.productsResult) && !apiResponse.isFetching && !apiResponse.isError;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* we are trimming text as per limit set and then decode the string.
|
|
23
|
+
* we are trimming text as per limit set and then decode the string. test
|
|
24
24
|
* @param description Description string
|
|
25
25
|
* @param limit Limit to trim the string
|
|
26
26
|
* @returns
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validatorUtils.d.ts","sourceRoot":"","sources":["../../src/validatorUtils.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,YAAY,EAAE,MACgY,CAAC;
|
|
1
|
+
{"version":3,"file":"validatorUtils.d.ts","sourceRoot":"","sources":["../../src/validatorUtils.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,YAAY,EAAE,MACgY,CAAC;AAErZ,QAAA,MAAM,UAAU,QAIf,CAAC;AAIF,iBAAS,YAAY,CAAC,MAAM,KAAA,WAM3B;AAGD,iBAAS,cAAc,CAAC,MAAM,KAAA,WAM7B;AAED,iBAAS,cAAc,CAAC,MAAM,KAAA,WAM7B;AAED,iBAAS,WAAW,CAAC,MAAM,KAAA,WAO1B;AAED,iBAAS,QAAQ,CAAC,GAAG,EAAE,MAAM,WAE5B;AAED,iBAAS,gBAAgB,CAAC,OAAO,EAAE,MAAM,WAiBxC;AAED,iBAAS,WAAW,CAAC,QAAQ,KAAA,WAE5B;AAED,OAAO,EACH,YAAY,EACZ,QAAQ,EACR,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,YAAY,EACZ,UAAU,EACV,WAAW,EACX,WAAW,GACd,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
const emojiPattern = /[\u{1f300}-\u{1f5ff}\u{1f900}-\u{1f9ff}\u{1f600}-\u{1f64f}\u{1f680}-\u{1f6ff}\u{2600}-\u{26ff}\u{2700}-\u{27bf}\u{1f1e6}-\u{1f1ff}\u{1f191}-\u{1f251}\u{1f004}\u{1f0cf}\u{1f170}-\u{1f171}\u{1f17e}-\u{1f17f}\u{1f18e}\u{3030}\u{2b50}\u{2b55}\u{2934}-\u{2935}\u{2b05}-\u{2b07}\u{2b1b}-\u{2b1c}\u{3297}\u{3299}\u{303d}\u{00a9}\u{00ae}\u{2122}\u{23f3}\u{24c2}\u{23e9}-\u{23ef}\u{25b6}\u{23f8}-\u{23fa}]/gu;
|
|
2
|
-
const mailformat = new RegExp('^([
|
|
2
|
+
const mailformat = new RegExp('^((("[^"\\\\\\r\\n]+")|([a-zA-Z0-9!#$%&\'*+/=?^_`{|}~-]+(\\.[a-zA-Z0-9!#$%&\'*+/=?^_`{|}~-]+)*))@' +
|
|
3
|
+
'((?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}' +
|
|
4
|
+
'|(?:[0-9]{1,3}\\.){3}[0-9]{1,3}))$');
|
|
3
5
|
const imageRegex = /^image\/(gif|png|jpeg)$/;
|
|
4
6
|
// To check if email is valid
|
|
5
7
|
function isEmailValid(object) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/utils",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.21",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "Vikas Rathee <vrathee@redhat.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"prepublishOnly": "npm run build"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@cee-eng/hydrajs": "4.18.
|
|
44
|
+
"@cee-eng/hydrajs": "4.18.84",
|
|
45
45
|
"localforage": "^1.10.0",
|
|
46
46
|
"lodash": "^4.17.21",
|
|
47
47
|
"qs": "^6.7.0",
|
|
48
48
|
"solr-query-builder": "1.0.1"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@cee-eng/hydrajs": "4.18.
|
|
51
|
+
"@cee-eng/hydrajs": "4.18.84",
|
|
52
52
|
"@rh-support/types": "2.0.4",
|
|
53
53
|
"date-fns": "3.6.0",
|
|
54
54
|
"date-fns-tz": "^3.1.3",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"defaults and supports es6-module",
|
|
75
75
|
"maintained node versions"
|
|
76
76
|
],
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "80f5df71ce02c1fa9130373d1f0df60acb24f023"
|
|
78
78
|
}
|