Comparing version 4.6.0 to 4.7.0-next.1591770424.5f97aae4395a6dba19ceb8b783e4d869d5522af8
@@ -0,3 +1,10 @@ | ||
var _a, _b | ||
// Import | ||
import querystring from 'querystring' | ||
import { stringify } from 'querystring' | ||
// Prepare for browser and deno | ||
const env = | ||
((_b = (_a = globalThis) === null || _a === void 0 ? void 0 : _a.process) === | ||
null || _b === void 0 | ||
? void 0 | ||
: _b.env) || {} | ||
/** Generate a HTML badge */ | ||
@@ -96,3 +103,3 @@ export function badge({ image, alt, url, title }) { | ||
typeof nodeicoQueryString === 'object' | ||
? querystring.stringify(nodeicoQueryString) | ||
? stringify(nodeicoQueryString) | ||
: nodeicoQueryString | ||
@@ -107,3 +114,3 @@ if (query) image += `?${query}` | ||
if (!saucelabsUsername) throw new Error('saucelabsUsername is missing') | ||
saucelabsAuthToken = saucelabsAuthToken || process.env.SAUCELABS_AUTH_TOKEN | ||
saucelabsAuthToken = saucelabsAuthToken || env.SAUCELABS_AUTH_TOKEN | ||
if (!saucelabsAuthToken) throw new Error('saucelabsAuthToken is missing') | ||
@@ -125,3 +132,3 @@ // Create | ||
if (!saucelabsUsername) throw new Error('saucelabsUsername is missing') | ||
saucelabsAuthToken = saucelabsAuthToken || process.env.SAUCELABS_AUTH_TOKEN | ||
saucelabsAuthToken = saucelabsAuthToken || env.SAUCELABS_AUTH_TOKEN | ||
if (!saucelabsAuthToken) throw new Error('saucelabsAuthToken is missing') | ||
@@ -518,4 +525,3 @@ // Create | ||
if (!homepage) throw new Error('homepage is missing') | ||
facebookApplicationID = | ||
facebookApplicationID || process.env.FACEBOOK_APPLICATION_ID | ||
facebookApplicationID = facebookApplicationID || env.FACEBOOK_APPLICATION_ID | ||
if (!facebookApplicationID) | ||
@@ -536,4 +542,3 @@ throw new Error('facebookApplicationID is missing') | ||
if (!facebookUsername) throw new Error('facebookUsername is missing') | ||
facebookApplicationID = | ||
facebookApplicationID || process.env.FACEBOOK_APPLICATION_ID | ||
facebookApplicationID = facebookApplicationID || env.FACEBOOK_APPLICATION_ID | ||
if (!facebookApplicationID) | ||
@@ -540,0 +545,0 @@ throw new Error('facebookApplicationID is missing') |
'use strict' | ||
var __importDefault = | ||
(this && this.__importDefault) || | ||
function (mod) { | ||
return mod && mod.__esModule ? mod : { default: mod } | ||
} | ||
Object.defineProperty(exports, '__esModule', { value: true }) | ||
exports.quorafollow = exports.githubstar = exports.githubfollow = exports.twitterfollow = exports.twittertweet = exports.facebookfollow = exports.facebooklike = exports.hackernewssubmit = exports.redditsubmit = exports.googleplusone = exports.gabeacon = exports.slackin = exports.slackinscript = exports.boostlab = exports.thanksapp = exports.liberapay = exports.buymeacoffee = exports.wishlist = exports.bitcoin = exports.crypto = exports.paypal = exports.flattr = exports.gratipay = exports.opencollective = exports.patreon = exports.githubsponsors = exports.sixtydevstips = exports.waffle = exports.bithound = exports.codeclimate = exports.coveralls = exports.codeship = exports.travisci = exports.saucelabs = exports.saucelabsbm = exports.nodeico = exports.daviddmdev = exports.daviddm = exports.npmdownloads = exports.npmversion = exports.shields = exports.badge = void 0 | ||
// Import | ||
const querystring_1 = __importDefault(require('querystring')) | ||
const querystring_1 = require('querystring') | ||
// Prepare for browser and deno | ||
const env = globalThis?.process?.env || {} | ||
/** Generate a HTML badge */ | ||
@@ -110,3 +107,3 @@ function badge({ image, alt, url, title }) { | ||
typeof nodeicoQueryString === 'object' | ||
? querystring_1.default.stringify(nodeicoQueryString) | ||
? querystring_1.stringify(nodeicoQueryString) | ||
: nodeicoQueryString | ||
@@ -122,3 +119,3 @@ if (query) image += `?${query}` | ||
if (!saucelabsUsername) throw new Error('saucelabsUsername is missing') | ||
saucelabsAuthToken = saucelabsAuthToken || process.env.SAUCELABS_AUTH_TOKEN | ||
saucelabsAuthToken = saucelabsAuthToken || env.SAUCELABS_AUTH_TOKEN | ||
if (!saucelabsAuthToken) throw new Error('saucelabsAuthToken is missing') | ||
@@ -141,3 +138,3 @@ // Create | ||
if (!saucelabsUsername) throw new Error('saucelabsUsername is missing') | ||
saucelabsAuthToken = saucelabsAuthToken || process.env.SAUCELABS_AUTH_TOKEN | ||
saucelabsAuthToken = saucelabsAuthToken || env.SAUCELABS_AUTH_TOKEN | ||
if (!saucelabsAuthToken) throw new Error('saucelabsAuthToken is missing') | ||
@@ -561,4 +558,3 @@ // Create | ||
if (!homepage) throw new Error('homepage is missing') | ||
facebookApplicationID = | ||
facebookApplicationID || process.env.FACEBOOK_APPLICATION_ID | ||
facebookApplicationID = facebookApplicationID || env.FACEBOOK_APPLICATION_ID | ||
if (!facebookApplicationID) | ||
@@ -580,4 +576,3 @@ throw new Error('facebookApplicationID is missing') | ||
if (!facebookUsername) throw new Error('facebookUsername is missing') | ||
facebookApplicationID = | ||
facebookApplicationID || process.env.FACEBOOK_APPLICATION_ID | ||
facebookApplicationID = facebookApplicationID || env.FACEBOOK_APPLICATION_ID | ||
if (!facebookApplicationID) | ||
@@ -584,0 +579,0 @@ throw new Error('facebookApplicationID is missing') |
@@ -34,3 +34,4 @@ 'use strict' | ||
for (var k in mod) | ||
if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k) | ||
if (k !== 'default' && Object.hasOwnProperty.call(mod, k)) | ||
__createBinding(result, mod, k) | ||
__setModuleDefault(result, mod) | ||
@@ -37,0 +38,0 @@ return result |
# History | ||
## v4.7.0 2020 May 21 | ||
- Deno compatibility | ||
- Updated dependencies, [base files](https://github.com/bevry/base), and [editions](https://editions.bevry.me) using [boundation](https://github.com/bevry/boundation) | ||
## v4.6.0 2020 May 21 | ||
@@ -4,0 +9,0 @@ |
{ | ||
"name": "badges", | ||
"version": "4.6.0", | ||
"version": "4.7.0-next.1591770424.5f97aae4395a6dba19ceb8b783e4d869d5522af8", | ||
"description": "The definitive collection of badges for rendering", | ||
@@ -171,2 +171,16 @@ "homepage": "https://github.com/bevry/badges", | ||
} | ||
}, | ||
{ | ||
"description": "TypeScript source code made to be compatible with Deno", | ||
"directory": "edition-deno", | ||
"entry": "index.ts", | ||
"tags": [ | ||
"typescript", | ||
"import", | ||
"deno" | ||
], | ||
"engines": { | ||
"deno": true, | ||
"browsers": true | ||
} | ||
} | ||
@@ -179,23 +193,26 @@ ], | ||
"module": "edition-browsers/index.js", | ||
"deno": "edition-deno/index.ts", | ||
"devDependencies": { | ||
"@bevry/update-contributors": "^1.7.0", | ||
"@typescript-eslint/eslint-plugin": "^2.34.0", | ||
"@typescript-eslint/parser": "^2.34.0", | ||
"assert-helpers": "^6.5.0", | ||
"eslint": "^7.0.0", | ||
"eslint-config-bevry": "^3.6.0", | ||
"@bevry/update-contributors": "^1.8.0", | ||
"@typescript-eslint/eslint-plugin": "^3.2.0", | ||
"@typescript-eslint/parser": "^3.2.0", | ||
"assert-helpers": "^6.6.0", | ||
"eslint": "^7.2.0", | ||
"eslint-config-bevry": "^3.7.0", | ||
"eslint-config-prettier": "^6.11.0", | ||
"eslint-plugin-prettier": "^3.1.3", | ||
"kava": "^5.2.0", | ||
"kava": "^5.3.0", | ||
"make-deno-edition": "^0.1.2", | ||
"prettier": "^2.0.5", | ||
"projectz": "^2.3.0", | ||
"projectz": "^2.4.0", | ||
"surge": "^0.21.3", | ||
"typedoc": "^0.17.7", | ||
"typescript": "^3.9.3", | ||
"valid-directory": "^2.1.0", | ||
"valid-module": "^1.2.0" | ||
"typescript": "^3.9.5", | ||
"valid-directory": "^2.2.0", | ||
"valid-module": "^1.3.0" | ||
}, | ||
"scripts": { | ||
"our:clean": "rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next", | ||
"our:compile": "npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:types", | ||
"our:compile": "npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-esnext && npm run our:compile:types", | ||
"our:compile:deno": "make-deno-edition --attempt", | ||
"our:compile:edition-browsers": "tsc --module ESNext --target ES2019 --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 ) )", | ||
@@ -202,0 +219,0 @@ "our:compile:edition-esnext": "tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )", |
@@ -185,3 +185,3 @@ <!-- TITLE/ --> | ||
<script type="module"> | ||
import * as pkg from '//cdn.pika.dev/badges/^4.6.0' | ||
import * as pkg from '//cdn.pika.dev/badges/^4.7.0' | ||
</script> | ||
@@ -194,3 +194,3 @@ ``` | ||
<script type="module"> | ||
import * as pkg from '//unpkg.com/badges@^4.6.0' | ||
import * as pkg from '//unpkg.com/badges@^4.7.0' | ||
</script> | ||
@@ -203,3 +203,3 @@ ``` | ||
<script type="module"> | ||
import * as pkg from '//dev.jspm.io/badges@4.6.0' | ||
import * as pkg from '//dev.jspm.io/badges@4.7.0' | ||
</script> | ||
@@ -215,3 +215,4 @@ ``` | ||
<li><code>badges/edition-esnext/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#ES.Next" title="ECMAScript Next">ESNext</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-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 <a href="https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019" title="ECMAScript ES2019">ES2019</a> for web browsers 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 <a href="https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019" title="ECMAScript ES2019">ES2019</a> for web browsers with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li> | ||
<li><code>badges/edition-deno/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 made to be compatible with Deno</li></ul> | ||
@@ -218,0 +219,0 @@ <!-- /INSTALL --> |
// Import | ||
import querystring from 'querystring' | ||
import { stringify } from 'querystring' | ||
// Prepare for browser and deno | ||
const env = (globalThis as any)?.process?.env || {} | ||
// ==================================== | ||
@@ -186,3 +189,3 @@ // Custom Badges | ||
typeof nodeicoQueryString === 'object' | ||
? querystring.stringify(nodeicoQueryString) | ||
? stringify(nodeicoQueryString) | ||
: nodeicoQueryString | ||
@@ -210,3 +213,3 @@ if (query) image += `?${query}` | ||
if (!saucelabsUsername) throw new Error('saucelabsUsername is missing') | ||
saucelabsAuthToken = saucelabsAuthToken || process.env.SAUCELABS_AUTH_TOKEN | ||
saucelabsAuthToken = saucelabsAuthToken || env.SAUCELABS_AUTH_TOKEN | ||
if (!saucelabsAuthToken) throw new Error('saucelabsAuthToken is missing') | ||
@@ -233,3 +236,3 @@ | ||
if (!saucelabsUsername) throw new Error('saucelabsUsername is missing') | ||
saucelabsAuthToken = saucelabsAuthToken || process.env.SAUCELABS_AUTH_TOKEN | ||
saucelabsAuthToken = saucelabsAuthToken || env.SAUCELABS_AUTH_TOKEN | ||
if (!saucelabsAuthToken) throw new Error('saucelabsAuthToken is missing') | ||
@@ -843,4 +846,3 @@ | ||
if (!homepage) throw new Error('homepage is missing') | ||
facebookApplicationID = | ||
facebookApplicationID || process.env.FACEBOOK_APPLICATION_ID | ||
facebookApplicationID = facebookApplicationID || env.FACEBOOK_APPLICATION_ID | ||
if (!facebookApplicationID) | ||
@@ -872,4 +874,3 @@ throw new Error('facebookApplicationID is missing') | ||
if (!facebookUsername) throw new Error('facebookUsername is missing') | ||
facebookApplicationID = | ||
facebookApplicationID || process.env.FACEBOOK_APPLICATION_ID | ||
facebookApplicationID = facebookApplicationID || env.FACEBOOK_APPLICATION_ID | ||
if (!facebookApplicationID) | ||
@@ -876,0 +877,0 @@ throw new Error('facebookApplicationID is missing') |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
178721
18
3985
298
0
17
1