tsconfig-paths
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -9,7 +9,12 @@ # Change Log | ||
## [3.1.0] - 2018-01-13 | ||
### Added | ||
- Implement default async json reader function. | ||
## [3.0.0] - 2018-01-13 | ||
### Changed | ||
- Remove parameter `absoluteSourceFileName: string` from `MatchPath` and `absolutePathMappings`. It was not used internally. | ||
- `absolutePathMappings` now accepts a pre-sorted array of `MappingEntry`s instead of a dictionary. | ||
- Remove parameter `absoluteSourceFileName` from the `MatchPath` and `matchFromAbsolutePaths` functions. It was not used internally. | ||
- `matchFromAbsolutePaths` now accepts a pre-sorted array of `MappingEntry`s instead of a dictionary. This was done so the sorting could be done once which should give better performance. | ||
@@ -134,3 +139,5 @@ ### Added | ||
[Unreleased]: https://github.com/dividab/tsconfig-paths/compare/2.7.3...master | ||
[Unreleased]: https://github.com/dividab/tsconfig-paths/compare/3.1.0...master | ||
[3.1.0]: https://github.com/dividab/tsconfig-paths/compare/3.0.0...3.1.0 | ||
[3.0.0]: https://github.com/dividab/tsconfig-paths/compare/2.7.3...3.0.0 | ||
[2.7.3]: https://github.com/dividab/tsconfig-paths/compare/2.7.2...2.7.3 | ||
@@ -137,0 +144,0 @@ [2.7.2]: https://github.com/dividab/tsconfig-paths/compare/2.7.1...2.7.2 |
@@ -20,4 +20,9 @@ "use strict"; | ||
callback) { | ||
console.log("TODO!!!", path); | ||
callback(undefined, undefined); | ||
fs.readFile(path, "utf8", function (err, result) { | ||
if (err) { | ||
callback(err); | ||
} | ||
var json = JSON.parse(result); | ||
callback(undefined, json); | ||
}); | ||
} | ||
@@ -24,0 +29,0 @@ exports.readJsonFromDiskAsync = readJsonFromDiskAsync; |
{ | ||
"name": "tsconfig-paths", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "Load node modules according to tsconfig paths, in run-time or via API.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
144906
35
1497
0