@protobufjs/path
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -1,32 +0,22 @@ | ||
export = path; | ||
/** | ||
* Tests if the specified path is absolute. | ||
* @param {string} path Path to test | ||
* @returns {boolean} `true` if path is absolute | ||
*/ | ||
export function isAbsolute(path: string): boolean; | ||
/** | ||
* A minimal path module to resolve Unix, Windows and URL paths alike. | ||
* @memberof util | ||
* @namespace | ||
* Normalizes the specified path. | ||
* @param {string} path Path to normalize | ||
* @returns {string} Normalized path | ||
*/ | ||
declare namespace path { | ||
export function normalize(path: string): string; | ||
/** | ||
* Tests if the specified path is absolute. | ||
* @param {string} path Path to test | ||
* @returns {boolean} `true` if path is absolute | ||
*/ | ||
function isAbsolute(path: string): boolean; | ||
/** | ||
* Normalizes the specified path. | ||
* @param {string} path Path to normalize | ||
* @returns {string} Normalized path | ||
*/ | ||
function normalize(path: string): string; | ||
/** | ||
* Resolves the specified include path against the specified origin path. | ||
* @param {string} originPath Path to the origin file | ||
* @param {string} includePath Include path relative to origin path | ||
* @param {boolean} [alreadyNormalized=false] `true` if both paths are already known to be normalized | ||
* @returns {string} Path to the include file | ||
*/ | ||
function resolve(originPath: string, includePath: string, alreadyNormalized?: boolean): string; | ||
} | ||
/** | ||
* Resolves the specified include path against the specified origin path. | ||
* @param {string} originPath Path to the origin file | ||
* @param {string} includePath Include path relative to origin path | ||
* @param {boolean} [alreadyNormalized=false] `true` if both paths are already known to be normalized | ||
* @returns {string} Path to the include file | ||
*/ | ||
export function resolve(originPath: string, includePath: string, alreadyNormalized?: boolean): string; |
{ | ||
"name": "@protobufjs/path", | ||
"description": "A minimal path module to resolve Unix, Windows and URL paths alike.", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"author": "Daniel Wirtz <dcode+protobufjs@dcode.io>", | ||
@@ -6,0 +6,0 @@ "repository": { |
7745
134