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

getstream

Package Overview
Dependencies
Maintainers
1
Versions
182
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 0.1.46 to 0.1.47

2

bower.json
{
"name": "getstream",
"version": "0.1.46",
"version": "0.1.47",
"main": "dist/js/getstream.js",

@@ -5,0 +5,0 @@ "ignore": [

@@ -10,3 +10,3 @@ {

"homepage": "https://getstream.io/",
"version": "0.1.46",
"version": "0.1.47",
"config": {

@@ -13,0 +13,0 @@ "blanket": {

@@ -12,2 +12,18 @@ stream-js

### Installation
#### Install from NPM
```bash
npm install getstream
```
#### Install using bower
```bash
bower install getstream
```
### Usage
```javascript

@@ -28,4 +44,4 @@ var stream = require('getstream');

user1.get({limit:5, offset:5}, callback);
// (Recommended & faster) Filter on an id less than 112334
user1.get({limit:5, id_lt:112334}, callback);
// (Recommended & faster) Filter on an id less than a given UUID
user1.get({limit:5, id_lt:"e561de8f-00f1-11e4-b400-0cc47a024be0"}, callback);

@@ -37,3 +53,3 @@ // Create a new activity

// Remove an activity by its id
user1.removeActivity('12345678910');
user1.removeActivity("e561de8f-00f1-11e4-b400-0cc47a024be0");

@@ -53,4 +69,3 @@ // Follow another feed

Faye
----
### Faye

@@ -71,19 +86,6 @@ Stream uses Faye for realtime notifications. Below is quick quide to subcribing to feed changes

Docs are available on [GetStream.io][].
API Docs are available on [GetStream.io](http://getstream.io/docs/).
Installation
------------
### Install from NPM
```bash
npm install getstream
```
### Install using bower
```bash
bower install getstream
```
Contributing

@@ -90,0 +92,0 @@ ------------

@@ -23,4 +23,4 @@

*/
if (apiKey.indexOf('https')==0) {
var parts = /https\:\/\/(\w+)\:(\w+).*site=(\d+)/.exec(apiKey);
if (process.env.STREAM_URL && !apiKey) {
var parts = /https\:\/\/(\w+)\:(\w+).*site=(\d+)/.exec(process.env.STREAM_URL);
apiKey = parts[1];

@@ -27,0 +27,0 @@ apiSecret = parts[2];

@@ -40,3 +40,4 @@

var url = 'https://thierry:pass@getstream.io/?site=1';
client = stream.connect(url);
process.env.STREAM_URL = url;
client = stream.connect();
expect(client.key).to.eql('thierry');

@@ -47,2 +48,12 @@ expect(client.secret).to.eql('pass');

});
it('heroku_overwrite', function (done) {
var url = 'https://thierry:pass@getstream.io/?site=1';
process.env.STREAM_URL = url;
client = stream.connect('a','b','c');
expect(client.key).to.eql('a');
expect(client.secret).to.eql('b');
expect(client.siteId).to.eql('c');
done();
});

@@ -49,0 +60,0 @@ it('get feed', function (done) {

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