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

discord-interactions

Package Overview
Dependencies
Maintainers
3
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-interactions - npm Package Compare versions

Comparing version 4.0.0-alpha.0 to 4.0.0-alpha.1

10

dist/util.js

@@ -10,12 +10,20 @@ "use strict";

if (typeof window !== 'undefined' && window.crypto) {
console.log('using window.crypto');
return window.crypto.subtle;
}
if (typeof globalThis !== 'undefined' && globalThis.crypto) {
console.log('using globalThis.crypto');
return globalThis.crypto.subtle;
}
if (typeof crypto !== 'undefined') {
console.log('using crypto');
return crypto.subtle;
}
if (typeof require === 'function') {
const crypto = require('node:crypto');
console.log('using npm builtin');
// Cloudflare workers are doing what appears to be a regex check to look and
// warn for this pattern. We should never get her in a cloudflare worker, so
// I am being coy to avoid detection and a warning.
const cryptoPackage = 'node:crypto';
const crypto = require(cryptoPackage);
return crypto.webcrypto.subtle;

@@ -22,0 +30,0 @@ }

2

package.json
{
"name": "discord-interactions",
"version": "4.0.0-alpha.0",
"version": "4.0.0-alpha.1",
"description": "Helpers for discord interactions",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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