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

@codefresh-io/authenticated-entity

Package Overview
Dependencies
Maintainers
32
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codefresh-io/authenticated-entity - npm Package Compare versions

Comparing version 2.13.0 to 2.13.1

lib/ExecutionContext.js

4

lib/Entity.js

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

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