@protobuf-ts/plugin-framework
Advanced tools
Comparing version 2.0.0-alpha.2 to 2.0.0-alpha.3
@@ -193,5 +193,10 @@ "use strict"; | ||
let fromPath = path.relative(path.dirname(currentPath), pathToImportFrom); | ||
// and drop file extension | ||
// on windows, this may add backslash directory separators. | ||
// we replace them with forward slash. | ||
if (path.sep !== "/") { | ||
fromPath = fromPath.split(path.sep).join("/"); | ||
} | ||
// drop file extension | ||
fromPath = fromPath.replace(/\.[a-z]+$/, ''); | ||
// and make sure to start with './' to signal relative path to module resolution | ||
// make sure to start with './' to signal relative path to module resolution | ||
if (!fromPath.startsWith('../') && !fromPath.startsWith('./')) { | ||
@@ -198,0 +203,0 @@ fromPath = './' + fromPath; |
@@ -189,5 +189,10 @@ import { assert } from "@protobuf-ts/runtime"; | ||
let fromPath = path.relative(path.dirname(currentPath), pathToImportFrom); | ||
// and drop file extension | ||
// on windows, this may add backslash directory separators. | ||
// we replace them with forward slash. | ||
if (path.sep !== "/") { | ||
fromPath = fromPath.split(path.sep).join("/"); | ||
} | ||
// drop file extension | ||
fromPath = fromPath.replace(/\.[a-z]+$/, ''); | ||
// and make sure to start with './' to signal relative path to module resolution | ||
// make sure to start with './' to signal relative path to module resolution | ||
if (!fromPath.startsWith('../') && !fromPath.startsWith('./')) { | ||
@@ -194,0 +199,0 @@ fromPath = './' + fromPath; |
{ | ||
"name": "@protobuf-ts/plugin-framework", | ||
"version": "2.0.0-alpha.2", | ||
"version": "2.0.0-alpha.3", | ||
"description": "framework to create protoc plugins", | ||
@@ -36,6 +36,6 @@ "license": "(Apache-2.0 AND BSD-3-Clause)", | ||
"dependencies": { | ||
"@protobuf-ts/runtime": "^2.0.0-alpha.2", | ||
"@protobuf-ts/runtime": "^2.0.0-alpha.3", | ||
"typescript": ">=3.8.3 <4" | ||
}, | ||
"gitHead": "79597288e771900aaf6b9a28fa19ca6b29140bf6" | ||
"gitHead": "e8f86228c5388b6d80881c87ad565830dd049cda" | ||
} |
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
371154
8526