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

kinvey-flex-sdk

Package Overview
Dependencies
Maintainers
2
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kinvey-flex-sdk - npm Package Compare versions

Comparing version 2.0.5 to 2.0.6

3

CHANGELOG.md
## Changelog
### 2.0.6
* Fixed kinveyEntity not retaining a passed-in _id
### 2.0.5

@@ -4,0 +7,0 @@ * Added NotImplementedHandler for FlexAuth requests that don't have a defined handler

2

lib/service/modules/kinveyEntity.js

@@ -55,3 +55,3 @@ /**

if (!has(_entity, ['_acl'])) _entity._acl = {};
if (!has(_entity, ['_id)'])) _entity._id = _createEntityId();
if (!has(_entity, ['_id'])) _entity._id = _createEntityId();
if (!has(_entity, ['_acl', 'creator'])) _entity._acl.creator = environmentId;

@@ -58,0 +58,0 @@ if (!has(_entity, ['_kmd'])) _entity._kmd = {};

{
"name": "kinvey-flex-sdk",
"version": "2.0.5",
"version": "2.0.6",
"description": "SDK for creating Kinvey Flex Services",

@@ -5,0 +5,0 @@ "engines": {

@@ -123,2 +123,12 @@ /**

});
it('retains existing _id when a kinveyEntity with existing _id is passed in', (done) => {
const existingId = 'existing_id';
const testObject = {
_id: existingId,
key: 'value'
};
const ke = kinveyInstance.entity(testObject);
ke._id.should.eql(existingId);
return done();
});
it('returns the passed in object', (done) => {

@@ -125,0 +135,0 @@ const testObject = {

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