@stryke/path 0.15.0 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/append.cjs +4 -2
- package/dist/append.d.ts +1 -0
- package/dist/append.mjs +1 -1
- package/package.json +2 -2
package/dist/append.cjs
CHANGED
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports.append = void 0;
|
|
6
7
|
exports.appendPath = appendPath;
|
|
7
8
|
var _cwd = require("./cwd.cjs");
|
|
8
9
|
var _isParentPath = require("./is-parent-path.cjs");
|
|
9
10
|
var _joinPaths = require("./join-paths.cjs");
|
|
10
11
|
var _slash = require("./slash.cjs");
|
|
11
12
|
function appendPath(r, o = (0, _cwd.cwd)()) {
|
|
12
|
-
return (0, _slash.slash)((0, _isParentPath.isParentPath)(r, o) ? (0, _joinPaths.joinPaths)(r, o)
|
|
13
|
-
}
|
|
13
|
+
return (0, _slash.slash)((0, _isParentPath.isParentPath)(r, o) ? r : (0, _joinPaths.joinPaths)(r, o));
|
|
14
|
+
}
|
|
15
|
+
const append = exports.append = appendPath;
|
package/dist/append.d.ts
CHANGED
package/dist/append.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cwd as t}from"./cwd";import{isParentPath as
|
|
1
|
+
import{cwd as t}from"./cwd";import{isParentPath as n}from"./is-parent-path";import{joinPaths as p}from"./join-paths";import{slash as i}from"./slash";export function appendPath(r,o=t()){return i(n(r,o)?r:p(r,o))}export const append=appendPath;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stryke/path",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing various utilities that expand the functionality of NodeJs's built-in `path` module",
|
|
6
6
|
"repository": {
|
|
@@ -278,5 +278,5 @@
|
|
|
278
278
|
"main": "./dist/index.cjs",
|
|
279
279
|
"module": "./dist/index.mjs",
|
|
280
280
|
"types": "./dist/index.d.ts",
|
|
281
|
-
"gitHead": "
|
|
281
|
+
"gitHead": "af24fab80acc5cc13febfd819a367ba46ad8329b"
|
|
282
282
|
}
|