Comparing version 7.2.1 to 7.3.0-next.1704669600.f5c4e8ddf00f59ac9e3822301c4785e387ada5da
@@ -128,3 +128,3 @@ // external | ||
} | ||
/** Patreon URL */ | ||
/** Patreon Username from Patreon URL */ | ||
function getUsernameFromPatreonUrl(url) { | ||
@@ -134,2 +134,7 @@ const match = /^https?:\/\/patreon\.com\/([^/]+)\/?$/.exec(url); | ||
} | ||
/** Patreon ID from Patreon URL */ | ||
function getIdFromPatreonUrl(url) { | ||
const match = /^https?:\/\/patreon\.com\/user(?:\/?(?:creators)?)\?u=([^/]+)\/?$/.exec(url); | ||
return (match && match[1]) || ''; | ||
} | ||
/** OpenCollective URL */ | ||
@@ -162,2 +167,4 @@ function getUsernameFromOpenCollectiveUrl(url) { | ||
patreonUsername = ''; | ||
/** Patreon ID */ | ||
patreonId = ''; | ||
/** Fields used to resolve {@link Fellow.username} */ | ||
@@ -171,2 +178,3 @@ usernameFields = [ | ||
'patreonUsername', | ||
'patreonId', | ||
]; | ||
@@ -360,9 +368,11 @@ /** Get all unique resolved social usernames */ | ||
} | ||
/** Get the Patreon URL from the {@link Fellow.patreonUsername} */ | ||
/** Get the Patreon URL from the {@link Fellow.patreonUsername} or {@link Fellow.patreonId} */ | ||
get patreonUrl() { | ||
return this.patreonUsername | ||
? `https://patreon.com/${this.patreonUsername}` | ||
: ''; | ||
: this.patreonId | ||
? `https://patreon.com/user?u=${this.patreonId}` | ||
: ''; | ||
} | ||
/** Set the Patreon URL and username from an input */ | ||
/** Set the Patreon URL and username/id from an input */ | ||
set patreonUrl(input) { | ||
@@ -374,3 +384,9 @@ const username = getUsernameFromPatreonUrl(input); | ||
else { | ||
throw new Error(`Invalid Patreon URL: ${input}`); | ||
const id = getIdFromPatreonUrl(input); | ||
if (id) { | ||
this.patreonId = id; | ||
} | ||
else { | ||
throw new Error(`Invalid Patreon URL: ${input}`); | ||
} | ||
} | ||
@@ -459,4 +475,6 @@ } | ||
case 'patreonUrl': | ||
if (await fetchNotOk(url)) | ||
if (await fetchNotOk(url)) { | ||
this.patreonUsername = ''; | ||
this.patreonId = ''; | ||
} | ||
break; | ||
@@ -463,0 +481,0 @@ case 'twitterUrl': |
@@ -176,3 +176,3 @@ // external | ||
/** Patreon URL */ | ||
/** Patreon Username from Patreon URL */ | ||
function getUsernameFromPatreonUrl(url: string): string { | ||
@@ -183,2 +183,11 @@ const match = /^https?:\/\/patreon\.com\/([^/]+)\/?$/.exec(url) | ||
/** Patreon ID from Patreon URL */ | ||
function getIdFromPatreonUrl(url: string): string { | ||
const match = | ||
/^https?:\/\/patreon\.com\/user(?:\/?(?:creators)?)\?u=([^/]+)\/?$/.exec( | ||
url, | ||
) | ||
return (match && match[1]) || '' | ||
} | ||
/** OpenCollective URL */ | ||
@@ -227,2 +236,5 @@ function getUsernameFromOpenCollectiveUrl(url: string): string { | ||
/** Patreon ID */ | ||
patreonId: string = '' | ||
/** Fields used to resolve {@link Fellow.username} */ | ||
@@ -236,2 +248,3 @@ protected readonly usernameFields = [ | ||
'patreonUsername', | ||
'patreonId', | ||
] | ||
@@ -429,9 +442,11 @@ | ||
/** Get the Patreon URL from the {@link Fellow.patreonUsername} */ | ||
/** Get the Patreon URL from the {@link Fellow.patreonUsername} or {@link Fellow.patreonId} */ | ||
get patreonUrl() { | ||
return this.patreonUsername | ||
? `https://patreon.com/${this.patreonUsername}` | ||
: '' | ||
: this.patreonId | ||
? `https://patreon.com/user?u=${this.patreonId}` | ||
: '' | ||
} | ||
/** Set the Patreon URL and username from an input */ | ||
/** Set the Patreon URL and username/id from an input */ | ||
set patreonUrl(input: string) { | ||
@@ -442,3 +457,8 @@ const username = getUsernameFromPatreonUrl(input) | ||
} else { | ||
throw new Error(`Invalid Patreon URL: ${input}`) | ||
const id = getIdFromPatreonUrl(input) | ||
if (id) { | ||
this.patreonId = id | ||
} else { | ||
throw new Error(`Invalid Patreon URL: ${input}`) | ||
} | ||
} | ||
@@ -523,3 +543,6 @@ } | ||
case 'patreonUrl': | ||
if (await fetchNotOk(url)) this.patreonUsername = '' | ||
if (await fetchNotOk(url)) { | ||
this.patreonUsername = '' | ||
this.patreonId = '' | ||
} | ||
break | ||
@@ -526,0 +549,0 @@ case 'twitterUrl': |
@@ -128,3 +128,3 @@ // external | ||
} | ||
/** Patreon URL */ | ||
/** Patreon Username from Patreon URL */ | ||
function getUsernameFromPatreonUrl(url) { | ||
@@ -134,2 +134,7 @@ const match = /^https?:\/\/patreon\.com\/([^/]+)\/?$/.exec(url); | ||
} | ||
/** Patreon ID from Patreon URL */ | ||
function getIdFromPatreonUrl(url) { | ||
const match = /^https?:\/\/patreon\.com\/user(?:\/?(?:creators)?)\?u=([^/]+)\/?$/.exec(url); | ||
return (match && match[1]) || ''; | ||
} | ||
/** OpenCollective URL */ | ||
@@ -325,9 +330,11 @@ function getUsernameFromOpenCollectiveUrl(url) { | ||
} | ||
/** Get the Patreon URL from the {@link Fellow.patreonUsername} */ | ||
/** Get the Patreon URL from the {@link Fellow.patreonUsername} or {@link Fellow.patreonId} */ | ||
get patreonUrl() { | ||
return this.patreonUsername | ||
? `https://patreon.com/${this.patreonUsername}` | ||
: ''; | ||
: this.patreonId | ||
? `https://patreon.com/user?u=${this.patreonId}` | ||
: ''; | ||
} | ||
/** Set the Patreon URL and username from an input */ | ||
/** Set the Patreon URL and username/id from an input */ | ||
set patreonUrl(input) { | ||
@@ -339,3 +346,9 @@ const username = getUsernameFromPatreonUrl(input); | ||
else { | ||
throw new Error(`Invalid Patreon URL: ${input}`); | ||
const id = getIdFromPatreonUrl(input); | ||
if (id) { | ||
this.patreonId = id; | ||
} | ||
else { | ||
throw new Error(`Invalid Patreon URL: ${input}`); | ||
} | ||
} | ||
@@ -411,4 +424,6 @@ } | ||
case 'patreonUrl': | ||
if (await fetchNotOk(url)) | ||
if (await fetchNotOk(url)) { | ||
this.patreonUsername = ''; | ||
this.patreonId = ''; | ||
} | ||
break; | ||
@@ -531,2 +546,4 @@ case 'twitterUrl': | ||
this.patreonUsername = ''; | ||
/** Patreon ID */ | ||
this.patreonId = ''; | ||
/** Fields used to resolve {@link Fellow.username} */ | ||
@@ -540,2 +557,3 @@ this.usernameFields = [ | ||
'patreonUsername', | ||
'patreonId', | ||
]; | ||
@@ -542,0 +560,0 @@ /** Storage of the years */ |
@@ -134,3 +134,3 @@ "use strict"; | ||
} | ||
/** Patreon URL */ | ||
/** Patreon Username from Patreon URL */ | ||
function getUsernameFromPatreonUrl(url) { | ||
@@ -140,2 +140,7 @@ const match = /^https?:\/\/patreon\.com\/([^/]+)\/?$/.exec(url); | ||
} | ||
/** Patreon ID from Patreon URL */ | ||
function getIdFromPatreonUrl(url) { | ||
const match = /^https?:\/\/patreon\.com\/user(?:\/?(?:creators)?)\?u=([^/]+)\/?$/.exec(url); | ||
return (match && match[1]) || ''; | ||
} | ||
/** OpenCollective URL */ | ||
@@ -332,9 +337,11 @@ function getUsernameFromOpenCollectiveUrl(url) { | ||
} | ||
/** Get the Patreon URL from the {@link Fellow.patreonUsername} */ | ||
/** Get the Patreon URL from the {@link Fellow.patreonUsername} or {@link Fellow.patreonId} */ | ||
get patreonUrl() { | ||
return this.patreonUsername | ||
? `https://patreon.com/${this.patreonUsername}` | ||
: ''; | ||
: this.patreonId | ||
? `https://patreon.com/user?u=${this.patreonId}` | ||
: ''; | ||
} | ||
/** Set the Patreon URL and username from an input */ | ||
/** Set the Patreon URL and username/id from an input */ | ||
set patreonUrl(input) { | ||
@@ -346,3 +353,9 @@ const username = getUsernameFromPatreonUrl(input); | ||
else { | ||
throw new Error(`Invalid Patreon URL: ${input}`); | ||
const id = getIdFromPatreonUrl(input); | ||
if (id) { | ||
this.patreonId = id; | ||
} | ||
else { | ||
throw new Error(`Invalid Patreon URL: ${input}`); | ||
} | ||
} | ||
@@ -418,4 +431,6 @@ } | ||
case 'patreonUrl': | ||
if (await fetchNotOk(url)) | ||
if (await fetchNotOk(url)) { | ||
this.patreonUsername = ''; | ||
this.patreonId = ''; | ||
} | ||
break; | ||
@@ -538,2 +553,4 @@ case 'twitterUrl': | ||
this.patreonUsername = ''; | ||
/** Patreon ID */ | ||
this.patreonId = ''; | ||
/** Fields used to resolve {@link Fellow.username} */ | ||
@@ -547,2 +564,3 @@ this.usernameFields = [ | ||
'patreonUsername', | ||
'patreonId', | ||
]; | ||
@@ -549,0 +567,0 @@ /** Storage of the years */ |
@@ -134,3 +134,3 @@ "use strict"; | ||
} | ||
/** Patreon URL */ | ||
/** Patreon Username from Patreon URL */ | ||
function getUsernameFromPatreonUrl(url) { | ||
@@ -140,2 +140,7 @@ const match = /^https?:\/\/patreon\.com\/([^/]+)\/?$/.exec(url); | ||
} | ||
/** Patreon ID from Patreon URL */ | ||
function getIdFromPatreonUrl(url) { | ||
const match = /^https?:\/\/patreon\.com\/user(?:\/?(?:creators)?)\?u=([^/]+)\/?$/.exec(url); | ||
return (match && match[1]) || ''; | ||
} | ||
/** OpenCollective URL */ | ||
@@ -169,2 +174,4 @@ function getUsernameFromOpenCollectiveUrl(url) { | ||
patreonUsername = ''; | ||
/** Patreon ID */ | ||
patreonId = ''; | ||
/** Fields used to resolve {@link Fellow.username} */ | ||
@@ -178,2 +185,3 @@ usernameFields = [ | ||
'patreonUsername', | ||
'patreonId', | ||
]; | ||
@@ -367,9 +375,11 @@ /** Get all unique resolved social usernames */ | ||
} | ||
/** Get the Patreon URL from the {@link Fellow.patreonUsername} */ | ||
/** Get the Patreon URL from the {@link Fellow.patreonUsername} or {@link Fellow.patreonId} */ | ||
get patreonUrl() { | ||
return this.patreonUsername | ||
? `https://patreon.com/${this.patreonUsername}` | ||
: ''; | ||
: this.patreonId | ||
? `https://patreon.com/user?u=${this.patreonId}` | ||
: ''; | ||
} | ||
/** Set the Patreon URL and username from an input */ | ||
/** Set the Patreon URL and username/id from an input */ | ||
set patreonUrl(input) { | ||
@@ -381,3 +391,9 @@ const username = getUsernameFromPatreonUrl(input); | ||
else { | ||
throw new Error(`Invalid Patreon URL: ${input}`); | ||
const id = getIdFromPatreonUrl(input); | ||
if (id) { | ||
this.patreonId = id; | ||
} | ||
else { | ||
throw new Error(`Invalid Patreon URL: ${input}`); | ||
} | ||
} | ||
@@ -466,4 +482,6 @@ } | ||
case 'patreonUrl': | ||
if (await fetchNotOk(url)) | ||
if (await fetchNotOk(url)) { | ||
this.patreonUsername = ''; | ||
this.patreonId = ''; | ||
} | ||
break; | ||
@@ -470,0 +488,0 @@ case 'twitterUrl': |
@@ -63,2 +63,4 @@ /** Verify an email */ | ||
patreonUsername: string; | ||
/** Patreon ID */ | ||
patreonId: string; | ||
/** Fields used to resolve {@link Fellow.username} */ | ||
@@ -130,5 +132,5 @@ protected readonly usernameFields: string[]; | ||
set facebookUrl(input: string); | ||
/** Get the Patreon URL from the {@link Fellow.patreonUsername} */ | ||
/** Get the Patreon URL from the {@link Fellow.patreonUsername} or {@link Fellow.patreonId} */ | ||
get patreonUrl(): string; | ||
/** Set the Patreon URL and username from an input */ | ||
/** Set the Patreon URL and username/id from an input */ | ||
set patreonUrl(input: string); | ||
@@ -135,0 +137,0 @@ /** Get the OpenCollective URL from the {@link Fellow.opencollectiveUsername} */ |
{ | ||
"name": "fellow", | ||
"version": "7.2.1", | ||
"version": "7.3.0-next.1704669600.f5c4e8ddf00f59ac9e3822301c4785e387ada5da", | ||
"license": "Artistic-2.0", | ||
@@ -94,2 +94,4 @@ "description": "Fellow is a package for creating people that can be unified by their shared values via a singleton list on the class", | ||
"Codecov <hello-codecov@sentry.io> (https://codecov.io) (https://github.com/codecov): Empower developers with tools to improve code quality and testing.", | ||
"Frontend Masters <support@frontendmasters.com> (https://FrontendMasters.com) (https://github.com/FrontendMasters) (https://thanks.dev/d/gh/FrontendMasters): The training platform for web app engineering skills – from front-end to full-stack! 🚀", | ||
"Mr. Henry <hello@mrhenry.be> (https://mrhenry.be) (https://github.com/mrhenry)", | ||
"Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)", | ||
@@ -102,3 +104,3 @@ "Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)", | ||
"Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew)", | ||
"Armen Mkrtchian (https://mogoni.dev) (https://github.com/Armenm)", | ||
"Armen Mkrtchian <armen.mkrtchian@gmail.com> (https://mogoni.dev) (https://github.com/Armenm) (https://twitter.com/armen_mkrtchian)", | ||
"Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa)", | ||
@@ -108,7 +110,9 @@ "Chad (https://opencollective.com/chad8)", | ||
"dr.dimitru (https://veliovgroup.com) (https://github.com/dr-dimitru)", | ||
"Elliott Ditman (https://elliottditman.com) (https://github.com/elliottditman)", | ||
"Elliott Ditman <elliottditman@gmail.com> (https://elliottditman.com) (https://github.com/elliottditman)", | ||
"entroniq (https://gitlab.com/entroniq) (https://thanks.dev/d/gl/entroniq)", | ||
"Frontend Masters <support@frontendmasters.com> (https://FrontendMasters.com) (https://github.com/FrontendMasters) (https://thanks.dev/d/gh/FrontendMasters)", | ||
"GitHub (https://github.com/about) (https://github.com/github)", | ||
"Hunter Beast (https://cryptoquick.com) (https://github.com/cryptoquick)", | ||
"Jean-Luc Geering (https://github.com/jlgeering) (https://opencollective.com/jlgeering) (https://twitter.com/jlgeering)", | ||
"Lee Driscoll <lsdriscoll@icloud.com> (https://leedriscoll.me) (https://github.com/leedriscoll)", | ||
"Michael Duane Mooring (https://mdm.cc) (https://github.com/mikeumus) (https://opencollective.com/mikeumus) (https://twitter.com/mikeumus)", | ||
@@ -123,2 +127,3 @@ "Michael Harry Scepaniak <mhs1.sys@gmail.com> (https://michaelscepaniak.com) (https://github.com/hispanic)", | ||
"Robert de Forest <guitar.robot@gmail.com> (https://github.com/rdeforest)", | ||
"Scott Kempson <scottkempson@gmail.com> (https://github.com/scokem) (https://twitter.com/scokem)", | ||
"Sentry (https://sentry.io) (https://github.com/getsentry)", | ||
@@ -128,3 +133,4 @@ "ServieJS (https://github.com/serviejs) (https://thanks.dev/d/gh/serviejs)", | ||
"Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm)", | ||
"WriterJohnBuck (https://github.com/WriterJohnBuck)" | ||
"WriterJohnBuck (https://github.com/WriterJohnBuck)", | ||
"Ángel González <aglezabad@gmail.com> (https://univunix.com) (https://github.com/Aglezabad) (https://twitter.com/Aglezabad)" | ||
], | ||
@@ -254,16 +260,16 @@ "engines": { | ||
"devDependencies": { | ||
"@types/node": "^20.10.5", | ||
"@typescript-eslint/eslint-plugin": "^6.16.0", | ||
"@typescript-eslint/parser": "^6.16.0", | ||
"@types/node": "^20.10.7", | ||
"@typescript-eslint/eslint-plugin": "^6.18.0", | ||
"@typescript-eslint/parser": "^6.18.0", | ||
"assert-helpers": "^11.12.0", | ||
"eslint": "^8.56.0", | ||
"eslint-config-bevry": "^5.3.0", | ||
"eslint-config-bevry": "^5.5.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-babel": "^5.3.1", | ||
"eslint-plugin-prettier": "^5.1.2", | ||
"kava": "^7.8.0", | ||
"kava": "^7.9.0", | ||
"make-deno-edition": "^2.3.0", | ||
"prettier": "^3.1.1", | ||
"projectz": "^4.2.0", | ||
"typedoc": "^0.25.4", | ||
"typedoc": "^0.25.6", | ||
"typescript": "5.3.3", | ||
@@ -270,0 +276,0 @@ "valid-directory": "^4.9.0", |
@@ -51,3 +51,3 @@ <!-- TITLE/ --> | ||
``` typescript | ||
import pkg from 'https://unpkg.com/fellow@^7.2.1/edition-deno/index.ts' | ||
import pkg from 'https://unpkg.com/fellow@^7.3.0/edition-deno/index.ts' | ||
``` | ||
@@ -58,3 +58,3 @@ ### [Skypack](https://www.skypack.dev "Skypack is a JavaScript Delivery Network for modern web apps") | ||
<script type="module"> | ||
import pkg from '//cdn.skypack.dev/fellow@^7.2.1' | ||
import pkg from '//cdn.skypack.dev/fellow@^7.3.0' | ||
</script> | ||
@@ -66,3 +66,3 @@ ``` | ||
<script type="module"> | ||
import pkg from '//unpkg.com/fellow@^7.2.1' | ||
import pkg from '//unpkg.com/fellow@^7.3.0' | ||
</script> | ||
@@ -74,3 +74,3 @@ ``` | ||
<script type="module"> | ||
import pkg from '//dev.jspm.io/fellow@7.2.1' | ||
import pkg from '//dev.jspm.io/fellow@7.3.0' | ||
</script> | ||
@@ -136,2 +136,4 @@ ``` | ||
- [Codecov](https://codecov.io) — Empower developers with tools to improve code quality and testing. | ||
- [Frontend Masters](https://FrontendMasters.com) — The training platform for web app engineering skills – from front-end to full-stack! 🚀 | ||
- [Mr. Henry](https://mrhenry.be) | ||
- [Poonacha Medappa](https://poonachamedappa.com) | ||
@@ -152,5 +154,7 @@ - [Rob Morris](https://github.com/Rob-Morris) | ||
- [entroniq](https://gitlab.com/entroniq) | ||
- [Frontend Masters](https://FrontendMasters.com) | ||
- [GitHub](https://github.com/about) | ||
- [Hunter Beast](https://cryptoquick.com) | ||
- [Jean-Luc Geering](https://github.com/jlgeering) | ||
- [Lee Driscoll](https://leedriscoll.me) | ||
- [Michael Duane Mooring](https://mdm.cc) | ||
@@ -165,2 +169,3 @@ - [Michael Harry Scepaniak](https://michaelscepaniak.com) | ||
- [Robert de Forest](https://github.com/rdeforest) | ||
- [Scott Kempson](https://github.com/scokem) | ||
- [Sentry](https://sentry.io) | ||
@@ -171,2 +176,3 @@ - [ServieJS](https://github.com/serviejs) | ||
- [WriterJohnBuck](https://github.com/WriterJohnBuck) | ||
- [Ángel González](https://univunix.com) | ||
@@ -173,0 +179,0 @@ <!-- /BACKERS --> |
@@ -176,3 +176,3 @@ // external | ||
/** Patreon URL */ | ||
/** Patreon Username from Patreon URL */ | ||
function getUsernameFromPatreonUrl(url: string): string { | ||
@@ -183,2 +183,11 @@ const match = /^https?:\/\/patreon\.com\/([^/]+)\/?$/.exec(url) | ||
/** Patreon ID from Patreon URL */ | ||
function getIdFromPatreonUrl(url: string): string { | ||
const match = | ||
/^https?:\/\/patreon\.com\/user(?:\/?(?:creators)?)\?u=([^/]+)\/?$/.exec( | ||
url, | ||
) | ||
return (match && match[1]) || '' | ||
} | ||
/** OpenCollective URL */ | ||
@@ -227,2 +236,5 @@ function getUsernameFromOpenCollectiveUrl(url: string): string { | ||
/** Patreon ID */ | ||
patreonId: string = '' | ||
/** Fields used to resolve {@link Fellow.username} */ | ||
@@ -236,2 +248,3 @@ protected readonly usernameFields = [ | ||
'patreonUsername', | ||
'patreonId', | ||
] | ||
@@ -429,9 +442,11 @@ | ||
/** Get the Patreon URL from the {@link Fellow.patreonUsername} */ | ||
/** Get the Patreon URL from the {@link Fellow.patreonUsername} or {@link Fellow.patreonId} */ | ||
get patreonUrl() { | ||
return this.patreonUsername | ||
? `https://patreon.com/${this.patreonUsername}` | ||
: '' | ||
: this.patreonId | ||
? `https://patreon.com/user?u=${this.patreonId}` | ||
: '' | ||
} | ||
/** Set the Patreon URL and username from an input */ | ||
/** Set the Patreon URL and username/id from an input */ | ||
set patreonUrl(input: string) { | ||
@@ -442,3 +457,8 @@ const username = getUsernameFromPatreonUrl(input) | ||
} else { | ||
throw new Error(`Invalid Patreon URL: ${input}`) | ||
const id = getIdFromPatreonUrl(input) | ||
if (id) { | ||
this.patreonId = id | ||
} else { | ||
throw new Error(`Invalid Patreon URL: ${input}`) | ||
} | ||
} | ||
@@ -523,3 +543,6 @@ } | ||
case 'patreonUrl': | ||
if (await fetchNotOk(url)) this.patreonUsername = '' | ||
if (await fetchNotOk(url)) { | ||
this.patreonUsername = '' | ||
this.patreonId = '' | ||
} | ||
break | ||
@@ -526,0 +549,0 @@ case 'twitterUrl': |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
270337
19
6408
186
1