Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@amalto/helpers

Package Overview
Dependencies
Maintainers
3
Versions
266
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amalto/helpers - npm Package Compare versions

Comparing version 1.1.46 to 1.1.47

6

build/index.d.ts
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;

24

build/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc