@rushstack/rush-sdk 5.143.0-pr5009.0 → 5.143.0-pr5027.0
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/lib/logic/ApprovedPackagesChecker.d.ts +23 -0
- package/lib/logic/ApprovedPackagesChecker.js +1 -0
- package/lib/logic/InstallManagerFactory.d.ts +9 -0
- package/lib/logic/InstallManagerFactory.js +1 -0
- package/lib/logic/InteractiveUpgrader.d.ts +17 -0
- package/lib/logic/InteractiveUpgrader.js +1 -0
- package/lib/logic/LinkManagerFactory.d.ts +6 -0
- package/lib/logic/LinkManagerFactory.js +1 -0
- package/lib/logic/PackageJsonUpdater.d.ts +131 -0
- package/lib/logic/PackageJsonUpdater.js +1 -0
- package/lib/logic/PackageLookup.d.ts +8 -0
- package/lib/logic/PackageLookup.js +1 -0
- package/lib/logic/ProjectImpactGraphGenerator.d.ts +51 -0
- package/lib/logic/ProjectImpactGraphGenerator.js +1 -0
- package/lib/logic/ProjectWatcher.d.ts +78 -0
- package/lib/logic/ProjectWatcher.js +1 -0
- package/lib/logic/TempProjectHelper.d.ts +19 -0
- package/lib/logic/TempProjectHelper.js +1 -0
- package/lib/logic/VersionManager.d.ts +48 -0
- package/lib/logic/VersionManager.js +1 -0
- package/lib/logic/base/BaseInstallManager.d.ts +57 -0
- package/lib/logic/{pnpm/PnpmShrinkWrapFileConverters.js → base/BaseInstallManager.js} +1 -1
- package/lib/logic/base/BaseLinkManager.d.ts +35 -0
- package/lib/logic/base/BaseLinkManager.js +1 -0
- package/lib/logic/base/BasePackage.d.ts +113 -0
- package/lib/logic/base/BasePackage.js +1 -0
- package/lib/logic/base/BaseWorkspaceFile.d.ts +31 -0
- package/lib/logic/base/BaseWorkspaceFile.js +1 -0
- package/lib/logic/installManager/RushInstallManager.d.ts +77 -0
- package/lib/logic/installManager/RushInstallManager.js +1 -0
- package/lib/logic/installManager/WorkspaceInstallManager.d.ts +46 -0
- package/lib/logic/installManager/WorkspaceInstallManager.js +1 -0
- package/lib/logic/installManager/doBasicInstallAsync.d.ts +17 -0
- package/lib/logic/installManager/doBasicInstallAsync.js +1 -0
- package/lib/logic/npm/NpmLinkManager.d.ts +12 -0
- package/lib/logic/npm/NpmLinkManager.js +1 -0
- package/lib/logic/npm/NpmPackage.d.ts +86 -0
- package/lib/logic/npm/NpmPackage.js +1 -0
- package/lib/logic/operations/BuildPlanPlugin.d.ts +8 -0
- package/lib/logic/operations/BuildPlanPlugin.js +1 -0
- package/lib/logic/operations/ConsoleTimelinePlugin.d.ts +26 -0
- package/lib/logic/operations/ConsoleTimelinePlugin.js +1 -0
- package/lib/logic/operations/IPCOperationRunner.d.ts +34 -0
- package/lib/logic/operations/IPCOperationRunner.js +1 -0
- package/lib/logic/operations/IPCOperationRunnerPlugin.d.ts +8 -0
- package/lib/logic/operations/IPCOperationRunnerPlugin.js +1 -0
- package/lib/logic/operations/PnpmSyncCopyOperationPlugin.d.ts +8 -0
- package/lib/logic/operations/PnpmSyncCopyOperationPlugin.js +1 -0
- package/lib/logic/pnpm/PnpmLinkManager.d.ts +18 -0
- package/lib/logic/pnpm/PnpmLinkManager.js +1 -0
- package/lib/logic/pnpm/PnpmShrinkwrapFile.d.ts +90 -46
- package/lib/logic/pnpm/PnpmWorkspaceFile.d.ts +18 -0
- package/lib/logic/pnpm/PnpmWorkspaceFile.js +1 -0
- package/lib/utilities/InteractiveUpgradeUI.d.ts +22 -0
- package/lib/utilities/InteractiveUpgradeUI.js +1 -0
- package/lib/utilities/WebClient.d.ts +56 -0
- package/lib/utilities/WebClient.js +1 -0
- package/package.json +7 -8
- package/lib/logic/pnpm/PnpmShrinkWrapFileConverters.d.ts +0 -11
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import * as fetch from 'node-fetch';
|
|
3
|
+
/**
|
|
4
|
+
* For use with {@link WebClient}.
|
|
5
|
+
*/
|
|
6
|
+
export type WebClientResponse = fetch.Response;
|
|
7
|
+
/**
|
|
8
|
+
* For use with {@link WebClient}.
|
|
9
|
+
*/
|
|
10
|
+
export type WebClientHeaders = fetch.Headers;
|
|
11
|
+
export declare const WebClientHeaders: typeof fetch.Headers;
|
|
12
|
+
/**
|
|
13
|
+
* For use with {@link WebClient}.
|
|
14
|
+
*/
|
|
15
|
+
export interface IWebFetchOptionsBase {
|
|
16
|
+
timeoutMs?: number;
|
|
17
|
+
headers?: WebClientHeaders | Record<string, string>;
|
|
18
|
+
redirect?: fetch.RequestInit['redirect'];
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* For use with {@link WebClient}.
|
|
22
|
+
*/
|
|
23
|
+
export interface IGetFetchOptions extends IWebFetchOptionsBase {
|
|
24
|
+
verb: 'GET' | never;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* For use with {@link WebClient}.
|
|
28
|
+
*/
|
|
29
|
+
export interface IFetchOptionsWithBody extends IWebFetchOptionsBase {
|
|
30
|
+
verb: 'PUT' | 'POST' | 'PATCH';
|
|
31
|
+
body?: Buffer;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* For use with {@link WebClient}.
|
|
35
|
+
*/
|
|
36
|
+
export declare enum WebClientProxy {
|
|
37
|
+
None = 0,
|
|
38
|
+
Detect = 1,
|
|
39
|
+
Fiddler = 2
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* A helper for issuing HTTP requests.
|
|
43
|
+
*/
|
|
44
|
+
export declare class WebClient {
|
|
45
|
+
private static _requestFn;
|
|
46
|
+
readonly standardHeaders: fetch.Headers;
|
|
47
|
+
accept: string | undefined;
|
|
48
|
+
userAgent: string | undefined;
|
|
49
|
+
proxy: WebClientProxy;
|
|
50
|
+
static mockRequestFn(fn: typeof fetch.default): void;
|
|
51
|
+
static resetMockRequestFn(): void;
|
|
52
|
+
static mergeHeaders(target: fetch.Headers, source: fetch.Headers | Record<string, string>): void;
|
|
53
|
+
addBasicAuthHeader(userName: string, password: string): void;
|
|
54
|
+
fetchAsync(url: string, options?: IGetFetchOptions | IFetchOptionsWithBody): Promise<WebClientResponse>;
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=WebClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../lib-shim/index")._rushSdk_loadInternalModule("utilities/WebClient");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rushstack/rush-sdk",
|
|
3
|
-
"version": "5.143.0-
|
|
3
|
+
"version": "5.143.0-pr5027.0",
|
|
4
4
|
"description": "An API for interacting with the Rush engine",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,25 +33,24 @@
|
|
|
33
33
|
},
|
|
34
34
|
"license": "MIT",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@pnpm/lockfile.types": "~1.0.3",
|
|
37
36
|
"@types/node-fetch": "2.6.2",
|
|
38
37
|
"tapable": "2.2.1",
|
|
39
38
|
"@rushstack/lookup-by-path": "0.4.5",
|
|
40
39
|
"@rushstack/package-deps-hash": "4.2.10",
|
|
41
|
-
"@rushstack/
|
|
42
|
-
"@rushstack/
|
|
40
|
+
"@rushstack/node-core-library": "5.10.0",
|
|
41
|
+
"@rushstack/terminal": "0.14.3"
|
|
43
42
|
},
|
|
44
43
|
"devDependencies": {
|
|
45
44
|
"@types/semver": "7.5.0",
|
|
46
45
|
"@types/webpack-env": "1.18.0",
|
|
47
46
|
"webpack": "~5.95.0",
|
|
48
|
-
"@rushstack/heft": "0.68.9",
|
|
49
|
-
"@microsoft/rush-lib": "5.143.0-pr5009.0",
|
|
50
|
-
"local-node-rig": "1.0.0",
|
|
51
47
|
"@rushstack/heft-webpack5-plugin": "0.11.7",
|
|
52
48
|
"@rushstack/stream-collator": "4.1.77",
|
|
49
|
+
"@rushstack/heft": "0.68.9",
|
|
50
|
+
"local-node-rig": "1.0.0",
|
|
53
51
|
"@rushstack/ts-command-line": "4.23.1",
|
|
54
|
-
"@rushstack/webpack-preserve-dynamic-require-plugin": "0.11.76"
|
|
52
|
+
"@rushstack/webpack-preserve-dynamic-require-plugin": "0.11.76",
|
|
53
|
+
"@microsoft/rush-lib": "5.143.0-pr5027.0"
|
|
55
54
|
},
|
|
56
55
|
"scripts": {
|
|
57
56
|
"build": "heft build --clean",
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Lockfile, LockfileFileV9 } from '@pnpm/lockfile.types';
|
|
2
|
-
/**
|
|
3
|
-
* Convert lockfile v9 object to standard lockfile object.
|
|
4
|
-
*
|
|
5
|
-
* This function will mutate the lockfile object. It will:
|
|
6
|
-
* 1. Ensure importers['.'] exists.
|
|
7
|
-
* 2. Merge snapshots and packages into packages.
|
|
8
|
-
* 3. Extract specifier from importers['xxx'] into the specifiers field.
|
|
9
|
-
*/
|
|
10
|
-
export declare function convertLockfileV9ToLockfileObject(lockfile: LockfileFileV9): Lockfile;
|
|
11
|
-
//# sourceMappingURL=PnpmShrinkWrapFileConverters.d.ts.map
|