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

fetch-tweets

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetch-tweets - npm Package Compare versions

Comparing version 0.1.0 to 0.1.5

.travis.yml

4

gulpfile.js

@@ -29,3 +29,3 @@ /**

gulp.task('build', ['clean'], function(){
return gulp.src('./src/**/*.coffee')
return gulp.src('./fetch-tweets.coffee')
.pipe(lint())

@@ -63,3 +63,3 @@ .pipe(lint.reporter())

gulp.task('watch', function(){
gulp.watch('./src/**/*.coffee', ['test-after-build']);
gulp.watch('./fetch-tweets.coffee', ['test-after-build']);
gulp.watch('./test/**/*.coffee', ['test']);

@@ -66,0 +66,0 @@ });

@@ -1,1 +0,1 @@

(function(){var t,e,r,n;n=require("request"),r=require("querystring"),e=require("./endpoints"),t=function(){function t(t,e){this.credentials=t,this.shouldFormatResults=null!=e?e:!0,s=this.shouldFormatResults}var o,u,s;return s=null,u=function(t,e,r){var o;return o={callback:"/",consumer_key:e.consumer_key,consumer_secret:e.consumer_secret},n({url:t,json:!0,oauth:o},function(t,e,n){return t||200!==e.statusCode?void 0:r(n)})},o=function(t){var e,r,n,o,u;if(!s)return t;for(u=[],o=t.statuses,e=0,r=o.length;r>e;e++)n=o[e],u.push({date:n.created_at,body:n.text,location:{geo:n.geo,coordinates:n.coordinates,place:n.place},"retweet-count":n.retweet_count,"favorited-count":n.favorite_count,lang:n.lang});return u},t.prototype.byTopic=function(t,n){var s,c;return null==t&&(t=""),"string"==typeof t?c="q="+t+"&count=100":"object"==typeof t&&(c=r.stringify(t)),s=e.FETCH_TWEETS+"?"+c,u(s,this.credentials,function(t){return n(o(t))})},t}(),module.exports=t}).call(this);
(function(){var t,e,n;n=require("request"),e=require("querystring"),t=function(){function t(t,e){this.credentials=t,this.shouldFormatResults=null!=e?e:!0,c=this.shouldFormatResults}var o,r,a,c;return c=null,r=function(t,e,o){var r;return r={callback:"/",consumer_key:e.consumer_key,consumer_secret:e.consumer_secret},n({url:t,json:!0,oauth:r},function(t,e,n){return t||200!==e.statusCode?void 0:o(n)})},o=function(t){var e,n,o,r,u;if(!c)return t;for(u=[],r=t.statuses,e=0,n=r.length;n>e;e++)o=r[e],u.push({date:o.created_at,body:o.text,location:a(o),"retweet-count":o.retweet_count,"favorited-count":o.favorite_count,lang:o.lang});return u},a=function(t){var e;return e={place_name:"_",location:{lat:0,lng:0}},null!=t.coordinates?(e.location.lat=t.coordinates.coordinates[1],e.location.lng=t.coordinates.coordinates[0]):null!=t.geo&&(e.location.lat=t.geo.coordinates[0],e.location.lng=t.geo.coordinates[1]),null!=t.place?e.place_name=t.place.name:null!=t.user&&(e.place_name=t.user.location),e},t.prototype.byTopic=function(t,n){var a,c;return null==t&&(t=""),"string"==typeof t?c="q="+t+"&count=100":"object"==typeof t&&(c=e.stringify(t)),a="https://api.twitter.com/1.1/search/tweets.json?"+c,r(a,this.credentials,function(t){return n(o(t))})},t}(),module.exports=t}).call(this);
{
"name": "fetch-tweets",
"version": "0.1.0",
"version": "0.1.5",
"description": "A node module that fetches tweets from Twitter based on topic, location, timeframe or combination",

@@ -5,0 +5,0 @@ "main": "index.js",

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