@microsoft/node-core-library
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -5,2 +5,14 @@ { | ||
{ | ||
"version": "1.3.0", | ||
"tag": "@microsoft/node-core-library_v1.3.0", | ||
"date": "Fri, 04 May 2018 00:42:38 GMT", | ||
"comments": { | ||
"minor": [ | ||
{ | ||
"comment": "Update the package resolution logic to preserve symlinks in paths" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"version": "1.2.0", | ||
@@ -7,0 +19,0 @@ "tag": "@microsoft/node-core-library_v1.2.0", |
# Change Log - @microsoft/node-core-library | ||
This log was last generated on Tue, 03 Apr 2018 16:05:29 GMT and should not be manually modified. | ||
This log was last generated on Fri, 04 May 2018 00:42:38 GMT and should not be manually modified. | ||
## 1.3.0 | ||
Fri, 04 May 2018 00:42:38 GMT | ||
### Minor changes | ||
- Update the package resolution logic to preserve symlinks in paths | ||
## 1.2.0 | ||
@@ -6,0 +13,0 @@ Tue, 03 Apr 2018 16:05:29 GMT |
@@ -593,3 +593,3 @@ /** | ||
loadPackageJson(jsonFilename: string): IPackageJson; | ||
private _tryGetPackageFolderFor(resolvedFileOrFolderPath, isRealPath); | ||
private _tryGetPackageFolderFor(resolvedFileOrFolderPath); | ||
} | ||
@@ -596,0 +596,0 @@ |
@@ -88,3 +88,3 @@ import { IPackageJson } from './IPackageJson'; | ||
loadPackageJson(jsonFilename: string): IPackageJson; | ||
private _tryGetPackageFolderFor(resolvedFileOrFolderPath, isRealPath); | ||
private _tryGetPackageFolderFor(resolvedFileOrFolderPath); | ||
} |
@@ -61,3 +61,3 @@ "use strict"; | ||
// Now call the recursive part of the algorithm | ||
return this._tryGetPackageFolderFor(resolvedFileOrFolderPath, false); | ||
return this._tryGetPackageFolderFor(resolvedFileOrFolderPath); | ||
} | ||
@@ -162,14 +162,3 @@ /** | ||
// Recursive part of the algorithm from tryGetPackageFolderFor() | ||
_tryGetPackageFolderFor(resolvedFileOrFolderPath, isRealPath) { | ||
if (!isRealPath) { | ||
// While walking up the parent tree, as soon as we encounter a path that actually exists, | ||
// we need to call realpathSync() to expand any symlinks that we encountered. | ||
// | ||
// Then we will set isRealPath=true, since this only needs to be done once. | ||
if (fsx.existsSync(resolvedFileOrFolderPath)) { | ||
// Walk any symlinks to avoid duplicate cache keys. | ||
resolvedFileOrFolderPath = fsx.realpathSync(resolvedFileOrFolderPath); | ||
isRealPath = true; | ||
} | ||
} | ||
_tryGetPackageFolderFor(resolvedFileOrFolderPath) { | ||
// Two lookups are required, because get() cannot distinguish the undefined value | ||
@@ -194,3 +183,3 @@ // versus a missing key. | ||
// Recurse upwards, caching every step along the way | ||
const parentResult = this._tryGetPackageFolderFor(parentFolder, isRealPath); | ||
const parentResult = this._tryGetPackageFolderFor(parentFolder); | ||
// Cache the parent's answer as well | ||
@@ -197,0 +186,0 @@ this._packageFolderCache.set(resolvedFileOrFolderPath, parentResult); |
{ | ||
"name": "@microsoft/node-core-library", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Core libraries that every NodeJS toolchain project should use", | ||
@@ -15,6 +15,6 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@types/fs-extra": "0.0.37", | ||
"@types/fs-extra": "5.0.1", | ||
"@types/node": "8.5.8", | ||
"@types/z-schema": "3.16.31", | ||
"fs-extra": "~0.26.7", | ||
"fs-extra": "~5.0.0", | ||
"jju": "~1.3.0", | ||
@@ -21,0 +21,0 @@ "z-schema": "~3.18.3" |
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
3892
302983
+ Added@types/fs-extra@5.0.1(transitive)
+ Addedfs-extra@5.0.0(transitive)
+ Addedjsonfile@4.0.0(transitive)
+ Addeduniversalify@0.1.2(transitive)
- Removed@types/fs-extra@0.0.37(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedfs-extra@0.26.7(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedjsonfile@2.4.0(transitive)
- Removedklaw@1.3.1(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedwrappy@1.0.2(transitive)
Updated@types/fs-extra@5.0.1
Updatedfs-extra@~5.0.0