@contrail/util
Advanced tools
Comparing version 1.0.37 to 1.0.38
export interface ActionDefinitionIdentifierParts { | ||
appIdentifier: string; | ||
versionId: string; | ||
actionIdentifier: string; | ||
actionNameIdentifier: string; | ||
} | ||
@@ -14,2 +14,3 @@ export declare const IDENTIFIER_VALIDATION_NO_IDENTIFIER = "Action definition has no identifier. An identifier is required."; | ||
static parseActionIdentifier(actionIdentifier: string): ActionDefinitionIdentifierParts; | ||
static createActionIdentifier(actionDefinitionParts: ActionDefinitionIdentifierParts): string; | ||
} |
@@ -34,7 +34,10 @@ "use strict"; | ||
versionId: identifierParts[2], | ||
actionIdentifier: identifierParts[3] | ||
actionNameIdentifier: identifierParts[3] | ||
}; | ||
} | ||
} | ||
static createActionIdentifier(actionDefinitionParts) { | ||
return `${actionDefinitionParts.appIdentifier}@${actionDefinitionParts.versionId}:${actionDefinitionParts.actionNameIdentifier}`; | ||
} | ||
} | ||
exports.AppUtil = AppUtil; |
{ | ||
"name": "@contrail/util", | ||
"version": "1.0.37", | ||
"version": "1.0.38", | ||
"description": "General javascript utilities", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
24932
616