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

@manychat/gt-diagnostic-service

Package Overview
Dependencies
Maintainers
9
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@manychat/gt-diagnostic-service

Service for getting diagnostic data for growth tools widgets

  • 0.1.12
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
9
Weekly downloads
 
Created
Source

gt-diagnostic-service

Service for getting diagnostic data for growth tools widgets

Installation

npm install @manychat/gt-diagnostic-service -g

Install npm packages globally without sudo on Linux

Update to latest

npm update @manychat/gt-diagnostic-service -g

Run

gt-diagnostic-service --debug

Options

-V, --version       output the version number
--max <n>           maximum number of workers
--min <n>           minimum number of workers
--port <n>          listening port
--max-uses <n>      maximum number of times a worker can be reused
--debug             enable debug logging
-h, --help          output usage information
--acquire-timeout-millis <n>    max milliseconds an acquire call will wait for a resource before timing out

API

stats

GET /

get diagnostic data

POST /process
Content-Type: application/json
Payload: { 
    url: <string>,
    widget: <WidgetDataObject>,
}

success response

Status: 200
{
    "success": true,
    "worker": {
        "name": "worker_4",
        "useCount": 1
    },
    "result": {
        "spec": {
            "main_script_info": [
                "https://manychat.com/108199/assets/js/widget.js?924582371689"
            ],
            "fb_sdk_info": [
                "https://connect.facebook.net/en_US/sdk.js"
            ]
        }
    }
}

error response

Status: 500
{
    "success": false,
    "worker": {
        "name": "worker_4",
        "useCount": 1
    },
    "messages": [
        {type: "console", msg: [,…]},
        {type: "requestfailed", msg: [,…]},
        {type: "pageerror", msg: [,…]},
    ],
    "error": "Something went wrong"
}


Status: 400
{
    "success": false,
    "error": "body.url is required"
}

FAQs

Package last updated on 26 Aug 2021

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

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