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

@metamask-previews/rate-limit-controller

Package Overview
Dependencies
Maintainers
2
Versions
532
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask-previews/rate-limit-controller - npm Package Compare versions

Comparing version 3.0.2-preview.7cc5454 to 3.0.2-preview.885fefd

4

dist/RateLimitController.js

@@ -14,3 +14,3 @@ "use strict";

const base_controller_1 = require("@metamask/base-controller");
const eth_rpc_errors_1 = require("eth-rpc-errors");
const rpc_errors_1 = require("@metamask/rpc-errors");
const name = 'RateLimitController';

@@ -60,3 +60,3 @@ const metadata = {

if (this.isRateLimited(type, origin)) {
throw eth_rpc_errors_1.ethErrors.rpc.limitExceeded({
throw rpc_errors_1.rpcErrors.limitExceeded({
message: `"${type.toString()}" is currently rate-limited. Please try again later.`,

@@ -63,0 +63,0 @@ });

{
"name": "@metamask-previews/rate-limit-controller",
"version": "3.0.2-preview.7cc5454",
"version": "3.0.2-preview.885fefd",
"description": "Contains logic for rate-limiting API endpoints by requesting origin",

@@ -33,3 +33,3 @@ "keywords": [

"@metamask/base-controller": "^3.2.3",
"eth-rpc-errors": "^4.0.2",
"@metamask/rpc-errors": "^6.1.0",
"immer": "^9.0.6"

@@ -36,0 +36,0 @@ },

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