New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@hot-chocolate/plugin-request

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hot-chocolate/plugin-request

js sandbox on browser

latest
npmnpm
Version
0.1.7
Version published
Maintainers
1
Created
Source

@hot-chocolate/plugin-request

npm version npm download

安装

npm install @hot-chocolate/plugin-request

使用

import {
  Manager
} from 'hot-chocolate';
import {
  createSandboxRequestPlugin
} from '@hot-chocolate/plugin-request';

new Manager(
  [...],
  [
    createSandboxRequestPlugin({
      // 请求发送前的勾子
      beforeRequest: (
        options, // { url: string, method: string } 请求参数
        application // 启动的application
      ) => {
        // 返回新的请求url及method
        return {
          url: 'xxxx',
          method: 'POST'
        }
      },

    })
  ]
)

Keywords

sandbox

FAQs

Package last updated on 06 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts