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
25
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.9 to 2.5.0

26

lib/tests/User.unit.spec.js

@@ -56,4 +56,4 @@ 'use strict';

}
const encodedFakeUser = 'eyJ0eXBlIjoidXNlciIsIm5hbWUiOiJmYWtlLXVzZXJOYW1lIiwiX2lkIjoiZmFrZS11c2VyLWlkLTEiLCJhY2NvdW50cyI6W3sibmFtZSI6ImZha2UtYWNjb3VudC1uYW1lLTEiLCJfaWQiOiJmYWtlLWFjY291bnRJZC0xIiwiaXNBZG1pbiI6dHJ1ZSwiYWRtaW5UZWFtIjoiMTIzNCIsInRlYW1zIjpbImZha2UtdGVhbS1pZC0yIiwiZmFrZS10ZWFtLWlkLTEiXSwicGF5bWVudFBsYW4iOiJmYWtlLWFjY291bnQtcGxhbi0xIiwic3VwcG9ydFBsYW4iOiJmYWtlLXN1cHBvcnQtcGxhbi0xIiwidHlwZSI6ImVudGVycHJpc2UiLCJ0cmlhbCI6ImZha2UtdHJpYWwiLCJzZWdtZW50IjoiZmFrZS1zZWdtZW50In0seyJuYW1lIjoiZmFrZS1hY2NvdW50LW5hbWUtMiIsIl9pZCI6ImZha2UtYWNjb3VudElkLTIiLCJpc0FkbWluIjpmYWxzZSwiYWRtaW5UZWFtIjoiMTIzNDUiLCJ0ZWFtcyI6WyJmYWtlLXRlYW0taWQtMyIsImZha2UtdGVhbS1pZC00Il0sInBheW1lbnRQbGFuIjoiZmFrZS1hY2NvdW50LXBsYW4tMiIsInN1cHBvcnRQbGFuIjoiZmFrZS1zdXBwb3J0LXBsYW4tMiIsInR5cGUiOiJlbnRlcnByaXNlIiwidHJpYWwiOiJmYWtlLXRyaWFsIiwic2VnbWVudCI6ImZha2Utc2VnbWVudCJ9XX0=';
const generatedHasFakeUser = '5eef6d67580e49106f6805395ee7a5831b4c83d745901642a0be97d86e3e78c2';
const encodedFakeUser = 'eyJ0eXBlIjoidXNlciIsIm5hbWUiOiJmYWtlLXVzZXJOYW1lIiwiX2lkIjoiZmFrZS11c2VyLWlkLTEiLCJhY2NvdW50cyI6W3sibmFtZSI6ImZha2UtYWNjb3VudC1uYW1lLTEiLCJfaWQiOiJmYWtlLWFjY291bnRJZC0xIiwiaXNBZG1pbiI6dHJ1ZSwiYWRtaW5UZWFtIjoiMTIzNCIsInRlYW1zIjpbImZha2UtdGVhbS1pZC0yIiwiZmFrZS10ZWFtLWlkLTEiXSwicGF5bWVudFBsYW4iOiJmYWtlLWFjY291bnQtcGxhbi0xIiwic3VwcG9ydFBsYW4iOiJmYWtlLXN1cHBvcnQtcGxhbi0xIiwidHlwZSI6ImVudGVycHJpc2UiLCJ0cmlhbCI6ImZha2UtdHJpYWwiLCJzZWdtZW50IjoiZmFrZS1zZWdtZW50IiwiQ0ZDUlN0YXRlIjp7ImVuYWJsZWQiOmZhbHNlfX0seyJuYW1lIjoiZmFrZS1hY2NvdW50LW5hbWUtMiIsIl9pZCI6ImZha2UtYWNjb3VudElkLTIiLCJpc0FkbWluIjpmYWxzZSwiYWRtaW5UZWFtIjoiMTIzNDUiLCJ0ZWFtcyI6WyJmYWtlLXRlYW0taWQtMyIsImZha2UtdGVhbS1pZC00Il0sInBheW1lbnRQbGFuIjoiZmFrZS1hY2NvdW50LXBsYW4tMiIsInN1cHBvcnRQbGFuIjoiZmFrZS1zdXBwb3J0LXBsYW4tMiIsInR5cGUiOiJlbnRlcnByaXNlIiwidHJpYWwiOiJmYWtlLXRyaWFsIiwic2VnbWVudCI6ImZha2Utc2VnbWVudCIsIkNGQ1JTdGF0ZSI6eyJlbmFibGVkIjpmYWxzZX19XX0=';
const generatedHasFakeUser = 'b141566de9355ceb036dd14457b7c6ffdf353816677b74742d353abba9caf03d';

@@ -74,3 +74,6 @@ const jsonValidUser = {

'trial': 'fake-trial',
'segment': 'fake-segment'
'segment': 'fake-segment',
'CFCRState': {
'enabled': false
}
},

@@ -87,3 +90,6 @@ {

'trial': 'fake-trial',
'segment': 'fake-segment'
'segment': 'fake-segment',
'CFCRState': {
'enabled': false
}
}

@@ -181,3 +187,6 @@ ],

'trial': 'fake-trial',
'segment': 'fake-segment'
'segment': 'fake-segment',
'CFCRState': {
'enabled': false
}
});

@@ -204,3 +213,6 @@ });

'trial': 'fake-trial',
'segment': 'fake-segment'
'segment': 'fake-segment',
'CFCRState': {
'enabled': false
}
});

@@ -251,3 +263,3 @@ });

expect((User.constructFromUserEntity(fakeUserData())).toString())
.to.be.equal(`{"type":"user","name":"fake-userName","_id":"fake-user-id-1","accounts":[{"name":"fake-account-name-1","_id":"fake-accountId-1","isAdmin":true,"adminTeam":"1234","teams":["fake-team-id-2","fake-team-id-1"],"paymentPlan":"fake-account-plan-1","supportPlan":"fake-support-plan-1","type":"enterprise","trial":"fake-trial","segment":"fake-segment"},{"name":"fake-account-name-2","_id":"fake-accountId-2","isAdmin":false,"adminTeam":"12345","teams":["fake-team-id-3","fake-team-id-4"],"paymentPlan":"fake-account-plan-2","supportPlan":"fake-support-plan-2","type":"enterprise","trial":"fake-trial","segment":"fake-segment"}]}`);
.to.be.equal(`{"type":"user","name":"fake-userName","_id":"fake-user-id-1","accounts":[{"name":"fake-account-name-1","_id":"fake-accountId-1","isAdmin":true,"adminTeam":"1234","teams":["fake-team-id-2","fake-team-id-1"],"paymentPlan":"fake-account-plan-1","supportPlan":"fake-support-plan-1","type":"enterprise","trial":"fake-trial","segment":"fake-segment","CFCRState":{"enabled":false}},{"name":"fake-account-name-2","_id":"fake-accountId-2","isAdmin":false,"adminTeam":"12345","teams":["fake-team-id-3","fake-team-id-4"],"paymentPlan":"fake-account-plan-2","supportPlan":"fake-support-plan-2","type":"enterprise","trial":"fake-trial","segment":"fake-segment","CFCRState":{"enabled":false}}]}`);
});

@@ -254,0 +266,0 @@

@@ -52,3 +52,6 @@ const _ = require('lodash');

...(account.trial && { trial: account.trial }),
...(account.segment && { segment: account.segment })
...(account.segment && { segment: account.segment }),
CFCRState: {
enabled: _.get(account, 'CFCRState.enabled', false)
}
};

@@ -55,0 +58,0 @@ })

{
"name": "@codefresh-io/authenticated-entity",
"version": "2.4.9",
"version": "2.5.0",
"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