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

@types/loader-runner

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/loader-runner - npm Package Compare versions

Comparing version 2.2.3 to 2.2.4

4

loader-runner/index.d.ts

@@ -32,4 +32,4 @@ // Type definitions for loader-runner v2.2.0

export interface RunLoaderResult {
result?: (Buffer | null)[];
resourceBuffer?: Buffer | null;
result?: (Buffer | null)[] | undefined;
resourceBuffer?: Buffer | null | undefined;
cacheable: boolean;

@@ -36,0 +36,0 @@ fileDependencies: string[];

{
"name": "@types/loader-runner",
"version": "2.2.3",
"version": "2.2.4",
"description": "TypeScript definitions for loader-runner",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/loader-runner",
"license": "MIT",

@@ -9,9 +10,12 @@ "contributors": [

"name": "e-cloud",
"url": "https://github.com/e-cloud"
"url": "https://github.com/e-cloud",
"githubUsername": "e-cloud"
}
],
"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/loader-runner"
},

@@ -22,4 +26,4 @@ "scripts": {},

},
"typesPublisherContentHash": "0dc930c4fbd0af94066c36a39bd7421c71e5366e0ab0d3f1b133b2e49426c361",
"typeScriptVersion": "2.0"
"typesPublisherContentHash": "5be1f2e8efc3bee114ffdb957a240bca04e2cd29755b9510ca96299e8c4cb6f7",
"typeScriptVersion": "3.6"
}

@@ -8,10 +8,86 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/loader-runner
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/loader-runner.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/loader-runner/index.d.ts)
````ts
// Type definitions for loader-runner v2.2.0
// Project: https://github.com/webpack/loader-runner.git
// Definitions by: e-cloud <https://github.com/e-cloud>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
Additional Details
* Last updated: Mon, 21 Aug 2017 21:55:03 GMT
* Dependencies: node
/// <reference types="node" />
export interface Loader {
path: string;
query: string;
request: string;
options: any;
normal: null | ((request: string) => string);
pitch: null | ((request: string) => string);
raw: string;
data: any;
pitchExecuted: boolean;
normalExecuted: boolean;
}
export interface RunLoaderOption {
resource: string;
loaders: any[];
context: any;
readResource: (
filename: string,
callback: (err: NodeJS.ErrnoException | null, data: Buffer | null) => void
) => void;
}
export interface RunLoaderResult {
result?: (Buffer | null)[] | undefined;
resourceBuffer?: Buffer | null | undefined;
cacheable: boolean;
fileDependencies: string[];
contextDependencies: string[];
}
export interface ExtendedLoaderContext {
context: string | null;
loaderIndex: number;
loaders: Loader[];
resourcePath: string | undefined;
resourceQuery: string | undefined;
async: (() => (() => void) | undefined) | null;
callback: (() => void) | null;
cacheable: (flag: boolean) => void;
dependency: (file: string) => void;
addDependency: (file: string) => void;
addContextDependency: (context: string) => void;
getDependencies: () => string[];
getContextDependencies: () => string[];
clearDependencies: () => void;
resource: string;
request: string;
remainingRequest: string;
currentRequest: string;
previousRequest: string;
query: {
[key: string]: any;
} | string;
data: any;
}
export function getContext(resource: string): string;
export function runLoaders(
options: RunLoaderOption,
callback: (err: NodeJS.ErrnoException | null, result: RunLoaderResult) => any
): void;
````
### Additional Details
* Last updated: Tue, 06 Jul 2021 22:02:42 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
* Global values: none
# Credits
These definitions were written by e-cloud <https://github.com/e-cloud>.
These definitions were written by [e-cloud](https://github.com/e-cloud).

Sorry, the diff of this file is not supported yet

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