New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@commercetools-frontend/constants

Package Overview
Dependencies
Maintainers
3
Versions
1208
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commercetools-frontend/constants - npm Package Compare versions

Comparing version 22.24.0 to 22.25.0

26

dist/commercetools-frontend-constants.cjs.dev.js

@@ -6,3 +6,3 @@ 'use strict';

// NOTE: This string will be replaced on build time with the package version.
var version = "22.24.0";
var version = "22.25.0";

@@ -12,4 +12,13 @@ /**

* up to two consecutive underscores (_) and hyphens (-). Leading and trailing underscore and hyphens are also not allowed.
*
* This regular expression has been generated using ChatGPT.
* Explanation of the regular expression:
* 1. ^: Asserts the start of the string.
* 2. (?!.*(?:[-_]{3}|^[-_]|[-_]$)): Negative lookahead assertion ensures that there are no three consecutive hyphens or underscores ([-_]{3}), no leading hyphen or underscore (^[-_]), and no trailing hyphen or underscore ([-_]$).
* 3. (?=.{2,36}$): Positive lookahead assertion ensures that the length of the string is between 2 and 36 characters.
* 4. (?:[a-z1-9][a-z0-9]*)?: Non-capturing group matches an optional first character that cannot be '0' ([a-z1-9]) followed by zero or more lowercase alphanumeric characters ([a-z0-9]*).
* 5. (?:[-_]{0,2}[a-z0-9]+)*: Non-capturing group matches zero, one, or two hyphens or underscores followed by one or more lowercase alphanumeric characters. This group can repeat zero or more times.
* 6. $: Asserts the end of the string.
*/
const PROJECT_KEY_REGEX = /^[^-_#\W]([0-9a-z]|([-_]{0,2})(?!([-_]))){0,34}[^-_#\W]$/g;
const PROJECT_KEY_REGEX = /^(?!.*(?:[-_]{3}|^[-_]|[-_]$))(?=.{2,36}$)(?:[a-z1-9][a-z0-9]*)?(?:[-_]{0,2}[a-z0-9]+)*$/;

@@ -19,4 +28,13 @@ /**

* non-consecutive underscores and hyphens. Leading and trailing underscore and hyphens are also not allowed.
*
* This regular expression has been generated using ChatGPT.
* Explanation of the regular expression:
* 1. ^: Asserts the start of the string.
* 2. (?!.*(?:[-_]{2}|^[-_]|[-_]$)): Negative lookahead assertion ensures that there are no two consecutive hyphens or underscores ([-_]{2}), no leading hyphen or underscore (^[-_]), and no trailing hyphen or underscore ([-_]$).
* 3. (?=.{2,64}$): Positive lookahead assertion ensures that the length of the string is between 2 and 64 characters.
* 4. (?:[a-z1-9][a-z0-9]*)?: Non-capturing group matches an optional first character that cannot be '0' ([a-z1-9]) followed by zero or more lowercase alphanumeric characters ([a-z0-9]*).
* 5. (?:[-_]{0,1}[a-z0-9]+)*: Non-capturing group matches zero, or one hyphen or underscore followed by one or more lowercase alphanumeric characters. This group can repeat zero or more times.
* 6. $: Asserts the end of the string.
*/
const ENTRY_POINT_URI_PATH_REGEX = /^[^-_#\W]([0-9a-z]|[-_](?![-_])){0,62}[^-_#\W]$/g;
const ENTRY_POINT_URI_PATH_REGEX = /^(?!.*(?:[-_]{2}|^[-_]|[-_]$))(?=.{2,64}$)(?:[a-z1-9][a-z0-9]*)?(?:[-_]{0,1}[a-z0-9]+)*$/;

@@ -27,3 +45,3 @@ /**

*/
const PERMISSION_GROUP_NAME_REGEX = /^[^-#\W]([a-z]|[-](?![-])){0,62}[^-#\W]$/g;
const PERMISSION_GROUP_NAME_REGEX = /^[^-#\W]([a-z]|[-](?![-])){0,62}[^-#\W]$/;

@@ -30,0 +48,0 @@ // DOM elements

@@ -6,3 +6,3 @@ 'use strict';

// NOTE: This string will be replaced on build time with the package version.
var version = "22.24.0";
var version = "22.25.0";

@@ -12,4 +12,13 @@ /**

* up to two consecutive underscores (_) and hyphens (-). Leading and trailing underscore and hyphens are also not allowed.
*
* This regular expression has been generated using ChatGPT.
* Explanation of the regular expression:
* 1. ^: Asserts the start of the string.
* 2. (?!.*(?:[-_]{3}|^[-_]|[-_]$)): Negative lookahead assertion ensures that there are no three consecutive hyphens or underscores ([-_]{3}), no leading hyphen or underscore (^[-_]), and no trailing hyphen or underscore ([-_]$).
* 3. (?=.{2,36}$): Positive lookahead assertion ensures that the length of the string is between 2 and 36 characters.
* 4. (?:[a-z1-9][a-z0-9]*)?: Non-capturing group matches an optional first character that cannot be '0' ([a-z1-9]) followed by zero or more lowercase alphanumeric characters ([a-z0-9]*).
* 5. (?:[-_]{0,2}[a-z0-9]+)*: Non-capturing group matches zero, one, or two hyphens or underscores followed by one or more lowercase alphanumeric characters. This group can repeat zero or more times.
* 6. $: Asserts the end of the string.
*/
const PROJECT_KEY_REGEX = /^[^-_#\W]([0-9a-z]|([-_]{0,2})(?!([-_]))){0,34}[^-_#\W]$/g;
const PROJECT_KEY_REGEX = /^(?!.*(?:[-_]{3}|^[-_]|[-_]$))(?=.{2,36}$)(?:[a-z1-9][a-z0-9]*)?(?:[-_]{0,2}[a-z0-9]+)*$/;

@@ -19,4 +28,13 @@ /**

* non-consecutive underscores and hyphens. Leading and trailing underscore and hyphens are also not allowed.
*
* This regular expression has been generated using ChatGPT.
* Explanation of the regular expression:
* 1. ^: Asserts the start of the string.
* 2. (?!.*(?:[-_]{2}|^[-_]|[-_]$)): Negative lookahead assertion ensures that there are no two consecutive hyphens or underscores ([-_]{2}), no leading hyphen or underscore (^[-_]), and no trailing hyphen or underscore ([-_]$).
* 3. (?=.{2,64}$): Positive lookahead assertion ensures that the length of the string is between 2 and 64 characters.
* 4. (?:[a-z1-9][a-z0-9]*)?: Non-capturing group matches an optional first character that cannot be '0' ([a-z1-9]) followed by zero or more lowercase alphanumeric characters ([a-z0-9]*).
* 5. (?:[-_]{0,1}[a-z0-9]+)*: Non-capturing group matches zero, or one hyphen or underscore followed by one or more lowercase alphanumeric characters. This group can repeat zero or more times.
* 6. $: Asserts the end of the string.
*/
const ENTRY_POINT_URI_PATH_REGEX = /^[^-_#\W]([0-9a-z]|[-_](?![-_])){0,62}[^-_#\W]$/g;
const ENTRY_POINT_URI_PATH_REGEX = /^(?!.*(?:[-_]{2}|^[-_]|[-_]$))(?=.{2,64}$)(?:[a-z1-9][a-z0-9]*)?(?:[-_]{0,1}[a-z0-9]+)*$/;

@@ -27,3 +45,3 @@ /**

*/
const PERMISSION_GROUP_NAME_REGEX = /^[^-#\W]([a-z]|[-](?![-])){0,62}[^-#\W]$/g;
const PERMISSION_GROUP_NAME_REGEX = /^[^-#\W]([a-z]|[-](?![-])){0,62}[^-#\W]$/;

@@ -30,0 +48,0 @@ // DOM elements

// NOTE: This string will be replaced on build time with the package version.
var version = "22.24.0";
var version = "22.25.0";

@@ -7,4 +7,13 @@ /**

* up to two consecutive underscores (_) and hyphens (-). Leading and trailing underscore and hyphens are also not allowed.
*
* This regular expression has been generated using ChatGPT.
* Explanation of the regular expression:
* 1. ^: Asserts the start of the string.
* 2. (?!.*(?:[-_]{3}|^[-_]|[-_]$)): Negative lookahead assertion ensures that there are no three consecutive hyphens or underscores ([-_]{3}), no leading hyphen or underscore (^[-_]), and no trailing hyphen or underscore ([-_]$).
* 3. (?=.{2,36}$): Positive lookahead assertion ensures that the length of the string is between 2 and 36 characters.
* 4. (?:[a-z1-9][a-z0-9]*)?: Non-capturing group matches an optional first character that cannot be '0' ([a-z1-9]) followed by zero or more lowercase alphanumeric characters ([a-z0-9]*).
* 5. (?:[-_]{0,2}[a-z0-9]+)*: Non-capturing group matches zero, one, or two hyphens or underscores followed by one or more lowercase alphanumeric characters. This group can repeat zero or more times.
* 6. $: Asserts the end of the string.
*/
const PROJECT_KEY_REGEX = /^[^-_#\W]([0-9a-z]|([-_]{0,2})(?!([-_]))){0,34}[^-_#\W]$/g;
const PROJECT_KEY_REGEX = /^(?!.*(?:[-_]{3}|^[-_]|[-_]$))(?=.{2,36}$)(?:[a-z1-9][a-z0-9]*)?(?:[-_]{0,2}[a-z0-9]+)*$/;

@@ -14,4 +23,13 @@ /**

* non-consecutive underscores and hyphens. Leading and trailing underscore and hyphens are also not allowed.
*
* This regular expression has been generated using ChatGPT.
* Explanation of the regular expression:
* 1. ^: Asserts the start of the string.
* 2. (?!.*(?:[-_]{2}|^[-_]|[-_]$)): Negative lookahead assertion ensures that there are no two consecutive hyphens or underscores ([-_]{2}), no leading hyphen or underscore (^[-_]), and no trailing hyphen or underscore ([-_]$).
* 3. (?=.{2,64}$): Positive lookahead assertion ensures that the length of the string is between 2 and 64 characters.
* 4. (?:[a-z1-9][a-z0-9]*)?: Non-capturing group matches an optional first character that cannot be '0' ([a-z1-9]) followed by zero or more lowercase alphanumeric characters ([a-z0-9]*).
* 5. (?:[-_]{0,1}[a-z0-9]+)*: Non-capturing group matches zero, or one hyphen or underscore followed by one or more lowercase alphanumeric characters. This group can repeat zero or more times.
* 6. $: Asserts the end of the string.
*/
const ENTRY_POINT_URI_PATH_REGEX = /^[^-_#\W]([0-9a-z]|[-_](?![-_])){0,62}[^-_#\W]$/g;
const ENTRY_POINT_URI_PATH_REGEX = /^(?!.*(?:[-_]{2}|^[-_]|[-_]$))(?=.{2,64}$)(?:[a-z1-9][a-z0-9]*)?(?:[-_]{0,1}[a-z0-9]+)*$/;

@@ -22,3 +40,3 @@ /**

*/
const PERMISSION_GROUP_NAME_REGEX = /^[^-#\W]([a-z]|[-](?![-])){0,62}[^-#\W]$/g;
const PERMISSION_GROUP_NAME_REGEX = /^[^-#\W]([a-z]|[-](?![-])){0,62}[^-#\W]$/;

@@ -25,0 +43,0 @@ // DOM elements

2

package.json
{
"name": "@commercetools-frontend/constants",
"version": "22.24.0",
"version": "22.25.0",
"description": "Shared constants for MC applications",

@@ -5,0 +5,0 @@ "bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",

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