@ms-cloudpack/remote-cache 0.11.58 → 0.11.61
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/NOTICE.txt +8 -8
- package/dist/{AzureRemoteCacheClient-2QBRLTWH.js → AzureRemoteCacheClient-X37K4TRO.js} +919 -717
- package/dist/{chunk-IGWDIFPL.js → chunk-6YVY4WVL.js} +8 -13
- package/dist/{chunk-JEBJUXPQ.js → chunk-CN4MVSXI.js} +209 -205
- package/dist/{getCredential-CYQ5LCNH.js → getCredential-25LXQMJS.js} +2 -2
- package/dist/index.js +488 -400
- package/package.json +2 -2
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
require_commonjs4 as require_commonjs5,
|
|
14
14
|
require_commonjs5 as require_commonjs6,
|
|
15
15
|
require_package as require_package2
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-CN4MVSXI.js";
|
|
17
17
|
import {
|
|
18
18
|
init_tslib_es6,
|
|
19
19
|
require_commonjs,
|
|
20
20
|
require_package2 as require_package,
|
|
21
21
|
tslib_es6_exports
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-6YVY4WVL.js";
|
|
23
23
|
import {
|
|
24
24
|
__commonJS,
|
|
25
25
|
__name,
|
|
@@ -5635,9 +5635,9 @@ var require_lib3 = __commonJS({
|
|
|
5635
5635
|
}
|
|
5636
5636
|
});
|
|
5637
5637
|
|
|
5638
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
5638
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/graph/getPackageDependencies.js
|
|
5639
5639
|
var require_getPackageDependencies = __commonJS({
|
|
5640
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
5640
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/graph/getPackageDependencies.js"(exports) {
|
|
5641
5641
|
"use strict";
|
|
5642
5642
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5643
5643
|
exports.getPackageDependencies = void 0;
|
|
@@ -5650,32 +5650,32 @@ var require_getPackageDependencies = __commonJS({
|
|
|
5650
5650
|
return !range.startsWith("npm:") && !range.startsWith("file:");
|
|
5651
5651
|
}
|
|
5652
5652
|
__name(isValidDependency, "isValidDependency");
|
|
5653
|
-
function getPackageDependencies(info,
|
|
5653
|
+
function getPackageDependencies(info, internalPackages, options = { withDevDependencies: true }) {
|
|
5654
5654
|
const deps = [];
|
|
5655
5655
|
if (info.dependencies) {
|
|
5656
5656
|
for (const dep of Object.keys(info.dependencies)) {
|
|
5657
|
-
if (dep !== info.name &&
|
|
5657
|
+
if (dep !== info.name && internalPackages.has(dep)) {
|
|
5658
5658
|
deps.push(dep);
|
|
5659
5659
|
}
|
|
5660
5660
|
}
|
|
5661
5661
|
}
|
|
5662
5662
|
if (info.devDependencies && options.withDevDependencies) {
|
|
5663
5663
|
for (const dep of Object.keys(info.devDependencies)) {
|
|
5664
|
-
if (dep !== info.name &&
|
|
5664
|
+
if (dep !== info.name && internalPackages.has(dep)) {
|
|
5665
5665
|
deps.push(dep);
|
|
5666
5666
|
}
|
|
5667
5667
|
}
|
|
5668
5668
|
}
|
|
5669
5669
|
if (info.peerDependencies && options.withPeerDependencies) {
|
|
5670
5670
|
for (const dep of Object.keys(info.peerDependencies)) {
|
|
5671
|
-
if (dep !== info.name &&
|
|
5671
|
+
if (dep !== info.name && internalPackages.has(dep)) {
|
|
5672
5672
|
deps.push(dep);
|
|
5673
5673
|
}
|
|
5674
5674
|
}
|
|
5675
5675
|
}
|
|
5676
5676
|
if (info.optionalDependencies && options.withOptionalDependencies) {
|
|
5677
5677
|
for (const dep of Object.keys(info.optionalDependencies)) {
|
|
5678
|
-
if (dep !== info.name &&
|
|
5678
|
+
if (dep !== info.name && internalPackages.has(dep)) {
|
|
5679
5679
|
deps.push(dep);
|
|
5680
5680
|
}
|
|
5681
5681
|
}
|
|
@@ -5688,9 +5688,9 @@ var require_getPackageDependencies = __commonJS({
|
|
|
5688
5688
|
}
|
|
5689
5689
|
});
|
|
5690
5690
|
|
|
5691
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
5691
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/isCachingEnabled.js
|
|
5692
5692
|
var require_isCachingEnabled = __commonJS({
|
|
5693
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
5693
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/isCachingEnabled.js"(exports) {
|
|
5694
5694
|
"use strict";
|
|
5695
5695
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5696
5696
|
exports.isCachingEnabled = exports.setCachingEnabled = void 0;
|
|
@@ -5708,9 +5708,9 @@ var require_isCachingEnabled = __commonJS({
|
|
|
5708
5708
|
}
|
|
5709
5709
|
});
|
|
5710
5710
|
|
|
5711
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
5711
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/dependencies/transitiveDeps.js
|
|
5712
5712
|
var require_transitiveDeps = __commonJS({
|
|
5713
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
5713
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/dependencies/transitiveDeps.js"(exports) {
|
|
5714
5714
|
"use strict";
|
|
5715
5715
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5716
5716
|
exports.getTransitiveProviders = exports.getTransitiveConsumers = exports.getDependentMap = void 0;
|
|
@@ -5807,9 +5807,9 @@ var require_transitiveDeps = __commonJS({
|
|
|
5807
5807
|
}
|
|
5808
5808
|
});
|
|
5809
5809
|
|
|
5810
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
5810
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/dependencies/index.js
|
|
5811
5811
|
var require_dependencies = __commonJS({
|
|
5812
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
5812
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/dependencies/index.js"(exports) {
|
|
5813
5813
|
"use strict";
|
|
5814
5814
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5815
5815
|
exports.getInternalDeps = exports.getTransitiveConsumers = exports.getTransitiveDependents = exports.getTransitiveProviders = exports.getTransitiveDependencies = void 0;
|
|
@@ -5827,42 +5827,30 @@ var require_dependencies = __commonJS({
|
|
|
5827
5827
|
}
|
|
5828
5828
|
});
|
|
5829
5829
|
|
|
5830
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
5831
|
-
var require_infoFromPackageJson = __commonJS({
|
|
5832
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.4-078d0cf634/package/lib/infoFromPackageJson.js"(exports) {
|
|
5833
|
-
"use strict";
|
|
5834
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5835
|
-
exports.infoFromPackageJson = void 0;
|
|
5836
|
-
function infoFromPackageJson(packageJson, packageJsonPath) {
|
|
5837
|
-
return {
|
|
5838
|
-
packageJsonPath,
|
|
5839
|
-
...packageJson
|
|
5840
|
-
};
|
|
5841
|
-
}
|
|
5842
|
-
__name(infoFromPackageJson, "infoFromPackageJson");
|
|
5843
|
-
exports.infoFromPackageJson = infoFromPackageJson;
|
|
5844
|
-
}
|
|
5845
|
-
});
|
|
5846
|
-
|
|
5847
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.4-078d0cf634/package/lib/workspaces/getWorkspaceRoot.js
|
|
5830
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/getWorkspaceRoot.js
|
|
5848
5831
|
var require_getWorkspaceRoot = __commonJS({
|
|
5849
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
5832
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/getWorkspaceRoot.js"(exports) {
|
|
5850
5833
|
"use strict";
|
|
5851
5834
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5852
|
-
exports.getWorkspaceRoot = void 0;
|
|
5835
|
+
exports.getWorkspaceManagerRoot = exports.getWorkspaceRoot = void 0;
|
|
5853
5836
|
var implementations_1 = require_implementations();
|
|
5854
5837
|
function getWorkspaceRoot(cwd, preferredManager) {
|
|
5855
|
-
|
|
5856
|
-
return (_a = (0, implementations_1.getWorkspaceManagerAndRoot)(cwd, void 0, preferredManager)) == null ? void 0 : _a.root;
|
|
5838
|
+
return getWorkspaceManagerRoot(cwd, preferredManager);
|
|
5857
5839
|
}
|
|
5858
5840
|
__name(getWorkspaceRoot, "getWorkspaceRoot");
|
|
5859
5841
|
exports.getWorkspaceRoot = getWorkspaceRoot;
|
|
5842
|
+
function getWorkspaceManagerRoot(cwd, preferredManager) {
|
|
5843
|
+
var _a;
|
|
5844
|
+
return (_a = (0, implementations_1.getWorkspaceManagerAndRoot)(cwd, void 0, preferredManager)) == null ? void 0 : _a.root;
|
|
5845
|
+
}
|
|
5846
|
+
__name(getWorkspaceManagerRoot, "getWorkspaceManagerRoot");
|
|
5847
|
+
exports.getWorkspaceManagerRoot = getWorkspaceManagerRoot;
|
|
5860
5848
|
}
|
|
5861
5849
|
});
|
|
5862
5850
|
|
|
5863
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
5851
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/git/git.js
|
|
5864
5852
|
var require_git = __commonJS({
|
|
5865
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
5853
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/git/git.js"(exports) {
|
|
5866
5854
|
"use strict";
|
|
5867
5855
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5868
5856
|
exports.gitFailFast = exports.git = exports.clearGitObservers = exports.addGitObserver = exports.GitError = void 0;
|
|
@@ -6603,9 +6591,9 @@ var require_lib8 = __commonJS({
|
|
|
6603
6591
|
}
|
|
6604
6592
|
});
|
|
6605
6593
|
|
|
6606
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
6594
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/git/getRepositoryName.js
|
|
6607
6595
|
var require_getRepositoryName = __commonJS({
|
|
6608
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
6596
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/git/getRepositoryName.js"(exports) {
|
|
6609
6597
|
"use strict";
|
|
6610
6598
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
6611
6599
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -6640,9 +6628,9 @@ var require_getRepositoryName = __commonJS({
|
|
|
6640
6628
|
}
|
|
6641
6629
|
});
|
|
6642
6630
|
|
|
6643
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
6631
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/git/getDefaultRemote.js
|
|
6644
6632
|
var require_getDefaultRemote = __commonJS({
|
|
6645
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
6633
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/git/getDefaultRemote.js"(exports) {
|
|
6646
6634
|
"use strict";
|
|
6647
6635
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
6648
6636
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -6713,9 +6701,9 @@ var require_getDefaultRemote = __commonJS({
|
|
|
6713
6701
|
}
|
|
6714
6702
|
});
|
|
6715
6703
|
|
|
6716
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
6704
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/git/gitUtilities.js
|
|
6717
6705
|
var require_gitUtilities = __commonJS({
|
|
6718
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
6706
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/git/gitUtilities.js"(exports) {
|
|
6719
6707
|
"use strict";
|
|
6720
6708
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6721
6709
|
exports.listAllTrackedFiles = exports.getDefaultBranch = exports.parseRemoteBranch = exports.getRemoteBranch = exports.getParentBranch = exports.revertLocalChanges = exports.stageAndCommit = exports.commit = exports.stage = exports.init = exports.getFileAddedHash = exports.getCurrentHash = exports.getShortBranchName = exports.getFullBranchRef = exports.getBranchName = exports.getUserEmail = exports.getRecentCommitMessages = exports.getStagedChanges = exports.getChangesBetweenRefs = exports.getBranchChanges = exports.getChanges = exports.getUnstagedChanges = exports.fetchRemoteBranch = exports.fetchRemote = exports.getUntrackedChanges = void 0;
|
|
@@ -6764,7 +6752,17 @@ var require_gitUtilities = __commonJS({
|
|
|
6764
6752
|
__name(getChanges, "getChanges");
|
|
6765
6753
|
exports.getChanges = getChanges;
|
|
6766
6754
|
function getBranchChanges(branch, cwd) {
|
|
6767
|
-
return getChangesBetweenRefs(
|
|
6755
|
+
return getChangesBetweenRefs(
|
|
6756
|
+
/*from*/
|
|
6757
|
+
branch,
|
|
6758
|
+
/*to*/
|
|
6759
|
+
"",
|
|
6760
|
+
/*options*/
|
|
6761
|
+
[],
|
|
6762
|
+
/*file pattern*/
|
|
6763
|
+
"",
|
|
6764
|
+
cwd
|
|
6765
|
+
);
|
|
6768
6766
|
}
|
|
6769
6767
|
__name(getBranchChanges, "getBranchChanges");
|
|
6770
6768
|
exports.getBranchChanges = getBranchChanges;
|
|
@@ -6987,9 +6985,9 @@ var require_gitUtilities = __commonJS({
|
|
|
6987
6985
|
}
|
|
6988
6986
|
});
|
|
6989
6987
|
|
|
6990
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
6988
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/git/getDefaultRemoteBranch.js
|
|
6991
6989
|
var require_getDefaultRemoteBranch = __commonJS({
|
|
6992
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
6990
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/git/getDefaultRemoteBranch.js"(exports) {
|
|
6993
6991
|
"use strict";
|
|
6994
6992
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6995
6993
|
exports.getDefaultRemoteBranch = void 0;
|
|
@@ -7017,9 +7015,9 @@ var require_getDefaultRemoteBranch = __commonJS({
|
|
|
7017
7015
|
}
|
|
7018
7016
|
});
|
|
7019
7017
|
|
|
7020
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
7018
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/git/index.js
|
|
7021
7019
|
var require_git2 = __commonJS({
|
|
7022
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
7020
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/git/index.js"(exports) {
|
|
7023
7021
|
"use strict";
|
|
7024
7022
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
7025
7023
|
if (k2 === void 0) k2 = k;
|
|
@@ -7045,9 +7043,9 @@ var require_git2 = __commonJS({
|
|
|
7045
7043
|
}
|
|
7046
7044
|
});
|
|
7047
7045
|
|
|
7048
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
7046
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/logging.js
|
|
7049
7047
|
var require_logging = __commonJS({
|
|
7050
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
7048
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/logging.js"(exports) {
|
|
7051
7049
|
"use strict";
|
|
7052
7050
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7053
7051
|
exports.logVerboseWarning = void 0;
|
|
@@ -7061,9 +7059,9 @@ var require_logging = __commonJS({
|
|
|
7061
7059
|
}
|
|
7062
7060
|
});
|
|
7063
7061
|
|
|
7064
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
7062
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/paths.js
|
|
7065
7063
|
var require_paths = __commonJS({
|
|
7066
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
7064
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/paths.js"(exports) {
|
|
7067
7065
|
"use strict";
|
|
7068
7066
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
7069
7067
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -7109,7 +7107,7 @@ var require_paths = __commonJS({
|
|
|
7109
7107
|
function findProjectRoot(cwd) {
|
|
7110
7108
|
let workspaceRoot;
|
|
7111
7109
|
try {
|
|
7112
|
-
workspaceRoot = (0, getWorkspaceRoot_1.
|
|
7110
|
+
workspaceRoot = (0, getWorkspaceRoot_1.getWorkspaceManagerRoot)(cwd);
|
|
7113
7111
|
} catch (err) {
|
|
7114
7112
|
(0, logging_1.logVerboseWarning)(`Error getting workspace root for ${cwd}`, err);
|
|
7115
7113
|
}
|
|
@@ -7129,9 +7127,9 @@ var require_paths = __commonJS({
|
|
|
7129
7127
|
}
|
|
7130
7128
|
});
|
|
7131
7129
|
|
|
7132
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
7130
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/implementations/getWorkspaceManagerAndRoot.js
|
|
7133
7131
|
var require_getWorkspaceManagerAndRoot = __commonJS({
|
|
7134
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
7132
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/implementations/getWorkspaceManagerAndRoot.js"(exports) {
|
|
7135
7133
|
"use strict";
|
|
7136
7134
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
7137
7135
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -12864,9 +12862,9 @@ var require_out4 = __commonJS({
|
|
|
12864
12862
|
}
|
|
12865
12863
|
});
|
|
12866
12864
|
|
|
12867
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
12865
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/getPackagePaths.js
|
|
12868
12866
|
var require_getPackagePaths = __commonJS({
|
|
12869
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
12867
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/getPackagePaths.js"(exports) {
|
|
12870
12868
|
"use strict";
|
|
12871
12869
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
12872
12870
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -12912,9 +12910,73 @@ var require_getPackagePaths = __commonJS({
|
|
|
12912
12910
|
}
|
|
12913
12911
|
});
|
|
12914
12912
|
|
|
12915
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
12913
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/infoFromPackageJson.js
|
|
12914
|
+
var require_infoFromPackageJson = __commonJS({
|
|
12915
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/infoFromPackageJson.js"(exports) {
|
|
12916
|
+
"use strict";
|
|
12917
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12918
|
+
exports.infoFromPackageJson = void 0;
|
|
12919
|
+
function infoFromPackageJson(packageJson, packageJsonPath) {
|
|
12920
|
+
return {
|
|
12921
|
+
packageJsonPath,
|
|
12922
|
+
...packageJson
|
|
12923
|
+
};
|
|
12924
|
+
}
|
|
12925
|
+
__name(infoFromPackageJson, "infoFromPackageJson");
|
|
12926
|
+
exports.infoFromPackageJson = infoFromPackageJson;
|
|
12927
|
+
}
|
|
12928
|
+
});
|
|
12929
|
+
|
|
12930
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/getPackageInfo.js
|
|
12931
|
+
var require_getPackageInfo = __commonJS({
|
|
12932
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/getPackageInfo.js"(exports) {
|
|
12933
|
+
"use strict";
|
|
12934
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
12935
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
12936
|
+
};
|
|
12937
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12938
|
+
exports.getPackageInfoAsync = exports.getPackageInfo = void 0;
|
|
12939
|
+
var fs_1 = __importDefault(__require("fs"));
|
|
12940
|
+
var promises_1 = __importDefault(__require("fs/promises"));
|
|
12941
|
+
var path_1 = __importDefault(__require("path"));
|
|
12942
|
+
var infoFromPackageJson_1 = require_infoFromPackageJson();
|
|
12943
|
+
var logging_1 = require_logging();
|
|
12944
|
+
function getPackageInfo(cwd) {
|
|
12945
|
+
const packageJsonPath = path_1.default.join(cwd, "package.json");
|
|
12946
|
+
try {
|
|
12947
|
+
if (!fs_1.default.existsSync(packageJsonPath)) {
|
|
12948
|
+
(0, logging_1.logVerboseWarning)(`File does not exist: ${packageJsonPath}`);
|
|
12949
|
+
return void 0;
|
|
12950
|
+
}
|
|
12951
|
+
const packageJson = JSON.parse(fs_1.default.readFileSync(packageJsonPath, "utf-8"));
|
|
12952
|
+
return (0, infoFromPackageJson_1.infoFromPackageJson)(packageJson, packageJsonPath);
|
|
12953
|
+
} catch (e) {
|
|
12954
|
+
(0, logging_1.logVerboseWarning)(`Error reading or parsing ${packageJsonPath}: ${(e == null ? void 0 : e.message) || e}`);
|
|
12955
|
+
}
|
|
12956
|
+
}
|
|
12957
|
+
__name(getPackageInfo, "getPackageInfo");
|
|
12958
|
+
exports.getPackageInfo = getPackageInfo;
|
|
12959
|
+
async function getPackageInfoAsync(cwd) {
|
|
12960
|
+
const packageJsonPath = path_1.default.join(cwd, "package.json");
|
|
12961
|
+
try {
|
|
12962
|
+
if (!fs_1.default.existsSync(packageJsonPath)) {
|
|
12963
|
+
(0, logging_1.logVerboseWarning)(`File does not exist: ${packageJsonPath}`);
|
|
12964
|
+
return void 0;
|
|
12965
|
+
}
|
|
12966
|
+
const packageJson = JSON.parse(await promises_1.default.readFile(packageJsonPath, "utf-8"));
|
|
12967
|
+
return (0, infoFromPackageJson_1.infoFromPackageJson)(packageJson, packageJsonPath);
|
|
12968
|
+
} catch (e) {
|
|
12969
|
+
(0, logging_1.logVerboseWarning)(`Error reading or parsing ${packageJsonPath}: ${(e == null ? void 0 : e.message) || e}`);
|
|
12970
|
+
}
|
|
12971
|
+
}
|
|
12972
|
+
__name(getPackageInfoAsync, "getPackageInfoAsync");
|
|
12973
|
+
exports.getPackageInfoAsync = getPackageInfoAsync;
|
|
12974
|
+
}
|
|
12975
|
+
});
|
|
12976
|
+
|
|
12977
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/getWorkspacePackageInfo.js
|
|
12916
12978
|
var require_getWorkspacePackageInfo = __commonJS({
|
|
12917
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
12979
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/getWorkspacePackageInfo.js"(exports) {
|
|
12918
12980
|
"use strict";
|
|
12919
12981
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
12920
12982
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -12922,27 +12984,23 @@ var require_getWorkspacePackageInfo = __commonJS({
|
|
|
12922
12984
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12923
12985
|
exports.getWorkspacePackageInfoAsync = exports.getWorkspacePackageInfo = void 0;
|
|
12924
12986
|
var path_1 = __importDefault(__require("path"));
|
|
12925
|
-
var fs_1 = __importDefault(__require("fs"));
|
|
12926
12987
|
var promises_1 = __importDefault(__require("fs/promises"));
|
|
12927
12988
|
var logging_1 = require_logging();
|
|
12928
12989
|
var infoFromPackageJson_1 = require_infoFromPackageJson();
|
|
12990
|
+
var getPackageInfo_1 = require_getPackageInfo();
|
|
12929
12991
|
function getWorkspacePackageInfo(packagePaths) {
|
|
12930
12992
|
if (!packagePaths) {
|
|
12931
12993
|
return [];
|
|
12932
12994
|
}
|
|
12933
12995
|
return packagePaths.map((workspacePath) => {
|
|
12934
|
-
|
|
12935
|
-
|
|
12936
|
-
try {
|
|
12937
|
-
packageJson = JSON.parse(fs_1.default.readFileSync(packageJsonPath, "utf-8"));
|
|
12938
|
-
} catch (err) {
|
|
12939
|
-
(0, logging_1.logVerboseWarning)(`Error reading or parsing ${packageJsonPath} while getting workspace package info`, err);
|
|
12996
|
+
const packageJson = (0, getPackageInfo_1.getPackageInfo)(workspacePath);
|
|
12997
|
+
if (!packageJson) {
|
|
12940
12998
|
return null;
|
|
12941
12999
|
}
|
|
12942
13000
|
return {
|
|
12943
13001
|
name: packageJson.name,
|
|
12944
13002
|
path: workspacePath,
|
|
12945
|
-
packageJson
|
|
13003
|
+
packageJson
|
|
12946
13004
|
};
|
|
12947
13005
|
}).filter(Boolean);
|
|
12948
13006
|
}
|
|
@@ -12973,9 +13031,9 @@ var require_getWorkspacePackageInfo = __commonJS({
|
|
|
12973
13031
|
}
|
|
12974
13032
|
});
|
|
12975
13033
|
|
|
12976
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
13034
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/implementations/packageJsonWorkspaces.js
|
|
12977
13035
|
var require_packageJsonWorkspaces = __commonJS({
|
|
12978
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
13036
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/implementations/packageJsonWorkspaces.js"(exports) {
|
|
12979
13037
|
"use strict";
|
|
12980
13038
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
12981
13039
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -12987,8 +13045,8 @@ var require_packageJsonWorkspaces = __commonJS({
|
|
|
12987
13045
|
var getPackagePaths_1 = require_getPackagePaths();
|
|
12988
13046
|
var getWorkspacePackageInfo_1 = require_getWorkspacePackageInfo();
|
|
12989
13047
|
var logging_1 = require_logging();
|
|
12990
|
-
function getPackages(
|
|
12991
|
-
const packageJsonFile = path_1.default.join(
|
|
13048
|
+
function getPackages(root) {
|
|
13049
|
+
const packageJsonFile = path_1.default.join(root, "package.json");
|
|
12992
13050
|
let packageJson;
|
|
12993
13051
|
try {
|
|
12994
13052
|
packageJson = JSON.parse(fs_1.default.readFileSync(packageJsonFile, "utf-8"));
|
|
@@ -13005,45 +13063,45 @@ var require_packageJsonWorkspaces = __commonJS({
|
|
|
13005
13063
|
return workspaces.packages;
|
|
13006
13064
|
}
|
|
13007
13065
|
__name(getPackages, "getPackages");
|
|
13008
|
-
function getPackagePathsFromWorkspaceRoot(
|
|
13066
|
+
function getPackagePathsFromWorkspaceRoot(root) {
|
|
13009
13067
|
try {
|
|
13010
|
-
const packageGlobs = getPackages(
|
|
13011
|
-
return packageGlobs ? (0, getPackagePaths_1.getPackagePaths)(
|
|
13068
|
+
const packageGlobs = getPackages(root);
|
|
13069
|
+
return packageGlobs ? (0, getPackagePaths_1.getPackagePaths)(root, packageGlobs) : [];
|
|
13012
13070
|
} catch (err) {
|
|
13013
|
-
(0, logging_1.logVerboseWarning)(`Error getting package paths for ${
|
|
13071
|
+
(0, logging_1.logVerboseWarning)(`Error getting package paths for ${root}`, err);
|
|
13014
13072
|
return [];
|
|
13015
13073
|
}
|
|
13016
13074
|
}
|
|
13017
13075
|
__name(getPackagePathsFromWorkspaceRoot, "getPackagePathsFromWorkspaceRoot");
|
|
13018
13076
|
exports.getPackagePathsFromWorkspaceRoot = getPackagePathsFromWorkspaceRoot;
|
|
13019
|
-
async function getPackagePathsFromWorkspaceRootAsync(
|
|
13077
|
+
async function getPackagePathsFromWorkspaceRootAsync(root) {
|
|
13020
13078
|
try {
|
|
13021
|
-
const packageGlobs = getPackages(
|
|
13022
|
-
return packageGlobs ? (0, getPackagePaths_1.getPackagePathsAsync)(
|
|
13079
|
+
const packageGlobs = getPackages(root);
|
|
13080
|
+
return packageGlobs ? (0, getPackagePaths_1.getPackagePathsAsync)(root, packageGlobs) : [];
|
|
13023
13081
|
} catch (err) {
|
|
13024
|
-
(0, logging_1.logVerboseWarning)(`Error getting package paths for ${
|
|
13082
|
+
(0, logging_1.logVerboseWarning)(`Error getting package paths for ${root}`, err);
|
|
13025
13083
|
return [];
|
|
13026
13084
|
}
|
|
13027
13085
|
}
|
|
13028
13086
|
__name(getPackagePathsFromWorkspaceRootAsync, "getPackagePathsFromWorkspaceRootAsync");
|
|
13029
13087
|
exports.getPackagePathsFromWorkspaceRootAsync = getPackagePathsFromWorkspaceRootAsync;
|
|
13030
|
-
function getWorkspaceInfoFromWorkspaceRoot(
|
|
13088
|
+
function getWorkspaceInfoFromWorkspaceRoot(root) {
|
|
13031
13089
|
try {
|
|
13032
|
-
const packagePaths = getPackagePathsFromWorkspaceRoot(
|
|
13090
|
+
const packagePaths = getPackagePathsFromWorkspaceRoot(root);
|
|
13033
13091
|
return (0, getWorkspacePackageInfo_1.getWorkspacePackageInfo)(packagePaths);
|
|
13034
13092
|
} catch (err) {
|
|
13035
|
-
(0, logging_1.logVerboseWarning)(`Error getting workspace info for ${
|
|
13093
|
+
(0, logging_1.logVerboseWarning)(`Error getting workspace info for ${root}`, err);
|
|
13036
13094
|
return [];
|
|
13037
13095
|
}
|
|
13038
13096
|
}
|
|
13039
13097
|
__name(getWorkspaceInfoFromWorkspaceRoot, "getWorkspaceInfoFromWorkspaceRoot");
|
|
13040
13098
|
exports.getWorkspaceInfoFromWorkspaceRoot = getWorkspaceInfoFromWorkspaceRoot;
|
|
13041
|
-
async function getWorkspaceInfoFromWorkspaceRootAsync(
|
|
13099
|
+
async function getWorkspaceInfoFromWorkspaceRootAsync(root) {
|
|
13042
13100
|
try {
|
|
13043
|
-
const packagePaths = await getPackagePathsFromWorkspaceRootAsync(
|
|
13101
|
+
const packagePaths = await getPackagePathsFromWorkspaceRootAsync(root);
|
|
13044
13102
|
return (0, getWorkspacePackageInfo_1.getWorkspacePackageInfoAsync)(packagePaths);
|
|
13045
13103
|
} catch (err) {
|
|
13046
|
-
(0, logging_1.logVerboseWarning)(`Error getting workspace info for ${
|
|
13104
|
+
(0, logging_1.logVerboseWarning)(`Error getting workspace info for ${root}`, err);
|
|
13047
13105
|
return [];
|
|
13048
13106
|
}
|
|
13049
13107
|
}
|
|
@@ -13052,56 +13110,9 @@ var require_packageJsonWorkspaces = __commonJS({
|
|
|
13052
13110
|
}
|
|
13053
13111
|
});
|
|
13054
13112
|
|
|
13055
|
-
// ../../node_modules/.store/
|
|
13056
|
-
var require_yarn = __commonJS({
|
|
13057
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.4-078d0cf634/package/lib/workspaces/implementations/yarn.js"(exports) {
|
|
13058
|
-
"use strict";
|
|
13059
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13060
|
-
exports.getWorkspacesAsync = exports.getWorkspaces = exports.getYarnWorkspacesAsync = exports.getYarnWorkspaces = exports.getWorkspacePackagePathsAsync = exports.getWorkspacePackagePaths = exports.getYarnWorkspaceRoot = void 0;
|
|
13061
|
-
var _1 = require_implementations();
|
|
13062
|
-
var packageJsonWorkspaces_1 = require_packageJsonWorkspaces();
|
|
13063
|
-
function getYarnWorkspaceRoot(cwd) {
|
|
13064
|
-
var _a;
|
|
13065
|
-
const root = (_a = (0, _1.getWorkspaceManagerAndRoot)(cwd, void 0, "yarn")) == null ? void 0 : _a.root;
|
|
13066
|
-
if (!root) {
|
|
13067
|
-
throw new Error("Could not find yarn workspace root from " + cwd);
|
|
13068
|
-
}
|
|
13069
|
-
return root;
|
|
13070
|
-
}
|
|
13071
|
-
__name(getYarnWorkspaceRoot, "getYarnWorkspaceRoot");
|
|
13072
|
-
exports.getYarnWorkspaceRoot = getYarnWorkspaceRoot;
|
|
13073
|
-
function getWorkspacePackagePaths(cwd) {
|
|
13074
|
-
const yarnWorkspacesRoot = getYarnWorkspaceRoot(cwd);
|
|
13075
|
-
return (0, packageJsonWorkspaces_1.getPackagePathsFromWorkspaceRoot)(yarnWorkspacesRoot);
|
|
13076
|
-
}
|
|
13077
|
-
__name(getWorkspacePackagePaths, "getWorkspacePackagePaths");
|
|
13078
|
-
exports.getWorkspacePackagePaths = getWorkspacePackagePaths;
|
|
13079
|
-
function getWorkspacePackagePathsAsync(cwd) {
|
|
13080
|
-
const yarnWorkspacesRoot = getYarnWorkspaceRoot(cwd);
|
|
13081
|
-
return (0, packageJsonWorkspaces_1.getPackagePathsFromWorkspaceRootAsync)(yarnWorkspacesRoot);
|
|
13082
|
-
}
|
|
13083
|
-
__name(getWorkspacePackagePathsAsync, "getWorkspacePackagePathsAsync");
|
|
13084
|
-
exports.getWorkspacePackagePathsAsync = getWorkspacePackagePathsAsync;
|
|
13085
|
-
function getYarnWorkspaces(cwd) {
|
|
13086
|
-
const yarnWorkspacesRoot = getYarnWorkspaceRoot(cwd);
|
|
13087
|
-
return (0, packageJsonWorkspaces_1.getWorkspaceInfoFromWorkspaceRoot)(yarnWorkspacesRoot);
|
|
13088
|
-
}
|
|
13089
|
-
__name(getYarnWorkspaces, "getYarnWorkspaces");
|
|
13090
|
-
exports.getYarnWorkspaces = getYarnWorkspaces;
|
|
13091
|
-
exports.getWorkspaces = getYarnWorkspaces;
|
|
13092
|
-
function getYarnWorkspacesAsync(cwd) {
|
|
13093
|
-
const yarnWorkspacesRoot = getYarnWorkspaceRoot(cwd);
|
|
13094
|
-
return (0, packageJsonWorkspaces_1.getWorkspaceInfoFromWorkspaceRootAsync)(yarnWorkspacesRoot);
|
|
13095
|
-
}
|
|
13096
|
-
__name(getYarnWorkspacesAsync, "getYarnWorkspacesAsync");
|
|
13097
|
-
exports.getYarnWorkspacesAsync = getYarnWorkspacesAsync;
|
|
13098
|
-
exports.getWorkspacesAsync = getYarnWorkspacesAsync;
|
|
13099
|
-
}
|
|
13100
|
-
});
|
|
13101
|
-
|
|
13102
|
-
// ../../node_modules/.store/js-yaml-npm-4.1.0-3606f32312/package/lib/common.js
|
|
13113
|
+
// ../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/common.js
|
|
13103
13114
|
var require_common3 = __commonJS({
|
|
13104
|
-
"../../node_modules/.store/js-yaml-npm-4.1.
|
|
13115
|
+
"../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/common.js"(exports, module) {
|
|
13105
13116
|
"use strict";
|
|
13106
13117
|
function isNothing(subject) {
|
|
13107
13118
|
return typeof subject === "undefined" || subject === null;
|
|
@@ -13150,9 +13161,9 @@ var require_common3 = __commonJS({
|
|
|
13150
13161
|
}
|
|
13151
13162
|
});
|
|
13152
13163
|
|
|
13153
|
-
// ../../node_modules/.store/js-yaml-npm-4.1.
|
|
13164
|
+
// ../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/exception.js
|
|
13154
13165
|
var require_exception = __commonJS({
|
|
13155
|
-
"../../node_modules/.store/js-yaml-npm-4.1.
|
|
13166
|
+
"../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/exception.js"(exports, module) {
|
|
13156
13167
|
"use strict";
|
|
13157
13168
|
function formatError(exception, compact) {
|
|
13158
13169
|
var where = "", message = exception.reason || "(unknown reason)";
|
|
@@ -13189,9 +13200,9 @@ var require_exception = __commonJS({
|
|
|
13189
13200
|
}
|
|
13190
13201
|
});
|
|
13191
13202
|
|
|
13192
|
-
// ../../node_modules/.store/js-yaml-npm-4.1.
|
|
13203
|
+
// ../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/snippet.js
|
|
13193
13204
|
var require_snippet = __commonJS({
|
|
13194
|
-
"../../node_modules/.store/js-yaml-npm-4.1.
|
|
13205
|
+
"../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/snippet.js"(exports, module) {
|
|
13195
13206
|
"use strict";
|
|
13196
13207
|
var common = require_common3();
|
|
13197
13208
|
function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
|
|
@@ -13272,9 +13283,9 @@ var require_snippet = __commonJS({
|
|
|
13272
13283
|
}
|
|
13273
13284
|
});
|
|
13274
13285
|
|
|
13275
|
-
// ../../node_modules/.store/js-yaml-npm-4.1.
|
|
13286
|
+
// ../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/type.js
|
|
13276
13287
|
var require_type = __commonJS({
|
|
13277
|
-
"../../node_modules/.store/js-yaml-npm-4.1.
|
|
13288
|
+
"../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/type.js"(exports, module) {
|
|
13278
13289
|
"use strict";
|
|
13279
13290
|
var YAMLException = require_exception();
|
|
13280
13291
|
var TYPE_CONSTRUCTOR_OPTIONS = [
|
|
@@ -13338,9 +13349,9 @@ var require_type = __commonJS({
|
|
|
13338
13349
|
}
|
|
13339
13350
|
});
|
|
13340
13351
|
|
|
13341
|
-
// ../../node_modules/.store/js-yaml-npm-4.1.
|
|
13352
|
+
// ../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/schema.js
|
|
13342
13353
|
var require_schema = __commonJS({
|
|
13343
|
-
"../../node_modules/.store/js-yaml-npm-4.1.
|
|
13354
|
+
"../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/schema.js"(exports, module) {
|
|
13344
13355
|
"use strict";
|
|
13345
13356
|
var YAMLException = require_exception();
|
|
13346
13357
|
var Type = require_type();
|
|
@@ -13431,9 +13442,9 @@ var require_schema = __commonJS({
|
|
|
13431
13442
|
}
|
|
13432
13443
|
});
|
|
13433
13444
|
|
|
13434
|
-
// ../../node_modules/.store/js-yaml-npm-4.1.
|
|
13445
|
+
// ../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/type/str.js
|
|
13435
13446
|
var require_str = __commonJS({
|
|
13436
|
-
"../../node_modules/.store/js-yaml-npm-4.1.
|
|
13447
|
+
"../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/type/str.js"(exports, module) {
|
|
13437
13448
|
"use strict";
|
|
13438
13449
|
var Type = require_type();
|
|
13439
13450
|
module.exports = new Type("tag:yaml.org,2002:str", {
|
|
@@ -13445,9 +13456,9 @@ var require_str = __commonJS({
|
|
|
13445
13456
|
}
|
|
13446
13457
|
});
|
|
13447
13458
|
|
|
13448
|
-
// ../../node_modules/.store/js-yaml-npm-4.1.
|
|
13459
|
+
// ../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/type/seq.js
|
|
13449
13460
|
var require_seq = __commonJS({
|
|
13450
|
-
"../../node_modules/.store/js-yaml-npm-4.1.
|
|
13461
|
+
"../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/type/seq.js"(exports, module) {
|
|
13451
13462
|
"use strict";
|
|
13452
13463
|
var Type = require_type();
|
|
13453
13464
|
module.exports = new Type("tag:yaml.org,2002:seq", {
|
|
@@ -13459,9 +13470,9 @@ var require_seq = __commonJS({
|
|
|
13459
13470
|
}
|
|
13460
13471
|
});
|
|
13461
13472
|
|
|
13462
|
-
// ../../node_modules/.store/js-yaml-npm-4.1.
|
|
13473
|
+
// ../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/type/map.js
|
|
13463
13474
|
var require_map = __commonJS({
|
|
13464
|
-
"../../node_modules/.store/js-yaml-npm-4.1.
|
|
13475
|
+
"../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/type/map.js"(exports, module) {
|
|
13465
13476
|
"use strict";
|
|
13466
13477
|
var Type = require_type();
|
|
13467
13478
|
module.exports = new Type("tag:yaml.org,2002:map", {
|
|
@@ -13473,9 +13484,9 @@ var require_map = __commonJS({
|
|
|
13473
13484
|
}
|
|
13474
13485
|
});
|
|
13475
13486
|
|
|
13476
|
-
// ../../node_modules/.store/js-yaml-npm-4.1.
|
|
13487
|
+
// ../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/schema/failsafe.js
|
|
13477
13488
|
var require_failsafe = __commonJS({
|
|
13478
|
-
"../../node_modules/.store/js-yaml-npm-4.1.
|
|
13489
|
+
"../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/schema/failsafe.js"(exports, module) {
|
|
13479
13490
|
"use strict";
|
|
13480
13491
|
var Schema = require_schema();
|
|
13481
13492
|
module.exports = new Schema({
|
|
@@ -13488,9 +13499,9 @@ var require_failsafe = __commonJS({
|
|
|
13488
13499
|
}
|
|
13489
13500
|
});
|
|
13490
13501
|
|
|
13491
|
-
// ../../node_modules/.store/js-yaml-npm-4.1.
|
|
13502
|
+
// ../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/type/null.js
|
|
13492
13503
|
var require_null = __commonJS({
|
|
13493
|
-
"../../node_modules/.store/js-yaml-npm-4.1.
|
|
13504
|
+
"../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/type/null.js"(exports, module) {
|
|
13494
13505
|
"use strict";
|
|
13495
13506
|
var Type = require_type();
|
|
13496
13507
|
function resolveYamlNull(data) {
|
|
@@ -13534,9 +13545,9 @@ var require_null = __commonJS({
|
|
|
13534
13545
|
}
|
|
13535
13546
|
});
|
|
13536
13547
|
|
|
13537
|
-
// ../../node_modules/.store/js-yaml-npm-4.1.
|
|
13548
|
+
// ../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/type/bool.js
|
|
13538
13549
|
var require_bool = __commonJS({
|
|
13539
|
-
"../../node_modules/.store/js-yaml-npm-4.1.
|
|
13550
|
+
"../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/type/bool.js"(exports, module) {
|
|
13540
13551
|
"use strict";
|
|
13541
13552
|
var Type = require_type();
|
|
13542
13553
|
function resolveYamlBoolean(data) {
|
|
@@ -13574,9 +13585,9 @@ var require_bool = __commonJS({
|
|
|
13574
13585
|
}
|
|
13575
13586
|
});
|
|
13576
13587
|
|
|
13577
|
-
// ../../node_modules/.store/js-yaml-npm-4.1.
|
|
13588
|
+
// ../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/type/int.js
|
|
13578
13589
|
var require_int = __commonJS({
|
|
13579
|
-
"../../node_modules/.store/js-yaml-npm-4.1.
|
|
13590
|
+
"../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/type/int.js"(exports, module) {
|
|
13580
13591
|
"use strict";
|
|
13581
13592
|
var common = require_common3();
|
|
13582
13593
|
var Type = require_type();
|
|
@@ -13702,9 +13713,9 @@ var require_int = __commonJS({
|
|
|
13702
13713
|
}
|
|
13703
13714
|
});
|
|
13704
13715
|
|
|
13705
|
-
// ../../node_modules/.store/js-yaml-npm-4.1.
|
|
13716
|
+
// ../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/type/float.js
|
|
13706
13717
|
var require_float = __commonJS({
|
|
13707
|
-
"../../node_modules/.store/js-yaml-npm-4.1.
|
|
13718
|
+
"../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/type/float.js"(exports, module) {
|
|
13708
13719
|
"use strict";
|
|
13709
13720
|
var common = require_common3();
|
|
13710
13721
|
var Type = require_type();
|
|
@@ -13789,9 +13800,9 @@ var require_float = __commonJS({
|
|
|
13789
13800
|
}
|
|
13790
13801
|
});
|
|
13791
13802
|
|
|
13792
|
-
// ../../node_modules/.store/js-yaml-npm-4.1.
|
|
13803
|
+
// ../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/schema/json.js
|
|
13793
13804
|
var require_json2 = __commonJS({
|
|
13794
|
-
"../../node_modules/.store/js-yaml-npm-4.1.
|
|
13805
|
+
"../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/schema/json.js"(exports, module) {
|
|
13795
13806
|
"use strict";
|
|
13796
13807
|
module.exports = require_failsafe().extend({
|
|
13797
13808
|
implicit: [
|
|
@@ -13804,17 +13815,17 @@ var require_json2 = __commonJS({
|
|
|
13804
13815
|
}
|
|
13805
13816
|
});
|
|
13806
13817
|
|
|
13807
|
-
// ../../node_modules/.store/js-yaml-npm-4.1.
|
|
13818
|
+
// ../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/schema/core.js
|
|
13808
13819
|
var require_core = __commonJS({
|
|
13809
|
-
"../../node_modules/.store/js-yaml-npm-4.1.
|
|
13820
|
+
"../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/schema/core.js"(exports, module) {
|
|
13810
13821
|
"use strict";
|
|
13811
13822
|
module.exports = require_json2();
|
|
13812
13823
|
}
|
|
13813
13824
|
});
|
|
13814
13825
|
|
|
13815
|
-
// ../../node_modules/.store/js-yaml-npm-4.1.
|
|
13826
|
+
// ../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/type/timestamp.js
|
|
13816
13827
|
var require_timestamp = __commonJS({
|
|
13817
|
-
"../../node_modules/.store/js-yaml-npm-4.1.
|
|
13828
|
+
"../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/type/timestamp.js"(exports, module) {
|
|
13818
13829
|
"use strict";
|
|
13819
13830
|
var Type = require_type();
|
|
13820
13831
|
var YAML_DATE_REGEXP = new RegExp(
|
|
@@ -13876,9 +13887,9 @@ var require_timestamp = __commonJS({
|
|
|
13876
13887
|
}
|
|
13877
13888
|
});
|
|
13878
13889
|
|
|
13879
|
-
// ../../node_modules/.store/js-yaml-npm-4.1.
|
|
13890
|
+
// ../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/type/merge.js
|
|
13880
13891
|
var require_merge = __commonJS({
|
|
13881
|
-
"../../node_modules/.store/js-yaml-npm-4.1.
|
|
13892
|
+
"../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/type/merge.js"(exports, module) {
|
|
13882
13893
|
"use strict";
|
|
13883
13894
|
var Type = require_type();
|
|
13884
13895
|
function resolveYamlMerge(data) {
|
|
@@ -13892,9 +13903,9 @@ var require_merge = __commonJS({
|
|
|
13892
13903
|
}
|
|
13893
13904
|
});
|
|
13894
13905
|
|
|
13895
|
-
// ../../node_modules/.store/js-yaml-npm-4.1.
|
|
13906
|
+
// ../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/type/binary.js
|
|
13896
13907
|
var require_binary = __commonJS({
|
|
13897
|
-
"../../node_modules/.store/js-yaml-npm-4.1.
|
|
13908
|
+
"../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/type/binary.js"(exports, module) {
|
|
13898
13909
|
"use strict";
|
|
13899
13910
|
var Type = require_type();
|
|
13900
13911
|
var BASE64_MAP = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
|
|
@@ -13979,9 +13990,9 @@ var require_binary = __commonJS({
|
|
|
13979
13990
|
}
|
|
13980
13991
|
});
|
|
13981
13992
|
|
|
13982
|
-
// ../../node_modules/.store/js-yaml-npm-4.1.
|
|
13993
|
+
// ../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/type/omap.js
|
|
13983
13994
|
var require_omap = __commonJS({
|
|
13984
|
-
"../../node_modules/.store/js-yaml-npm-4.1.
|
|
13995
|
+
"../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/type/omap.js"(exports, module) {
|
|
13985
13996
|
"use strict";
|
|
13986
13997
|
var Type = require_type();
|
|
13987
13998
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -14018,9 +14029,9 @@ var require_omap = __commonJS({
|
|
|
14018
14029
|
}
|
|
14019
14030
|
});
|
|
14020
14031
|
|
|
14021
|
-
// ../../node_modules/.store/js-yaml-npm-4.1.
|
|
14032
|
+
// ../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/type/pairs.js
|
|
14022
14033
|
var require_pairs = __commonJS({
|
|
14023
|
-
"../../node_modules/.store/js-yaml-npm-4.1.
|
|
14034
|
+
"../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/type/pairs.js"(exports, module) {
|
|
14024
14035
|
"use strict";
|
|
14025
14036
|
var Type = require_type();
|
|
14026
14037
|
var _toString = Object.prototype.toString;
|
|
@@ -14058,9 +14069,9 @@ var require_pairs = __commonJS({
|
|
|
14058
14069
|
}
|
|
14059
14070
|
});
|
|
14060
14071
|
|
|
14061
|
-
// ../../node_modules/.store/js-yaml-npm-4.1.
|
|
14072
|
+
// ../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/type/set.js
|
|
14062
14073
|
var require_set = __commonJS({
|
|
14063
|
-
"../../node_modules/.store/js-yaml-npm-4.1.
|
|
14074
|
+
"../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/type/set.js"(exports, module) {
|
|
14064
14075
|
"use strict";
|
|
14065
14076
|
var Type = require_type();
|
|
14066
14077
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -14087,9 +14098,9 @@ var require_set = __commonJS({
|
|
|
14087
14098
|
}
|
|
14088
14099
|
});
|
|
14089
14100
|
|
|
14090
|
-
// ../../node_modules/.store/js-yaml-npm-4.1.
|
|
14101
|
+
// ../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/schema/default.js
|
|
14091
14102
|
var require_default = __commonJS({
|
|
14092
|
-
"../../node_modules/.store/js-yaml-npm-4.1.
|
|
14103
|
+
"../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/schema/default.js"(exports, module) {
|
|
14093
14104
|
"use strict";
|
|
14094
14105
|
module.exports = require_core().extend({
|
|
14095
14106
|
implicit: [
|
|
@@ -14106,9 +14117,9 @@ var require_default = __commonJS({
|
|
|
14106
14117
|
}
|
|
14107
14118
|
});
|
|
14108
14119
|
|
|
14109
|
-
// ../../node_modules/.store/js-yaml-npm-4.1.
|
|
14120
|
+
// ../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/loader.js
|
|
14110
14121
|
var require_loader = __commonJS({
|
|
14111
|
-
"../../node_modules/.store/js-yaml-npm-4.1.
|
|
14122
|
+
"../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/loader.js"(exports, module) {
|
|
14112
14123
|
"use strict";
|
|
14113
14124
|
var common = require_common3();
|
|
14114
14125
|
var YAMLException = require_exception();
|
|
@@ -14193,6 +14204,19 @@ var require_loader = __commonJS({
|
|
|
14193
14204
|
);
|
|
14194
14205
|
}
|
|
14195
14206
|
__name(charFromCodepoint, "charFromCodepoint");
|
|
14207
|
+
function setProperty(object, key, value) {
|
|
14208
|
+
if (key === "__proto__") {
|
|
14209
|
+
Object.defineProperty(object, key, {
|
|
14210
|
+
configurable: true,
|
|
14211
|
+
enumerable: true,
|
|
14212
|
+
writable: true,
|
|
14213
|
+
value
|
|
14214
|
+
});
|
|
14215
|
+
} else {
|
|
14216
|
+
object[key] = value;
|
|
14217
|
+
}
|
|
14218
|
+
}
|
|
14219
|
+
__name(setProperty, "setProperty");
|
|
14196
14220
|
var simpleEscapeCheck = new Array(256);
|
|
14197
14221
|
var simpleEscapeMap = new Array(256);
|
|
14198
14222
|
for (i = 0; i < 256; i++) {
|
|
@@ -14317,7 +14341,7 @@ var require_loader = __commonJS({
|
|
|
14317
14341
|
for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
|
|
14318
14342
|
key = sourceKeys[index];
|
|
14319
14343
|
if (!_hasOwnProperty.call(destination, key)) {
|
|
14320
|
-
destination
|
|
14344
|
+
setProperty(destination, key, source[key]);
|
|
14321
14345
|
overridableKeys[key] = true;
|
|
14322
14346
|
}
|
|
14323
14347
|
}
|
|
@@ -14358,16 +14382,7 @@ var require_loader = __commonJS({
|
|
|
14358
14382
|
state.position = startPos || state.position;
|
|
14359
14383
|
throwError(state, "duplicated mapping key");
|
|
14360
14384
|
}
|
|
14361
|
-
|
|
14362
|
-
Object.defineProperty(_result, keyNode, {
|
|
14363
|
-
configurable: true,
|
|
14364
|
-
enumerable: true,
|
|
14365
|
-
writable: true,
|
|
14366
|
-
value: valueNode
|
|
14367
|
-
});
|
|
14368
|
-
} else {
|
|
14369
|
-
_result[keyNode] = valueNode;
|
|
14370
|
-
}
|
|
14385
|
+
setProperty(_result, keyNode, valueNode);
|
|
14371
14386
|
delete overridableKeys[keyNode];
|
|
14372
14387
|
}
|
|
14373
14388
|
return _result;
|
|
@@ -15303,9 +15318,9 @@ var require_loader = __commonJS({
|
|
|
15303
15318
|
}
|
|
15304
15319
|
});
|
|
15305
15320
|
|
|
15306
|
-
// ../../node_modules/.store/js-yaml-npm-4.1.
|
|
15321
|
+
// ../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/dumper.js
|
|
15307
15322
|
var require_dumper = __commonJS({
|
|
15308
|
-
"../../node_modules/.store/js-yaml-npm-4.1.
|
|
15323
|
+
"../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/lib/dumper.js"(exports, module) {
|
|
15309
15324
|
"use strict";
|
|
15310
15325
|
var common = require_common3();
|
|
15311
15326
|
var YAMLException = require_exception();
|
|
@@ -15963,9 +15978,9 @@ var require_dumper = __commonJS({
|
|
|
15963
15978
|
}
|
|
15964
15979
|
});
|
|
15965
15980
|
|
|
15966
|
-
// ../../node_modules/.store/js-yaml-npm-4.1.
|
|
15981
|
+
// ../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/index.js
|
|
15967
15982
|
var require_package38 = __commonJS({
|
|
15968
|
-
"../../node_modules/.store/js-yaml-npm-4.1.
|
|
15983
|
+
"../../node_modules/.store/js-yaml-npm-4.1.1-86ec786790/package/index.js"(exports, module) {
|
|
15969
15984
|
"use strict";
|
|
15970
15985
|
var loader = require_loader();
|
|
15971
15986
|
var dumper = require_dumper();
|
|
@@ -16006,9 +16021,9 @@ var require_package38 = __commonJS({
|
|
|
16006
16021
|
}
|
|
16007
16022
|
});
|
|
16008
16023
|
|
|
16009
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
16024
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/lockfile/readYaml.js
|
|
16010
16025
|
var require_readYaml = __commonJS({
|
|
16011
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
16026
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/lockfile/readYaml.js"(exports) {
|
|
16012
16027
|
"use strict";
|
|
16013
16028
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
16014
16029
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -16026,21 +16041,106 @@ var require_readYaml = __commonJS({
|
|
|
16026
16041
|
}
|
|
16027
16042
|
});
|
|
16028
16043
|
|
|
16029
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
16044
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/implementations/yarn.js
|
|
16045
|
+
var require_yarn = __commonJS({
|
|
16046
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/implementations/yarn.js"(exports) {
|
|
16047
|
+
"use strict";
|
|
16048
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
16049
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
16050
|
+
};
|
|
16051
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16052
|
+
exports.getCatalogs = exports.getWorkspacesAsync = exports.getWorkspaces = exports.getYarnCatalogs = exports.getYarnWorkspacesAsync = exports.getYarnWorkspaces = exports.getWorkspacePackagePathsAsync = exports.getWorkspacePackagePaths = exports.getYarnWorkspaceRoot = void 0;
|
|
16053
|
+
var fs_1 = __importDefault(__require("fs"));
|
|
16054
|
+
var path_1 = __importDefault(__require("path"));
|
|
16055
|
+
var index_1 = require_implementations();
|
|
16056
|
+
var packageJsonWorkspaces_1 = require_packageJsonWorkspaces();
|
|
16057
|
+
var getPackageInfo_1 = require_getPackageInfo();
|
|
16058
|
+
var logging_1 = require_logging();
|
|
16059
|
+
var readYaml_1 = require_readYaml();
|
|
16060
|
+
function getYarnWorkspaceRoot(cwd) {
|
|
16061
|
+
var _a;
|
|
16062
|
+
const root = (_a = (0, index_1.getWorkspaceManagerAndRoot)(cwd, void 0, "yarn")) == null ? void 0 : _a.root;
|
|
16063
|
+
if (!root) {
|
|
16064
|
+
throw new Error("Could not find yarn workspace root from " + cwd);
|
|
16065
|
+
}
|
|
16066
|
+
return root;
|
|
16067
|
+
}
|
|
16068
|
+
__name(getYarnWorkspaceRoot, "getYarnWorkspaceRoot");
|
|
16069
|
+
exports.getYarnWorkspaceRoot = getYarnWorkspaceRoot;
|
|
16070
|
+
function getWorkspacePackagePaths(cwd) {
|
|
16071
|
+
const yarnWorkspacesRoot = getYarnWorkspaceRoot(cwd);
|
|
16072
|
+
return (0, packageJsonWorkspaces_1.getPackagePathsFromWorkspaceRoot)(yarnWorkspacesRoot);
|
|
16073
|
+
}
|
|
16074
|
+
__name(getWorkspacePackagePaths, "getWorkspacePackagePaths");
|
|
16075
|
+
exports.getWorkspacePackagePaths = getWorkspacePackagePaths;
|
|
16076
|
+
function getWorkspacePackagePathsAsync(cwd) {
|
|
16077
|
+
const yarnWorkspacesRoot = getYarnWorkspaceRoot(cwd);
|
|
16078
|
+
return (0, packageJsonWorkspaces_1.getPackagePathsFromWorkspaceRootAsync)(yarnWorkspacesRoot);
|
|
16079
|
+
}
|
|
16080
|
+
__name(getWorkspacePackagePathsAsync, "getWorkspacePackagePathsAsync");
|
|
16081
|
+
exports.getWorkspacePackagePathsAsync = getWorkspacePackagePathsAsync;
|
|
16082
|
+
function getYarnWorkspaces(cwd) {
|
|
16083
|
+
const yarnWorkspacesRoot = getYarnWorkspaceRoot(cwd);
|
|
16084
|
+
return (0, packageJsonWorkspaces_1.getWorkspaceInfoFromWorkspaceRoot)(yarnWorkspacesRoot);
|
|
16085
|
+
}
|
|
16086
|
+
__name(getYarnWorkspaces, "getYarnWorkspaces");
|
|
16087
|
+
exports.getYarnWorkspaces = getYarnWorkspaces;
|
|
16088
|
+
exports.getWorkspaces = getYarnWorkspaces;
|
|
16089
|
+
function getYarnWorkspacesAsync(cwd) {
|
|
16090
|
+
const yarnWorkspacesRoot = getYarnWorkspaceRoot(cwd);
|
|
16091
|
+
return (0, packageJsonWorkspaces_1.getWorkspaceInfoFromWorkspaceRootAsync)(yarnWorkspacesRoot);
|
|
16092
|
+
}
|
|
16093
|
+
__name(getYarnWorkspacesAsync, "getYarnWorkspacesAsync");
|
|
16094
|
+
exports.getYarnWorkspacesAsync = getYarnWorkspacesAsync;
|
|
16095
|
+
exports.getWorkspacesAsync = getYarnWorkspacesAsync;
|
|
16096
|
+
function getYarnCatalogs(cwd) {
|
|
16097
|
+
var _a;
|
|
16098
|
+
try {
|
|
16099
|
+
const root = getYarnWorkspaceRoot(cwd);
|
|
16100
|
+
const yarnrcYmlPath = path_1.default.join(root, ".yarnrc.yml");
|
|
16101
|
+
if (fs_1.default.existsSync(yarnrcYmlPath)) {
|
|
16102
|
+
const yarnrcYml = (0, readYaml_1.readYaml)(yarnrcYmlPath);
|
|
16103
|
+
if ((yarnrcYml == null ? void 0 : yarnrcYml.catalog) || (yarnrcYml == null ? void 0 : yarnrcYml.catalogs)) {
|
|
16104
|
+
return { default: yarnrcYml.catalog, named: yarnrcYml.catalogs };
|
|
16105
|
+
}
|
|
16106
|
+
} else {
|
|
16107
|
+
const workspaceSettings = (_a = (0, getPackageInfo_1.getPackageInfo)(root)) == null ? void 0 : _a.workspaces;
|
|
16108
|
+
if (workspaceSettings && !Array.isArray(workspaceSettings) && ((workspaceSettings == null ? void 0 : workspaceSettings.catalog) || (workspaceSettings == null ? void 0 : workspaceSettings.catalogs))) {
|
|
16109
|
+
return { named: workspaceSettings.catalogs, default: workspaceSettings.catalog };
|
|
16110
|
+
}
|
|
16111
|
+
}
|
|
16112
|
+
} catch (err) {
|
|
16113
|
+
(0, logging_1.logVerboseWarning)(`Error getting yarn catalogs for ${cwd}`, err);
|
|
16114
|
+
return void 0;
|
|
16115
|
+
}
|
|
16116
|
+
}
|
|
16117
|
+
__name(getYarnCatalogs, "getYarnCatalogs");
|
|
16118
|
+
exports.getYarnCatalogs = getYarnCatalogs;
|
|
16119
|
+
exports.getCatalogs = getYarnCatalogs;
|
|
16120
|
+
}
|
|
16121
|
+
});
|
|
16122
|
+
|
|
16123
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/implementations/pnpm.js
|
|
16030
16124
|
var require_pnpm = __commonJS({
|
|
16031
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
16125
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/implementations/pnpm.js"(exports) {
|
|
16032
16126
|
"use strict";
|
|
16033
16127
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
16034
16128
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
16035
16129
|
};
|
|
16036
16130
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16037
|
-
exports.getWorkspacesAsync = exports.getWorkspaces = exports.getPnpmWorkspacesAsync = exports.getPnpmWorkspaces = exports.getWorkspacePackagePaths = exports.getPnpmWorkspaceRoot = void 0;
|
|
16131
|
+
exports.getCatalogs = exports.getWorkspacesAsync = exports.getWorkspaces = exports.getPnpmCatalogs = exports.getPnpmWorkspacesAsync = exports.getPnpmWorkspaces = exports.getWorkspacePackagePaths = exports.getPnpmWorkspaceRoot = void 0;
|
|
16038
16132
|
var path_1 = __importDefault(__require("path"));
|
|
16039
16133
|
var getPackagePaths_1 = require_getPackagePaths();
|
|
16040
16134
|
var getWorkspacePackageInfo_1 = require_getWorkspacePackageInfo();
|
|
16041
16135
|
var readYaml_1 = require_readYaml();
|
|
16042
16136
|
var logging_1 = require_logging();
|
|
16043
16137
|
var getWorkspaceManagerAndRoot_1 = require_getWorkspaceManagerAndRoot();
|
|
16138
|
+
function getPnpmWorkspaceRootAndYaml(cwd) {
|
|
16139
|
+
const root = getPnpmWorkspaceRoot(cwd);
|
|
16140
|
+
const pnpmWorkspacesFile = path_1.default.join(root, "pnpm-workspace.yaml");
|
|
16141
|
+
return { root, workspaceYaml: (0, readYaml_1.readYaml)(pnpmWorkspacesFile) };
|
|
16142
|
+
}
|
|
16143
|
+
__name(getPnpmWorkspaceRootAndYaml, "getPnpmWorkspaceRootAndYaml");
|
|
16044
16144
|
function getPnpmWorkspaceRoot(cwd) {
|
|
16045
16145
|
var _a;
|
|
16046
16146
|
const root = (_a = (0, getWorkspaceManagerAndRoot_1.getWorkspaceManagerAndRoot)(cwd, void 0, "pnpm")) == null ? void 0 : _a.root;
|
|
@@ -16053,10 +16153,8 @@ var require_pnpm = __commonJS({
|
|
|
16053
16153
|
exports.getPnpmWorkspaceRoot = getPnpmWorkspaceRoot;
|
|
16054
16154
|
function getWorkspacePackagePaths(cwd) {
|
|
16055
16155
|
try {
|
|
16056
|
-
const
|
|
16057
|
-
|
|
16058
|
-
const pnpmWorkspaces = (0, readYaml_1.readYaml)(pnpmWorkspacesFile);
|
|
16059
|
-
return (0, getPackagePaths_1.getPackagePaths)(pnpmWorkspacesRoot, pnpmWorkspaces.packages);
|
|
16156
|
+
const { root, workspaceYaml } = getPnpmWorkspaceRootAndYaml(cwd);
|
|
16157
|
+
return (0, getPackagePaths_1.getPackagePaths)(root, workspaceYaml.packages);
|
|
16060
16158
|
} catch (err) {
|
|
16061
16159
|
(0, logging_1.logVerboseWarning)(`Error getting pnpm workspace package paths for ${cwd}`, err);
|
|
16062
16160
|
return [];
|
|
@@ -16088,6 +16186,24 @@ var require_pnpm = __commonJS({
|
|
|
16088
16186
|
__name(getPnpmWorkspacesAsync, "getPnpmWorkspacesAsync");
|
|
16089
16187
|
exports.getPnpmWorkspacesAsync = getPnpmWorkspacesAsync;
|
|
16090
16188
|
exports.getWorkspacesAsync = getPnpmWorkspacesAsync;
|
|
16189
|
+
function getPnpmCatalogs(cwd) {
|
|
16190
|
+
try {
|
|
16191
|
+
const { workspaceYaml } = getPnpmWorkspaceRootAndYaml(cwd);
|
|
16192
|
+
if (!workspaceYaml.catalog && !workspaceYaml.catalogs) {
|
|
16193
|
+
return void 0;
|
|
16194
|
+
}
|
|
16195
|
+
return {
|
|
16196
|
+
default: workspaceYaml.catalog,
|
|
16197
|
+
named: workspaceYaml.catalogs
|
|
16198
|
+
};
|
|
16199
|
+
} catch (err) {
|
|
16200
|
+
(0, logging_1.logVerboseWarning)(`Error getting pnpm catalogs for ${cwd}`, err);
|
|
16201
|
+
return void 0;
|
|
16202
|
+
}
|
|
16203
|
+
}
|
|
16204
|
+
__name(getPnpmCatalogs, "getPnpmCatalogs");
|
|
16205
|
+
exports.getPnpmCatalogs = getPnpmCatalogs;
|
|
16206
|
+
exports.getCatalogs = getPnpmCatalogs;
|
|
16091
16207
|
}
|
|
16092
16208
|
});
|
|
16093
16209
|
|
|
@@ -17421,9 +17537,9 @@ var require_package39 = __commonJS({
|
|
|
17421
17537
|
}
|
|
17422
17538
|
});
|
|
17423
17539
|
|
|
17424
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
17540
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/implementations/rush.js
|
|
17425
17541
|
var require_rush = __commonJS({
|
|
17426
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
17542
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/implementations/rush.js"(exports) {
|
|
17427
17543
|
"use strict";
|
|
17428
17544
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
17429
17545
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -17487,9 +17603,9 @@ var require_rush = __commonJS({
|
|
|
17487
17603
|
}
|
|
17488
17604
|
});
|
|
17489
17605
|
|
|
17490
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
17606
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/implementations/npm.js
|
|
17491
17607
|
var require_npm = __commonJS({
|
|
17492
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
17608
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/implementations/npm.js"(exports) {
|
|
17493
17609
|
"use strict";
|
|
17494
17610
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17495
17611
|
exports.getWorkspacesAsync = exports.getWorkspaces = exports.getNpmWorkspacesAsync = exports.getNpmWorkspaces = exports.getWorkspacePackagePathsAsync = exports.getWorkspacePackagePaths = void 0;
|
|
@@ -17533,9 +17649,9 @@ var require_npm = __commonJS({
|
|
|
17533
17649
|
}
|
|
17534
17650
|
});
|
|
17535
17651
|
|
|
17536
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
17652
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/implementations/lerna.js
|
|
17537
17653
|
var require_lerna = __commonJS({
|
|
17538
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
17654
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/implementations/lerna.js"(exports) {
|
|
17539
17655
|
"use strict";
|
|
17540
17656
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
17541
17657
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -17598,9 +17714,9 @@ var require_lerna = __commonJS({
|
|
|
17598
17714
|
}
|
|
17599
17715
|
});
|
|
17600
17716
|
|
|
17601
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
17717
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/implementations/getWorkspaceUtilities.js
|
|
17602
17718
|
var require_getWorkspaceUtilities = __commonJS({
|
|
17603
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
17719
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/implementations/getWorkspaceUtilities.js"(exports) {
|
|
17604
17720
|
"use strict";
|
|
17605
17721
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17606
17722
|
exports.getWorkspaceUtilities = void 0;
|
|
@@ -17626,9 +17742,9 @@ var require_getWorkspaceUtilities = __commonJS({
|
|
|
17626
17742
|
}
|
|
17627
17743
|
});
|
|
17628
17744
|
|
|
17629
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
17745
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/implementations/index.js
|
|
17630
17746
|
var require_implementations = __commonJS({
|
|
17631
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
17747
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/implementations/index.js"(exports) {
|
|
17632
17748
|
"use strict";
|
|
17633
17749
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17634
17750
|
exports.getWorkspaceUtilities = exports.getWorkspaceManagerAndRoot = void 0;
|
|
@@ -17643,9 +17759,9 @@ var require_implementations = __commonJS({
|
|
|
17643
17759
|
}
|
|
17644
17760
|
});
|
|
17645
17761
|
|
|
17646
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
17762
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/getWorkspaces.js
|
|
17647
17763
|
var require_getWorkspaces = __commonJS({
|
|
17648
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
17764
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/getWorkspaces.js"(exports) {
|
|
17649
17765
|
"use strict";
|
|
17650
17766
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17651
17767
|
exports.getWorkspacesAsync = exports.getWorkspaces = void 0;
|
|
@@ -17673,19 +17789,14 @@ var require_getWorkspaces = __commonJS({
|
|
|
17673
17789
|
}
|
|
17674
17790
|
});
|
|
17675
17791
|
|
|
17676
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
17792
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/getPackageInfos.js
|
|
17677
17793
|
var require_getPackageInfos = __commonJS({
|
|
17678
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
17794
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/getPackageInfos.js"(exports) {
|
|
17679
17795
|
"use strict";
|
|
17680
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
17681
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
17682
|
-
};
|
|
17683
17796
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17684
17797
|
exports.getPackageInfosAsync = exports.getPackageInfos = void 0;
|
|
17685
|
-
var fs_1 = __importDefault(__require("fs"));
|
|
17686
|
-
var path_1 = __importDefault(__require("path"));
|
|
17687
|
-
var infoFromPackageJson_1 = require_infoFromPackageJson();
|
|
17688
17798
|
var getWorkspaces_1 = require_getWorkspaces();
|
|
17799
|
+
var getPackageInfo_1 = require_getPackageInfo();
|
|
17689
17800
|
function getPackageInfos(cwd) {
|
|
17690
17801
|
const packageInfos = {};
|
|
17691
17802
|
const workspacePackages = (0, getWorkspaces_1.getWorkspaces)(cwd);
|
|
@@ -17694,7 +17805,7 @@ var require_getPackageInfos = __commonJS({
|
|
|
17694
17805
|
packageInfos[pkg.name] = pkg.packageJson;
|
|
17695
17806
|
}
|
|
17696
17807
|
} else {
|
|
17697
|
-
const rootInfo =
|
|
17808
|
+
const rootInfo = (0, getPackageInfo_1.getPackageInfo)(cwd);
|
|
17698
17809
|
if (rootInfo) {
|
|
17699
17810
|
packageInfos[rootInfo.name] = rootInfo;
|
|
17700
17811
|
}
|
|
@@ -17711,7 +17822,7 @@ var require_getPackageInfos = __commonJS({
|
|
|
17711
17822
|
packageInfos[pkg.name] = pkg.packageJson;
|
|
17712
17823
|
}
|
|
17713
17824
|
} else {
|
|
17714
|
-
const rootInfo =
|
|
17825
|
+
const rootInfo = (0, getPackageInfo_1.getPackageInfo)(cwd);
|
|
17715
17826
|
if (rootInfo) {
|
|
17716
17827
|
packageInfos[rootInfo.name] = rootInfo;
|
|
17717
17828
|
}
|
|
@@ -17720,24 +17831,12 @@ var require_getPackageInfos = __commonJS({
|
|
|
17720
17831
|
}
|
|
17721
17832
|
__name(getPackageInfosAsync, "getPackageInfosAsync");
|
|
17722
17833
|
exports.getPackageInfosAsync = getPackageInfosAsync;
|
|
17723
|
-
function tryReadRootPackageJson(cwd) {
|
|
17724
|
-
const packageJsonPath = path_1.default.join(cwd, "package.json");
|
|
17725
|
-
if (fs_1.default.existsSync(packageJsonPath)) {
|
|
17726
|
-
try {
|
|
17727
|
-
const packageJson = JSON.parse(fs_1.default.readFileSync(packageJsonPath, "utf-8"));
|
|
17728
|
-
return (0, infoFromPackageJson_1.infoFromPackageJson)(packageJson, packageJsonPath);
|
|
17729
|
-
} catch (e) {
|
|
17730
|
-
throw new Error(`Invalid package.json file detected ${packageJsonPath}: ${(e == null ? void 0 : e.message) || e}`);
|
|
17731
|
-
}
|
|
17732
|
-
}
|
|
17733
|
-
}
|
|
17734
|
-
__name(tryReadRootPackageJson, "tryReadRootPackageJson");
|
|
17735
17834
|
}
|
|
17736
17835
|
});
|
|
17737
17836
|
|
|
17738
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
17837
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/graph/createDependencyMap.js
|
|
17739
17838
|
var require_createDependencyMap = __commonJS({
|
|
17740
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
17839
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/graph/createDependencyMap.js"(exports) {
|
|
17741
17840
|
"use strict";
|
|
17742
17841
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17743
17842
|
exports.createDependencyMap = void 0;
|
|
@@ -17768,9 +17867,9 @@ var require_createDependencyMap = __commonJS({
|
|
|
17768
17867
|
}
|
|
17769
17868
|
});
|
|
17770
17869
|
|
|
17771
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
17870
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/graph/createPackageGraph.js
|
|
17772
17871
|
var require_createPackageGraph = __commonJS({
|
|
17773
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
17872
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/graph/createPackageGraph.js"(exports) {
|
|
17774
17873
|
"use strict";
|
|
17775
17874
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
17776
17875
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -17886,9 +17985,9 @@ var require_createPackageGraph = __commonJS({
|
|
|
17886
17985
|
}
|
|
17887
17986
|
});
|
|
17888
17987
|
|
|
17889
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
17988
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/graph/index.js
|
|
17890
17989
|
var require_graph = __commonJS({
|
|
17891
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
17990
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/graph/index.js"(exports) {
|
|
17892
17991
|
"use strict";
|
|
17893
17992
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
17894
17993
|
if (k2 === void 0) k2 = k;
|
|
@@ -17920,9 +18019,9 @@ var require_graph = __commonJS({
|
|
|
17920
18019
|
}
|
|
17921
18020
|
});
|
|
17922
18021
|
|
|
17923
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
18022
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/lockfile/nameAtVersion.js
|
|
17924
18023
|
var require_nameAtVersion = __commonJS({
|
|
17925
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
18024
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/lockfile/nameAtVersion.js"(exports) {
|
|
17926
18025
|
"use strict";
|
|
17927
18026
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17928
18027
|
exports.nameAtVersion = void 0;
|
|
@@ -17934,9 +18033,9 @@ var require_nameAtVersion = __commonJS({
|
|
|
17934
18033
|
}
|
|
17935
18034
|
});
|
|
17936
18035
|
|
|
17937
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
18036
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/lockfile/parsePnpmLock.js
|
|
17938
18037
|
var require_parsePnpmLock = __commonJS({
|
|
17939
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
18038
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/lockfile/parsePnpmLock.js"(exports) {
|
|
17940
18039
|
"use strict";
|
|
17941
18040
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17942
18041
|
exports.parsePnpmLock = void 0;
|
|
@@ -17964,9 +18063,9 @@ var require_parsePnpmLock = __commonJS({
|
|
|
17964
18063
|
}
|
|
17965
18064
|
});
|
|
17966
18065
|
|
|
17967
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
18066
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/lockfile/parseNpmLock.js
|
|
17968
18067
|
var require_parseNpmLock = __commonJS({
|
|
17969
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
18068
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/lockfile/parseNpmLock.js"(exports) {
|
|
17970
18069
|
"use strict";
|
|
17971
18070
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17972
18071
|
exports.parseNpmLock = void 0;
|
|
@@ -17983,9 +18082,9 @@ var require_parseNpmLock = __commonJS({
|
|
|
17983
18082
|
}
|
|
17984
18083
|
});
|
|
17985
18084
|
|
|
17986
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
18085
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/lockfile/parseBerryLock.js
|
|
17987
18086
|
var require_parseBerryLock = __commonJS({
|
|
17988
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
18087
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/lockfile/parseBerryLock.js"(exports) {
|
|
17989
18088
|
"use strict";
|
|
17990
18089
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17991
18090
|
exports.parseBerryLock = void 0;
|
|
@@ -26028,9 +26127,9 @@ ${indent}`);
|
|
|
26028
26127
|
}
|
|
26029
26128
|
});
|
|
26030
26129
|
|
|
26031
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
26130
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/lockfile/queryLockFile.js
|
|
26032
26131
|
var require_queryLockFile = __commonJS({
|
|
26033
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
26132
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/lockfile/queryLockFile.js"(exports) {
|
|
26034
26133
|
"use strict";
|
|
26035
26134
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26036
26135
|
exports.queryLockFile = void 0;
|
|
@@ -26044,17 +26143,17 @@ var require_queryLockFile = __commonJS({
|
|
|
26044
26143
|
}
|
|
26045
26144
|
});
|
|
26046
26145
|
|
|
26047
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
26146
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/lockfile/types.js
|
|
26048
26147
|
var require_types = __commonJS({
|
|
26049
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
26148
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/lockfile/types.js"(exports) {
|
|
26050
26149
|
"use strict";
|
|
26051
26150
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26052
26151
|
}
|
|
26053
26152
|
});
|
|
26054
26153
|
|
|
26055
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
26154
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/lockfile/index.js
|
|
26056
26155
|
var require_lockfile = __commonJS({
|
|
26057
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
26156
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/lockfile/index.js"(exports) {
|
|
26058
26157
|
"use strict";
|
|
26059
26158
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
26060
26159
|
if (k2 === void 0) k2 = k;
|
|
@@ -26165,9 +26264,9 @@ var require_lockfile = __commonJS({
|
|
|
26165
26264
|
}
|
|
26166
26265
|
});
|
|
26167
26266
|
|
|
26168
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
26267
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/scope.js
|
|
26169
26268
|
var require_scope = __commonJS({
|
|
26170
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
26269
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/scope.js"(exports) {
|
|
26171
26270
|
"use strict";
|
|
26172
26271
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
26173
26272
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -26212,33 +26311,9 @@ var require_scope = __commonJS({
|
|
|
26212
26311
|
}
|
|
26213
26312
|
});
|
|
26214
26313
|
|
|
26215
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
26216
|
-
var require_PackageGraph = __commonJS({
|
|
26217
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.4-078d0cf634/package/lib/types/PackageGraph.js"(exports) {
|
|
26218
|
-
"use strict";
|
|
26219
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26220
|
-
}
|
|
26221
|
-
});
|
|
26222
|
-
|
|
26223
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.4-078d0cf634/package/lib/types/PackageInfo.js
|
|
26224
|
-
var require_PackageInfo = __commonJS({
|
|
26225
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.4-078d0cf634/package/lib/types/PackageInfo.js"(exports) {
|
|
26226
|
-
"use strict";
|
|
26227
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26228
|
-
}
|
|
26229
|
-
});
|
|
26230
|
-
|
|
26231
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.4-078d0cf634/package/lib/types/WorkspaceInfo.js
|
|
26232
|
-
var require_WorkspaceInfo = __commonJS({
|
|
26233
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.4-078d0cf634/package/lib/types/WorkspaceInfo.js"(exports) {
|
|
26234
|
-
"use strict";
|
|
26235
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26236
|
-
}
|
|
26237
|
-
});
|
|
26238
|
-
|
|
26239
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.4-078d0cf634/package/lib/workspaces/findWorkspacePath.js
|
|
26314
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/findWorkspacePath.js
|
|
26240
26315
|
var require_findWorkspacePath = __commonJS({
|
|
26241
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
26316
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/findWorkspacePath.js"(exports) {
|
|
26242
26317
|
"use strict";
|
|
26243
26318
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26244
26319
|
exports.findWorkspacePath = void 0;
|
|
@@ -26251,9 +26326,9 @@ var require_findWorkspacePath = __commonJS({
|
|
|
26251
26326
|
}
|
|
26252
26327
|
});
|
|
26253
26328
|
|
|
26254
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
26329
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/getWorkspacePackagePaths.js
|
|
26255
26330
|
var require_getWorkspacePackagePaths = __commonJS({
|
|
26256
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
26331
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/getWorkspacePackagePaths.js"(exports) {
|
|
26257
26332
|
"use strict";
|
|
26258
26333
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26259
26334
|
exports.getWorkspacePackagePathsAsync = exports.getWorkspacePackagePaths = void 0;
|
|
@@ -26281,9 +26356,9 @@ var require_getWorkspacePackagePaths = __commonJS({
|
|
|
26281
26356
|
}
|
|
26282
26357
|
});
|
|
26283
26358
|
|
|
26284
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
26359
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/getPackagesByFiles.js
|
|
26285
26360
|
var require_getPackagesByFiles = __commonJS({
|
|
26286
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
26361
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/getPackagesByFiles.js"(exports) {
|
|
26287
26362
|
"use strict";
|
|
26288
26363
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
26289
26364
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -26316,9 +26391,9 @@ var require_getPackagesByFiles = __commonJS({
|
|
|
26316
26391
|
}
|
|
26317
26392
|
});
|
|
26318
26393
|
|
|
26319
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
26394
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/getChangedPackages.js
|
|
26320
26395
|
var require_getChangedPackages = __commonJS({
|
|
26321
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
26396
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/getChangedPackages.js"(exports) {
|
|
26322
26397
|
"use strict";
|
|
26323
26398
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26324
26399
|
exports.getChangedPackages = exports.getChangedPackagesBetweenRefs = void 0;
|
|
@@ -26354,9 +26429,9 @@ var require_getChangedPackages = __commonJS({
|
|
|
26354
26429
|
}
|
|
26355
26430
|
});
|
|
26356
26431
|
|
|
26357
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
26432
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/listOfWorkspacePackageNames.js
|
|
26358
26433
|
var require_listOfWorkspacePackageNames = __commonJS({
|
|
26359
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
26434
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/listOfWorkspacePackageNames.js"(exports) {
|
|
26360
26435
|
"use strict";
|
|
26361
26436
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26362
26437
|
exports.listOfWorkspacePackageNames = void 0;
|
|
@@ -26368,9 +26443,9 @@ var require_listOfWorkspacePackageNames = __commonJS({
|
|
|
26368
26443
|
}
|
|
26369
26444
|
});
|
|
26370
26445
|
|
|
26371
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
26446
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/getAllPackageJsonFiles.js
|
|
26372
26447
|
var require_getAllPackageJsonFiles = __commonJS({
|
|
26373
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
26448
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/getAllPackageJsonFiles.js"(exports) {
|
|
26374
26449
|
"use strict";
|
|
26375
26450
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
26376
26451
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -26409,9 +26484,58 @@ var require_getAllPackageJsonFiles = __commonJS({
|
|
|
26409
26484
|
}
|
|
26410
26485
|
});
|
|
26411
26486
|
|
|
26412
|
-
// ../../node_modules/.store/workspace-tools-npm-0.38.
|
|
26487
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/catalogs.js
|
|
26488
|
+
var require_catalogs = __commonJS({
|
|
26489
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/workspaces/catalogs.js"(exports) {
|
|
26490
|
+
"use strict";
|
|
26491
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26492
|
+
exports.getCatalogVersion = exports.isCatalogVersion = exports.getCatalogs = void 0;
|
|
26493
|
+
var implementations_1 = require_implementations();
|
|
26494
|
+
function getCatalogs(cwd) {
|
|
26495
|
+
var _a;
|
|
26496
|
+
const utils = (0, implementations_1.getWorkspaceUtilities)(cwd);
|
|
26497
|
+
return (_a = utils == null ? void 0 : utils.getCatalogs) == null ? void 0 : _a.call(utils, cwd);
|
|
26498
|
+
}
|
|
26499
|
+
__name(getCatalogs, "getCatalogs");
|
|
26500
|
+
exports.getCatalogs = getCatalogs;
|
|
26501
|
+
var catalogPrefix = "catalog:";
|
|
26502
|
+
function isCatalogVersion(version) {
|
|
26503
|
+
return version.startsWith(catalogPrefix);
|
|
26504
|
+
}
|
|
26505
|
+
__name(isCatalogVersion, "isCatalogVersion");
|
|
26506
|
+
exports.isCatalogVersion = isCatalogVersion;
|
|
26507
|
+
function getCatalogVersion(params) {
|
|
26508
|
+
var _a;
|
|
26509
|
+
const { name, version, catalogs } = params;
|
|
26510
|
+
if (!isCatalogVersion(version)) {
|
|
26511
|
+
return void 0;
|
|
26512
|
+
}
|
|
26513
|
+
if (!catalogs) {
|
|
26514
|
+
throw new Error(`Dependency "${name}" uses a catalog version "${version}" but no catalogs are defined.`);
|
|
26515
|
+
}
|
|
26516
|
+
const catalogName = version.slice(catalogPrefix.length);
|
|
26517
|
+
const checkCatalog = catalogName ? (_a = catalogs.named) == null ? void 0 : _a[catalogName] : catalogs.default;
|
|
26518
|
+
const catalogNameStr = catalogName ? `catalogs.${catalogName}` : "the default catalog";
|
|
26519
|
+
if (!checkCatalog) {
|
|
26520
|
+
throw new Error(`Dependency "${name}" uses a catalog version "${version}" but ${catalogNameStr} is not defined.`);
|
|
26521
|
+
}
|
|
26522
|
+
const actualSpec = checkCatalog[name];
|
|
26523
|
+
if (!actualSpec) {
|
|
26524
|
+
throw new Error(`Dependency "${name}" uses a catalog version "${version}", but ${catalogNameStr} doesn't define a version for "${name}".`);
|
|
26525
|
+
}
|
|
26526
|
+
if (isCatalogVersion(actualSpec)) {
|
|
26527
|
+
throw new Error(`Dependency "${name}" resolves to a recursive catalog version "${actualSpec}", which is not supported.`);
|
|
26528
|
+
}
|
|
26529
|
+
return actualSpec;
|
|
26530
|
+
}
|
|
26531
|
+
__name(getCatalogVersion, "getCatalogVersion");
|
|
26532
|
+
exports.getCatalogVersion = getCatalogVersion;
|
|
26533
|
+
}
|
|
26534
|
+
});
|
|
26535
|
+
|
|
26536
|
+
// ../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/index.js
|
|
26413
26537
|
var require_lib9 = __commonJS({
|
|
26414
|
-
"../../node_modules/.store/workspace-tools-npm-0.38.
|
|
26538
|
+
"../../node_modules/.store/workspace-tools-npm-0.38.6-de721e7bfa/package/lib/index.js"(exports) {
|
|
26415
26539
|
"use strict";
|
|
26416
26540
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
26417
26541
|
if (k2 === void 0) k2 = k;
|
|
@@ -26430,9 +26554,15 @@ var require_lib9 = __commonJS({
|
|
|
26430
26554
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
|
26431
26555
|
};
|
|
26432
26556
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26433
|
-
exports.getYarnWorkspaces = exports.getYarnWorkspaceRoot = exports.getRushWorkspaces = exports.getRushWorkspaceRoot = exports.getPnpmWorkspaces = exports.getPnpmWorkspaceRoot = exports.setCachingEnabled = void 0;
|
|
26557
|
+
exports.isCatalogVersion = exports.getCatalogVersion = exports.getCatalogs = exports.getAllPackageJsonFilesAsync = exports.getAllPackageJsonFiles = exports.listOfWorkspacePackageNames = exports.getPackagesByFiles = exports.getChangedPackagesBetweenRefs = exports.getChangedPackages = exports.getYarnWorkspaces = exports.getYarnWorkspaceRoot = exports.getRushWorkspaces = exports.getRushWorkspaceRoot = exports.getPnpmWorkspaces = exports.getPnpmWorkspaceRoot = exports.getPackageInfoAsync = exports.getPackageInfo = exports.getWorkspaceRoot = exports.getWorkspaceManagerRoot = exports.getWorkspacePackagePathsAsync = exports.getWorkspacePackagePaths = exports.getWorkspacesAsync = exports.getWorkspaces = exports.findWorkspacePath = exports.getScopedPackages = exports.searchUp = exports.isChildOf = exports.findProjectRoot = exports.findPackageRoot = exports.findGitRoot = exports.setCachingEnabled = exports.getPackageInfosAsync = exports.getPackageInfos = void 0;
|
|
26434
26558
|
__exportStar(require_dependencies(), exports);
|
|
26435
|
-
|
|
26559
|
+
var getPackageInfos_1 = require_getPackageInfos();
|
|
26560
|
+
Object.defineProperty(exports, "getPackageInfos", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
26561
|
+
return getPackageInfos_1.getPackageInfos;
|
|
26562
|
+
}, "get") });
|
|
26563
|
+
Object.defineProperty(exports, "getPackageInfosAsync", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
26564
|
+
return getPackageInfos_1.getPackageInfosAsync;
|
|
26565
|
+
}, "get") });
|
|
26436
26566
|
__exportStar(require_git2(), exports);
|
|
26437
26567
|
__exportStar(require_graph(), exports);
|
|
26438
26568
|
var isCachingEnabled_1 = require_isCachingEnabled();
|
|
@@ -26440,15 +26570,58 @@ var require_lib9 = __commonJS({
|
|
|
26440
26570
|
return isCachingEnabled_1.setCachingEnabled;
|
|
26441
26571
|
}, "get") });
|
|
26442
26572
|
__exportStar(require_lockfile(), exports);
|
|
26443
|
-
|
|
26444
|
-
|
|
26445
|
-
|
|
26446
|
-
|
|
26447
|
-
|
|
26448
|
-
|
|
26449
|
-
|
|
26450
|
-
|
|
26451
|
-
|
|
26573
|
+
var paths_1 = require_paths();
|
|
26574
|
+
Object.defineProperty(exports, "findGitRoot", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
26575
|
+
return paths_1.findGitRoot;
|
|
26576
|
+
}, "get") });
|
|
26577
|
+
Object.defineProperty(exports, "findPackageRoot", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
26578
|
+
return paths_1.findPackageRoot;
|
|
26579
|
+
}, "get") });
|
|
26580
|
+
Object.defineProperty(exports, "findProjectRoot", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
26581
|
+
return paths_1.findProjectRoot;
|
|
26582
|
+
}, "get") });
|
|
26583
|
+
Object.defineProperty(exports, "isChildOf", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
26584
|
+
return paths_1.isChildOf;
|
|
26585
|
+
}, "get") });
|
|
26586
|
+
Object.defineProperty(exports, "searchUp", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
26587
|
+
return paths_1.searchUp;
|
|
26588
|
+
}, "get") });
|
|
26589
|
+
var scope_1 = require_scope();
|
|
26590
|
+
Object.defineProperty(exports, "getScopedPackages", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
26591
|
+
return scope_1.getScopedPackages;
|
|
26592
|
+
}, "get") });
|
|
26593
|
+
var findWorkspacePath_1 = require_findWorkspacePath();
|
|
26594
|
+
Object.defineProperty(exports, "findWorkspacePath", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
26595
|
+
return findWorkspacePath_1.findWorkspacePath;
|
|
26596
|
+
}, "get") });
|
|
26597
|
+
var getWorkspaces_1 = require_getWorkspaces();
|
|
26598
|
+
Object.defineProperty(exports, "getWorkspaces", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
26599
|
+
return getWorkspaces_1.getWorkspaces;
|
|
26600
|
+
}, "get") });
|
|
26601
|
+
Object.defineProperty(exports, "getWorkspacesAsync", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
26602
|
+
return getWorkspaces_1.getWorkspacesAsync;
|
|
26603
|
+
}, "get") });
|
|
26604
|
+
var getWorkspacePackagePaths_1 = require_getWorkspacePackagePaths();
|
|
26605
|
+
Object.defineProperty(exports, "getWorkspacePackagePaths", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
26606
|
+
return getWorkspacePackagePaths_1.getWorkspacePackagePaths;
|
|
26607
|
+
}, "get") });
|
|
26608
|
+
Object.defineProperty(exports, "getWorkspacePackagePathsAsync", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
26609
|
+
return getWorkspacePackagePaths_1.getWorkspacePackagePathsAsync;
|
|
26610
|
+
}, "get") });
|
|
26611
|
+
var getWorkspaceRoot_1 = require_getWorkspaceRoot();
|
|
26612
|
+
Object.defineProperty(exports, "getWorkspaceManagerRoot", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
26613
|
+
return getWorkspaceRoot_1.getWorkspaceManagerRoot;
|
|
26614
|
+
}, "get") });
|
|
26615
|
+
Object.defineProperty(exports, "getWorkspaceRoot", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
26616
|
+
return getWorkspaceRoot_1.getWorkspaceRoot;
|
|
26617
|
+
}, "get") });
|
|
26618
|
+
var getPackageInfo_1 = require_getPackageInfo();
|
|
26619
|
+
Object.defineProperty(exports, "getPackageInfo", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
26620
|
+
return getPackageInfo_1.getPackageInfo;
|
|
26621
|
+
}, "get") });
|
|
26622
|
+
Object.defineProperty(exports, "getPackageInfoAsync", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
26623
|
+
return getPackageInfo_1.getPackageInfoAsync;
|
|
26624
|
+
}, "get") });
|
|
26452
26625
|
var pnpm_1 = require_pnpm();
|
|
26453
26626
|
Object.defineProperty(exports, "getPnpmWorkspaceRoot", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
26454
26627
|
return pnpm_1.getPnpmWorkspaceRoot;
|
|
@@ -26470,10 +26643,38 @@ var require_lib9 = __commonJS({
|
|
|
26470
26643
|
Object.defineProperty(exports, "getYarnWorkspaces", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
26471
26644
|
return yarn_1.getYarnWorkspaces;
|
|
26472
26645
|
}, "get") });
|
|
26473
|
-
|
|
26474
|
-
|
|
26475
|
-
|
|
26476
|
-
|
|
26646
|
+
var getChangedPackages_1 = require_getChangedPackages();
|
|
26647
|
+
Object.defineProperty(exports, "getChangedPackages", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
26648
|
+
return getChangedPackages_1.getChangedPackages;
|
|
26649
|
+
}, "get") });
|
|
26650
|
+
Object.defineProperty(exports, "getChangedPackagesBetweenRefs", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
26651
|
+
return getChangedPackages_1.getChangedPackagesBetweenRefs;
|
|
26652
|
+
}, "get") });
|
|
26653
|
+
var getPackagesByFiles_1 = require_getPackagesByFiles();
|
|
26654
|
+
Object.defineProperty(exports, "getPackagesByFiles", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
26655
|
+
return getPackagesByFiles_1.getPackagesByFiles;
|
|
26656
|
+
}, "get") });
|
|
26657
|
+
var listOfWorkspacePackageNames_1 = require_listOfWorkspacePackageNames();
|
|
26658
|
+
Object.defineProperty(exports, "listOfWorkspacePackageNames", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
26659
|
+
return listOfWorkspacePackageNames_1.listOfWorkspacePackageNames;
|
|
26660
|
+
}, "get") });
|
|
26661
|
+
var getAllPackageJsonFiles_1 = require_getAllPackageJsonFiles();
|
|
26662
|
+
Object.defineProperty(exports, "getAllPackageJsonFiles", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
26663
|
+
return getAllPackageJsonFiles_1.getAllPackageJsonFiles;
|
|
26664
|
+
}, "get") });
|
|
26665
|
+
Object.defineProperty(exports, "getAllPackageJsonFilesAsync", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
26666
|
+
return getAllPackageJsonFiles_1.getAllPackageJsonFilesAsync;
|
|
26667
|
+
}, "get") });
|
|
26668
|
+
var catalogs_1 = require_catalogs();
|
|
26669
|
+
Object.defineProperty(exports, "getCatalogs", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
26670
|
+
return catalogs_1.getCatalogs;
|
|
26671
|
+
}, "get") });
|
|
26672
|
+
Object.defineProperty(exports, "getCatalogVersion", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
26673
|
+
return catalogs_1.getCatalogVersion;
|
|
26674
|
+
}, "get") });
|
|
26675
|
+
Object.defineProperty(exports, "isCatalogVersion", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
26676
|
+
return catalogs_1.isCatalogVersion;
|
|
26677
|
+
}, "get") });
|
|
26477
26678
|
}
|
|
26478
26679
|
});
|
|
26479
26680
|
|
|
@@ -45889,45 +46090,45 @@ var require_commonjs8 = __commonJS({
|
|
|
45889
46090
|
}
|
|
45890
46091
|
});
|
|
45891
46092
|
|
|
45892
|
-
// ../../node_modules/.store/fast-xml-parser-npm-5.3.
|
|
46093
|
+
// ../../node_modules/.store/fast-xml-parser-npm-5.3.2-2d115f9662/package/lib/fxp.cjs
|
|
45893
46094
|
var require_fxp = __commonJS({
|
|
45894
|
-
"../../node_modules/.store/fast-xml-parser-npm-5.3.
|
|
46095
|
+
"../../node_modules/.store/fast-xml-parser-npm-5.3.2-2d115f9662/package/lib/fxp.cjs"(exports, module) {
|
|
45895
46096
|
(() => {
|
|
45896
46097
|
"use strict";
|
|
45897
|
-
var t = { d: /* @__PURE__ */ __name((e2,
|
|
45898
|
-
for (var
|
|
46098
|
+
var t = { d: /* @__PURE__ */ __name((e2, i2) => {
|
|
46099
|
+
for (var n2 in i2) t.o(i2, n2) && !t.o(e2, n2) && Object.defineProperty(e2, n2, { enumerable: true, get: i2[n2] });
|
|
45899
46100
|
}, "d"), o: /* @__PURE__ */ __name((t2, e2) => Object.prototype.hasOwnProperty.call(t2, e2), "o"), r: /* @__PURE__ */ __name((t2) => {
|
|
45900
46101
|
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t2, "__esModule", { value: true });
|
|
45901
46102
|
}, "r") }, e = {};
|
|
45902
46103
|
t.r(e), t.d(e, { XMLBuilder: /* @__PURE__ */ __name(() => lt, "XMLBuilder"), XMLParser: /* @__PURE__ */ __name(() => tt, "XMLParser"), XMLValidator: /* @__PURE__ */ __name(() => pt, "XMLValidator") });
|
|
45903
|
-
const
|
|
45904
|
-
function
|
|
45905
|
-
const
|
|
45906
|
-
let
|
|
45907
|
-
for (;
|
|
45908
|
-
const
|
|
45909
|
-
|
|
45910
|
-
const
|
|
45911
|
-
for (let t3 = 0; t3 <
|
|
45912
|
-
|
|
45913
|
-
}
|
|
45914
|
-
return
|
|
45915
|
-
}
|
|
45916
|
-
__name(
|
|
45917
|
-
const
|
|
45918
|
-
return !(null ==
|
|
45919
|
-
}, "
|
|
46104
|
+
const i = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", n = new RegExp("^[" + i + "][" + i + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
|
|
46105
|
+
function s(t2, e2) {
|
|
46106
|
+
const i2 = [];
|
|
46107
|
+
let n2 = e2.exec(t2);
|
|
46108
|
+
for (; n2; ) {
|
|
46109
|
+
const s2 = [];
|
|
46110
|
+
s2.startIndex = e2.lastIndex - n2[0].length;
|
|
46111
|
+
const r2 = n2.length;
|
|
46112
|
+
for (let t3 = 0; t3 < r2; t3++) s2.push(n2[t3]);
|
|
46113
|
+
i2.push(s2), n2 = e2.exec(t2);
|
|
46114
|
+
}
|
|
46115
|
+
return i2;
|
|
46116
|
+
}
|
|
46117
|
+
__name(s, "s");
|
|
46118
|
+
const r = /* @__PURE__ */ __name(function(t2) {
|
|
46119
|
+
return !(null == n.exec(t2));
|
|
46120
|
+
}, "r"), o = { allowBooleanAttributes: false, unpairedTags: [] };
|
|
45920
46121
|
function a(t2, e2) {
|
|
45921
46122
|
e2 = Object.assign({}, o, e2);
|
|
45922
|
-
const
|
|
45923
|
-
let
|
|
46123
|
+
const i2 = [];
|
|
46124
|
+
let n2 = false, s2 = false;
|
|
45924
46125
|
"\uFEFF" === t2[0] && (t2 = t2.substr(1));
|
|
45925
46126
|
for (let o2 = 0; o2 < t2.length; o2++) if ("<" === t2[o2] && "?" === t2[o2 + 1]) {
|
|
45926
46127
|
if (o2 += 2, o2 = u(t2, o2), o2.err) return o2;
|
|
45927
46128
|
} else {
|
|
45928
46129
|
if ("<" !== t2[o2]) {
|
|
45929
46130
|
if (l(t2[o2])) continue;
|
|
45930
|
-
return x("InvalidChar", "char '" + t2[o2] + "' is not expected.",
|
|
46131
|
+
return x("InvalidChar", "char '" + t2[o2] + "' is not expected.", b(t2, o2));
|
|
45931
46132
|
}
|
|
45932
46133
|
{
|
|
45933
46134
|
let a2 = o2;
|
|
@@ -45940,36 +46141,36 @@ var require_fxp = __commonJS({
|
|
|
45940
46141
|
"/" === t2[o2] && (d2 = true, o2++);
|
|
45941
46142
|
let p2 = "";
|
|
45942
46143
|
for (; o2 < t2.length && ">" !== t2[o2] && " " !== t2[o2] && " " !== t2[o2] && "\n" !== t2[o2] && "\r" !== t2[o2]; o2++) p2 += t2[o2];
|
|
45943
|
-
if (p2 = p2.trim(), "/" === p2[p2.length - 1] && (p2 = p2.substring(0, p2.length - 1), o2--), !
|
|
46144
|
+
if (p2 = p2.trim(), "/" === p2[p2.length - 1] && (p2 = p2.substring(0, p2.length - 1), o2--), !r(p2)) {
|
|
45944
46145
|
let e3;
|
|
45945
|
-
return e3 = 0 === p2.trim().length ? "Invalid space after '<'." : "Tag '" + p2 + "' is an invalid name.", x("InvalidTag", e3,
|
|
46146
|
+
return e3 = 0 === p2.trim().length ? "Invalid space after '<'." : "Tag '" + p2 + "' is an invalid name.", x("InvalidTag", e3, b(t2, o2));
|
|
45946
46147
|
}
|
|
45947
46148
|
const c2 = f(t2, o2);
|
|
45948
|
-
if (false === c2) return x("InvalidAttr", "Attributes for '" + p2 + "' have open quote.",
|
|
45949
|
-
let
|
|
45950
|
-
if (o2 = c2.index, "/" ===
|
|
45951
|
-
const
|
|
45952
|
-
|
|
45953
|
-
const
|
|
45954
|
-
if (true !==
|
|
45955
|
-
|
|
46149
|
+
if (false === c2) return x("InvalidAttr", "Attributes for '" + p2 + "' have open quote.", b(t2, o2));
|
|
46150
|
+
let N2 = c2.value;
|
|
46151
|
+
if (o2 = c2.index, "/" === N2[N2.length - 1]) {
|
|
46152
|
+
const i3 = o2 - N2.length;
|
|
46153
|
+
N2 = N2.substring(0, N2.length - 1);
|
|
46154
|
+
const s3 = g(N2, e2);
|
|
46155
|
+
if (true !== s3) return x(s3.err.code, s3.err.msg, b(t2, i3 + s3.err.line));
|
|
46156
|
+
n2 = true;
|
|
45956
46157
|
} else if (d2) {
|
|
45957
|
-
if (!c2.tagClosed) return x("InvalidTag", "Closing tag '" + p2 + "' doesn't have proper closing.",
|
|
45958
|
-
if (
|
|
45959
|
-
if (0 ===
|
|
46158
|
+
if (!c2.tagClosed) return x("InvalidTag", "Closing tag '" + p2 + "' doesn't have proper closing.", b(t2, o2));
|
|
46159
|
+
if (N2.trim().length > 0) return x("InvalidTag", "Closing tag '" + p2 + "' can't have attributes or invalid starting.", b(t2, a2));
|
|
46160
|
+
if (0 === i2.length) return x("InvalidTag", "Closing tag '" + p2 + "' has not been opened.", b(t2, a2));
|
|
45960
46161
|
{
|
|
45961
|
-
const e3 =
|
|
46162
|
+
const e3 = i2.pop();
|
|
45962
46163
|
if (p2 !== e3.tagName) {
|
|
45963
|
-
let
|
|
45964
|
-
return x("InvalidTag", "Expected closing tag '" + e3.tagName + "' (opened in line " +
|
|
46164
|
+
let i3 = b(t2, e3.tagStartPos);
|
|
46165
|
+
return x("InvalidTag", "Expected closing tag '" + e3.tagName + "' (opened in line " + i3.line + ", col " + i3.col + ") instead of closing tag '" + p2 + "'.", b(t2, a2));
|
|
45965
46166
|
}
|
|
45966
|
-
0 ==
|
|
46167
|
+
0 == i2.length && (s2 = true);
|
|
45967
46168
|
}
|
|
45968
46169
|
} else {
|
|
45969
|
-
const
|
|
45970
|
-
if (true !==
|
|
45971
|
-
if (true ===
|
|
45972
|
-
-1 !== e2.unpairedTags.indexOf(p2) ||
|
|
46170
|
+
const r2 = g(N2, e2);
|
|
46171
|
+
if (true !== r2) return x(r2.err.code, r2.err.msg, b(t2, o2 - N2.length + r2.err.line));
|
|
46172
|
+
if (true === s2) return x("InvalidXml", "Multiple possible root nodes found.", b(t2, o2));
|
|
46173
|
+
-1 !== e2.unpairedTags.indexOf(p2) || i2.push({ tagName: p2, tagStartPos: a2 }), n2 = true;
|
|
45973
46174
|
}
|
|
45974
46175
|
for (o2++; o2 < t2.length; o2++) if ("<" === t2[o2]) {
|
|
45975
46176
|
if ("!" === t2[o2 + 1]) {
|
|
@@ -45980,14 +46181,14 @@ var require_fxp = __commonJS({
|
|
|
45980
46181
|
if (o2 = u(t2, ++o2), o2.err) return o2;
|
|
45981
46182
|
} else if ("&" === t2[o2]) {
|
|
45982
46183
|
const e3 = m(t2, o2);
|
|
45983
|
-
if (-1 == e3) return x("InvalidChar", "char '&' is not expected.",
|
|
46184
|
+
if (-1 == e3) return x("InvalidChar", "char '&' is not expected.", b(t2, o2));
|
|
45984
46185
|
o2 = e3;
|
|
45985
|
-
} else if (true ===
|
|
46186
|
+
} else if (true === s2 && !l(t2[o2])) return x("InvalidXml", "Extra text at the end", b(t2, o2));
|
|
45986
46187
|
"<" === t2[o2] && o2--;
|
|
45987
46188
|
}
|
|
45988
46189
|
}
|
|
45989
46190
|
}
|
|
45990
|
-
return
|
|
46191
|
+
return n2 ? 1 == i2.length ? x("InvalidTag", "Unclosed tag '" + i2[0].tagName + "'.", b(t2, i2[0].tagStartPos)) : !(i2.length > 0) || x("InvalidXml", "Invalid '" + JSON.stringify(i2.map(((t3) => t3.tagName)), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 }) : x("InvalidXml", "Start tag expected.", 1);
|
|
45991
46192
|
}
|
|
45992
46193
|
__name(a, "a");
|
|
45993
46194
|
function l(t2) {
|
|
@@ -45995,11 +46196,11 @@ var require_fxp = __commonJS({
|
|
|
45995
46196
|
}
|
|
45996
46197
|
__name(l, "l");
|
|
45997
46198
|
function u(t2, e2) {
|
|
45998
|
-
const
|
|
46199
|
+
const i2 = e2;
|
|
45999
46200
|
for (; e2 < t2.length; e2++) if ("?" != t2[e2] && " " != t2[e2]) ;
|
|
46000
46201
|
else {
|
|
46001
|
-
const
|
|
46002
|
-
if (e2 > 5 && "xml" ===
|
|
46202
|
+
const n2 = t2.substr(i2, e2 - i2);
|
|
46203
|
+
if (e2 > 5 && "xml" === n2) return x("InvalidXml", "XML declaration allowed only at the start of the document.", b(t2, e2));
|
|
46003
46204
|
if ("?" == t2[e2] && ">" == t2[e2 + 1]) {
|
|
46004
46205
|
e2++;
|
|
46005
46206
|
break;
|
|
@@ -46015,9 +46216,9 @@ var require_fxp = __commonJS({
|
|
|
46015
46216
|
break;
|
|
46016
46217
|
}
|
|
46017
46218
|
} else if (t2.length > e2 + 8 && "D" === t2[e2 + 1] && "O" === t2[e2 + 2] && "C" === t2[e2 + 3] && "T" === t2[e2 + 4] && "Y" === t2[e2 + 5] && "P" === t2[e2 + 6] && "E" === t2[e2 + 7]) {
|
|
46018
|
-
let
|
|
46019
|
-
for (e2 += 8; e2 < t2.length; e2++) if ("<" === t2[e2])
|
|
46020
|
-
else if (">" === t2[e2] && (
|
|
46219
|
+
let i2 = 1;
|
|
46220
|
+
for (e2 += 8; e2 < t2.length; e2++) if ("<" === t2[e2]) i2++;
|
|
46221
|
+
else if (">" === t2[e2] && (i2--, 0 === i2)) break;
|
|
46021
46222
|
} else if (t2.length > e2 + 9 && "[" === t2[e2 + 1] && "C" === t2[e2 + 2] && "D" === t2[e2 + 3] && "A" === t2[e2 + 4] && "T" === t2[e2 + 5] && "A" === t2[e2 + 6] && "[" === t2[e2 + 7]) {
|
|
46022
46223
|
for (e2 += 8; e2 < t2.length; e2++) if ("]" === t2[e2] && "]" === t2[e2 + 1] && ">" === t2[e2 + 2]) {
|
|
46023
46224
|
e2 += 2;
|
|
@@ -46029,29 +46230,29 @@ var require_fxp = __commonJS({
|
|
|
46029
46230
|
__name(h, "h");
|
|
46030
46231
|
const d = '"', p = "'";
|
|
46031
46232
|
function f(t2, e2) {
|
|
46032
|
-
let
|
|
46233
|
+
let i2 = "", n2 = "", s2 = false;
|
|
46033
46234
|
for (; e2 < t2.length; e2++) {
|
|
46034
|
-
if (t2[e2] === d || t2[e2] === p) "" ===
|
|
46035
|
-
else if (">" === t2[e2] && "" ===
|
|
46036
|
-
|
|
46235
|
+
if (t2[e2] === d || t2[e2] === p) "" === n2 ? n2 = t2[e2] : n2 !== t2[e2] || (n2 = "");
|
|
46236
|
+
else if (">" === t2[e2] && "" === n2) {
|
|
46237
|
+
s2 = true;
|
|
46037
46238
|
break;
|
|
46038
46239
|
}
|
|
46039
|
-
|
|
46240
|
+
i2 += t2[e2];
|
|
46040
46241
|
}
|
|
46041
|
-
return "" ===
|
|
46242
|
+
return "" === n2 && { value: i2, index: e2, tagClosed: s2 };
|
|
46042
46243
|
}
|
|
46043
46244
|
__name(f, "f");
|
|
46044
46245
|
const c = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
|
|
46045
46246
|
function g(t2, e2) {
|
|
46046
|
-
const
|
|
46047
|
-
for (let t3 = 0; t3 <
|
|
46048
|
-
if (0 ===
|
|
46049
|
-
if (void 0 !==
|
|
46050
|
-
if (void 0 ===
|
|
46051
|
-
const
|
|
46052
|
-
if (!
|
|
46053
|
-
if (
|
|
46054
|
-
|
|
46247
|
+
const i2 = s(t2, c), n2 = {};
|
|
46248
|
+
for (let t3 = 0; t3 < i2.length; t3++) {
|
|
46249
|
+
if (0 === i2[t3][1].length) return x("InvalidAttr", "Attribute '" + i2[t3][2] + "' has no space in starting.", E(i2[t3]));
|
|
46250
|
+
if (void 0 !== i2[t3][3] && void 0 === i2[t3][4]) return x("InvalidAttr", "Attribute '" + i2[t3][2] + "' is without value.", E(i2[t3]));
|
|
46251
|
+
if (void 0 === i2[t3][3] && !e2.allowBooleanAttributes) return x("InvalidAttr", "boolean attribute '" + i2[t3][2] + "' is not allowed.", E(i2[t3]));
|
|
46252
|
+
const s2 = i2[t3][2];
|
|
46253
|
+
if (!N(s2)) return x("InvalidAttr", "Attribute '" + s2 + "' is an invalid name.", E(i2[t3]));
|
|
46254
|
+
if (n2.hasOwnProperty(s2)) return x("InvalidAttr", "Attribute '" + s2 + "' is repeated.", E(i2[t3]));
|
|
46255
|
+
n2[s2] = 1;
|
|
46055
46256
|
}
|
|
46056
46257
|
return true;
|
|
46057
46258
|
}
|
|
@@ -46059,34 +46260,34 @@ var require_fxp = __commonJS({
|
|
|
46059
46260
|
function m(t2, e2) {
|
|
46060
46261
|
if (";" === t2[++e2]) return -1;
|
|
46061
46262
|
if ("#" === t2[e2]) return (function(t3, e3) {
|
|
46062
|
-
let
|
|
46063
|
-
for ("x" === t3[e3] && (e3++,
|
|
46263
|
+
let i3 = /\d/;
|
|
46264
|
+
for ("x" === t3[e3] && (e3++, i3 = /[\da-fA-F]/); e3 < t3.length; e3++) {
|
|
46064
46265
|
if (";" === t3[e3]) return e3;
|
|
46065
|
-
if (!t3[e3].match(
|
|
46266
|
+
if (!t3[e3].match(i3)) break;
|
|
46066
46267
|
}
|
|
46067
46268
|
return -1;
|
|
46068
46269
|
})(t2, ++e2);
|
|
46069
|
-
let
|
|
46070
|
-
for (; e2 < t2.length; e2++,
|
|
46270
|
+
let i2 = 0;
|
|
46271
|
+
for (; e2 < t2.length; e2++, i2++) if (!(t2[e2].match(/\w/) && i2 < 20)) {
|
|
46071
46272
|
if (";" === t2[e2]) break;
|
|
46072
46273
|
return -1;
|
|
46073
46274
|
}
|
|
46074
46275
|
return e2;
|
|
46075
46276
|
}
|
|
46076
46277
|
__name(m, "m");
|
|
46077
|
-
function x(t2, e2,
|
|
46078
|
-
return { err: { code: t2, msg: e2, line:
|
|
46278
|
+
function x(t2, e2, i2) {
|
|
46279
|
+
return { err: { code: t2, msg: e2, line: i2.line || i2, col: i2.col } };
|
|
46079
46280
|
}
|
|
46080
46281
|
__name(x, "x");
|
|
46081
|
-
function
|
|
46082
|
-
return
|
|
46083
|
-
}
|
|
46084
|
-
__name(b, "b");
|
|
46085
|
-
function N(t2, e2) {
|
|
46086
|
-
const n2 = t2.substring(0, e2).split(/\r?\n/);
|
|
46087
|
-
return { line: n2.length, col: n2[n2.length - 1].length + 1 };
|
|
46282
|
+
function N(t2) {
|
|
46283
|
+
return r(t2);
|
|
46088
46284
|
}
|
|
46089
46285
|
__name(N, "N");
|
|
46286
|
+
function b(t2, e2) {
|
|
46287
|
+
const i2 = t2.substring(0, e2).split(/\r?\n/);
|
|
46288
|
+
return { line: i2.length, col: i2[i2.length - 1].length + 1 };
|
|
46289
|
+
}
|
|
46290
|
+
__name(b, "b");
|
|
46090
46291
|
function E(t2) {
|
|
46091
46292
|
return t2.startIndex + t2[1].length;
|
|
46092
46293
|
}
|
|
@@ -46095,7 +46296,7 @@ var require_fxp = __commonJS({
|
|
|
46095
46296
|
return e2;
|
|
46096
46297
|
}, "tagValueProcessor"), attributeValueProcessor: /* @__PURE__ */ __name(function(t2, e2) {
|
|
46097
46298
|
return e2;
|
|
46098
|
-
}, "attributeValueProcessor"), stopNodes: [], alwaysCreateTextNode: false, isArray: /* @__PURE__ */ __name(() => false, "isArray"), commentPropName: false, unpairedTags: [], processEntities: true, htmlEntities: false, ignoreDeclaration: false, ignorePiTags: false, transformTagName: false, transformAttributeName: false, updateTag: /* @__PURE__ */ __name(function(t2, e2,
|
|
46299
|
+
}, "attributeValueProcessor"), stopNodes: [], alwaysCreateTextNode: false, isArray: /* @__PURE__ */ __name(() => false, "isArray"), commentPropName: false, unpairedTags: [], processEntities: true, htmlEntities: false, ignoreDeclaration: false, ignorePiTags: false, transformTagName: false, transformAttributeName: false, updateTag: /* @__PURE__ */ __name(function(t2, e2, i2) {
|
|
46099
46300
|
return t2;
|
|
46100
46301
|
}, "updateTag"), captureMetaData: false };
|
|
46101
46302
|
let T;
|
|
@@ -46121,113 +46322,113 @@ var require_fxp = __commonJS({
|
|
|
46121
46322
|
this.suppressValidationErr = !t2;
|
|
46122
46323
|
}
|
|
46123
46324
|
readDocType(t2, e2) {
|
|
46124
|
-
const
|
|
46325
|
+
const i2 = {};
|
|
46125
46326
|
if ("O" !== t2[e2 + 3] || "C" !== t2[e2 + 4] || "T" !== t2[e2 + 5] || "Y" !== t2[e2 + 6] || "P" !== t2[e2 + 7] || "E" !== t2[e2 + 8]) throw new Error("Invalid Tag instead of DOCTYPE");
|
|
46126
46327
|
{
|
|
46127
46328
|
e2 += 9;
|
|
46128
|
-
let
|
|
46129
|
-
for (; e2 < t2.length; e2++) if ("<" !== t2[e2] ||
|
|
46130
|
-
if (
|
|
46131
|
-
} else "[" === t2[e2] ?
|
|
46329
|
+
let n2 = 1, s2 = false, r2 = false, o2 = "";
|
|
46330
|
+
for (; e2 < t2.length; e2++) if ("<" !== t2[e2] || r2) if (">" === t2[e2]) {
|
|
46331
|
+
if (r2 ? "-" === t2[e2 - 1] && "-" === t2[e2 - 2] && (r2 = false, n2--) : n2--, 0 === n2) break;
|
|
46332
|
+
} else "[" === t2[e2] ? s2 = true : o2 += t2[e2];
|
|
46132
46333
|
else {
|
|
46133
|
-
if (
|
|
46134
|
-
let
|
|
46135
|
-
e2 += 7, [
|
|
46136
|
-
} else if (
|
|
46334
|
+
if (s2 && P(t2, "!ENTITY", e2)) {
|
|
46335
|
+
let n3, s3;
|
|
46336
|
+
e2 += 7, [n3, s3, e2] = this.readEntityExp(t2, e2 + 1, this.suppressValidationErr), -1 === s3.indexOf("&") && (i2[n3] = { regx: RegExp(`&${n3};`, "g"), val: s3 });
|
|
46337
|
+
} else if (s2 && P(t2, "!ELEMENT", e2)) {
|
|
46137
46338
|
e2 += 8;
|
|
46138
|
-
const { index:
|
|
46139
|
-
e2 =
|
|
46140
|
-
} else if (
|
|
46141
|
-
else if (
|
|
46339
|
+
const { index: i3 } = this.readElementExp(t2, e2 + 1);
|
|
46340
|
+
e2 = i3;
|
|
46341
|
+
} else if (s2 && P(t2, "!ATTLIST", e2)) e2 += 8;
|
|
46342
|
+
else if (s2 && P(t2, "!NOTATION", e2)) {
|
|
46142
46343
|
e2 += 9;
|
|
46143
|
-
const { index:
|
|
46144
|
-
e2 =
|
|
46344
|
+
const { index: i3 } = this.readNotationExp(t2, e2 + 1, this.suppressValidationErr);
|
|
46345
|
+
e2 = i3;
|
|
46145
46346
|
} else {
|
|
46146
46347
|
if (!P(t2, "!--", e2)) throw new Error("Invalid DOCTYPE");
|
|
46147
|
-
|
|
46348
|
+
r2 = true;
|
|
46148
46349
|
}
|
|
46149
|
-
|
|
46350
|
+
n2++, o2 = "";
|
|
46150
46351
|
}
|
|
46151
|
-
if (0 !==
|
|
46352
|
+
if (0 !== n2) throw new Error("Unclosed DOCTYPE");
|
|
46152
46353
|
}
|
|
46153
|
-
return { entities:
|
|
46354
|
+
return { entities: i2, i: e2 };
|
|
46154
46355
|
}
|
|
46155
46356
|
readEntityExp(t2, e2) {
|
|
46156
46357
|
e2 = I(t2, e2);
|
|
46157
|
-
let
|
|
46158
|
-
for (; e2 < t2.length && !/\s/.test(t2[e2]) && '"' !== t2[e2] && "'" !== t2[e2]; )
|
|
46159
|
-
if (O(
|
|
46358
|
+
let i2 = "";
|
|
46359
|
+
for (; e2 < t2.length && !/\s/.test(t2[e2]) && '"' !== t2[e2] && "'" !== t2[e2]; ) i2 += t2[e2], e2++;
|
|
46360
|
+
if (O(i2), e2 = I(t2, e2), !this.suppressValidationErr) {
|
|
46160
46361
|
if ("SYSTEM" === t2.substring(e2, e2 + 6).toUpperCase()) throw new Error("External entities are not supported");
|
|
46161
46362
|
if ("%" === t2[e2]) throw new Error("Parameter entities are not supported");
|
|
46162
46363
|
}
|
|
46163
|
-
let
|
|
46164
|
-
return [e2,
|
|
46364
|
+
let n2 = "";
|
|
46365
|
+
return [e2, n2] = this.readIdentifierVal(t2, e2, "entity"), [i2, n2, --e2];
|
|
46165
46366
|
}
|
|
46166
46367
|
readNotationExp(t2, e2) {
|
|
46167
46368
|
e2 = I(t2, e2);
|
|
46168
|
-
let n2 = "";
|
|
46169
|
-
for (; e2 < t2.length && !/\s/.test(t2[e2]); ) n2 += t2[e2], e2++;
|
|
46170
|
-
!this.suppressValidationErr && O(n2), e2 = I(t2, e2);
|
|
46171
|
-
const i2 = t2.substring(e2, e2 + 6).toUpperCase();
|
|
46172
|
-
if (!this.suppressValidationErr && "SYSTEM" !== i2 && "PUBLIC" !== i2) throw new Error(`Expected SYSTEM or PUBLIC, found "${i2}"`);
|
|
46173
|
-
e2 += i2.length, e2 = I(t2, e2);
|
|
46174
|
-
let r2 = null, s2 = null;
|
|
46175
|
-
if ("PUBLIC" === i2) [e2, r2] = this.readIdentifierVal(t2, e2, "publicIdentifier"), '"' !== t2[e2 = I(t2, e2)] && "'" !== t2[e2] || ([e2, s2] = this.readIdentifierVal(t2, e2, "systemIdentifier"));
|
|
46176
|
-
else if ("SYSTEM" === i2 && ([e2, s2] = this.readIdentifierVal(t2, e2, "systemIdentifier"), !this.suppressValidationErr && !s2)) throw new Error("Missing mandatory system identifier for SYSTEM notation");
|
|
46177
|
-
return { notationName: n2, publicIdentifier: r2, systemIdentifier: s2, index: --e2 };
|
|
46178
|
-
}
|
|
46179
|
-
readIdentifierVal(t2, e2, n2) {
|
|
46180
46369
|
let i2 = "";
|
|
46181
|
-
|
|
46182
|
-
|
|
46183
|
-
|
|
46184
|
-
if (
|
|
46185
|
-
|
|
46370
|
+
for (; e2 < t2.length && !/\s/.test(t2[e2]); ) i2 += t2[e2], e2++;
|
|
46371
|
+
!this.suppressValidationErr && O(i2), e2 = I(t2, e2);
|
|
46372
|
+
const n2 = t2.substring(e2, e2 + 6).toUpperCase();
|
|
46373
|
+
if (!this.suppressValidationErr && "SYSTEM" !== n2 && "PUBLIC" !== n2) throw new Error(`Expected SYSTEM or PUBLIC, found "${n2}"`);
|
|
46374
|
+
e2 += n2.length, e2 = I(t2, e2);
|
|
46375
|
+
let s2 = null, r2 = null;
|
|
46376
|
+
if ("PUBLIC" === n2) [e2, s2] = this.readIdentifierVal(t2, e2, "publicIdentifier"), '"' !== t2[e2 = I(t2, e2)] && "'" !== t2[e2] || ([e2, r2] = this.readIdentifierVal(t2, e2, "systemIdentifier"));
|
|
46377
|
+
else if ("SYSTEM" === n2 && ([e2, r2] = this.readIdentifierVal(t2, e2, "systemIdentifier"), !this.suppressValidationErr && !r2)) throw new Error("Missing mandatory system identifier for SYSTEM notation");
|
|
46378
|
+
return { notationName: i2, publicIdentifier: s2, systemIdentifier: r2, index: --e2 };
|
|
46379
|
+
}
|
|
46380
|
+
readIdentifierVal(t2, e2, i2) {
|
|
46381
|
+
let n2 = "";
|
|
46382
|
+
const s2 = t2[e2];
|
|
46383
|
+
if ('"' !== s2 && "'" !== s2) throw new Error(`Expected quoted string, found "${s2}"`);
|
|
46384
|
+
for (e2++; e2 < t2.length && t2[e2] !== s2; ) n2 += t2[e2], e2++;
|
|
46385
|
+
if (t2[e2] !== s2) throw new Error(`Unterminated ${i2} value`);
|
|
46386
|
+
return [++e2, n2];
|
|
46186
46387
|
}
|
|
46187
46388
|
readElementExp(t2, e2) {
|
|
46188
46389
|
e2 = I(t2, e2);
|
|
46189
|
-
let n2 = "";
|
|
46190
|
-
for (; e2 < t2.length && !/\s/.test(t2[e2]); ) n2 += t2[e2], e2++;
|
|
46191
|
-
if (!this.suppressValidationErr && !s(n2)) throw new Error(`Invalid element name: "${n2}"`);
|
|
46192
46390
|
let i2 = "";
|
|
46391
|
+
for (; e2 < t2.length && !/\s/.test(t2[e2]); ) i2 += t2[e2], e2++;
|
|
46392
|
+
if (!this.suppressValidationErr && !r(i2)) throw new Error(`Invalid element name: "${i2}"`);
|
|
46393
|
+
let n2 = "";
|
|
46193
46394
|
if ("E" === t2[e2 = I(t2, e2)] && P(t2, "MPTY", e2)) e2 += 4;
|
|
46194
46395
|
else if ("A" === t2[e2] && P(t2, "NY", e2)) e2 += 2;
|
|
46195
46396
|
else if ("(" === t2[e2]) {
|
|
46196
|
-
for (e2++; e2 < t2.length && ")" !== t2[e2]; )
|
|
46397
|
+
for (e2++; e2 < t2.length && ")" !== t2[e2]; ) n2 += t2[e2], e2++;
|
|
46197
46398
|
if (")" !== t2[e2]) throw new Error("Unterminated content model");
|
|
46198
46399
|
} else if (!this.suppressValidationErr) throw new Error(`Invalid Element Expression, found "${t2[e2]}"`);
|
|
46199
|
-
return { elementName:
|
|
46400
|
+
return { elementName: i2, contentModel: n2.trim(), index: e2 };
|
|
46200
46401
|
}
|
|
46201
46402
|
readAttlistExp(t2, e2) {
|
|
46202
46403
|
e2 = I(t2, e2);
|
|
46203
|
-
let n2 = "";
|
|
46204
|
-
for (; e2 < t2.length && !/\s/.test(t2[e2]); ) n2 += t2[e2], e2++;
|
|
46205
|
-
O(n2), e2 = I(t2, e2);
|
|
46206
46404
|
let i2 = "";
|
|
46207
46405
|
for (; e2 < t2.length && !/\s/.test(t2[e2]); ) i2 += t2[e2], e2++;
|
|
46208
|
-
|
|
46406
|
+
O(i2), e2 = I(t2, e2);
|
|
46407
|
+
let n2 = "";
|
|
46408
|
+
for (; e2 < t2.length && !/\s/.test(t2[e2]); ) n2 += t2[e2], e2++;
|
|
46409
|
+
if (!O(n2)) throw new Error(`Invalid attribute name: "${n2}"`);
|
|
46209
46410
|
e2 = I(t2, e2);
|
|
46210
|
-
let
|
|
46411
|
+
let s2 = "";
|
|
46211
46412
|
if ("NOTATION" === t2.substring(e2, e2 + 8).toUpperCase()) {
|
|
46212
|
-
if (
|
|
46413
|
+
if (s2 = "NOTATION", "(" !== t2[e2 = I(t2, e2 += 8)]) throw new Error(`Expected '(', found "${t2[e2]}"`);
|
|
46213
46414
|
e2++;
|
|
46214
|
-
let
|
|
46415
|
+
let i3 = [];
|
|
46215
46416
|
for (; e2 < t2.length && ")" !== t2[e2]; ) {
|
|
46216
|
-
let
|
|
46217
|
-
for (; e2 < t2.length && "|" !== t2[e2] && ")" !== t2[e2]; )
|
|
46218
|
-
if (
|
|
46219
|
-
|
|
46417
|
+
let n3 = "";
|
|
46418
|
+
for (; e2 < t2.length && "|" !== t2[e2] && ")" !== t2[e2]; ) n3 += t2[e2], e2++;
|
|
46419
|
+
if (n3 = n3.trim(), !O(n3)) throw new Error(`Invalid notation name: "${n3}"`);
|
|
46420
|
+
i3.push(n3), "|" === t2[e2] && (e2++, e2 = I(t2, e2));
|
|
46220
46421
|
}
|
|
46221
46422
|
if (")" !== t2[e2]) throw new Error("Unterminated list of notations");
|
|
46222
|
-
e2++,
|
|
46423
|
+
e2++, s2 += " (" + i3.join("|") + ")";
|
|
46223
46424
|
} else {
|
|
46224
|
-
for (; e2 < t2.length && !/\s/.test(t2[e2]); )
|
|
46225
|
-
const
|
|
46226
|
-
if (!this.suppressValidationErr && !
|
|
46425
|
+
for (; e2 < t2.length && !/\s/.test(t2[e2]); ) s2 += t2[e2], e2++;
|
|
46426
|
+
const i3 = ["CDATA", "ID", "IDREF", "IDREFS", "ENTITY", "ENTITIES", "NMTOKEN", "NMTOKENS"];
|
|
46427
|
+
if (!this.suppressValidationErr && !i3.includes(s2.toUpperCase())) throw new Error(`Invalid attribute type: "${s2}"`);
|
|
46227
46428
|
}
|
|
46228
46429
|
e2 = I(t2, e2);
|
|
46229
|
-
let
|
|
46230
|
-
return "#REQUIRED" === t2.substring(e2, e2 + 8).toUpperCase() ? (
|
|
46430
|
+
let r2 = "";
|
|
46431
|
+
return "#REQUIRED" === t2.substring(e2, e2 + 8).toUpperCase() ? (r2 = "#REQUIRED", e2 += 8) : "#IMPLIED" === t2.substring(e2, e2 + 7).toUpperCase() ? (r2 = "#IMPLIED", e2 += 7) : [e2, r2] = this.readIdentifierVal(t2, e2, "ATTLIST"), { elementName: i2, attributeName: n2, attributeType: s2, defaultValue: r2, index: e2 };
|
|
46231
46432
|
}
|
|
46232
46433
|
};
|
|
46233
46434
|
__name(_w, "w");
|
|
@@ -46236,13 +46437,13 @@ var require_fxp = __commonJS({
|
|
|
46236
46437
|
for (; e2 < t2.length && /\s/.test(t2[e2]); ) e2++;
|
|
46237
46438
|
return e2;
|
|
46238
46439
|
}, "I");
|
|
46239
|
-
function P(t2, e2,
|
|
46240
|
-
for (let
|
|
46440
|
+
function P(t2, e2, i2) {
|
|
46441
|
+
for (let n2 = 0; n2 < e2.length; n2++) if (e2[n2] !== t2[i2 + n2 + 1]) return false;
|
|
46241
46442
|
return true;
|
|
46242
46443
|
}
|
|
46243
46444
|
__name(P, "P");
|
|
46244
46445
|
function O(t2) {
|
|
46245
|
-
if (
|
|
46446
|
+
if (r(t2)) return t2;
|
|
46246
46447
|
throw new Error(`Invalid entity name ${t2}`);
|
|
46247
46448
|
}
|
|
46248
46449
|
__name(O, "O");
|
|
@@ -46250,322 +46451,323 @@ var require_fxp = __commonJS({
|
|
|
46250
46451
|
const V = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
|
|
46251
46452
|
function $(t2) {
|
|
46252
46453
|
return "function" == typeof t2 ? t2 : Array.isArray(t2) ? (e2) => {
|
|
46253
|
-
for (const
|
|
46254
|
-
if ("string" == typeof
|
|
46255
|
-
if (
|
|
46454
|
+
for (const i2 of t2) {
|
|
46455
|
+
if ("string" == typeof i2 && e2 === i2) return true;
|
|
46456
|
+
if (i2 instanceof RegExp && i2.test(e2)) return true;
|
|
46256
46457
|
}
|
|
46257
46458
|
} : () => false;
|
|
46258
46459
|
}
|
|
46259
46460
|
__name($, "$");
|
|
46260
46461
|
const _D = class _D {
|
|
46261
46462
|
constructor(t2) {
|
|
46262
|
-
this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: /* @__PURE__ */ __name((t3, e2) => String.fromCodePoint(Number.parseInt(e2, 10)), "val") }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: /* @__PURE__ */ __name((t3, e2) => String.fromCodePoint(Number.parseInt(e2, 16)), "val") } }, this.addExternalEntities = j, this.parseXml = L, this.parseTextData = M, this.resolveNameSpace = F, this.buildAttributesMap = k, this.isItStopNode = Y, this.replaceEntitiesValue = B, this.readStopNodeData =
|
|
46463
|
+
if (this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: /* @__PURE__ */ __name((t3, e2) => String.fromCodePoint(Number.parseInt(e2, 10)), "val") }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: /* @__PURE__ */ __name((t3, e2) => String.fromCodePoint(Number.parseInt(e2, 16)), "val") } }, this.addExternalEntities = j, this.parseXml = L, this.parseTextData = M, this.resolveNameSpace = F, this.buildAttributesMap = k, this.isItStopNode = Y, this.replaceEntitiesValue = B, this.readStopNodeData = W, this.saveTextToParentTag = R, this.addChild = U, this.ignoreAttributesFn = $(this.options.ignoreAttributes), this.options.stopNodes && this.options.stopNodes.length > 0) {
|
|
46464
|
+
this.stopNodesExact = /* @__PURE__ */ new Set(), this.stopNodesWildcard = /* @__PURE__ */ new Set();
|
|
46465
|
+
for (let t3 = 0; t3 < this.options.stopNodes.length; t3++) {
|
|
46466
|
+
const e2 = this.options.stopNodes[t3];
|
|
46467
|
+
"string" == typeof e2 && (e2.startsWith("*.") ? this.stopNodesWildcard.add(e2.substring(2)) : this.stopNodesExact.add(e2));
|
|
46468
|
+
}
|
|
46469
|
+
}
|
|
46263
46470
|
}
|
|
46264
46471
|
};
|
|
46265
46472
|
__name(_D, "D");
|
|
46266
46473
|
let D = _D;
|
|
46267
46474
|
function j(t2) {
|
|
46268
46475
|
const e2 = Object.keys(t2);
|
|
46269
|
-
for (let
|
|
46270
|
-
const
|
|
46271
|
-
this.lastEntities[
|
|
46476
|
+
for (let i2 = 0; i2 < e2.length; i2++) {
|
|
46477
|
+
const n2 = e2[i2];
|
|
46478
|
+
this.lastEntities[n2] = { regex: new RegExp("&" + n2 + ";", "g"), val: t2[n2] };
|
|
46272
46479
|
}
|
|
46273
46480
|
}
|
|
46274
46481
|
__name(j, "j");
|
|
46275
|
-
function M(t2, e2, n2,
|
|
46276
|
-
if (void 0 !== t2 && (this.options.trimValues && !
|
|
46482
|
+
function M(t2, e2, i2, n2, s2, r2, o2) {
|
|
46483
|
+
if (void 0 !== t2 && (this.options.trimValues && !n2 && (t2 = t2.trim()), t2.length > 0)) {
|
|
46277
46484
|
o2 || (t2 = this.replaceEntitiesValue(t2));
|
|
46278
|
-
const
|
|
46279
|
-
return null ==
|
|
46485
|
+
const n3 = this.options.tagValueProcessor(e2, t2, i2, s2, r2);
|
|
46486
|
+
return null == n3 ? t2 : typeof n3 != typeof t2 || n3 !== t2 ? n3 : this.options.trimValues || t2.trim() === t2 ? q(t2, this.options.parseTagValue, this.options.numberParseOptions) : t2;
|
|
46280
46487
|
}
|
|
46281
46488
|
}
|
|
46282
46489
|
__name(M, "M");
|
|
46283
46490
|
function F(t2) {
|
|
46284
46491
|
if (this.options.removeNSPrefix) {
|
|
46285
|
-
const e2 = t2.split(":"),
|
|
46492
|
+
const e2 = t2.split(":"), i2 = "/" === t2.charAt(0) ? "/" : "";
|
|
46286
46493
|
if ("xmlns" === e2[0]) return "";
|
|
46287
|
-
2 === e2.length && (t2 =
|
|
46494
|
+
2 === e2.length && (t2 = i2 + e2[1]);
|
|
46288
46495
|
}
|
|
46289
46496
|
return t2;
|
|
46290
46497
|
}
|
|
46291
46498
|
__name(F, "F");
|
|
46292
46499
|
const _ = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
|
|
46293
|
-
function k(t2, e2,
|
|
46500
|
+
function k(t2, e2, i2) {
|
|
46294
46501
|
if (true !== this.options.ignoreAttributes && "string" == typeof t2) {
|
|
46295
|
-
const
|
|
46296
|
-
for (let t3 = 0; t3 <
|
|
46297
|
-
const
|
|
46298
|
-
if (this.ignoreAttributesFn(
|
|
46299
|
-
let
|
|
46300
|
-
if (
|
|
46301
|
-
this.options.trimValues && (
|
|
46302
|
-
const t4 = this.options.attributeValueProcessor(
|
|
46303
|
-
|
|
46304
|
-
} else this.options.allowBooleanAttributes && (
|
|
46305
|
-
}
|
|
46306
|
-
if (!Object.keys(
|
|
46502
|
+
const i3 = s(t2, _), n2 = i3.length, r2 = {};
|
|
46503
|
+
for (let t3 = 0; t3 < n2; t3++) {
|
|
46504
|
+
const n3 = this.resolveNameSpace(i3[t3][1]);
|
|
46505
|
+
if (this.ignoreAttributesFn(n3, e2)) continue;
|
|
46506
|
+
let s2 = i3[t3][4], o2 = this.options.attributeNamePrefix + n3;
|
|
46507
|
+
if (n3.length) if (this.options.transformAttributeName && (o2 = this.options.transformAttributeName(o2)), "__proto__" === o2 && (o2 = "#__proto__"), void 0 !== s2) {
|
|
46508
|
+
this.options.trimValues && (s2 = s2.trim()), s2 = this.replaceEntitiesValue(s2);
|
|
46509
|
+
const t4 = this.options.attributeValueProcessor(n3, s2, e2);
|
|
46510
|
+
r2[o2] = null == t4 ? s2 : typeof t4 != typeof s2 || t4 !== s2 ? t4 : q(s2, this.options.parseAttributeValue, this.options.numberParseOptions);
|
|
46511
|
+
} else this.options.allowBooleanAttributes && (r2[o2] = true);
|
|
46512
|
+
}
|
|
46513
|
+
if (!Object.keys(r2).length) return;
|
|
46307
46514
|
if (this.options.attributesGroupName) {
|
|
46308
46515
|
const t3 = {};
|
|
46309
|
-
return t3[this.options.attributesGroupName] =
|
|
46516
|
+
return t3[this.options.attributesGroupName] = r2, t3;
|
|
46310
46517
|
}
|
|
46311
|
-
return
|
|
46518
|
+
return r2;
|
|
46312
46519
|
}
|
|
46313
46520
|
}
|
|
46314
46521
|
__name(k, "k");
|
|
46315
46522
|
const L = /* @__PURE__ */ __name(function(t2) {
|
|
46316
46523
|
t2 = t2.replace(/\r\n?/g, "\n");
|
|
46317
46524
|
const e2 = new y("!xml");
|
|
46318
|
-
let
|
|
46319
|
-
const
|
|
46525
|
+
let i2 = e2, n2 = "", s2 = "";
|
|
46526
|
+
const r2 = new w(this.options.processEntities);
|
|
46320
46527
|
for (let o2 = 0; o2 < t2.length; o2++) if ("<" === t2[o2]) if ("/" === t2[o2 + 1]) {
|
|
46321
46528
|
const e3 = G(t2, ">", o2, "Closing Tag is not closed.");
|
|
46322
|
-
let
|
|
46529
|
+
let r3 = t2.substring(o2 + 2, e3).trim();
|
|
46323
46530
|
if (this.options.removeNSPrefix) {
|
|
46324
|
-
const t3 =
|
|
46325
|
-
-1 !== t3 && (
|
|
46531
|
+
const t3 = r3.indexOf(":");
|
|
46532
|
+
-1 !== t3 && (r3 = r3.substr(t3 + 1));
|
|
46326
46533
|
}
|
|
46327
|
-
this.options.transformTagName && (
|
|
46328
|
-
const a2 =
|
|
46329
|
-
if (
|
|
46534
|
+
this.options.transformTagName && (r3 = this.options.transformTagName(r3)), i2 && (n2 = this.saveTextToParentTag(n2, i2, s2));
|
|
46535
|
+
const a2 = s2.substring(s2.lastIndexOf(".") + 1);
|
|
46536
|
+
if (r3 && -1 !== this.options.unpairedTags.indexOf(r3)) throw new Error(`Unpaired tag can not be used as closing tag: </${r3}>`);
|
|
46330
46537
|
let l2 = 0;
|
|
46331
|
-
a2 && -1 !== this.options.unpairedTags.indexOf(a2) ? (l2 =
|
|
46538
|
+
a2 && -1 !== this.options.unpairedTags.indexOf(a2) ? (l2 = s2.lastIndexOf(".", s2.lastIndexOf(".") - 1), this.tagsNodeStack.pop()) : l2 = s2.lastIndexOf("."), s2 = s2.substring(0, l2), i2 = this.tagsNodeStack.pop(), n2 = "", o2 = e3;
|
|
46332
46539
|
} else if ("?" === t2[o2 + 1]) {
|
|
46333
46540
|
let e3 = X(t2, o2, false, "?>");
|
|
46334
46541
|
if (!e3) throw new Error("Pi Tag is not closed.");
|
|
46335
|
-
if (
|
|
46542
|
+
if (n2 = this.saveTextToParentTag(n2, i2, s2), this.options.ignoreDeclaration && "?xml" === e3.tagName || this.options.ignorePiTags) ;
|
|
46336
46543
|
else {
|
|
46337
46544
|
const t3 = new y(e3.tagName);
|
|
46338
|
-
t3.add(this.options.textNodeName, ""), e3.tagName !== e3.tagExp && e3.attrExpPresent && (t3[":@"] = this.buildAttributesMap(e3.tagExp,
|
|
46545
|
+
t3.add(this.options.textNodeName, ""), e3.tagName !== e3.tagExp && e3.attrExpPresent && (t3[":@"] = this.buildAttributesMap(e3.tagExp, s2, e3.tagName)), this.addChild(i2, t3, s2, o2);
|
|
46339
46546
|
}
|
|
46340
46547
|
o2 = e3.closeIndex + 1;
|
|
46341
46548
|
} else if ("!--" === t2.substr(o2 + 1, 3)) {
|
|
46342
46549
|
const e3 = G(t2, "-->", o2 + 4, "Comment is not closed.");
|
|
46343
46550
|
if (this.options.commentPropName) {
|
|
46344
|
-
const
|
|
46345
|
-
|
|
46551
|
+
const r3 = t2.substring(o2 + 4, e3 - 2);
|
|
46552
|
+
n2 = this.saveTextToParentTag(n2, i2, s2), i2.add(this.options.commentPropName, [{ [this.options.textNodeName]: r3 }]);
|
|
46346
46553
|
}
|
|
46347
46554
|
o2 = e3;
|
|
46348
46555
|
} else if ("!D" === t2.substr(o2 + 1, 2)) {
|
|
46349
|
-
const e3 =
|
|
46556
|
+
const e3 = r2.readDocType(t2, o2);
|
|
46350
46557
|
this.docTypeEntities = e3.entities, o2 = e3.i;
|
|
46351
46558
|
} else if ("![" === t2.substr(o2 + 1, 2)) {
|
|
46352
|
-
const e3 = G(t2, "]]>", o2, "CDATA is not closed.") - 2,
|
|
46353
|
-
|
|
46354
|
-
let a2 = this.parseTextData(
|
|
46355
|
-
null == a2 && (a2 = ""), this.options.cdataPropName ?
|
|
46559
|
+
const e3 = G(t2, "]]>", o2, "CDATA is not closed.") - 2, r3 = t2.substring(o2 + 9, e3);
|
|
46560
|
+
n2 = this.saveTextToParentTag(n2, i2, s2);
|
|
46561
|
+
let a2 = this.parseTextData(r3, i2.tagname, s2, true, false, true, true);
|
|
46562
|
+
null == a2 && (a2 = ""), this.options.cdataPropName ? i2.add(this.options.cdataPropName, [{ [this.options.textNodeName]: r3 }]) : i2.add(this.options.textNodeName, a2), o2 = e3 + 2;
|
|
46356
46563
|
} else {
|
|
46357
|
-
let
|
|
46358
|
-
const l2 =
|
|
46359
|
-
let u2 =
|
|
46360
|
-
this.options.transformTagName && (a2 = this.options.transformTagName(a2)),
|
|
46361
|
-
const p2 =
|
|
46362
|
-
p2 && -1 !== this.options.unpairedTags.indexOf(p2.tagname) && (
|
|
46564
|
+
let r3 = X(t2, o2, this.options.removeNSPrefix), a2 = r3.tagName;
|
|
46565
|
+
const l2 = r3.rawTagName;
|
|
46566
|
+
let u2 = r3.tagExp, h2 = r3.attrExpPresent, d2 = r3.closeIndex;
|
|
46567
|
+
this.options.transformTagName && (a2 = this.options.transformTagName(a2)), i2 && n2 && "!xml" !== i2.tagname && (n2 = this.saveTextToParentTag(n2, i2, s2, false));
|
|
46568
|
+
const p2 = i2;
|
|
46569
|
+
p2 && -1 !== this.options.unpairedTags.indexOf(p2.tagname) && (i2 = this.tagsNodeStack.pop(), s2 = s2.substring(0, s2.lastIndexOf("."))), a2 !== e2.tagname && (s2 += s2 ? "." + a2 : a2);
|
|
46363
46570
|
const f2 = o2;
|
|
46364
|
-
if (this.isItStopNode(this.
|
|
46571
|
+
if (this.isItStopNode(this.stopNodesExact, this.stopNodesWildcard, s2, a2)) {
|
|
46365
46572
|
let e3 = "";
|
|
46366
|
-
if (u2.length > 0 && u2.lastIndexOf("/") === u2.length - 1) "/" === a2[a2.length - 1] ? (a2 = a2.substr(0, a2.length - 1),
|
|
46367
|
-
else if (-1 !== this.options.unpairedTags.indexOf(a2)) o2 =
|
|
46573
|
+
if (u2.length > 0 && u2.lastIndexOf("/") === u2.length - 1) "/" === a2[a2.length - 1] ? (a2 = a2.substr(0, a2.length - 1), s2 = s2.substr(0, s2.length - 1), u2 = a2) : u2 = u2.substr(0, u2.length - 1), o2 = r3.closeIndex;
|
|
46574
|
+
else if (-1 !== this.options.unpairedTags.indexOf(a2)) o2 = r3.closeIndex;
|
|
46368
46575
|
else {
|
|
46369
|
-
const
|
|
46370
|
-
if (!
|
|
46371
|
-
o2 =
|
|
46576
|
+
const i3 = this.readStopNodeData(t2, l2, d2 + 1);
|
|
46577
|
+
if (!i3) throw new Error(`Unexpected end of ${l2}`);
|
|
46578
|
+
o2 = i3.i, e3 = i3.tagContent;
|
|
46372
46579
|
}
|
|
46373
|
-
const
|
|
46374
|
-
a2 !== u2 && h2 && (
|
|
46580
|
+
const n3 = new y(a2);
|
|
46581
|
+
a2 !== u2 && h2 && (n3[":@"] = this.buildAttributesMap(u2, s2, a2)), e3 && (e3 = this.parseTextData(e3, a2, s2, true, h2, true, true)), s2 = s2.substr(0, s2.lastIndexOf(".")), n3.add(this.options.textNodeName, e3), this.addChild(i2, n3, s2, f2);
|
|
46375
46582
|
} else {
|
|
46376
46583
|
if (u2.length > 0 && u2.lastIndexOf("/") === u2.length - 1) {
|
|
46377
|
-
"/" === a2[a2.length - 1] ? (a2 = a2.substr(0, a2.length - 1),
|
|
46584
|
+
"/" === a2[a2.length - 1] ? (a2 = a2.substr(0, a2.length - 1), s2 = s2.substr(0, s2.length - 1), u2 = a2) : u2 = u2.substr(0, u2.length - 1), this.options.transformTagName && (a2 = this.options.transformTagName(a2));
|
|
46378
46585
|
const t3 = new y(a2);
|
|
46379
|
-
a2 !== u2 && h2 && (t3[":@"] = this.buildAttributesMap(u2,
|
|
46586
|
+
a2 !== u2 && h2 && (t3[":@"] = this.buildAttributesMap(u2, s2, a2)), this.addChild(i2, t3, s2, f2), s2 = s2.substr(0, s2.lastIndexOf("."));
|
|
46380
46587
|
} else {
|
|
46381
46588
|
const t3 = new y(a2);
|
|
46382
|
-
this.tagsNodeStack.push(
|
|
46589
|
+
this.tagsNodeStack.push(i2), a2 !== u2 && h2 && (t3[":@"] = this.buildAttributesMap(u2, s2, a2)), this.addChild(i2, t3, s2, f2), i2 = t3;
|
|
46383
46590
|
}
|
|
46384
|
-
|
|
46591
|
+
n2 = "", o2 = d2;
|
|
46385
46592
|
}
|
|
46386
46593
|
}
|
|
46387
|
-
else
|
|
46594
|
+
else n2 += t2[o2];
|
|
46388
46595
|
return e2.child;
|
|
46389
46596
|
}, "L");
|
|
46390
|
-
function U(t2, e2,
|
|
46391
|
-
this.options.captureMetaData || (
|
|
46392
|
-
const
|
|
46393
|
-
false ===
|
|
46597
|
+
function U(t2, e2, i2, n2) {
|
|
46598
|
+
this.options.captureMetaData || (n2 = void 0);
|
|
46599
|
+
const s2 = this.options.updateTag(e2.tagname, i2, e2[":@"]);
|
|
46600
|
+
false === s2 || ("string" == typeof s2 ? (e2.tagname = s2, t2.addChild(e2, n2)) : t2.addChild(e2, n2));
|
|
46394
46601
|
}
|
|
46395
46602
|
__name(U, "U");
|
|
46396
46603
|
const B = /* @__PURE__ */ __name(function(t2) {
|
|
46397
46604
|
if (this.options.processEntities) {
|
|
46398
46605
|
for (let e2 in this.docTypeEntities) {
|
|
46399
|
-
const
|
|
46400
|
-
t2 = t2.replace(
|
|
46606
|
+
const i2 = this.docTypeEntities[e2];
|
|
46607
|
+
t2 = t2.replace(i2.regx, i2.val);
|
|
46401
46608
|
}
|
|
46402
46609
|
for (let e2 in this.lastEntities) {
|
|
46403
|
-
const
|
|
46404
|
-
t2 = t2.replace(
|
|
46610
|
+
const i2 = this.lastEntities[e2];
|
|
46611
|
+
t2 = t2.replace(i2.regex, i2.val);
|
|
46405
46612
|
}
|
|
46406
46613
|
if (this.options.htmlEntities) for (let e2 in this.htmlEntities) {
|
|
46407
|
-
const
|
|
46408
|
-
t2 = t2.replace(
|
|
46614
|
+
const i2 = this.htmlEntities[e2];
|
|
46615
|
+
t2 = t2.replace(i2.regex, i2.val);
|
|
46409
46616
|
}
|
|
46410
46617
|
t2 = t2.replace(this.ampEntity.regex, this.ampEntity.val);
|
|
46411
46618
|
}
|
|
46412
46619
|
return t2;
|
|
46413
46620
|
}, "B");
|
|
46414
|
-
function R(t2, e2,
|
|
46415
|
-
return t2 && (void 0 ===
|
|
46621
|
+
function R(t2, e2, i2, n2) {
|
|
46622
|
+
return t2 && (void 0 === n2 && (n2 = 0 === e2.child.length), void 0 !== (t2 = this.parseTextData(t2, e2.tagname, i2, false, !!e2[":@"] && 0 !== Object.keys(e2[":@"]).length, n2)) && "" !== t2 && e2.add(this.options.textNodeName, t2), t2 = ""), t2;
|
|
46416
46623
|
}
|
|
46417
46624
|
__name(R, "R");
|
|
46418
|
-
function Y(t2, e2, n2) {
|
|
46419
|
-
|
|
46420
|
-
for (const n3 in t2) {
|
|
46421
|
-
const r2 = t2[n3];
|
|
46422
|
-
if (i2 === r2 || e2 === r2) return true;
|
|
46423
|
-
}
|
|
46424
|
-
return false;
|
|
46625
|
+
function Y(t2, e2, i2, n2) {
|
|
46626
|
+
return !(!e2 || !e2.has(n2)) || !(!t2 || !t2.has(i2));
|
|
46425
46627
|
}
|
|
46426
46628
|
__name(Y, "Y");
|
|
46427
|
-
function G(t2, e2,
|
|
46428
|
-
const
|
|
46429
|
-
if (-1 ===
|
|
46430
|
-
return
|
|
46629
|
+
function G(t2, e2, i2, n2) {
|
|
46630
|
+
const s2 = t2.indexOf(e2, i2);
|
|
46631
|
+
if (-1 === s2) throw new Error(n2);
|
|
46632
|
+
return s2 + e2.length - 1;
|
|
46431
46633
|
}
|
|
46432
46634
|
__name(G, "G");
|
|
46433
|
-
function X(t2, e2,
|
|
46434
|
-
const
|
|
46435
|
-
let
|
|
46436
|
-
for (let
|
|
46437
|
-
let e4 = t3[
|
|
46438
|
-
if (
|
|
46439
|
-
else if ('"' === e4 || "'" === e4)
|
|
46440
|
-
else if (e4 ===
|
|
46441
|
-
if (!
|
|
46442
|
-
if (t3[
|
|
46635
|
+
function X(t2, e2, i2, n2 = ">") {
|
|
46636
|
+
const s2 = (function(t3, e3, i3 = ">") {
|
|
46637
|
+
let n3, s3 = "";
|
|
46638
|
+
for (let r3 = e3; r3 < t3.length; r3++) {
|
|
46639
|
+
let e4 = t3[r3];
|
|
46640
|
+
if (n3) e4 === n3 && (n3 = "");
|
|
46641
|
+
else if ('"' === e4 || "'" === e4) n3 = e4;
|
|
46642
|
+
else if (e4 === i3[0]) {
|
|
46643
|
+
if (!i3[1]) return { data: s3, index: r3 };
|
|
46644
|
+
if (t3[r3 + 1] === i3[1]) return { data: s3, index: r3 };
|
|
46443
46645
|
} else " " === e4 && (e4 = " ");
|
|
46444
|
-
|
|
46445
|
-
}
|
|
46446
|
-
})(t2, e2 + 1,
|
|
46447
|
-
if (!
|
|
46448
|
-
let
|
|
46449
|
-
const o2 =
|
|
46450
|
-
let l2 =
|
|
46451
|
-
-1 !== a2 && (l2 =
|
|
46646
|
+
s3 += e4;
|
|
46647
|
+
}
|
|
46648
|
+
})(t2, e2 + 1, n2);
|
|
46649
|
+
if (!s2) return;
|
|
46650
|
+
let r2 = s2.data;
|
|
46651
|
+
const o2 = s2.index, a2 = r2.search(/\s/);
|
|
46652
|
+
let l2 = r2, u2 = true;
|
|
46653
|
+
-1 !== a2 && (l2 = r2.substring(0, a2), r2 = r2.substring(a2 + 1).trimStart());
|
|
46452
46654
|
const h2 = l2;
|
|
46453
|
-
if (
|
|
46655
|
+
if (i2) {
|
|
46454
46656
|
const t3 = l2.indexOf(":");
|
|
46455
|
-
-1 !== t3 && (l2 = l2.substr(t3 + 1), u2 = l2 !==
|
|
46657
|
+
-1 !== t3 && (l2 = l2.substr(t3 + 1), u2 = l2 !== s2.data.substr(t3 + 1));
|
|
46456
46658
|
}
|
|
46457
|
-
return { tagName: l2, tagExp:
|
|
46659
|
+
return { tagName: l2, tagExp: r2, closeIndex: o2, attrExpPresent: u2, rawTagName: h2 };
|
|
46458
46660
|
}
|
|
46459
46661
|
__name(X, "X");
|
|
46460
|
-
function
|
|
46461
|
-
const
|
|
46462
|
-
let
|
|
46463
|
-
for (;
|
|
46464
|
-
const
|
|
46465
|
-
if (t2.substring(
|
|
46466
|
-
|
|
46467
|
-
} else if ("?" === t2[
|
|
46468
|
-
else if ("!--" === t2.substr(
|
|
46469
|
-
else if ("![" === t2.substr(
|
|
46662
|
+
function W(t2, e2, i2) {
|
|
46663
|
+
const n2 = i2;
|
|
46664
|
+
let s2 = 1;
|
|
46665
|
+
for (; i2 < t2.length; i2++) if ("<" === t2[i2]) if ("/" === t2[i2 + 1]) {
|
|
46666
|
+
const r2 = G(t2, ">", i2, `${e2} is not closed`);
|
|
46667
|
+
if (t2.substring(i2 + 2, r2).trim() === e2 && (s2--, 0 === s2)) return { tagContent: t2.substring(n2, i2), i: r2 };
|
|
46668
|
+
i2 = r2;
|
|
46669
|
+
} else if ("?" === t2[i2 + 1]) i2 = G(t2, "?>", i2 + 1, "StopNode is not closed.");
|
|
46670
|
+
else if ("!--" === t2.substr(i2 + 1, 3)) i2 = G(t2, "-->", i2 + 3, "StopNode is not closed.");
|
|
46671
|
+
else if ("![" === t2.substr(i2 + 1, 2)) i2 = G(t2, "]]>", i2, "StopNode is not closed.") - 2;
|
|
46470
46672
|
else {
|
|
46471
|
-
const
|
|
46472
|
-
|
|
46673
|
+
const n3 = X(t2, i2, ">");
|
|
46674
|
+
n3 && ((n3 && n3.tagName) === e2 && "/" !== n3.tagExp[n3.tagExp.length - 1] && s2++, i2 = n3.closeIndex);
|
|
46473
46675
|
}
|
|
46474
46676
|
}
|
|
46475
|
-
__name(
|
|
46476
|
-
function
|
|
46677
|
+
__name(W, "W");
|
|
46678
|
+
function q(t2, e2, i2) {
|
|
46477
46679
|
if (e2 && "string" == typeof t2) {
|
|
46478
46680
|
const e3 = t2.trim();
|
|
46479
46681
|
return "true" === e3 || "false" !== e3 && (function(t3, e4 = {}) {
|
|
46480
46682
|
if (e4 = Object.assign({}, C, e4), !t3 || "string" != typeof t3) return t3;
|
|
46481
|
-
let
|
|
46482
|
-
if (void 0 !== e4.skipLike && e4.skipLike.test(
|
|
46683
|
+
let i3 = t3.trim();
|
|
46684
|
+
if (void 0 !== e4.skipLike && e4.skipLike.test(i3)) return t3;
|
|
46483
46685
|
if ("0" === t3) return 0;
|
|
46484
|
-
if (e4.hex && A.test(
|
|
46686
|
+
if (e4.hex && A.test(i3)) return (function(t4) {
|
|
46485
46687
|
if (parseInt) return parseInt(t4, 16);
|
|
46486
46688
|
if (Number.parseInt) return Number.parseInt(t4, 16);
|
|
46487
46689
|
if (window && window.parseInt) return window.parseInt(t4, 16);
|
|
46488
46690
|
throw new Error("parseInt, Number.parseInt, window.parseInt are not supported");
|
|
46489
|
-
})(
|
|
46490
|
-
if (-1 !==
|
|
46491
|
-
if (!
|
|
46492
|
-
const
|
|
46493
|
-
if (
|
|
46494
|
-
let
|
|
46495
|
-
const
|
|
46496
|
-
return o2.length > 1 && a2 ? t4 : 1 !== o2.length || !
|
|
46691
|
+
})(i3);
|
|
46692
|
+
if (-1 !== i3.search(/.+[eE].+/)) return (function(t4, e5, i4) {
|
|
46693
|
+
if (!i4.eNotation) return t4;
|
|
46694
|
+
const n3 = e5.match(V);
|
|
46695
|
+
if (n3) {
|
|
46696
|
+
let s2 = n3[1] || "";
|
|
46697
|
+
const r2 = -1 === n3[3].indexOf("e") ? "E" : "e", o2 = n3[2], a2 = s2 ? t4[o2.length + 1] === r2 : t4[o2.length] === r2;
|
|
46698
|
+
return o2.length > 1 && a2 ? t4 : 1 !== o2.length || !n3[3].startsWith(`.${r2}`) && n3[3][0] !== r2 ? i4.leadingZeros && !a2 ? (e5 = (n3[1] || "") + n3[3], Number(e5)) : t4 : Number(e5);
|
|
46497
46699
|
}
|
|
46498
46700
|
return t4;
|
|
46499
|
-
})(t3,
|
|
46701
|
+
})(t3, i3, e4);
|
|
46500
46702
|
{
|
|
46501
|
-
const
|
|
46502
|
-
if (
|
|
46503
|
-
const
|
|
46504
|
-
let a2 = (
|
|
46505
|
-
const l2 =
|
|
46703
|
+
const s2 = S.exec(i3);
|
|
46704
|
+
if (s2) {
|
|
46705
|
+
const r2 = s2[1] || "", o2 = s2[2];
|
|
46706
|
+
let a2 = (n2 = s2[3]) && -1 !== n2.indexOf(".") ? ("." === (n2 = n2.replace(/0+$/, "")) ? n2 = "0" : "." === n2[0] ? n2 = "0" + n2 : "." === n2[n2.length - 1] && (n2 = n2.substring(0, n2.length - 1)), n2) : n2;
|
|
46707
|
+
const l2 = r2 ? "." === t3[o2.length + 1] : "." === t3[o2.length];
|
|
46506
46708
|
if (!e4.leadingZeros && (o2.length > 1 || 1 === o2.length && !l2)) return t3;
|
|
46507
46709
|
{
|
|
46508
|
-
const
|
|
46509
|
-
if (0 ===
|
|
46510
|
-
if (-1 !==
|
|
46511
|
-
if (-1 !==
|
|
46512
|
-
let l3 = o2 ? a2 :
|
|
46513
|
-
return o2 ? l3 ===
|
|
46710
|
+
const n3 = Number(i3), s3 = String(n3);
|
|
46711
|
+
if (0 === n3 || -0 === n3) return n3;
|
|
46712
|
+
if (-1 !== s3.search(/[eE]/)) return e4.eNotation ? n3 : t3;
|
|
46713
|
+
if (-1 !== i3.indexOf(".")) return "0" === s3 || s3 === a2 || s3 === `${r2}${a2}` ? n3 : t3;
|
|
46714
|
+
let l3 = o2 ? a2 : i3;
|
|
46715
|
+
return o2 ? l3 === s3 || r2 + l3 === s3 ? n3 : t3 : l3 === s3 || l3 === r2 + s3 ? n3 : t3;
|
|
46514
46716
|
}
|
|
46515
46717
|
}
|
|
46516
46718
|
return t3;
|
|
46517
46719
|
}
|
|
46518
|
-
var
|
|
46519
|
-
})(t2,
|
|
46720
|
+
var n2;
|
|
46721
|
+
})(t2, i2);
|
|
46520
46722
|
}
|
|
46521
46723
|
return void 0 !== t2 ? t2 : "";
|
|
46522
46724
|
}
|
|
46523
|
-
__name(
|
|
46524
|
-
const
|
|
46725
|
+
__name(q, "q");
|
|
46726
|
+
const Z = y.getMetaDataSymbol();
|
|
46525
46727
|
function K(t2, e2) {
|
|
46526
46728
|
return Q(t2, e2);
|
|
46527
46729
|
}
|
|
46528
46730
|
__name(K, "K");
|
|
46529
|
-
function Q(t2, e2,
|
|
46530
|
-
let
|
|
46531
|
-
const
|
|
46532
|
-
for (let
|
|
46533
|
-
const o2 = t2[
|
|
46731
|
+
function Q(t2, e2, i2) {
|
|
46732
|
+
let n2;
|
|
46733
|
+
const s2 = {};
|
|
46734
|
+
for (let r2 = 0; r2 < t2.length; r2++) {
|
|
46735
|
+
const o2 = t2[r2], a2 = z(o2);
|
|
46534
46736
|
let l2 = "";
|
|
46535
|
-
if (l2 = void 0 ===
|
|
46737
|
+
if (l2 = void 0 === i2 ? a2 : i2 + "." + a2, a2 === e2.textNodeName) void 0 === n2 ? n2 = o2[a2] : n2 += "" + o2[a2];
|
|
46536
46738
|
else {
|
|
46537
46739
|
if (void 0 === a2) continue;
|
|
46538
46740
|
if (o2[a2]) {
|
|
46539
46741
|
let t3 = Q(o2[a2], e2, l2);
|
|
46540
|
-
const
|
|
46541
|
-
void 0 !== o2[
|
|
46742
|
+
const i3 = H(t3, e2);
|
|
46743
|
+
void 0 !== o2[Z] && (t3[Z] = o2[Z]), o2[":@"] ? J(t3, o2[":@"], l2, e2) : 1 !== Object.keys(t3).length || void 0 === t3[e2.textNodeName] || e2.alwaysCreateTextNode ? 0 === Object.keys(t3).length && (e2.alwaysCreateTextNode ? t3[e2.textNodeName] = "" : t3 = "") : t3 = t3[e2.textNodeName], void 0 !== s2[a2] && s2.hasOwnProperty(a2) ? (Array.isArray(s2[a2]) || (s2[a2] = [s2[a2]]), s2[a2].push(t3)) : e2.isArray(a2, l2, i3) ? s2[a2] = [t3] : s2[a2] = t3;
|
|
46542
46744
|
}
|
|
46543
46745
|
}
|
|
46544
46746
|
}
|
|
46545
|
-
return "string" == typeof
|
|
46747
|
+
return "string" == typeof n2 ? n2.length > 0 && (s2[e2.textNodeName] = n2) : void 0 !== n2 && (s2[e2.textNodeName] = n2), s2;
|
|
46546
46748
|
}
|
|
46547
46749
|
__name(Q, "Q");
|
|
46548
46750
|
function z(t2) {
|
|
46549
46751
|
const e2 = Object.keys(t2);
|
|
46550
46752
|
for (let t3 = 0; t3 < e2.length; t3++) {
|
|
46551
|
-
const
|
|
46552
|
-
if (":@" !==
|
|
46753
|
+
const i2 = e2[t3];
|
|
46754
|
+
if (":@" !== i2) return i2;
|
|
46553
46755
|
}
|
|
46554
46756
|
}
|
|
46555
46757
|
__name(z, "z");
|
|
46556
|
-
function J(t2, e2,
|
|
46758
|
+
function J(t2, e2, i2, n2) {
|
|
46557
46759
|
if (e2) {
|
|
46558
|
-
const
|
|
46559
|
-
for (let o2 = 0; o2 <
|
|
46560
|
-
const
|
|
46561
|
-
|
|
46760
|
+
const s2 = Object.keys(e2), r2 = s2.length;
|
|
46761
|
+
for (let o2 = 0; o2 < r2; o2++) {
|
|
46762
|
+
const r3 = s2[o2];
|
|
46763
|
+
n2.isArray(r3, i2 + "." + r3, true, true) ? t2[r3] = [e2[r3]] : t2[r3] = e2[r3];
|
|
46562
46764
|
}
|
|
46563
46765
|
}
|
|
46564
46766
|
}
|
|
46565
46767
|
__name(J, "J");
|
|
46566
46768
|
function H(t2, e2) {
|
|
46567
|
-
const { textNodeName:
|
|
46568
|
-
return 0 ===
|
|
46769
|
+
const { textNodeName: i2 } = e2, n2 = Object.keys(t2).length;
|
|
46770
|
+
return 0 === n2 || !(1 !== n2 || !t2[i2] && "boolean" != typeof t2[i2] && 0 !== t2[i2]);
|
|
46569
46771
|
}
|
|
46570
46772
|
__name(H, "H");
|
|
46571
46773
|
const _tt = class _tt {
|
|
@@ -46579,13 +46781,13 @@ var require_fxp = __commonJS({
|
|
|
46579
46781
|
else if ("string" != typeof t2) throw new Error("XML data is accepted in String or Bytes[] form.");
|
|
46580
46782
|
if (e2) {
|
|
46581
46783
|
true === e2 && (e2 = {});
|
|
46582
|
-
const
|
|
46583
|
-
if (true !==
|
|
46784
|
+
const i3 = a(t2, e2);
|
|
46785
|
+
if (true !== i3) throw Error(`${i3.err.msg}:${i3.err.line}:${i3.err.col}`);
|
|
46584
46786
|
}
|
|
46585
|
-
const
|
|
46586
|
-
|
|
46587
|
-
const
|
|
46588
|
-
return this.options.preserveOrder || void 0 ===
|
|
46787
|
+
const i2 = new D(this.options);
|
|
46788
|
+
i2.addExternalEntities(this.externalEntities);
|
|
46789
|
+
const n2 = i2.parseXml(t2);
|
|
46790
|
+
return this.options.preserveOrder || void 0 === n2 ? n2 : K(n2, this.options);
|
|
46589
46791
|
}
|
|
46590
46792
|
addEntity(t2, e2) {
|
|
46591
46793
|
if (-1 !== e2.indexOf("&")) throw new Error("Entity value can't have '&'");
|
|
@@ -46600,71 +46802,71 @@ var require_fxp = __commonJS({
|
|
|
46600
46802
|
__name(_tt, "tt");
|
|
46601
46803
|
let tt = _tt;
|
|
46602
46804
|
function et(t2, e2) {
|
|
46603
|
-
let
|
|
46604
|
-
return e2.format && e2.indentBy.length > 0 && (
|
|
46805
|
+
let i2 = "";
|
|
46806
|
+
return e2.format && e2.indentBy.length > 0 && (i2 = "\n"), it(t2, e2, "", i2);
|
|
46605
46807
|
}
|
|
46606
46808
|
__name(et, "et");
|
|
46607
|
-
function
|
|
46608
|
-
let
|
|
46809
|
+
function it(t2, e2, i2, n2) {
|
|
46810
|
+
let s2 = "", r2 = false;
|
|
46609
46811
|
for (let o2 = 0; o2 < t2.length; o2++) {
|
|
46610
|
-
const a2 = t2[o2], l2 =
|
|
46812
|
+
const a2 = t2[o2], l2 = nt(a2);
|
|
46611
46813
|
if (void 0 === l2) continue;
|
|
46612
46814
|
let u2 = "";
|
|
46613
|
-
if (u2 = 0 ===
|
|
46815
|
+
if (u2 = 0 === i2.length ? l2 : `${i2}.${l2}`, l2 === e2.textNodeName) {
|
|
46614
46816
|
let t3 = a2[l2];
|
|
46615
|
-
|
|
46817
|
+
rt(u2, e2) || (t3 = e2.tagValueProcessor(l2, t3), t3 = ot(t3, e2)), r2 && (s2 += n2), s2 += t3, r2 = false;
|
|
46616
46818
|
continue;
|
|
46617
46819
|
}
|
|
46618
46820
|
if (l2 === e2.cdataPropName) {
|
|
46619
|
-
|
|
46821
|
+
r2 && (s2 += n2), s2 += `<![CDATA[${a2[l2][0][e2.textNodeName]}]]>`, r2 = false;
|
|
46620
46822
|
continue;
|
|
46621
46823
|
}
|
|
46622
46824
|
if (l2 === e2.commentPropName) {
|
|
46623
|
-
|
|
46825
|
+
s2 += n2 + `<!--${a2[l2][0][e2.textNodeName]}-->`, r2 = true;
|
|
46624
46826
|
continue;
|
|
46625
46827
|
}
|
|
46626
46828
|
if ("?" === l2[0]) {
|
|
46627
|
-
const t3 =
|
|
46829
|
+
const t3 = st(a2[":@"], e2), i3 = "?xml" === l2 ? "" : n2;
|
|
46628
46830
|
let o3 = a2[l2][0][e2.textNodeName];
|
|
46629
|
-
o3 = 0 !== o3.length ? " " + o3 : "",
|
|
46831
|
+
o3 = 0 !== o3.length ? " " + o3 : "", s2 += i3 + `<${l2}${o3}${t3}?>`, r2 = true;
|
|
46630
46832
|
continue;
|
|
46631
46833
|
}
|
|
46632
|
-
let h2 =
|
|
46834
|
+
let h2 = n2;
|
|
46633
46835
|
"" !== h2 && (h2 += e2.indentBy);
|
|
46634
|
-
const d2 =
|
|
46635
|
-
-1 !== e2.unpairedTags.indexOf(l2) ? e2.suppressUnpairedNode ?
|
|
46836
|
+
const d2 = n2 + `<${l2}${st(a2[":@"], e2)}`, p2 = it(a2[l2], e2, u2, h2);
|
|
46837
|
+
-1 !== e2.unpairedTags.indexOf(l2) ? e2.suppressUnpairedNode ? s2 += d2 + ">" : s2 += d2 + "/>" : p2 && 0 !== p2.length || !e2.suppressEmptyNode ? p2 && p2.endsWith(">") ? s2 += d2 + `>${p2}${n2}</${l2}>` : (s2 += d2 + ">", p2 && "" !== n2 && (p2.includes("/>") || p2.includes("</")) ? s2 += n2 + e2.indentBy + p2 + n2 : s2 += p2, s2 += `</${l2}>`) : s2 += d2 + "/>", r2 = true;
|
|
46636
46838
|
}
|
|
46637
|
-
return
|
|
46839
|
+
return s2;
|
|
46638
46840
|
}
|
|
46639
|
-
__name(
|
|
46640
|
-
function
|
|
46841
|
+
__name(it, "it");
|
|
46842
|
+
function nt(t2) {
|
|
46641
46843
|
const e2 = Object.keys(t2);
|
|
46642
|
-
for (let
|
|
46643
|
-
const
|
|
46644
|
-
if (t2.hasOwnProperty(
|
|
46844
|
+
for (let i2 = 0; i2 < e2.length; i2++) {
|
|
46845
|
+
const n2 = e2[i2];
|
|
46846
|
+
if (t2.hasOwnProperty(n2) && ":@" !== n2) return n2;
|
|
46645
46847
|
}
|
|
46646
46848
|
}
|
|
46647
|
-
__name(
|
|
46648
|
-
function
|
|
46649
|
-
let
|
|
46650
|
-
if (t2 && !e2.ignoreAttributes) for (let
|
|
46651
|
-
if (!t2.hasOwnProperty(
|
|
46652
|
-
let
|
|
46653
|
-
|
|
46849
|
+
__name(nt, "nt");
|
|
46850
|
+
function st(t2, e2) {
|
|
46851
|
+
let i2 = "";
|
|
46852
|
+
if (t2 && !e2.ignoreAttributes) for (let n2 in t2) {
|
|
46853
|
+
if (!t2.hasOwnProperty(n2)) continue;
|
|
46854
|
+
let s2 = e2.attributeValueProcessor(n2, t2[n2]);
|
|
46855
|
+
s2 = ot(s2, e2), true === s2 && e2.suppressBooleanAttributes ? i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}` : i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}="${s2}"`;
|
|
46654
46856
|
}
|
|
46655
|
-
return
|
|
46857
|
+
return i2;
|
|
46656
46858
|
}
|
|
46657
|
-
__name(
|
|
46658
|
-
function
|
|
46659
|
-
let
|
|
46660
|
-
for (let
|
|
46859
|
+
__name(st, "st");
|
|
46860
|
+
function rt(t2, e2) {
|
|
46861
|
+
let i2 = (t2 = t2.substr(0, t2.length - e2.textNodeName.length - 1)).substr(t2.lastIndexOf(".") + 1);
|
|
46862
|
+
for (let n2 in e2.stopNodes) if (e2.stopNodes[n2] === t2 || e2.stopNodes[n2] === "*." + i2) return true;
|
|
46661
46863
|
return false;
|
|
46662
46864
|
}
|
|
46663
|
-
__name(
|
|
46865
|
+
__name(rt, "rt");
|
|
46664
46866
|
function ot(t2, e2) {
|
|
46665
|
-
if (t2 && t2.length > 0 && e2.processEntities) for (let
|
|
46666
|
-
const
|
|
46667
|
-
t2 = t2.replace(
|
|
46867
|
+
if (t2 && t2.length > 0 && e2.processEntities) for (let i2 = 0; i2 < e2.entities.length; i2++) {
|
|
46868
|
+
const n2 = e2.entities[i2];
|
|
46869
|
+
t2 = t2.replace(n2.regex, n2.val);
|
|
46668
46870
|
}
|
|
46669
46871
|
return t2;
|
|
46670
46872
|
}
|
|
@@ -46682,9 +46884,9 @@ var require_fxp = __commonJS({
|
|
|
46682
46884
|
}, this.tagEndChar = ">", this.newLine = "");
|
|
46683
46885
|
}
|
|
46684
46886
|
__name(lt, "lt");
|
|
46685
|
-
function ut(t2, e2,
|
|
46686
|
-
const
|
|
46687
|
-
return void 0 !== t2[this.options.textNodeName] && 1 === Object.keys(t2).length ? this.buildTextValNode(t2[this.options.textNodeName], e2,
|
|
46887
|
+
function ut(t2, e2, i2, n2) {
|
|
46888
|
+
const s2 = this.j2x(t2, i2 + 1, n2.concat(e2));
|
|
46889
|
+
return void 0 !== t2[this.options.textNodeName] && 1 === Object.keys(t2).length ? this.buildTextValNode(t2[this.options.textNodeName], e2, s2.attrStr, i2) : this.buildObjectNode(s2.val, e2, s2.attrStr, i2);
|
|
46688
46890
|
}
|
|
46689
46891
|
__name(ut, "ut");
|
|
46690
46892
|
function ht(t2) {
|
|
@@ -46697,64 +46899,64 @@ var require_fxp = __commonJS({
|
|
|
46697
46899
|
__name(dt, "dt");
|
|
46698
46900
|
lt.prototype.build = function(t2) {
|
|
46699
46901
|
return this.options.preserveOrder ? et(t2, this.options) : (Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 }), this.j2x(t2, 0, []).val);
|
|
46700
|
-
}, lt.prototype.j2x = function(t2, e2,
|
|
46701
|
-
let
|
|
46702
|
-
const
|
|
46703
|
-
for (let o2 in t2) if (Object.prototype.hasOwnProperty.call(t2, o2)) if (void 0 === t2[o2]) this.isAttribute(o2) && (
|
|
46704
|
-
else if (null === t2[o2]) this.isAttribute(o2) || o2 === this.options.cdataPropName ?
|
|
46705
|
-
else if (t2[o2] instanceof Date)
|
|
46902
|
+
}, lt.prototype.j2x = function(t2, e2, i2) {
|
|
46903
|
+
let n2 = "", s2 = "";
|
|
46904
|
+
const r2 = i2.join(".");
|
|
46905
|
+
for (let o2 in t2) if (Object.prototype.hasOwnProperty.call(t2, o2)) if (void 0 === t2[o2]) this.isAttribute(o2) && (s2 += "");
|
|
46906
|
+
else if (null === t2[o2]) this.isAttribute(o2) || o2 === this.options.cdataPropName ? s2 += "" : "?" === o2[0] ? s2 += this.indentate(e2) + "<" + o2 + "?" + this.tagEndChar : s2 += this.indentate(e2) + "<" + o2 + "/" + this.tagEndChar;
|
|
46907
|
+
else if (t2[o2] instanceof Date) s2 += this.buildTextValNode(t2[o2], o2, "", e2);
|
|
46706
46908
|
else if ("object" != typeof t2[o2]) {
|
|
46707
|
-
const
|
|
46708
|
-
if (
|
|
46709
|
-
else if (!
|
|
46909
|
+
const i3 = this.isAttribute(o2);
|
|
46910
|
+
if (i3 && !this.ignoreAttributesFn(i3, r2)) n2 += this.buildAttrPairStr(i3, "" + t2[o2]);
|
|
46911
|
+
else if (!i3) if (o2 === this.options.textNodeName) {
|
|
46710
46912
|
let e3 = this.options.tagValueProcessor(o2, "" + t2[o2]);
|
|
46711
|
-
|
|
46712
|
-
} else
|
|
46913
|
+
s2 += this.replaceEntitiesValue(e3);
|
|
46914
|
+
} else s2 += this.buildTextValNode(t2[o2], o2, "", e2);
|
|
46713
46915
|
} else if (Array.isArray(t2[o2])) {
|
|
46714
|
-
const
|
|
46715
|
-
let
|
|
46716
|
-
for (let l2 = 0; l2 <
|
|
46717
|
-
const
|
|
46718
|
-
if (void 0 ===
|
|
46719
|
-
else if (null ===
|
|
46720
|
-
else if ("object" == typeof
|
|
46721
|
-
const t3 = this.j2x(
|
|
46722
|
-
|
|
46723
|
-
} else
|
|
46916
|
+
const n3 = t2[o2].length;
|
|
46917
|
+
let r3 = "", a2 = "";
|
|
46918
|
+
for (let l2 = 0; l2 < n3; l2++) {
|
|
46919
|
+
const n4 = t2[o2][l2];
|
|
46920
|
+
if (void 0 === n4) ;
|
|
46921
|
+
else if (null === n4) "?" === o2[0] ? s2 += this.indentate(e2) + "<" + o2 + "?" + this.tagEndChar : s2 += this.indentate(e2) + "<" + o2 + "/" + this.tagEndChar;
|
|
46922
|
+
else if ("object" == typeof n4) if (this.options.oneListGroup) {
|
|
46923
|
+
const t3 = this.j2x(n4, e2 + 1, i2.concat(o2));
|
|
46924
|
+
r3 += t3.val, this.options.attributesGroupName && n4.hasOwnProperty(this.options.attributesGroupName) && (a2 += t3.attrStr);
|
|
46925
|
+
} else r3 += this.processTextOrObjNode(n4, o2, e2, i2);
|
|
46724
46926
|
else if (this.options.oneListGroup) {
|
|
46725
|
-
let t3 = this.options.tagValueProcessor(o2,
|
|
46726
|
-
t3 = this.replaceEntitiesValue(t3),
|
|
46727
|
-
} else
|
|
46927
|
+
let t3 = this.options.tagValueProcessor(o2, n4);
|
|
46928
|
+
t3 = this.replaceEntitiesValue(t3), r3 += t3;
|
|
46929
|
+
} else r3 += this.buildTextValNode(n4, o2, "", e2);
|
|
46728
46930
|
}
|
|
46729
|
-
this.options.oneListGroup && (
|
|
46931
|
+
this.options.oneListGroup && (r3 = this.buildObjectNode(r3, o2, a2, e2)), s2 += r3;
|
|
46730
46932
|
} else if (this.options.attributesGroupName && o2 === this.options.attributesGroupName) {
|
|
46731
|
-
const e3 = Object.keys(t2[o2]),
|
|
46732
|
-
for (let
|
|
46733
|
-
} else
|
|
46734
|
-
return { attrStr:
|
|
46933
|
+
const e3 = Object.keys(t2[o2]), i3 = e3.length;
|
|
46934
|
+
for (let s3 = 0; s3 < i3; s3++) n2 += this.buildAttrPairStr(e3[s3], "" + t2[o2][e3[s3]]);
|
|
46935
|
+
} else s2 += this.processTextOrObjNode(t2[o2], o2, e2, i2);
|
|
46936
|
+
return { attrStr: n2, val: s2 };
|
|
46735
46937
|
}, lt.prototype.buildAttrPairStr = function(t2, e2) {
|
|
46736
46938
|
return e2 = this.options.attributeValueProcessor(t2, "" + e2), e2 = this.replaceEntitiesValue(e2), this.options.suppressBooleanAttributes && "true" === e2 ? " " + t2 : " " + t2 + '="' + e2 + '"';
|
|
46737
|
-
}, lt.prototype.buildObjectNode = function(t2, e2,
|
|
46738
|
-
if ("" === t2) return "?" === e2[0] ? this.indentate(
|
|
46939
|
+
}, lt.prototype.buildObjectNode = function(t2, e2, i2, n2) {
|
|
46940
|
+
if ("" === t2) return "?" === e2[0] ? this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar;
|
|
46739
46941
|
{
|
|
46740
|
-
let
|
|
46741
|
-
return "?" === e2[0] && (
|
|
46942
|
+
let s2 = "</" + e2 + this.tagEndChar, r2 = "";
|
|
46943
|
+
return "?" === e2[0] && (r2 = "?", s2 = ""), !i2 && "" !== i2 || -1 !== t2.indexOf("<") ? false !== this.options.commentPropName && e2 === this.options.commentPropName && 0 === r2.length ? this.indentate(n2) + `<!--${t2}-->` + this.newLine : this.indentate(n2) + "<" + e2 + i2 + r2 + this.tagEndChar + t2 + this.indentate(n2) + s2 : this.indentate(n2) + "<" + e2 + i2 + r2 + ">" + t2 + s2;
|
|
46742
46944
|
}
|
|
46743
46945
|
}, lt.prototype.closeTag = function(t2) {
|
|
46744
46946
|
let e2 = "";
|
|
46745
46947
|
return -1 !== this.options.unpairedTags.indexOf(t2) ? this.options.suppressUnpairedNode || (e2 = "/") : e2 = this.options.suppressEmptyNode ? "/" : `></${t2}`, e2;
|
|
46746
|
-
}, lt.prototype.buildTextValNode = function(t2, e2,
|
|
46747
|
-
if (false !== this.options.cdataPropName && e2 === this.options.cdataPropName) return this.indentate(
|
|
46748
|
-
if (false !== this.options.commentPropName && e2 === this.options.commentPropName) return this.indentate(
|
|
46749
|
-
if ("?" === e2[0]) return this.indentate(
|
|
46948
|
+
}, lt.prototype.buildTextValNode = function(t2, e2, i2, n2) {
|
|
46949
|
+
if (false !== this.options.cdataPropName && e2 === this.options.cdataPropName) return this.indentate(n2) + `<![CDATA[${t2}]]>` + this.newLine;
|
|
46950
|
+
if (false !== this.options.commentPropName && e2 === this.options.commentPropName) return this.indentate(n2) + `<!--${t2}-->` + this.newLine;
|
|
46951
|
+
if ("?" === e2[0]) return this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar;
|
|
46750
46952
|
{
|
|
46751
|
-
let
|
|
46752
|
-
return
|
|
46953
|
+
let s2 = this.options.tagValueProcessor(e2, t2);
|
|
46954
|
+
return s2 = this.replaceEntitiesValue(s2), "" === s2 ? this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + ">" + s2 + "</" + e2 + this.tagEndChar;
|
|
46753
46955
|
}
|
|
46754
46956
|
}, lt.prototype.replaceEntitiesValue = function(t2) {
|
|
46755
46957
|
if (t2 && t2.length > 0 && this.options.processEntities) for (let e2 = 0; e2 < this.options.entities.length; e2++) {
|
|
46756
|
-
const
|
|
46757
|
-
t2 = t2.replace(
|
|
46958
|
+
const i2 = this.options.entities[e2];
|
|
46959
|
+
t2 = t2.replace(i2.regex, i2.val);
|
|
46758
46960
|
}
|
|
46759
46961
|
return t2;
|
|
46760
46962
|
};
|