
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
@types/insight
Advanced tools
TypeScript definitions for insight
npm install --save @types/insight
This package contains type definitions for insight (https://github.com/yeoman/insight).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/insight.
declare namespace insight {
interface IPackage {
name: string;
version: string;
}
interface IOptions {
trackingCode: string;
trackingProvider?: string | undefined;
pkg?: IPackage | undefined;
packageName?: string | undefined;
packageVersion?: string | undefined;
config?: IConfigstore | undefined;
}
interface IConfigstore {
path: string;
all: any;
get(key: string): any;
set(key: string, val: any): void;
del(key: string): void;
}
interface IEvent {
category: string;
action: string;
label?: string | undefined;
value?: number | string | undefined;
}
}
import IPackage = insight.IPackage;
import IOptions = insight.IOptions;
import IConfigstore = insight.IConfigstore;
import IEvent = insight.IEvent;
declare class Insight {
trackingCode: string;
trackingProvider: string;
packageName: string;
packageVersion: string;
os: string;
nodeVersion: string;
appVersion: string;
config: IConfigstore;
optOut: boolean;
clientId: string;
constructor(options: IOptions);
track(...args: string[]): void;
trackEvent(event: IEvent): void;
askPermission(msg?: string, cb?: Function): void;
}
export = Insight;
These definitions were written by vvakame.
FAQs
TypeScript definitions for insight
The npm package @types/insight receives a total of 399 weekly downloads. As such, @types/insight popularity was classified as not popular.
We found that @types/insight demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.