Comparing version 4.28.0 to 4.29.0-next.1698770610.b780259f5a863ec67782eca54848c0f2769b1ea5
@@ -221,3 +221,3 @@ // Import | ||
const image = `https://saucelabs.com/browser-matrix/${saucelabsUsername}.svg?auth=${escape( | ||
saucelabsAuthToken | ||
saucelabsAuthToken, | ||
)}` | ||
@@ -244,3 +244,3 @@ const url = `https://saucelabs.com/u/${saucelabsUsername}` | ||
const image = `https://saucelabs.com/browser-matrix/${saucelabsUsername}.svg?auth=${escape( | ||
saucelabsAuthToken | ||
saucelabsAuthToken, | ||
)}` | ||
@@ -356,3 +356,3 @@ const url = `https://saucelabs.com/u/${saucelabsUsername}` | ||
const image = `https://badge.waffle.io/${githubSlug}.png?label=${escape( | ||
label | ||
label, | ||
)}` | ||
@@ -390,3 +390,3 @@ const url = `http://waffle.io/${githubSlug}` | ||
const image = new URL( | ||
`https://github.com/${githubSlug}/workflows/${githubWorkflow}/badge.svg` | ||
`https://github.com/${githubSlug}/workflows/${githubWorkflow}/badge.svg`, | ||
) | ||
@@ -636,3 +636,3 @@ if (githubBranch) image.searchParams.set('branch', githubBranch) | ||
paypalURL = `https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=${escape( | ||
paypalButtonID | ||
paypalButtonID, | ||
)}` | ||
@@ -643,3 +643,3 @@ } else if (paypalUsername) { | ||
throw new Error( | ||
'paypalURL, paypalButtonID, or paypalUsername is missing, at least one must exist' | ||
'paypalURL, paypalButtonID, or paypalUsername is missing, at least one must exist', | ||
) | ||
@@ -790,3 +790,3 @@ } | ||
throw new Error( | ||
'at least one of these is required: thanksappUsername, npmPackageName, githubSlug' | ||
'at least one of these is required: thanksappUsername, npmPackageName, githubSlug', | ||
) | ||
@@ -928,5 +928,5 @@ } | ||
return `<iframe src="https://www.facebook.com/plugins/like.php?href=${escape( | ||
homepage | ||
homepage, | ||
)}&send=false&layout=button_count&width=450&show_faces=false&font&colorscheme=light&action=like&height=21&appId=${escape( | ||
facebookApplicationID | ||
facebookApplicationID, | ||
)}" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px;" allowTransparency="true"></iframe>` | ||
@@ -956,5 +956,5 @@ } | ||
return `<iframe src="https://www.facebook.com/plugins/follow.php?href=https%3A%2F%2Fwww.facebook.com%2F${escape( | ||
facebookUsername | ||
facebookUsername, | ||
)}&layout=button_count&show_faces=false&colorscheme=light&font&width=450&appId=${escape( | ||
facebookApplicationID | ||
facebookApplicationID, | ||
)}" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height: 20px;" allowTransparency="true"></iframe>` | ||
@@ -983,3 +983,3 @@ } | ||
return `<a href="https://twitter.com/${escape( | ||
twitterUsername | ||
twitterUsername, | ||
)}" class="twitter-follow-button" data-show-count="false">Follow @${twitterUsername}</a><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>` | ||
@@ -999,3 +999,3 @@ } | ||
return `<iframe src="https://ghbtns.com/github-btn.html?user=${escape( | ||
githubUsername | ||
githubUsername, | ||
)}&type=follow&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="165" height="20"></iframe>` | ||
@@ -1018,5 +1018,5 @@ } | ||
return `<iframe src="https://ghbtns.com/github-btn.html?user=${escape( | ||
githubUsername | ||
githubUsername, | ||
)}&repo=${escape( | ||
githubRepository | ||
githubRepository, | ||
)}&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="110" height="20"></iframe>` | ||
@@ -1051,3 +1051,3 @@ } | ||
<script src="https://www.quora.com/widgets/follow?embed_code=${escape( | ||
quoraCode | ||
quoraCode, | ||
)}"></script> | ||
@@ -1054,0 +1054,0 @@ </span>`.replace(/\n\s*/g, '') |
@@ -64,3 +64,3 @@ // Import | ||
config: BadgesConfig = {}, | ||
options: RenderOptions = { filterCategory: false, filterScripts: true } | ||
options: RenderOptions = { filterCategory: false, filterScripts: true }, | ||
): string { | ||
@@ -67,0 +67,0 @@ // Prepare |
{ | ||
"name": "badges", | ||
"version": "4.28.0", | ||
"version": "4.29.0-next.1698770610.b780259f5a863ec67782eca54848c0f2769b1ea5", | ||
"description": "The definitive collection of badges for rendering", | ||
@@ -25,3 +25,3 @@ "homepage": "https://github.com/bevry/badges", | ||
"donation", | ||
"es2021", | ||
"es2017", | ||
"facebook", | ||
@@ -89,2 +89,3 @@ "facebook follow", | ||
"githubsponsors", | ||
"thanksdev", | ||
"patreon", | ||
@@ -102,2 +103,3 @@ "flattr", | ||
"githubSponsorsUsername": "balupton", | ||
"thanksdevGithubUsername": "balupton", | ||
"buymeacoffeeUsername": "balupton", | ||
@@ -149,3 +151,3 @@ "cryptoURL": "https://bevry.me/crypto", | ||
{ | ||
"description": "TypeScript compiled against ES2021 for web browsers with Import for modules", | ||
"description": "TypeScript compiled against ES2022 for web browsers with Import for modules", | ||
"directory": "edition-browsers", | ||
@@ -164,4 +166,4 @@ "entry": "index.js", | ||
{ | ||
"description": "TypeScript compiled against ES2021 for Node.js 10 || 12 || 14 || 16 || 18 || 19 with Require for modules", | ||
"directory": "edition-es2021", | ||
"description": "TypeScript compiled against ES2017 for Node.js with Require for modules", | ||
"directory": "edition-es2017", | ||
"entry": "index.js", | ||
@@ -171,7 +173,7 @@ "tags": [ | ||
"javascript", | ||
"es2021", | ||
"es2017", | ||
"require" | ||
], | ||
"engines": { | ||
"node": "10 || 12 || 14 || 16 || 18 || 19", | ||
"node": "10 || 12 || 14 || 16 || 18 || 20 || 21", | ||
"browsers": false | ||
@@ -181,4 +183,4 @@ } | ||
{ | ||
"description": "TypeScript compiled against ES2021 for Node.js 12 || 14 || 16 || 18 || 19 with Import for modules", | ||
"directory": "edition-es2021-esm", | ||
"description": "TypeScript compiled against ES2017 for Node.js with Import for modules", | ||
"directory": "edition-es2017-esm", | ||
"entry": "index.js", | ||
@@ -188,7 +190,7 @@ "tags": [ | ||
"javascript", | ||
"es2021", | ||
"es2017", | ||
"import" | ||
], | ||
"engines": { | ||
"node": "12 || 14 || 16 || 18 || 19", | ||
"node": "12 || 14 || 16 || 18 || 20 || 21", | ||
"browsers": false | ||
@@ -200,7 +202,7 @@ } | ||
"type": "module", | ||
"main": "edition-es2021/index.js", | ||
"main": "edition-es2017/index.js", | ||
"exports": { | ||
"node": { | ||
"import": "./edition-es2021-esm/index.js", | ||
"require": "./edition-es2021/index.js" | ||
"import": "./edition-es2017-esm/index.js", | ||
"require": "./edition-es2017/index.js" | ||
}, | ||
@@ -214,18 +216,19 @@ "browser": { | ||
"devDependencies": { | ||
"@bevry/update-contributors": "^1.21.0", | ||
"@typescript-eslint/eslint-plugin": "^5.56.0", | ||
"@typescript-eslint/parser": "^5.56.0", | ||
"@bevry/update-contributors": "^1.22.0", | ||
"@types/node": "^20.8.10", | ||
"@typescript-eslint/eslint-plugin": "^6.9.1", | ||
"@typescript-eslint/parser": "^6.9.1", | ||
"assert-helpers": "^8.4.0", | ||
"eslint": "^8.36.0", | ||
"eslint": "^8.52.0", | ||
"eslint-config-bevry": "^3.27.0", | ||
"eslint-config-prettier": "^8.8.0", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-plugin-prettier": "^5.0.1", | ||
"kava": "^5.15.0", | ||
"make-deno-edition": "^1.3.0", | ||
"prettier": "^2.8.6", | ||
"projectz": "^2.22.0", | ||
"prettier": "^3.0.3", | ||
"projectz": "^2.23.0", | ||
"surge": "^0.23.1", | ||
"typedoc": "^0.23.28", | ||
"typescript": "5.0.2", | ||
"valid-directory": "^3.9.0", | ||
"typedoc": "^0.25.3", | ||
"typescript": "5.2.2", | ||
"valid-directory": "^4.0.0", | ||
"valid-module": "^1.17.0" | ||
@@ -235,9 +238,9 @@ }, | ||
"our:clean": "rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next", | ||
"our:compile": "npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2021 && npm run our:compile:edition-es2021-esm && npm run our:compile:types", | ||
"our:compile": "npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2017 && npm run our:compile:edition-es2017-esm && npm run our:compile:types", | ||
"our:compile:deno": "make-deno-edition --attempt", | ||
"our:compile:edition-browsers": "tsc --module ESNext --target ES2021 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )", | ||
"our:compile:edition-es2021": "tsc --module commonjs --target ES2021 --outDir ./edition-es2021 --project tsconfig.json && ( test ! -d edition-es2021/source || ( mv edition-es2021/source edition-temp && rm -Rf edition-es2021 && mv edition-temp edition-es2021 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2021/package.json", | ||
"our:compile:edition-es2021-esm": "tsc --module ESNext --target ES2021 --outDir ./edition-es2021-esm --project tsconfig.json && ( test ! -d edition-es2021-esm/source || ( mv edition-es2021-esm/source edition-temp && rm -Rf edition-es2021-esm && mv edition-temp edition-es2021-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2021-esm/package.json", | ||
"our:compile:edition-browsers": "tsc --module ESNext --target ES2022 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )", | ||
"our:compile:edition-es2017": "tsc --module commonjs --target ES2017 --outDir ./edition-es2017 --project tsconfig.json && ( test ! -d edition-es2017/source || ( mv edition-es2017/source edition-temp && rm -Rf edition-es2017 && mv edition-temp edition-es2017 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2017/package.json", | ||
"our:compile:edition-es2017-esm": "tsc --module ESNext --target ES2017 --outDir ./edition-es2017-esm --project tsconfig.json && ( test ! -d edition-es2017-esm/source || ( mv edition-es2017-esm/source edition-temp && rm -Rf edition-es2017-esm && mv edition-temp edition-es2017-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2017-esm/package.json", | ||
"our:compile:types": "tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )", | ||
"our:deploy": "echo no need for this project", | ||
"our:deploy": "printf '%s\n' 'no need for this project'", | ||
"our:meta": "npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz", | ||
@@ -249,7 +252,7 @@ "our:meta:contributors": "update-contributors", | ||
"our:release": "npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push", | ||
"our:release:check-changelog": "cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)", | ||
"our:release:check-changelog": "cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)", | ||
"our:release:check-dirty": "git diff --exit-code", | ||
"our:release:prepare": "npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta", | ||
"our:release:push": "git push origin && git push origin --tags", | ||
"our:release:tag": "export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"", | ||
"our:release:tag": "export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"", | ||
"our:setup": "npm run our:setup:install", | ||
@@ -263,3 +266,3 @@ "our:setup:install": "npm install", | ||
"our:verify:prettier": "prettier --write .", | ||
"test": "node ./edition-es2021/test.js" | ||
"test": "node ./edition-es2017/test.js" | ||
}, | ||
@@ -275,2 +278,2 @@ "eslintConfig": { | ||
} | ||
} | ||
} |
@@ -15,2 +15,3 @@ <!-- TITLE/ --> | ||
<span class="badge-githubsponsors"><a href="https://github.com/sponsors/balupton" title="Donate to this project using GitHub Sponsors"><img src="https://img.shields.io/badge/github-donate-yellow.svg" alt="GitHub Sponsors donate button" /></a></span> | ||
<span class="badge-thanksdev"><a href="https://thanks.dev/u/gh/balupton" title="Donate to this project using ThanksDev"><img src="https://img.shields.io/badge/thanksdev-donate-yellow.svg" alt="ThanksDev donate button" /></a></span> | ||
<span class="badge-patreon"><a href="https://patreon.com/bevry" title="Donate to this project using Patreon"><img src="https://img.shields.io/badge/patreon-donate-yellow.svg" alt="Patreon donate button" /></a></span> | ||
@@ -184,3 +185,3 @@ <span class="badge-flattr"><a href="https://flattr.com/profile/balupton" title="Donate to this project using Flattr"><img src="https://img.shields.io/badge/flattr-donate-yellow.svg" alt="Flattr donate button" /></a></span> | ||
<script type="module"> | ||
import * as pkg from '//cdn.skypack.dev/badges@^4.28.0' | ||
import * as pkg from '//cdn.skypack.dev/badges@^4.29.0' | ||
</script> | ||
@@ -193,3 +194,3 @@ ``` | ||
<script type="module"> | ||
import * as pkg from '//unpkg.com/badges@^4.28.0' | ||
import * as pkg from '//unpkg.com/badges@^4.29.0' | ||
</script> | ||
@@ -202,3 +203,3 @@ ``` | ||
<script type="module"> | ||
import * as pkg from '//dev.jspm.io/badges@4.28.0' | ||
import * as pkg from '//dev.jspm.io/badges@4.29.0' | ||
</script> | ||
@@ -212,6 +213,6 @@ ``` | ||
<ul><li><code>badges/source/index.ts</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> source code with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li> | ||
<li><code>badges/edition-browsers/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against ES2021 for web browsers with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li> | ||
<li><code>badges</code> aliases <code>badges/edition-es2021/index.js</code></li> | ||
<li><code>badges/edition-es2021/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against ES2021 for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> 10 || 12 || 14 || 16 || 18 || 19 with <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a> for modules</li> | ||
<li><code>badges/edition-es2021-esm/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against ES2021 for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> 12 || 14 || 16 || 18 || 19 with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li></ul> | ||
<li><code>badges/edition-browsers/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against ES2022 for web browsers with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li> | ||
<li><code>badges</code> aliases <code>badges/edition-es2017/index.js</code></li> | ||
<li><code>badges/edition-es2017/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#8th_Edition_-_ECMAScript_2017" title="ECMAScript ES2017">ES2017</a> for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> with <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a> for modules</li> | ||
<li><code>badges/edition-es2017-esm/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#8th_Edition_-_ECMAScript_2017" title="ECMAScript ES2017">ES2017</a> for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li></ul> | ||
@@ -267,2 +268,3 @@ <!-- /INSTALL --> | ||
<span class="badge-githubsponsors"><a href="https://github.com/sponsors/balupton" title="Donate to this project using GitHub Sponsors"><img src="https://img.shields.io/badge/github-donate-yellow.svg" alt="GitHub Sponsors donate button" /></a></span> | ||
<span class="badge-thanksdev"><a href="https://thanks.dev/u/gh/balupton" title="Donate to this project using ThanksDev"><img src="https://img.shields.io/badge/thanksdev-donate-yellow.svg" alt="ThanksDev donate button" /></a></span> | ||
<span class="badge-patreon"><a href="https://patreon.com/bevry" title="Donate to this project using Patreon"><img src="https://img.shields.io/badge/patreon-donate-yellow.svg" alt="Patreon donate button" /></a></span> | ||
@@ -269,0 +271,0 @@ <span class="badge-flattr"><a href="https://flattr.com/profile/balupton" title="Donate to this project using Flattr"><img src="https://img.shields.io/badge/flattr-donate-yellow.svg" alt="Flattr donate button" /></a></span> |
@@ -221,3 +221,3 @@ // Import | ||
const image = `https://saucelabs.com/browser-matrix/${saucelabsUsername}.svg?auth=${escape( | ||
saucelabsAuthToken | ||
saucelabsAuthToken, | ||
)}` | ||
@@ -244,3 +244,3 @@ const url = `https://saucelabs.com/u/${saucelabsUsername}` | ||
const image = `https://saucelabs.com/browser-matrix/${saucelabsUsername}.svg?auth=${escape( | ||
saucelabsAuthToken | ||
saucelabsAuthToken, | ||
)}` | ||
@@ -356,3 +356,3 @@ const url = `https://saucelabs.com/u/${saucelabsUsername}` | ||
const image = `https://badge.waffle.io/${githubSlug}.png?label=${escape( | ||
label | ||
label, | ||
)}` | ||
@@ -390,3 +390,3 @@ const url = `http://waffle.io/${githubSlug}` | ||
const image = new URL( | ||
`https://github.com/${githubSlug}/workflows/${githubWorkflow}/badge.svg` | ||
`https://github.com/${githubSlug}/workflows/${githubWorkflow}/badge.svg`, | ||
) | ||
@@ -636,3 +636,3 @@ if (githubBranch) image.searchParams.set('branch', githubBranch) | ||
paypalURL = `https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=${escape( | ||
paypalButtonID | ||
paypalButtonID, | ||
)}` | ||
@@ -643,3 +643,3 @@ } else if (paypalUsername) { | ||
throw new Error( | ||
'paypalURL, paypalButtonID, or paypalUsername is missing, at least one must exist' | ||
'paypalURL, paypalButtonID, or paypalUsername is missing, at least one must exist', | ||
) | ||
@@ -790,3 +790,3 @@ } | ||
throw new Error( | ||
'at least one of these is required: thanksappUsername, npmPackageName, githubSlug' | ||
'at least one of these is required: thanksappUsername, npmPackageName, githubSlug', | ||
) | ||
@@ -928,5 +928,5 @@ } | ||
return `<iframe src="https://www.facebook.com/plugins/like.php?href=${escape( | ||
homepage | ||
homepage, | ||
)}&send=false&layout=button_count&width=450&show_faces=false&font&colorscheme=light&action=like&height=21&appId=${escape( | ||
facebookApplicationID | ||
facebookApplicationID, | ||
)}" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px;" allowTransparency="true"></iframe>` | ||
@@ -956,5 +956,5 @@ } | ||
return `<iframe src="https://www.facebook.com/plugins/follow.php?href=https%3A%2F%2Fwww.facebook.com%2F${escape( | ||
facebookUsername | ||
facebookUsername, | ||
)}&layout=button_count&show_faces=false&colorscheme=light&font&width=450&appId=${escape( | ||
facebookApplicationID | ||
facebookApplicationID, | ||
)}" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height: 20px;" allowTransparency="true"></iframe>` | ||
@@ -983,3 +983,3 @@ } | ||
return `<a href="https://twitter.com/${escape( | ||
twitterUsername | ||
twitterUsername, | ||
)}" class="twitter-follow-button" data-show-count="false">Follow @${twitterUsername}</a><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>` | ||
@@ -999,3 +999,3 @@ } | ||
return `<iframe src="https://ghbtns.com/github-btn.html?user=${escape( | ||
githubUsername | ||
githubUsername, | ||
)}&type=follow&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="165" height="20"></iframe>` | ||
@@ -1018,5 +1018,5 @@ } | ||
return `<iframe src="https://ghbtns.com/github-btn.html?user=${escape( | ||
githubUsername | ||
githubUsername, | ||
)}&repo=${escape( | ||
githubRepository | ||
githubRepository, | ||
)}&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="110" height="20"></iframe>` | ||
@@ -1051,3 +1051,3 @@ } | ||
<script src="https://www.quora.com/widgets/follow?embed_code=${escape( | ||
quoraCode | ||
quoraCode, | ||
)}"></script> | ||
@@ -1054,0 +1054,0 @@ </span>`.replace(/\n\s*/g, '') |
@@ -64,3 +64,3 @@ // Import | ||
config: BadgesConfig = {}, | ||
options: RenderOptions = { filterCategory: false, filterScripts: true } | ||
options: RenderOptions = { filterCategory: false, filterScripts: true }, | ||
): string { | ||
@@ -67,0 +67,0 @@ // Prepare |
@@ -9,3 +9,3 @@ { | ||
"strict": true, | ||
"target": "ES2021", | ||
"target": "ES2017", | ||
"module": "ESNext" | ||
@@ -12,0 +12,0 @@ }, |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
228014
298
18
1