🚀 Big News:Socket Has Acquired Secure Annex.Learn More
Socket
Book a DemoSign in
Socket

@types/resolve-path

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/resolve-path - npm Package Compare versions

Comparing version
1.4.0
to
1.4.1
+0
-5
resolve-path/index.d.ts

@@ -1,6 +0,1 @@

// Type definitions for resolve-path 1.4
// Project: https://github.com/pillarjs/resolve-path#readme
// Definitions by: fer22f <https://github.com/fer22f>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**

@@ -7,0 +2,0 @@ * Resolve a relative path against `process.cwd()` (the process's current working directory) and return an absolute path.

+6
-5
{
"name": "@types/resolve-path",
"version": "1.4.0",
"version": "1.4.1",
"description": "TypeScript definitions for resolve-path",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/resolve-path",
"license": "MIT",

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

"name": "fer22f",
"url": "https://github.com/fer22f",
"githubUsername": "fer22f"
"githubUsername": "fer22f",
"url": "https://github.com/fer22f"
}

@@ -23,4 +24,4 @@ ],

"dependencies": {},
"typesPublisherContentHash": "a8ae90019beb62b8a3d9ffd1f8a72e65b4d2d97192c3cf359ddc72c7765a239d",
"typeScriptVersion": "3.2"
"typesPublisherContentHash": "79972745013fcd2f8ce7a2b8aeddff7c72f23e176ba28752ad1517e5fef7dfcf",
"typeScriptVersion": "4.5"
}

@@ -9,9 +9,36 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/resolve-path.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/resolve-path/index.d.ts)
````ts
/**
* Resolve a relative path against `process.cwd()` (the process's current working directory) and return an absolute path.
* *This will throw* if the resulting resolution seems malicious. The following are malicious:
*
* * The relative path is an absolute path
* * The relative path contains a NULL byte
* * The relative path resolves to a path outside of process.cwd()
* * The relative path traverses above process.cwd() and back down
*/
declare function resolvePath(relativePath: string): string;
/**
* Resolve a relative path against the provided root path and return an absolute path.
* *This will throw* if the resulting resolution seems malicious. The following are malicious:
*
* * The relative path is an absolute path
* * The relative path contains a NULL byte
* * The relative path resolves to a path outside of the root path
* * The relative path traverses above the root and back down
*/
// tslint:disable-next-line unified-signatures
declare function resolvePath(rootPath: string, relativePath: string): string;
export = resolvePath;
````
### Additional Details
* Last updated: Wed, 30 Sep 2020 20:01:31 GMT
* Last updated: Wed, 18 Oct 2023 11:45:06 GMT
* Dependencies: none
* Global values: none
# Credits
These definitions were written by [fer22f](https://github.com/fer22f).