@rushstack/package-extractor 0.10.0 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +45 -0
- package/CHANGELOG.md +11 -1
- package/dist/scripts/create-links.js +152 -1
- package/dist/scripts/create-links.js.map +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +7 -7
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,51 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rushstack/package-extractor",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"version": "0.10.2",
|
|
6
|
+
"tag": "@rushstack/package-extractor_v0.10.2",
|
|
7
|
+
"date": "Sat, 23 Nov 2024 01:18:55 GMT",
|
|
8
|
+
"comments": {
|
|
9
|
+
"dependency": [
|
|
10
|
+
{
|
|
11
|
+
"comment": "Updating dependency \"@rushstack/heft-webpack5-plugin\" to `0.11.6`"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"comment": "Updating dependency \"@rushstack/heft\" to `0.68.8`"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"comment": "Updating dependency \"@rushstack/webpack-preserve-dynamic-require-plugin\" to `0.11.75`"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"version": "0.10.1",
|
|
24
|
+
"tag": "@rushstack/package-extractor_v0.10.1",
|
|
25
|
+
"date": "Fri, 22 Nov 2024 01:10:43 GMT",
|
|
26
|
+
"comments": {
|
|
27
|
+
"dependency": [
|
|
28
|
+
{
|
|
29
|
+
"comment": "Updating dependency \"@rushstack/node-core-library\" to `5.10.0`"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"comment": "Updating dependency \"@rushstack/terminal\" to `0.14.3`"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"comment": "Updating dependency \"@rushstack/ts-command-line\" to `4.23.1`"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"comment": "Updating dependency \"@rushstack/heft-webpack5-plugin\" to `0.11.5`"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"comment": "Updating dependency \"@rushstack/heft\" to `0.68.7`"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"comment": "Updating dependency \"@rushstack/webpack-preserve-dynamic-require-plugin\" to `0.11.74`"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
},
|
|
4
49
|
{
|
|
5
50
|
"version": "0.10.0",
|
|
6
51
|
"tag": "@rushstack/package-extractor_v0.10.0",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
# Change Log - @rushstack/package-extractor
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Sat, 23 Nov 2024 01:18:55 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.10.2
|
|
6
|
+
Sat, 23 Nov 2024 01:18:55 GMT
|
|
7
|
+
|
|
8
|
+
_Version update only_
|
|
9
|
+
|
|
10
|
+
## 0.10.1
|
|
11
|
+
Fri, 22 Nov 2024 01:10:43 GMT
|
|
12
|
+
|
|
13
|
+
_Version update only_
|
|
4
14
|
|
|
5
15
|
## 0.10.0
|
|
6
16
|
Thu, 24 Oct 2024 15:11:19 GMT
|
|
@@ -63719,6 +63719,155 @@ exports.ProtectableMapView = ProtectableMapView;
|
|
|
63719
63719
|
|
|
63720
63720
|
/***/ }),
|
|
63721
63721
|
|
|
63722
|
+
/***/ 695245:
|
|
63723
|
+
/*!******************************************************!*\
|
|
63724
|
+
!*** ../node-core-library/lib/RealNodeModulePath.js ***!
|
|
63725
|
+
\******************************************************/
|
|
63726
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
63727
|
+
|
|
63728
|
+
"use strict";
|
|
63729
|
+
|
|
63730
|
+
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
|
63731
|
+
// See LICENSE in the project root for license information.
|
|
63732
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
63733
|
+
if (k2 === undefined) k2 = k;
|
|
63734
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
63735
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
63736
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
63737
|
+
}
|
|
63738
|
+
Object.defineProperty(o, k2, desc);
|
|
63739
|
+
}) : (function(o, m, k, k2) {
|
|
63740
|
+
if (k2 === undefined) k2 = k;
|
|
63741
|
+
o[k2] = m[k];
|
|
63742
|
+
}));
|
|
63743
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
63744
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
63745
|
+
}) : function(o, v) {
|
|
63746
|
+
o["default"] = v;
|
|
63747
|
+
});
|
|
63748
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
63749
|
+
if (mod && mod.__esModule) return mod;
|
|
63750
|
+
var result = {};
|
|
63751
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
63752
|
+
__setModuleDefault(result, mod);
|
|
63753
|
+
return result;
|
|
63754
|
+
};
|
|
63755
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
63756
|
+
exports.RealNodeModulePathResolver = void 0;
|
|
63757
|
+
const nodeFs = __importStar(__webpack_require__(/*! fs */ 179896));
|
|
63758
|
+
const nodePath = __importStar(__webpack_require__(/*! path */ 16928));
|
|
63759
|
+
/**
|
|
63760
|
+
* This class encapsulates a caching resolver for symlinks in node_modules directories.
|
|
63761
|
+
* It assumes that the only symlinks that exist in input paths are those that correspond to
|
|
63762
|
+
* npm packages.
|
|
63763
|
+
*
|
|
63764
|
+
* @remarks
|
|
63765
|
+
* In a repository with a symlinked node_modules installation, some symbolic links need to be mapped for
|
|
63766
|
+
* node module resolution to produce correct results. However, calling `fs.realpathSync.native` on every path,
|
|
63767
|
+
* as is commonly done by most resolvers, involves an enormous number of file system operations (for reference,
|
|
63768
|
+
* each invocation of `fs.realpathSync.native` involves a series of `fs.readlinkSync` calls, up to one for each
|
|
63769
|
+
* path segment in the input).
|
|
63770
|
+
*
|
|
63771
|
+
* @public
|
|
63772
|
+
*/
|
|
63773
|
+
class RealNodeModulePathResolver {
|
|
63774
|
+
constructor(options = {
|
|
63775
|
+
fs: nodeFs,
|
|
63776
|
+
path: nodePath
|
|
63777
|
+
}) {
|
|
63778
|
+
const cache = (this._cache = new Map());
|
|
63779
|
+
const { path, fs } = options;
|
|
63780
|
+
const { sep: pathSeparator } = path;
|
|
63781
|
+
this._fs = fs;
|
|
63782
|
+
const nodeModulesToken = `${pathSeparator}node_modules${pathSeparator}`;
|
|
63783
|
+
const tryReadLink = this._tryReadLink.bind(this);
|
|
63784
|
+
function realNodeModulePathInternal(input) {
|
|
63785
|
+
// Find the last node_modules path segment
|
|
63786
|
+
const nodeModulesIndex = input.lastIndexOf(nodeModulesToken);
|
|
63787
|
+
if (nodeModulesIndex < 0) {
|
|
63788
|
+
// No node_modules in path, so we assume it is already the real path
|
|
63789
|
+
return input;
|
|
63790
|
+
}
|
|
63791
|
+
// First assume that the next path segment after node_modules is a symlink
|
|
63792
|
+
let linkStart = nodeModulesIndex + nodeModulesToken.length - 1;
|
|
63793
|
+
let linkEnd = input.indexOf(pathSeparator, linkStart + 1);
|
|
63794
|
+
// If the path segment starts with a '@', then it is a scoped package
|
|
63795
|
+
const isScoped = input.charAt(linkStart + 1) === '@';
|
|
63796
|
+
if (isScoped) {
|
|
63797
|
+
// For a scoped package, the scope is an ordinary directory, so we need to find the next path segment
|
|
63798
|
+
if (linkEnd < 0) {
|
|
63799
|
+
// Symlink missing, so see if anything before the last node_modules needs resolving,
|
|
63800
|
+
// and preserve the rest of the path
|
|
63801
|
+
return `${realNodeModulePathInternal(input.slice(0, nodeModulesIndex))}${input.slice(nodeModulesIndex)}`;
|
|
63802
|
+
}
|
|
63803
|
+
linkStart = linkEnd;
|
|
63804
|
+
linkEnd = input.indexOf(pathSeparator, linkStart + 1);
|
|
63805
|
+
}
|
|
63806
|
+
// No trailing separator, so the link is the last path segment
|
|
63807
|
+
if (linkEnd < 0) {
|
|
63808
|
+
linkEnd = input.length;
|
|
63809
|
+
}
|
|
63810
|
+
const linkCandidate = input.slice(0, linkEnd);
|
|
63811
|
+
// Check if the link is a symlink
|
|
63812
|
+
const linkTarget = tryReadLink(linkCandidate);
|
|
63813
|
+
if (linkTarget && path.isAbsolute(linkTarget)) {
|
|
63814
|
+
// Absolute path, combine the link target with any remaining path segments
|
|
63815
|
+
// Cache the resolution to avoid the readlink call in subsequent calls
|
|
63816
|
+
cache.set(linkCandidate, linkTarget);
|
|
63817
|
+
cache.set(linkTarget, linkTarget);
|
|
63818
|
+
return `${linkTarget}${input.slice(linkEnd)}`;
|
|
63819
|
+
}
|
|
63820
|
+
// Relative path or does not exist
|
|
63821
|
+
// Either way, the path before the last node_modules could itself be in a node_modules folder
|
|
63822
|
+
// So resolve the base path to find out what paths are relative to
|
|
63823
|
+
const realpathBeforeNodeModules = realNodeModulePathInternal(input.slice(0, nodeModulesIndex));
|
|
63824
|
+
if (linkTarget) {
|
|
63825
|
+
// Relative path in symbolic link. Should be resolved relative to real path of base path.
|
|
63826
|
+
const resolvedTarget = path.resolve(`${realpathBeforeNodeModules}${input.slice(nodeModulesIndex, linkStart)}`, linkTarget);
|
|
63827
|
+
// Cache the result of the combined resolution to avoid the readlink call in subsequent calls
|
|
63828
|
+
cache.set(linkCandidate, resolvedTarget);
|
|
63829
|
+
cache.set(resolvedTarget, resolvedTarget);
|
|
63830
|
+
return `${resolvedTarget}${input.slice(linkEnd)}`;
|
|
63831
|
+
}
|
|
63832
|
+
// No symlink, so just return the real path before the last node_modules combined with the
|
|
63833
|
+
// subsequent path segments
|
|
63834
|
+
return `${realpathBeforeNodeModules}${input.slice(nodeModulesIndex)}`;
|
|
63835
|
+
}
|
|
63836
|
+
this.realNodeModulePath = (input) => {
|
|
63837
|
+
return realNodeModulePathInternal(path.normalize(input));
|
|
63838
|
+
};
|
|
63839
|
+
}
|
|
63840
|
+
/**
|
|
63841
|
+
* Clears the cache of resolved symlinks.
|
|
63842
|
+
* @public
|
|
63843
|
+
*/
|
|
63844
|
+
clearCache() {
|
|
63845
|
+
this._cache.clear();
|
|
63846
|
+
}
|
|
63847
|
+
/**
|
|
63848
|
+
* Tries to read a symbolic link at the specified path.
|
|
63849
|
+
* If the input is not a symbolic link, returns undefined.
|
|
63850
|
+
* @param link - The link to try to read
|
|
63851
|
+
* @returns The target of the symbolic link, or undefined if the input is not a symbolic link
|
|
63852
|
+
*/
|
|
63853
|
+
_tryReadLink(link) {
|
|
63854
|
+
const cached = this._cache.get(link);
|
|
63855
|
+
if (cached) {
|
|
63856
|
+
return cached;
|
|
63857
|
+
}
|
|
63858
|
+
// On Windows, calling `readlink` on a directory throws an EUNKOWN, not EINVAL, so just pay the cost
|
|
63859
|
+
// of an lstat call.
|
|
63860
|
+
const stat = this._fs.lstatSync(link);
|
|
63861
|
+
if (stat.isSymbolicLink()) {
|
|
63862
|
+
return this._fs.readlinkSync(link, 'utf8');
|
|
63863
|
+
}
|
|
63864
|
+
}
|
|
63865
|
+
}
|
|
63866
|
+
exports.RealNodeModulePathResolver = RealNodeModulePathResolver;
|
|
63867
|
+
//# sourceMappingURL=RealNodeModulePath.js.map
|
|
63868
|
+
|
|
63869
|
+
/***/ }),
|
|
63870
|
+
|
|
63722
63871
|
/***/ 473294:
|
|
63723
63872
|
/*!****************************************!*\
|
|
63724
63873
|
!*** ../node-core-library/lib/Sort.js ***!
|
|
@@ -64664,7 +64813,7 @@ TypeUuid._uuidRegExp = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9
|
|
|
64664
64813
|
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
|
64665
64814
|
// See LICENSE in the project root for license information.
|
|
64666
64815
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
64667
|
-
exports.TypeUuid = exports.SubprocessTerminator = exports.StringBuilder = exports.LegacyAdapters = exports.FileWriter = exports.FileSystem = exports.AlreadyExistsBehavior = exports.Sort = exports.NewlineKind = exports.Text = exports.Encoding = exports.Path = exports.PackageNameParser = exports.PackageName = exports.PackageJsonLookup = exports.ProtectableMap = exports.PosixModeBits = exports.MinimumHeap = exports.MapExtensions = exports.LockFile = exports.JsonSchema = exports.JsonFile = exports.JsonSyntax = exports.InternalError = exports.Import = exports.FileError = exports.Executable = exports.EnvironmentMap = exports.Enum = exports.FolderConstants = exports.FileConstants = exports.AsyncQueue = exports.Async = exports.AlreadyReportedError = void 0;
|
|
64816
|
+
exports.TypeUuid = exports.SubprocessTerminator = exports.StringBuilder = exports.LegacyAdapters = exports.FileWriter = exports.FileSystem = exports.AlreadyExistsBehavior = exports.Sort = exports.NewlineKind = exports.Text = exports.Encoding = exports.RealNodeModulePathResolver = exports.Path = exports.PackageNameParser = exports.PackageName = exports.PackageJsonLookup = exports.ProtectableMap = exports.PosixModeBits = exports.MinimumHeap = exports.MapExtensions = exports.LockFile = exports.JsonSchema = exports.JsonFile = exports.JsonSyntax = exports.InternalError = exports.Import = exports.FileError = exports.Executable = exports.EnvironmentMap = exports.Enum = exports.FolderConstants = exports.FileConstants = exports.AsyncQueue = exports.Async = exports.AlreadyReportedError = void 0;
|
|
64668
64817
|
/**
|
|
64669
64818
|
* Core libraries that every NodeJS toolchain project should use.
|
|
64670
64819
|
*
|
|
@@ -64712,6 +64861,8 @@ Object.defineProperty(exports, "PackageName", ({ enumerable: true, get: function
|
|
|
64712
64861
|
Object.defineProperty(exports, "PackageNameParser", ({ enumerable: true, get: function () { return PackageName_1.PackageNameParser; } }));
|
|
64713
64862
|
var Path_1 = __webpack_require__(/*! ./Path */ 302405);
|
|
64714
64863
|
Object.defineProperty(exports, "Path", ({ enumerable: true, get: function () { return Path_1.Path; } }));
|
|
64864
|
+
var RealNodeModulePath_1 = __webpack_require__(/*! ./RealNodeModulePath */ 695245);
|
|
64865
|
+
Object.defineProperty(exports, "RealNodeModulePathResolver", ({ enumerable: true, get: function () { return RealNodeModulePath_1.RealNodeModulePathResolver; } }));
|
|
64715
64866
|
var Text_1 = __webpack_require__(/*! ./Text */ 426989);
|
|
64716
64867
|
Object.defineProperty(exports, "Encoding", ({ enumerable: true, get: function () { return Text_1.Encoding; } }));
|
|
64717
64868
|
Object.defineProperty(exports, "Text", ({ enumerable: true, get: function () { return Text_1.Text; } }));
|