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

@codefresh-io/authenticated-entity

Package Overview
Dependencies
Maintainers
24
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.4.6 to 2.4.7

19

lib/Entity.js

@@ -132,2 +132,5 @@ const _ = require('lodash');

.then(() => {
if (this.isSystemEntity() && !accountId) {
throw new Error(`System entity must to provide accountId`);
}
if (!this.isSystemEntity() && this.getActiveAccount().id === accountId) {

@@ -166,2 +169,18 @@ accountId = undefined;

.then(() => {
if (this.isSystemEntity() && !accountId) {
throw new Error(`System entity must to provide accountId`);
}
if (!this.isSystemEntity() && this.getActiveAccount().id === accountId) {
accountId = undefined;
}
if (!accountId) {
const activeAccount = this.getActiveAccount();
if (_.get(activeAccount, 'features')) {
const featureValue = activeAccount.features[feature];
if (_.isUndefined(featureValue)) {
throw new Error(`Feature ${feature} is not valid`);
}
return featureValue;
}
}
const request = getInternalRequestLogic();

@@ -168,0 +187,0 @@ const qs = {};

2

package.json
{
"name": "@codefresh-io/authenticated-entity",
"version": "2.4.6",
"version": "2.4.7",
"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