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

getstream

Package Overview
Dependencies
Maintainers
4
Versions
184
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

getstream - npm Package Compare versions

Comparing version 3.15.0 to 3.16.0

16

package.json

@@ -13,3 +13,3 @@ {

"license": "BSD-3-Clause",
"version": "3.15.0",
"version": "3.16.0",
"scripts": {

@@ -63,3 +63,3 @@ "dtslint": "dtslint types/getstream",

"exports-loader": "~0.6.3",
"istanbul": "~0.4.5",
"istanbul": "^0.4.5",
"json-loader": "~0.5.4",

@@ -73,3 +73,3 @@ "karma": "~1.3.0",

"karma-webpack": "~1.8.0",
"mocha": "^3.1.0",
"mocha": "^3.5.3",
"quickcheck": "^0.0.4",

@@ -82,8 +82,8 @@ "rewire": "~2.5.2",

"dependencies": {
"Base64": "~1.0.0",
"faye": "~1.2.0",
"http-signature": "~1.1.1",
"Base64": "^1.0.1",
"faye": "^1.2.4",
"http-signature": "~1.2.0",
"jsonwebtoken": "^8.2.0",
"qs": "~6.2.0",
"request": "2.75.0",
"qs": "^6.5.1",
"request": "^2.85.0",
"xmlhttp-request": "~0.4.1"

@@ -90,0 +90,0 @@ },

@@ -59,2 +59,18 @@ var httpSignature = require('http-signature');

unfollowMany: function (unfollows, callback) {
/**
* Unfollow multiple feeds with one API call
* @method unfollowMany
* @memberof StreamClient.prototype
* @since 3.15.0
* @param {Array} unfollows The follow relations to remove
* @param {requestCallback} [callback] Callback called on completion
* @return {Promise} Promise object
*/
return this.makeSignedRequest({
url: 'unfollow_many/',
body: unfollows,
}, callback);
},
makeSignedRequest: function(kwargs, cb) {

@@ -61,0 +77,0 @@ /**

@@ -261,2 +261,18 @@ var stream = require('../../../src/getstream')

it('supports batch unfollowing', function (done) {
var unfollows = [{
'source': 'flat:1',
'target': 'user:1'
}, {
'source': 'flat:1',
'target': 'user:2',
'keep_history': true
}, {
'source': 'flat:1',
'target': 'user:3'
}];
this.client.unfollowMany(unfollows, wrapCB(201, done));
});
it('no secret application auth', function() {

@@ -263,0 +279,0 @@ var client = stream.connect('ahj2ndz7gsan');

@@ -98,3 +98,2 @@ var errors = require('../../../src/getstream').errors,

it('#makeSignedRequest', function() {

@@ -118,3 +117,19 @@ var self = this;

});
it('#unfollowMany', function() {
expect(this.client.unfollowMany).to.be.a(Function);
var msr = replaceMSR.call(this);
var unfollows = []
var cb = function() {};
this.client.unfollowMany(unfollows, cb);
td.verify(msr({
url: 'unfollow_many/',
body: unfollows
}, cb));
});
});

@@ -178,2 +178,17 @@ // TypeScript Version: 2.2

): void;
// Unfollow many feeds
/**
* unfollowMany.
* Available in node environments with batchOperations enabled
*/
unfollowMany(unfollows: object[]): Promise<object>;
/**
* unfollowMany.
* Available in node environments with batchOperations enabled
*/
unfollowMany(
unfollows: object[],
callback?: (err: object, httpResponse: object, body: object) => void
): void;
}

@@ -180,0 +195,0 @@

Sorry, the diff of this file is too big to display

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