@amalto/helpers
Advanced tools
Comparing version 1.1.46 to 1.1.47
import { Endpoints } from './models/AppEndpointsModel'; | ||
import { OrgModel, TreeNodeModel } from './models/Organisation'; | ||
export declare const EMAIL_REGEX: RegExp; | ||
export declare const COLOR_CODE_REGEX: RegExp; | ||
export declare const SCOPE_KEYWORD_REGEX: RegExp; | ||
export declare const MAP_PROPERTY_KEY_REGEX: RegExp; | ||
export declare const XML_TAG_REGEX: RegExp; | ||
export declare const HTTPS_URL_REGEX: RegExp; | ||
export declare function getWordingsInUserLanguage(locale: string): { | ||
@@ -4,0 +10,0 @@ [key: string]: string; |
@@ -9,8 +9,8 @@ "use strict"; | ||
var Data_1 = require("./constants/Data"); | ||
var EMAIL_REGEX = /^\S+@\S+\.\S+$/; | ||
var COLOR_CODE_REGEX = /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/; | ||
var SCOPE_KEYWORD_REGEX = /^[a-zA-Z0-9-_~@$£|€¥§&]+$/; | ||
var MAP_PROPERTY_KEY_REGEX = /^[a-zA-Z0-9-_]+$/; | ||
var XML_TAG_REGEX = /^[a-zA-Z_:][a-zA-Z0-9_:\-\.]*$/; | ||
var HTTPS_URL_REGEX = /https:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&\/=]*)/; | ||
exports.EMAIL_REGEX = /^\S+@\S+\.\S+$/; | ||
exports.COLOR_CODE_REGEX = /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/; | ||
exports.SCOPE_KEYWORD_REGEX = /^[a-zA-Z0-9-_~@$£|€¥§&]+$/; | ||
exports.MAP_PROPERTY_KEY_REGEX = /^[a-zA-Z0-9-_]+$/; | ||
exports.XML_TAG_REGEX = /^[a-zA-Z_:][a-zA-Z0-9_:\-\.]*$/; | ||
exports.HTTPS_URL_REGEX = /https:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&\/=]*)/; | ||
function getWordingsInUserLanguage(locale) { | ||
@@ -58,3 +58,3 @@ var res = Object.keys(wordings_1.MULTILANGUAGE_WORDINGS).reduce(function (dic, key) { | ||
function isValidEmail(email) { | ||
return EMAIL_REGEX.test(email); | ||
return exports.EMAIL_REGEX.test(email); | ||
} | ||
@@ -64,3 +64,3 @@ exports.isValidEmail = isValidEmail; | ||
function isValidColorCode(color) { | ||
return COLOR_CODE_REGEX.test(color); | ||
return exports.COLOR_CODE_REGEX.test(color); | ||
} | ||
@@ -74,3 +74,3 @@ exports.isValidColorCode = isValidColorCode; | ||
function isValidScopeKeyword(value) { | ||
return SCOPE_KEYWORD_REGEX.test(value); | ||
return exports.SCOPE_KEYWORD_REGEX.test(value); | ||
} | ||
@@ -80,3 +80,3 @@ exports.isValidScopeKeyword = isValidScopeKeyword; | ||
function isValidKeyChar(value) { | ||
return MAP_PROPERTY_KEY_REGEX.test(value); | ||
return exports.MAP_PROPERTY_KEY_REGEX.test(value); | ||
} | ||
@@ -86,3 +86,3 @@ exports.isValidKeyChar = isValidKeyChar; | ||
function isValidXMLTag(value) { | ||
return XML_TAG_REGEX.test(value); | ||
return exports.XML_TAG_REGEX.test(value); | ||
} | ||
@@ -92,3 +92,3 @@ exports.isValidXMLTag = isValidXMLTag; | ||
function isValidHttpsUrl(value) { | ||
return HTTPS_URL_REGEX.test(value); | ||
return exports.HTTPS_URL_REGEX.test(value); | ||
} | ||
@@ -95,0 +95,0 @@ exports.isValidHttpsUrl = isValidHttpsUrl; |
@@ -5,3 +5,3 @@ { | ||
"description": "Helpers functions used across b2portal core and components.", | ||
"version": "1.1.46", | ||
"version": "1.1.47", | ||
"license": "MIT", | ||
@@ -29,3 +29,3 @@ "repository": { | ||
"dependencies": { | ||
"@amalto/wordings": "1.0.19", | ||
"@amalto/wordings": "1.0.20", | ||
"base-64": "0.1.0", | ||
@@ -32,0 +32,0 @@ "classnames": "2.2.5", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
283736
5958
+ Added@amalto/wordings@1.0.20(transitive)
- Removed@amalto/wordings@1.0.19(transitive)
Updated@amalto/wordings@1.0.20