Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

flickr-following

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flickr-following - npm Package Compare versions

Comparing version
0.0.0
to
0.0.1-security
+12
-21
package.json
{
"name": "flickr-following",
"version": "0.0.0",
"description": "List the people given user follows on Flickr",
"version": "0.0.1-security",
"description": "",
"main": "index.js",
"scripts": {
"test": "node test"
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"flickr",
"photos",
"photography",
"api",
"client"
],
"repository": {
"url": "git@github.com:npm-flickr/flickr-following.git",
"type": "git"
"type": "git",
"url": "git+https://github.com/npm/security-holder.git"
},
"author": "azer",
"license": "BSD",
"dependencies": {
"flickr-client": "0.0.2"
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/npm/security-holder/issues"
},
"devDependencies": {
"with-env": "^0.1.0",
"prova": "^1.11.1"
}
}
"homepage": "https://github.com/npm/security-holder#readme"
}

@@ -1,35 +0,9 @@

## flickr-following
# Security holding package
List the people given user follows on Flickr
This package name is not currently in use, but was formerly occupied
by a popular package. To avoid malicious use, npm is hanging on to
the package name, but loosely, and we'll probably give it to you if
you want it.
## Install
```bash
$ npm install flickr-following
```
## Usage
```js
var following = require('flickr-following')({
key: 'api-key'
})
following('user-id', function (error, users) {
users.length
// => 400
users[0]
{ "nsid": "49575362@N05", "username": "**mog**", "iconserver": "3770", "iconfarm": 4, "ignored": 0, "rev_ignored": 0 }
})
```
[flickr-client](http://github.com/npm-flickr/flickr-client) can be passed to avoid repeating auth options:
```js
var client = require('flickr-client')({
key: 'api-key'
});
var following = require('flickr-following')(client)
```
You may adopt this package by contacting support@npmjs.com and
requesting the name.

Sorry, the diff of this file is not supported yet

var createClient = require("flickr-client");
var client;
module.exports = setup;
function setup (options) {
client = createClient(options);
return following;
}
function following (userId, callback) {
client('contacts.getPublicList', { user_id: userId }, function (error, response) {
if (error) return callback(error);
callback(undefined, response.contacts.contact);
});
}