kinvey-flex-sdk
Advanced tools
Comparing version 2.0.5 to 2.0.6
## 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 |
@@ -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 = { |
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
431848
9343