Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
@types/webpack-sources
Advanced tools
The @types/webpack-sources package provides TypeScript type definitions for the webpack-sources library, which is used in webpack to manage modules and their dependencies. This package helps developers by offering type safety and autocompletion features when working with webpack-sources in a TypeScript environment.
Type Definitions for Source Manipulation
Provides TypeScript types for creating and manipulating source code in webpack. This example shows how to create a new RawSource object and retrieve its content.
import { Source, RawSource } from 'webpack-sources';
const source: Source = new RawSource('const x = 123;');
console.log(source.source());
Type Definitions for Source Map Handling
Enables handling of source maps with proper type definitions. This example demonstrates creating a SourceMapSource object with a source map.
import { SourceMapSource } from 'webpack-sources';
const source: SourceMapSource = new SourceMapSource('const x = 123;', 'x.js', '{"version":3,"sources":["source.js"],"names":["x"],"mappings":"AAAA"}');
console.log(source.map());
Provides TypeScript definitions for the webpack environment variables. It is similar to @types/webpack-sources in that it aids in development within a TypeScript context but focuses more on environment configurations rather than source handling.
Offers TypeScript definitions for the HtmlWebpackPlugin that works with webpack. Similar to @types/webpack-sources, it enhances developer experience by providing types, but it specifically targets HTML file handling and injection.
npm install --save @types/webpack-sources
This package contains type definitions for webpack-sources (https://github.com/webpack/webpack-sources).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/webpack-sources/v0.
These definitions were written by e-cloud, and Chris Eppstein.
FAQs
TypeScript definitions for webpack-sources
The npm package @types/webpack-sources receives a total of 3,095,661 weekly downloads. As such, @types/webpack-sources popularity was classified as popular.
We found that @types/webpack-sources demonstrated a healthy version release cadence and project activity because the last version was released less than 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
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.