@protobuf-ts/plugin-framework
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -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": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "framework to create protoc plugins", | ||
@@ -36,6 +36,6 @@ "license": "(Apache-2.0 AND BSD-3-Clause)", | ||
"dependencies": { | ||
"@protobuf-ts/runtime": "^1.0.10", | ||
"@protobuf-ts/runtime": "^1.0.11", | ||
"typescript": ">=3.8.3 <4" | ||
}, | ||
"gitHead": "ba565bc648c8eefa46e97a8234120cfe97c443b9" | ||
"gitHead": "0f1e09aa54837c94b5944141189c1bb485de9fc5" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
585763
8401
Updated@protobuf-ts/runtime@^1.0.11