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

feedly

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feedly - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

24

lib/BufferStream.js
(function() {
var BufferStream, EMPTY, assert, createEOF, stream, util,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
__slice = [].slice;
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty,
slice = [].slice;

@@ -22,7 +22,7 @@ assert = require('assert');

BufferStream = (function(_super) {
__extends(BufferStream, _super);
BufferStream = (function(superClass) {
extend(BufferStream, superClass);
function BufferStream(options) {
var buf, startEnded, _ref, _ref1, _ref2;
var buf, ref, ref1, ref2, startEnded;
if (options == null) {

@@ -34,4 +34,4 @@ options = {};

BufferStream.__super__.constructor.call(this, options);
this.growSize = (_ref = options.bsGrowSize) != null ? _ref : 512;
this.zero = (_ref1 = options.bsZero) != null ? _ref1 : false;
this.growSize = (ref = options.bsGrowSize) != null ? ref : 512;
this.zero = (ref1 = options.bsZero) != null ? ref1 : false;
this.on("finish", (function(_this) {

@@ -45,3 +45,3 @@ return function() {

this.append(buf);
startEnded = (_ref2 = options.bsStartEnded) != null ? _ref2 : true;
startEnded = (ref2 = options.bsStartEnded) != null ? ref2 : true;
if (!!startEnded) {

@@ -92,5 +92,5 @@ this.end();

BufferStream.prototype._resetCB = function() {
var args, cb, _ref;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
_ref = [this.waitingCB, null, Number.MAX_VALUE], cb = _ref[0], this.waitingCB = _ref[1], this.waitingLen = _ref[2];
var args, cb, ref;
args = 1 <= arguments.length ? slice.call(arguments, 0) : [];
ref = [this.waitingCB, null, Number.MAX_VALUE], cb = ref[0], this.waitingCB = ref[1], this.waitingLen = ref[2];
if (cb && args.length) {

@@ -97,0 +97,0 @@ cb.apply(this, args);

(function() {
var Feedly, fs, http, open, path, q, request, untildify, url, utils, _normalizeTag;
var Feedly, _normalizeTag, fs, http, open, path, q, request, untildify, url, utils;

@@ -115,4 +115,4 @@ fs = require('fs');

Feedly.prototype._auth = function() {
var addr, result, u, _ref;
_ref = utils.qserver(this.options.port, this.options.html_text), addr = _ref[0], result = _ref[1];
var addr, ref, result, u;
ref = utils.qserver(this.options.port, this.options.html_text), addr = ref[0], result = ref[1];
u = url.parse(this.options.base);

@@ -325,9 +325,9 @@ return addr.then((function(_this) {

Feedly.prototype.counts = function(autorefresh, newerThan, streamId, cb) {
var found, input, _ref, _ref1, _ref2;
var found, input, ref, ref1, ref2;
if (typeof autorefresh === 'function') {
_ref = [autorefresh, null, null, null], cb = _ref[0], autorefresh = _ref[1], newerThan = _ref[2], streamId = _ref[3];
ref = [autorefresh, null, null, null], cb = ref[0], autorefresh = ref[1], newerThan = ref[2], streamId = ref[3];
} else if (typeof newerThan === 'function') {
_ref1 = [newerThan, null, null], cb = _ref1[0], newerThan = _ref1[1], streamId = _ref1[2];
ref1 = [newerThan, null, null], cb = ref1[0], newerThan = ref1[1], streamId = ref1[2];
} else if (typeof streamId === 'function') {
_ref2 = [streamId, null], cb = _ref2[0], streamId = _ref2[1];
ref2 = [streamId, null], cb = ref2[0], streamId = ref2[1];
}

@@ -377,3 +377,3 @@ input = {};

Feedly.prototype.markFeedRead = function(ids, since, cb) {
var body, _ref;
var body, ref;
if (typeof ids === 'string') {

@@ -383,3 +383,3 @@ ids = [ids];

if (typeof since === 'function') {
_ref = [since, null], cb = _ref[0], since = _ref[1];
ref = [since, null], cb = ref[0], since = ref[1];
}

@@ -400,3 +400,3 @@ body = {

Feedly.prototype.markCategoryRead = function(ids, since, cb) {
var _ref;
var ref;
if (typeof ids === 'string') {

@@ -406,3 +406,3 @@ ids = [ids];

if (typeof since === 'function') {
_ref = [since, null], cb = _ref[0], since = _ref[1];
ref = [since, null], cb = ref[0], since = ref[1];
}

@@ -428,5 +428,5 @@ return this.ready.then((function(_this) {

Feedly.prototype.reads = function(newerThan, cb) {
var input, _ref;
var input, ref;
if (typeof newerThan === 'function') {
_ref = [newerThan, null], cb = _ref[0], newerThan = _ref[1];
ref = [newerThan, null], cb = ref[0], newerThan = ref[1];
}

@@ -443,5 +443,5 @@ input = null;

Feedly.prototype.tags = function(newerThan, cb) {
var input, _ref;
var input, ref;
if (typeof newerThan === 'function') {
_ref = [newerThan, null], cb = _ref[0], newerThan = _ref[1];
ref = [newerThan, null], cb = ref[0], newerThan = ref[1];
}

@@ -502,5 +502,5 @@ input = null;

Feedly.prototype.stream = function(id, continuation, cb) {
var input, _ref;
var input, ref;
if (typeof continuation === 'function') {
_ref = [continuation, null], cb = _ref[0], continuation = _ref[1];
ref = [continuation, null], cb = ref[0], continuation = ref[1];
}

@@ -528,3 +528,3 @@ input = {};

Feedly.prototype.subscribe = function(url, categories, cb) {
var input, _ref;
var input, ref;
if (!url.match(/^feed\//)) {

@@ -534,3 +534,3 @@ url = "feed/" + url;

if (typeof categories === 'function') {
_ref = [categories, null], cb = _ref[0], categories = _ref[1];
ref = [categories, null], cb = ref[0], categories = ref[1];
}

@@ -551,3 +551,3 @@ input = {

if (typeof c === 'string') {
m = c.match(/^user\/[^/]+\/(.*)/);
m = c.match(/^user\/[^\/]+\/(.*)/);
name = null;

@@ -643,31 +643,2 @@ id = null;

Feedly.prototype.topics = function(cb) {
return this._request(cb, '/v3/topics');
};
Feedly.prototype.addTopic = function(topic, interest, cb) {
return this.ready.then((function(_this) {
return function() {
if (!topic.match(/^user\//)) {
topic = "user/" + _this.state.id + "/topic/" + topic;
}
return _this._request(cb, '/v3/topics', 'POST', {
id: topic,
interest: interest
});
};
})(this));
};
Feedly.prototype.deleteTopic = function(topic, cb) {
return this.ready.then((function(_this) {
return function() {
if (!topic.match(/^user\//)) {
topic = "user/" + _this.state.id + "/topic/" + topic;
}
return _this._request(cb, "/v3/topics/" + (encodeURIComponent(topic)), 'DELETE');
};
})(this));
};
return Feedly;

@@ -674,0 +645,0 @@

(function() {
var BufferStream, http, q, request, url,
__slice = [].slice;
slice = [].slice;

@@ -16,9 +16,9 @@ http = require('http');

exports.extend = function() {
var a, adds, k, old, v, _i, _len;
old = arguments[0], adds = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
var a, adds, j, k, len, old, v;
old = arguments[0], adds = 2 <= arguments.length ? slice.call(arguments, 1) : [];
if (old == null) {
old = {};
}
for (_i = 0, _len = adds.length; _i < _len; _i++) {
a = adds[_i];
for (j = 0, len = adds.length; j < len; j++) {
a = adds[j];
for (k in a) {

@@ -25,0 +25,0 @@ v = a[k];

{
"name": "feedly",
"version": "0.1.1",
"version": "0.1.2",
"description": "feedly.com API",

@@ -30,20 +30,23 @@ "main": "lib/feedly.js",

"devDependencies": {
"grunt": "^0.4.4",
"grunt-codo": "^0.1.0",
"grunt-coffeelint": "0.0.10",
"grunt-contrib-clean": "^0.5.0",
"grunt-contrib-coffee": "^0.10.1",
"grunt-contrib-nodeunit": "^0.3.3",
"coffee-script": "^1.9.2",
"coffeelint": "^1.9.6",
"grunt": "^0.4.5",
"grunt-codo": "^0.2.0",
"grunt-coffeelint": "0.0.13",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-coffee": "^0.13.0",
"grunt-contrib-nodeunit": "^0.4.1",
"grunt-contrib-watch": "^0.6.1",
"grunt-express": "^1.2.1",
"grunt-release": "^0.7.0",
"grunt-shell": "^0.7.0",
"jit-grunt": "^0.5.0"
"grunt-express": "^1.4.1",
"grunt-release": "^0.12.0",
"grunt-shell": "^1.1.2",
"jit-grunt": "^0.9.1",
"nodeunit": "^0.9.1"
},
"dependencies": {
"open": "0.0.5",
"q": "^1.0.1",
"request": "^2.34.0",
"untildify": "^0.1.0"
"q": "^1.4.0",
"request": "^2.55.0",
"untildify": "^2.0.0"
}
}
This is a node API for [Feedly](http://developer.feedly.com)
More information coming.
Installation
============
Install from NPM:
npm install --save feedly
Creating an instance
====================
Create an instance:
var Feedly = require './src/feedly'
var f = new Feedly({
client_id: 'MY_CLIENT_ID',
client_secret: 'MY_CLIENT_SECRET'
port: 8080
});
Authentication
==============
The first non-trivial method call you make to the object will cause your
default browser to pop up asking you to log in. When that process is complete,
you will see a page served from http://localhost:8080/, which you can close.
After that point, you won't need to log in again until your token expires
(without your having called `refresh` in the meantime).
**WARNING**: by default, this will store your auth token and refresh token in
`~/.feedly`, unencrypted. Set the `config_file` options to null to prevent this
behavior, but you will have to log in through the web site each time you create
a new `Feedly` instance.
Callbacks and promises
======================
Each method takes an optional node-style `(error, results)` callback. If you
prefer a [promise](https://github.com/kriskowal/q)-style
approach, you do without a callback, like this:
f.reads().then(function(results) {
// process results
},
function (error) {
// process error
});
Documentation
=============
Full documentation for the API can be found
[here](http://hildjj.github.io/node-feedly/doc/).

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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