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

fellow

Package Overview
Dependencies
Maintainers
1
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fellow - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

.babelrc

60

docs/data.json

@@ -30,3 +30,3 @@ {

"file": "esnext/lib/fellow.js",
"line": 1,
"line": 4,
"description": "A fellow with similarties to other people",

@@ -40,3 +40,3 @@ "is_constructor": 1

"file": "esnext/lib/fellow.js",
"line": 12,
"line": 15,
"description": "Create a new Fellow instance with the value, however if the value is already a fellow instance, then just return it",

@@ -61,3 +61,3 @@ "static": 1,

"file": "esnext/lib/fellow.js",
"line": 23,
"line": 26,
"description": "A singleton array attached to the class object that stores it's people objects",

@@ -71,3 +71,3 @@ "static": 1,

"file": "esnext/lib/fellow.js",
"line": 33,
"line": 36,
"description": "With the value, see if an existing fellow exists in our singleton list property with the value, otherwise create a new fellow instance with the value and add them to our singleton list",

@@ -92,3 +92,3 @@ "static": 1,

"file": "esnext/lib/fellow.js",
"line": 57,
"line": 60,
"description": "An array of fields that will denote if the user is the same user or not when using ensure",

@@ -104,3 +104,3 @@ "access": "protected",

"file": "esnext/lib/fellow.js",
"line": 67,
"line": 70,
"description": "Compare a fellow to another fellow, uses ensureFields for the comparison\nIf an ensureField is an array for both ourself and the other fellow, we will check to see if only one item of that array is similar (this is useful for email comparisons)",

@@ -124,3 +124,3 @@ "itemtype": "method",

"file": "esnext/lib/fellow.js",
"line": 96,
"line": 99,
"description": "Get a fellow from the singleton list",

@@ -145,3 +145,3 @@ "static": 1,

"file": "esnext/lib/fellow.js",
"line": 107,
"line": 110,
"description": "Add a fellow or a series of people, denoted by the value, to the singleton list",

@@ -166,3 +166,3 @@ "static": 1,

"file": "esnext/lib/fellow.js",
"line": 136,
"line": 135,
"description": "Get all fellows who contribute to a particular repository",

@@ -187,3 +187,3 @@ "static": 1,

"file": "esnext/lib/fellow.js",
"line": 149,
"line": 148,
"description": "Get all fellows who maintain a particular repository",

@@ -208,3 +208,3 @@ "static": 1,

"file": "esnext/lib/fellow.js",
"line": 162,
"line": 161,
"description": "Get all fellows who author a particular repository",

@@ -229,3 +229,3 @@ "static": 1,

"file": "esnext/lib/fellow.js",
"line": 179,
"line": 178,
"description": "Get the serialisable values of this fellow",

@@ -239,3 +239,3 @@ "itemtype": "property",

"file": "esnext/lib/fellow.js",
"line": 189,
"line": 188,
"description": "Updating the email will add the email to the start of the `emails` array",

@@ -249,3 +249,3 @@ "itemtype": "property",

"file": "esnext/lib/fellow.js",
"line": 205,
"line": 204,
"description": "When set, will determine if it is a github, facebook, or twitter url\nIf it is, then it will extract the username and url from it\nIf this is not one of those urls, then it will set the homepage variable\nWhen fetching, it will fetch `homepage || githubUrl || facebookUrl || twitterUrl || null`",

@@ -259,3 +259,3 @@ "itemtype": "property",

"file": "esnext/lib/fellow.js",
"line": 241,
"line": 240,
"itemtype": "property",

@@ -268,3 +268,3 @@ "name": "homepage",

"file": "esnext/lib/fellow.js",
"line": 246,
"line": 245,
"itemtype": "property",

@@ -277,3 +277,3 @@ "name": "githubUrl",

"file": "esnext/lib/fellow.js",
"line": 251,
"line": 250,
"itemtype": "property",

@@ -286,3 +286,3 @@ "name": "githubUsername",

"file": "esnext/lib/fellow.js",
"line": 256,
"line": 255,
"itemtype": "property",

@@ -295,3 +295,3 @@ "name": "twitterUrl",

"file": "esnext/lib/fellow.js",
"line": 261,
"line": 260,
"itemtype": "property",

@@ -304,3 +304,3 @@ "name": "twitterUsername",

"file": "esnext/lib/fellow.js",
"line": 266,
"line": 265,
"itemtype": "property",

@@ -313,3 +313,3 @@ "name": "facebookUrl",

"file": "esnext/lib/fellow.js",
"line": 271,
"line": 270,
"itemtype": "property",

@@ -322,3 +322,3 @@ "name": "facebookUsername",

"file": "esnext/lib/fellow.js",
"line": 279,
"line": 278,
"description": "Construct our fellow instance with the value",

@@ -332,3 +332,3 @@ "itemtype": "property",

"file": "esnext/lib/fellow.js",
"line": 289,
"line": 288,
"description": "Update our fellow with the passed value",

@@ -343,3 +343,3 @@ "itemtype": "property",

"file": "esnext/lib/fellow.js",
"line": 338,
"line": 337,
"description": "Ensures that the github repository exists on the class",

@@ -365,3 +365,3 @@ "access": "private",

"file": "esnext/lib/fellow.js",
"line": 351,
"line": 350,
"description": "Get all added github repository slugs that this fellow contributes to",

@@ -375,3 +375,3 @@ "itemtype": "property",

"file": "esnext/lib/fellow.js",
"line": 367,
"line": 366,
"description": "Make note that this fellow contributes to this repository slug",

@@ -392,3 +392,3 @@ "itemtype": "method",

"file": "esnext/lib/fellow.js",
"line": 378,
"line": 377,
"description": "Get all added github repository slugs that this fellow maintains",

@@ -402,3 +402,3 @@ "itemtype": "property",

"file": "esnext/lib/fellow.js",
"line": 394,
"line": 393,
"description": "Make note that this fellow maintains this repository slug",

@@ -419,3 +419,3 @@ "itemtype": "method",

"file": "esnext/lib/fellow.js",
"line": 405,
"line": 404,
"description": "Get all added github repository slugs that this fellow authors",

@@ -429,3 +429,3 @@ "itemtype": "property",

"file": "esnext/lib/fellow.js",
"line": 421,
"line": 420,
"description": "Make note that this fellow authors this repository slug",

@@ -432,0 +432,0 @@ "itemtype": "method",

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

/* eslint no-magic-numbers:0 */
'use strict';
/**

@@ -7,11 +10,8 @@ A fellow with similarties to other people

*/
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -61,4 +61,4 @@ var Fellow = (function () {

try {
if (!_iteratorNormalCompletion2 && _iterator2['return']) {
_iterator2['return']();
if (!_iteratorNormalCompletion2 && _iterator2.return) {
_iterator2.return();
}

@@ -81,4 +81,4 @@ } finally {

try {
if (!_iteratorNormalCompletion && _iterator['return']) {
_iterator['return']();
if (!_iteratorNormalCompletion && _iterator.return) {
_iterator.return();
}

@@ -102,2 +102,3 @@ } finally {

*/
}, {

@@ -136,2 +137,3 @@ key: 'ensureFields',

*/
}, {

@@ -158,2 +160,3 @@ key: 'email',

*/
}, {

@@ -229,2 +232,3 @@ key: 'url',

*/
}], [{

@@ -252,2 +256,3 @@ key: 'create',

*/
}, {

@@ -285,4 +290,4 @@ key: 'ensure',

try {
if (!_iteratorNormalCompletion3 && _iterator3['return']) {
_iterator3['return']();
if (!_iteratorNormalCompletion3 && _iterator3.return) {
_iterator3.return();
}

@@ -316,2 +321,3 @@ } finally {

*/
}, {

@@ -346,2 +352,3 @@ key: 'add',

*/
}, {

@@ -362,2 +369,3 @@ key: 'contributesRepository',

*/
}, {

@@ -378,2 +386,3 @@ key: 'maintainsRepository',

*/
}, {

@@ -419,6 +428,6 @@ key: 'authorsRepository',

}
var _name = (match[1] || '').trim() || null;
var name = (match[1] || '').trim() || null;
var email = (match[2] || '').trim() || null;
var url = (match[3] || '').trim() || null;
if (_name) this.name = _name;
if (name) this.name = name;
if (email) this.email = email;

@@ -429,3 +438,3 @@ if (url) this.url = url;

// Object Format
else if (typeof fellow === 'object') {
else if ((typeof fellow === 'undefined' ? 'undefined' : _typeof(fellow)) === 'object') {
(function () {

@@ -462,2 +471,3 @@ var urlFields = ['url', 'homepage', 'web', 'githubUrl', 'twitterUrl', 'facebookUrl'];

*/
}, {

@@ -476,2 +486,3 @@ key: 'ensureRepository',

*/
}, {

@@ -496,2 +507,3 @@ key: 'contributesRepository',

*/
}, {

@@ -516,2 +528,3 @@ key: 'maintainsRepository',

*/
}, {

@@ -577,3 +590,4 @@ key: 'authorsRepository',

exports['default'] = Fellow;
module.exports = exports['default'];
// Export
module.exports = Fellow;

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

/* eslint no-magic-numbers:0 */
'use strict'
/**

@@ -7,3 +10,3 @@ A fellow with similarties to other people

*/
export default class Fellow {
class Fellow {

@@ -120,10 +123,6 @@ // -----------------------------------

else if ( typeof value === 'string' ) {
return value.split(/, +/).map((fellow) => {
return this.ensure(fellow)
})
return value.split(/, +/).map((fellow) => this.ensure(fellow))
}
else if ( Array.isArray(value) ) {
return value.map((value) => {
return this.ensure(value)
})
return value.map((value) => this.ensure(value))
}

@@ -434,1 +433,4 @@ else if ( value ) {

}
// Export
module.exports = Fellow

@@ -1,3 +0,8 @@

// 18 September 2015
// https://github.com/bevry/base
module.exports = require('esnextguardian')('./esnext/lib/fellow.js', './es5/lib/fellow.js', require)
// 2015 December 8
// https://github.com/bevry/esnextguardian
'use strict'
module.exports = require('esnextguardian')(
require('path').join(__dirname, 'esnext', 'lib', 'fellow.js'),
require('path').join(__dirname, 'es5', 'lib', 'fellow.js'),
require
)
# History
## v2.0.0 September 18, 2015
## v2.1.0 2015 December 9
- Updated internal conventions
## v2.0.0 2015 September 18
- Removed `years`, it was too specific to the [bevry/projectz](https://github.com/bevry/projectz) use case

@@ -11,9 +14,9 @@ - Added new `compare` method

## v1.2.0 September 16, 2015
## v1.2.0 2015 September 16
- Added name fallbacks to githubUsername then twitterUsername
## v1.1.0 September 16, 2015
## v1.1.0 2015 September 16
- Added repository helpers
## v1.0.0 September 16, 2015
## v1.0.0 2015 September 16
- Initial working release
{
"name": "fellow",
"version": "2.0.0",
"version": "2.1.0",
"description": "Fellow is a package for creating people that can be unified by their shared values via a singleton list on the class",

@@ -69,4 +69,4 @@ "homepage": "https://github.com/bevry/fellow",

"assert-helpers": "^4.0.0",
"babel": "^5.8.23",
"babel-eslint": "^4.1.3",
"babel-cli": "^6.3.15",
"babel-preset-es2015": "^6.3.13",
"eslint": "^1.5.0",

@@ -81,3 +81,3 @@ "joe": "^1.6.0",

"jspm": {
"main": "./esnext/lib/fellow.js"
"main": "./es5/lib/fellow.js"
},

@@ -84,0 +84,0 @@ "scripts": {

@@ -45,3 +45,3 @@ <!-- TITLE/ -->

<li>Use: <code>require('fellow')</code></li>
<li>CDN URL: <code>//wzrd.in/bundle/fellow@2.0.0</code></li></ul>
<li>CDN URL: <code>//wzrd.in/bundle/fellow@2.1.0</code></li></ul>

@@ -48,0 +48,0 @@ <a href="http://enderjs.com" title="Ender is a full featured package manager for your browser"><h3>Ender</h3></a><ul>

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