@drovp/save-as-path
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -30,2 +30,3 @@ "use strict"; | ||
title: `Destination`, | ||
formatSelection: formatDestinationSelection, | ||
description: ` | ||
@@ -212,1 +213,6 @@ <p>Where to save the file. Relative path starts at the input file's directory. Template is a JavaScript template literal allowing embedded expressions.</p> | ||
exports.uid = uid; | ||
function formatDestinationSelection(path, oldPath) { | ||
const oldPathParts = (oldPath || '').split(/\\|\//); | ||
const lastOldPathPart = oldPathParts[oldPathParts.length - 1]; | ||
return Path.join(path, lastOldPathPart); | ||
} |
{ | ||
"name": "@drovp/save-as-path", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Drovp utility to determine path for file results.", | ||
@@ -46,3 +46,3 @@ "homepage": "https://github.com/drovp/save-as-path", | ||
"devDependencies": { | ||
"@types/node": "^16.11.11", | ||
"@types/node": "^16.11.12", | ||
"ava": "^3.15.0", | ||
@@ -53,3 +53,3 @@ "npm-run-all": "^4.1.5", | ||
"tslib": "^2.3.1", | ||
"typescript": "^4.5.2" | ||
"typescript": "^4.5.3" | ||
}, | ||
@@ -56,0 +56,0 @@ "dependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
22530
242
0