Socket
Socket
Sign inDemoInstall

@microsoft/node-core-library

Package Overview
Dependencies
Maintainers
2
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/node-core-library - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

12

CHANGELOG.json

@@ -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",

9

CHANGELOG.md
# 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

2

dist/index-internal.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc