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

@dt-esa/platform-constants

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dt-esa/platform-constants - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

41

dist/index.d.ts
/**
* Assert if a string is a Dynatras SaaS url, Managed URL, or ActiveGate URL (incl. localhost).
* - https://abc012345.live.dynatrace.com/
*/

@@ -7,11 +8,42 @@ export declare const dynatraceUrlRegex: RegExp;

* Assert if a string is a Dynatrace SaaS url.
* - https://abc012345.live.dynatrace.com/
*
* Groups:
* | Index | Item |
* | --- | --- |
* | 1 | Protocol |
* | 2 | Tenant Id |
* | 3 | Stage |
* | 4 | Domain |
*/
export declare const dynatraceSaaSUrlRegex: RegExp;
/**
* Assert if a string is a Dynatrace SaaS host.
* - https://abc012345.live.dynatrace.com/
*
* Groups:
* | Index | Item |
* | --- | --- |
* | 1 | Tenant Id |
* | 2 | Stage |
* | 3 | Domain |
*/
export declare const dynatraceSaaSHostRegex: RegExp;
/**
* Assert if a string is either a V1 or V2 API token format.
*
* Groups (V2 format only):
* | Index | Item | Description |
* | --- | --- | --- |
* | 1 | Unique Prefix | Unique prefix identifying a Dynatrace API token |
* | 2 | Public Portion of token | This is a 24-character public identifier of the token. This value can be safely displayed in the UI and can be used for logging purposes. |
* | 3 | Secret Portion of token | This is a 64-character secret portion of the token, which can be treated like a password and therefore doesn’t need to be displayed in the Dynatrace web UI (following initial creation) or stored in log files. |
*/
export declare const dynatraceTokenRegex: RegExp;
/**
* Assert if a string matches the Dynatrace V2 Token format.
* Assert if a string matches the Dynatrace V1 Token format.
* - <...>21
*
* @deprecated The V1 token format is deprecated. Thus newly created tokens will _never_ have this format.
* https://www.dynatrace.com/news/blog/further-enhance-security-by-easily-automating-your-api-token-protection/
*/

@@ -22,3 +54,10 @@ export declare const dynatraceV1TokenFormatRegex: RegExp;

* - dt0c01.<...>24.<...>64
*
* Groups:
* | Index | Item | Description |
* | --- | --- | --- |
* | 1 | Unique Prefix | Unique prefix identifying a Dynatrace API token |
* | 2 | Public Portion of token | This is a 24-character public identifier of the token. This value can be safely displayed in the UI and can be used for logging purposes. |
* | 3 | Secret Portion of token | This is a 64-character secret portion of the token, which can be treated like a password and therefore doesn’t need to be displayed in the Dynatrace web UI (following initial creation) or stored in log files. |
*/
export declare const dynatraceV2TokenFormatRegex: RegExp;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.dynatraceV2TokenFormatRegex = exports.dynatraceV1TokenFormatRegex = exports.dynatraceTokenRegex = exports.dynatraceSaaSUrlRegex = exports.dynatraceUrlRegex = void 0;
exports.dynatraceV2TokenFormatRegex = exports.dynatraceV1TokenFormatRegex = exports.dynatraceTokenRegex = exports.dynatraceSaaSHostRegex = exports.dynatraceSaaSUrlRegex = exports.dynatraceUrlRegex = void 0;
/**
* Assert if a string is a Dynatras SaaS url, Managed URL, or ActiveGate URL (incl. localhost).
* - https://abc012345.live.dynatrace.com/
*/

@@ -10,17 +11,55 @@ exports.dynatraceUrlRegex = /^(https?:\/\/)?([a-z]{3}[0-9]{5}\.(sprint|live|dev)\.(dynatrace|dynatracelabs)\.com|.+?\/e\/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|(127\.0\.0\.1|localhost|\[::1\]|.+?):9999\/e\/([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-z]{3}\d{5}))\/?$/;

* Assert if a string is a Dynatrace SaaS url.
* - https://abc012345.live.dynatrace.com/
*
* Groups:
* | Index | Item |
* | --- | --- |
* | 1 | Protocol |
* | 2 | Tenant Id |
* | 3 | Stage |
* | 4 | Domain |
*/
exports.dynatraceSaaSUrlRegex = /^(https?:\/\/)?[a-z]{3}[0-9]{5}\.(sprint|live|dev)\.(dynatrace|dynatracelabs)\.com\/?$/;
exports.dynatraceSaaSUrlRegex = /^(https?:\/\/)([a-z]{3}[0-9]{5})\.(sprint|live|dev)\.(dynatrace|dynatracelabs)\.com\/?$/;
/**
* Assert if a string is a Dynatrace SaaS host.
* - https://abc012345.live.dynatrace.com/
*
* Groups:
* | Index | Item |
* | --- | --- |
* | 1 | Tenant Id |
* | 2 | Stage |
* | 3 | Domain |
*/
exports.dynatraceSaaSHostRegex = /^([a-z]{3}[0-9]{5})\.(sprint|live|dev)\.(dynatrace|dynatracelabs)\.com\/?$/;
/**
* Assert if a string is either a V1 or V2 API token format.
*
* Groups (V2 format only):
* | Index | Item | Description |
* | --- | --- | --- |
* | 1 | Unique Prefix | Unique prefix identifying a Dynatrace API token |
* | 2 | Public Portion of token | This is a 24-character public identifier of the token. This value can be safely displayed in the UI and can be used for logging purposes. |
* | 3 | Secret Portion of token | This is a 64-character secret portion of the token, which can be treated like a password and therefore doesn’t need to be displayed in the Dynatrace web UI (following initial creation) or stored in log files. |
*/
exports.dynatraceTokenRegex = /^([A-Za-z0-9-_]{21}|dt\d\w\d{2}\.[A-Z\d]{24}\.[A-Z\d]{64})$/;
exports.dynatraceTokenRegex = /^[A-Za-z0-9-_]{21}$|^(dt\d\w\d{2})\.([A-Z\d]{24})\.([A-Z\d]{64})$/;
/**
* Assert if a string matches the Dynatrace V2 Token format.
* Assert if a string matches the Dynatrace V1 Token format.
* - <...>21
*
* @deprecated The V1 token format is deprecated. Thus newly created tokens will _never_ have this format.
* https://www.dynatrace.com/news/blog/further-enhance-security-by-easily-automating-your-api-token-protection/
*/
exports.dynatraceV1TokenFormatRegex = /^dt\d\w\d{2}\.[A-Z\d]{24}\.[A-Z\d]{64}$/;
exports.dynatraceV1TokenFormatRegex = /^[a-zA-Z0-9\-_]{21}$/;
/**
* Assert if a string matches the Dynatrace V2 Token format.
* - dt0c01.<...>24.<...>64
*
* Groups:
* | Index | Item | Description |
* | --- | --- | --- |
* | 1 | Unique Prefix | Unique prefix identifying a Dynatrace API token |
* | 2 | Public Portion of token | This is a 24-character public identifier of the token. This value can be safely displayed in the UI and can be used for logging purposes. |
* | 3 | Secret Portion of token | This is a 64-character secret portion of the token, which can be treated like a password and therefore doesn’t need to be displayed in the Dynatrace web UI (following initial creation) or stored in log files. |
*/
exports.dynatraceV2TokenFormatRegex = /^dt\d\w\d{2}\.[A-Z\d]{24}\.[A-Z\d]{64}$/;
exports.dynatraceV2TokenFormatRegex = /^(dt\d\w\d{2})\.([A-Z\d]{24})\.([A-Z\d]{64})$/;

2

package.json
{
"name": "@dt-esa/platform-constants",
"version": "1.1.0",
"version": "1.1.1",
"description": "A set of regular expressions and enums for interfacing with Dynatrace.",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

@@ -0,0 +0,0 @@ ### Dynatrace Platform Constants

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