Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@huolala-tech/page-spy
Advanced tools
This repo is the SDK which be used in HuolalaTech/page-spy-web, where SDK collects information and page-spy-web
consumes and filters, organizes, and converts information into a standardized format, which is then showed on the page.
For data security and your convenience, we provide a complete and out-of-box solution. Read the "How to use" section in the HuolalaTech/page-spy-web to get more detail.
After the integration, open your project in browser, there should be a widget (round container with white background and include logo) on the bottom left. If not, check your config.
For browser, all parameters are optional, here is a description of each property and its default value:
window.$pageSpy = new PageSpy(config?: InitConfig)
interface InitConfig {
// The SDK automatically analyses and determines the address of
// the Server (api) and the address of the debug side (clientOrigin)
// from the "src" value, assuming you introduced it from https://example.com/page-spy/index.min.js,
// so the SDK will set it up internally:
// - api: "example.com"
// - clientOrigin: "https://example.com"
// If your service is deployed elsewhere, you can manually specify here to override.
api?: string;
clientOrigin?: string;
// "project" is an aggregation of information that can be searched in the room list on the debug side.
// default: 'default'
project?: string;
// "title" is a user-defined parameter that can be used to distinguish the current debugging client,
// and the corresponding information is displayed under the "device id" in each debugging connection panel.
// default: '--'
title?: string;
// Indicates whether the SDK will automatically render the "Circle with Logo on White Background"
// control in the bottom left corner of the client when initiation is complete. If set to false,
// you can call window.$pageSpy.render() to render it manually.
// default: true
autoRender?: boolean;
// Manually specify the scheme of the PageSpy service.
// This works if the SDK can't correctly analyse the scheme, e.g. if PageSpy's browser plugin
// is introduced into the SDK via chrome-extension://xxx/sdk/index.min.js, which will be
// be parsed by the SDK as an invalid "chrome-extension://" and fallback to ["http://", "ws://"].
// - (Default) Pass the value undefined or null: the SDK will parse it automatically;
// - Pass boolean value:
// - true: the SDK will access the PageSpy service via ["https://", "wss://"].
// - false: the SDK will access the PageSpy service via ["http://", "wss://"]
enableSSL?: boolean | null;
}
Except for the api
parameter, all parameters are optional, here is a description of each property and its default value:
const pageSpy = new PageSpy(config?: InitConfig)
interface InitConfig {
// Server domain, must be provided。
// Example:"example.com"
api: string;
// "project" is an aggregation of information that can be searched in the room list on the debug side.
// default: 'default'
project?: string;
// "title" is a user-defined parameter that can be used to distinguish the current debugging client,
// and the corresponding information is displayed under the "device id" in each debugging connection panel.
// default: '--'
title?: string;
// Manually specify the scheme of the PageSpy service.
// Note that except for development environment, mini-program requires the scheme to be set to "https", so:
// - By default, pass the value undefined or null, the SDK will parse it to TRUE;
// - true: the SDK will access the PageSpy service via ["https://", "wss://"];
// - false: the SDK will access the PageSpy service via ["http://", "wss://"].
enableSSL?: boolean | null;
}
For more details of mini-program usage, please refer to Mini-Program Usage
FAQs
A developer tool for debugging remote web page.
The npm package @huolala-tech/page-spy receives a total of 8 weekly downloads. As such, @huolala-tech/page-spy popularity was classified as not popular.
We found that @huolala-tech/page-spy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
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.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.