@codefresh-io/authenticated-entity
Advanced tools
Comparing version 2.13.0 to 2.13.1
@@ -84,4 +84,4 @@ const _ = require('lodash'); | ||
isServiceAccountEntity() { | ||
return this.getType() === Types.SERVICE_ACCOUNT; | ||
isExecutionContextEntity() { | ||
return this.getType() === Types.EXECUTION_CONTEXT; | ||
} | ||
@@ -88,0 +88,0 @@ |
const _ = require('lodash'); | ||
const Types = require('./Types'); | ||
const User = require('./User'); | ||
const ServiceAccount = require('./ServiceAccount'); | ||
const ExecutionContext = require('./ExecutionContext'); | ||
const System = require('./System'); | ||
@@ -40,4 +40,4 @@ const RuntimeEnvironment = require('./RuntimeEnvironment'); | ||
return new Agent(parsedJsonEntity); | ||
case Types.SERVICE_ACCOUNT: | ||
return new ServiceAccount(parsedJsonEntity); | ||
case Types.EXECUTION_CONTEXT: | ||
return new ExecutionContext(parsedJsonEntity); | ||
case undefined: | ||
@@ -54,3 +54,3 @@ parsedJsonEntity.type = Types.USER; | ||
User, | ||
ServiceAccount, | ||
ExecutionContext, | ||
RuntimeEnvironment, | ||
@@ -57,0 +57,0 @@ System, |
const TYPES = { | ||
USER: 'user', | ||
SERVICE_ACCOUNT: 'service-account', | ||
EXECUTION_CONTEXT: 'execution-context', | ||
SYSTEM: 'system', | ||
@@ -5,0 +5,0 @@ RUNTIME_ENVIRONMENT: 'runtime-environment', |
@@ -136,7 +136,7 @@ const _ = require('lodash'); | ||
get id() { // alias for consistency with service-account entity | ||
get id() { // alias for consistency with execution-context entity | ||
return this.getUserId(); | ||
} | ||
get name() { // alias for consistency with service-account entity | ||
get name() { // alias for consistency with execution-context entity | ||
return this.getUserName(); | ||
@@ -143,0 +143,0 @@ } |
{ | ||
"name": "@codefresh-io/authenticated-entity", | ||
"version": "2.13.0", | ||
"version": "2.13.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "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
174232