mongodb-stitch
Advanced tools
Comparing version 3.2.17 to 3.2.18
@@ -313,2 +313,5 @@ 'use strict'; | ||
return api._post(appUrl + '/draft/deployment'); | ||
}, | ||
diff: function diff() { | ||
return api._get(appUrl + '/draft/diff'); | ||
} | ||
@@ -315,0 +318,0 @@ }; |
@@ -17,4 +17,4 @@ 'use strict'; | ||
var version = 'unknown'; | ||
if (typeof "3.2.17" !== 'undefined') { | ||
version = "3.2.17"; | ||
if (typeof "3.2.18" !== 'undefined') { | ||
version = "3.2.18"; | ||
} | ||
@@ -21,0 +21,0 @@ var SDK_VERSION = exports.SDK_VERSION = version; |
{ | ||
"name": "mongodb-stitch", | ||
"version": "3.2.17", | ||
"version": "3.2.18", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "", |
@@ -208,3 +208,4 @@ /* global window, fetch */ | ||
delete: () => api._delete(`${appUrl}/draft`), | ||
deploy: () => api._post(`${appUrl}/draft/deployment`) | ||
deploy: () => api._post(`${appUrl}/draft/deployment`), | ||
diff: () => api._get(`${appUrl}/draft/diff`) | ||
}), | ||
@@ -211,0 +212,0 @@ |
@@ -48,2 +48,8 @@ const StitchMongoFixture = require('../fixtures/stitch_mongo_fixture'); | ||
}); | ||
it('returns "diffs" with an empty list if there are no changes', async() => { | ||
await appDraft.create(); | ||
const diffResponse = await appDraft.diff(); | ||
expect(diffResponse.diffs).toEqual([]); | ||
}); | ||
}); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
4494363
24279