Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@code-inspector/core

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@code-inspector/core - npm Package Compare versions

Comparing version
1.2.10
to
1.3.0
+2
-2
package.json
{
"name": "@code-inspector/core",
"version": "1.2.10",
"version": "1.3.0",
"main": "dist/index.js",

@@ -44,3 +44,3 @@ "module": "./dist/index.mjs",

"dotenv": "^16.1.4",
"launch-ide": "1.2.0",
"launch-ide": "1.2.1",
"portfinder": "^1.0.28"

@@ -47,0 +47,0 @@ },

@@ -48,2 +48,3 @@ import { LitElement, TemplateResult } from 'lit';

ip: string;
modeKey: string;
position: {

@@ -98,2 +99,6 @@ top: number;

activeNode: ActiveNode;
showSettingsModal: boolean;
internalLocate: boolean;
internalCopy: boolean;
internalTarget: boolean;
inspectorSwitchRef: HTMLDivElement;

@@ -105,2 +110,8 @@ codeInspectorContainerRef: HTMLDivElement;

nodeTreeTooltipRef: HTMLDivElement;
features: {
label: string;
description: string;
checked: () => boolean;
onChange: () => void;
}[];
isTracking: (e: any) => boolean | "";

@@ -140,3 +151,6 @@ getDomPropertyValue: (target: HTMLElement, property: string) => number;

trackCode: () => void;
private handleModeShortcut;
showNotification(message: string, type?: 'success' | 'error'): void;
copyToClipboard(text: string): void;
private fallbackCopy;
handleDrag: (e: MouseEvent | TouchEvent) => void;

@@ -161,2 +175,7 @@ isSamePositionNode: (node1: HTMLElement, node2: HTMLElement) => boolean;

handleMouseLeaveNode: () => void;
toggleSettingsModal: () => void;
closeSettingsModal: () => void;
toggleLocate: () => void;
toggleCopy: () => void;
toggleTarget: () => void;
protected firstUpdated(): void;

@@ -163,0 +182,0 @@ disconnectedCallback(): void;

@@ -15,1 +15,2 @@ import type { CodeOptions, RecordInfo } from '../shared';

export declare function isNextjsProject(): boolean;
export declare function isNextGET16(): boolean;

@@ -9,2 +9,3 @@ /// <reference types="node" />

target?: string;
defaultAction?: 'copy' | 'locate' | 'target' | 'all';
};

@@ -173,3 +174,13 @@ export type RecordInfo = {

skipSnippets?: ('console' | 'htmlScript')[];
/**
* @zh 功能开关的快捷键,默认值为 `z`。同时按下 hotKeys 和 modeKey 可以打开功能开关设置
* @en The shortcut key of the feature switch, the default value is `z`. Pressing hotKeys and modeKey at the same time can open the feature switch settings
*/
modeKey?: string;
/**
* @zh 是否启用 server 功能。默认值为 `open`,即启用 server 功能。使用代码定位功能时必须启用 server 功能,线上构建只看 dom 路径时可以关闭 server 功能。
* @en Whether to enable the server function. The default value is `open`, which means enabling the server function. The server function must be enabled when using the code location function, and it can be closed when building online only to view the dom path.
*/
server?: 'open' | 'close';
};
export {};

@@ -8,2 +8,3 @@ import { CodeOptions, Condition, EscapeTags } from './type';

export declare function isEscapeTags(escapeTags: EscapeTags, tag: string): boolean;
export declare function getDependenciesMap(): any;
export declare function getDenpendencies(): string[];

@@ -10,0 +11,0 @@ type BooleanFunction = () => boolean;

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display