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

mongodb-stitch

Package Overview
Dependencies
Maintainers
8
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongodb-stitch - npm Package Compare versions

Comparing version 3.12.0 to 3.12.1

3

dist/node/admin.js

@@ -822,3 +822,4 @@ 'use strict';

data: function data() {
return api._get(syncUrl + '/data');
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
return api._get(syncUrl + '/data', params);
},

@@ -825,0 +826,0 @@ patchSchemas: function patchSchemas(data) {

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

var version = 'unknown';
if (typeof "3.12.0" !== 'undefined') {
version = "3.12.0";
if (typeof "3.12.1" !== 'undefined') {
version = "3.12.1";
}

@@ -21,0 +21,0 @@ var SDK_VERSION = exports.SDK_VERSION = version;

{
"name": "mongodb-stitch",
"version": "3.12.0",
"version": "3.12.1",
"description": "",

@@ -5,0 +5,0 @@ "author": "",

@@ -495,3 +495,3 @@ /* global window, fetch */

},
data: () => api._get(`${syncUrl}/data`),
data: (params = {}) => api._get(`${syncUrl}/data`, params),
patchSchemas: data => api._patch(`${syncUrl}/schemas`, { body: JSON.stringify(data) })

@@ -498,0 +498,0 @@ };

@@ -100,2 +100,39 @@ const StitchMongoFixture = require('../fixtures/stitch_mongo_fixture');

it('should return partition fields if called with a service_id param', async() => {
const svc = await createSampleMongodbService(services);
await addRuleToMongodbService(services, svc, {
database: 'db',
collection: 'coll1',
config: {
schema: {
properties: {
_id: { bsonType: 'objectId' },
email: { bsonType: 'string' },
active: { bsonType: 'boolean' },
store_id: { bsonType: 'objectId' },
created_at: { bsonType: 'long' }
}
}
}
});
await addRuleToMongodbService(services, svc, {
database: 'db',
collection: 'coll2',
config: {
schema: {
properties: {
_id: { bsonType: 'objectId' },
email: { bsonType: 'string' },
active: { bsonType: 'boolean' },
store_id: { bsonType: 'objectId' },
created_at: { bsonType: 'long' }
}
}
}
});
const data = await sync.data({ service_id: svc._id });
expect(data).toEqual({ partition_fields: ['created_at', 'email', 'store_id'] });
});
it('should return correct data for an enabled sync service', async() => {

@@ -102,0 +139,0 @@ const syncService = await createSampleMongodbSyncService(services, 'email');

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

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