New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mongodb-js/oidc-plugin

Package Overview
Dependencies
Maintainers
30
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mongodb-js/oidc-plugin - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

28

dist/plugin.js

@@ -55,4 +55,28 @@ "use strict";

return async ({ url }) => {
// 'open' 9.x+ is ESM-only.
const open = (await Promise.resolve().then(() => __importStar(require('open')))).default;
// 'open' 9.x+ is ESM-only. However, TypeScript transpiles
// the `await import()` here to `require()`, which fails to load
// the package at runtime. We cannot use one of the typical workarounds
// for loading ESM packages unconditionally, because we need to be
// able to webpack this file (e.g. in Compass), which means that we
// need to use imports with constant string literal arguments.
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
let open;
try {
open = (await Promise.resolve().then(() => __importStar(require('open')))).default;
}
catch (err) {
if (err &&
typeof err === 'object' &&
'code' in err &&
err.code === 'ERR_REQUIRE_ESM' &&
typeof __webpack_require__ === 'undefined') {
// This means that the import() above was transpiled to require()
// and that that require() called failed because it saw actual on-disk ESM.
// In this case, it should be safe to use eval'ed import().
open = (await eval("import('open')")).default;
}
else {
throw err;
}
}
const child = await open(url);

@@ -59,0 +83,0 @@ child.unref();

2

package.json

@@ -16,3 +16,3 @@ {

"homepage": "https://github.com/mongodb-js/oidc-plugin",
"version": "0.1.0",
"version": "0.1.1",
"repository": {

@@ -19,0 +19,0 @@ "type": "git",

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