@rushstack/rush-sdk 5.142.0 → 5.143.0-pr5009.1

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.
Files changed (60) hide show
  1. package/lib/logic/ApprovedPackagesChecker.d.ts +23 -0
  2. package/lib/logic/ApprovedPackagesChecker.js +1 -0
  3. package/lib/logic/InstallManagerFactory.d.ts +9 -0
  4. package/lib/logic/InstallManagerFactory.js +1 -0
  5. package/lib/logic/InteractiveUpgrader.d.ts +17 -0
  6. package/lib/logic/InteractiveUpgrader.js +1 -0
  7. package/lib/logic/LinkManagerFactory.d.ts +6 -0
  8. package/lib/logic/LinkManagerFactory.js +1 -0
  9. package/lib/logic/PackageJsonUpdater.d.ts +131 -0
  10. package/lib/logic/PackageJsonUpdater.js +1 -0
  11. package/lib/logic/PackageLookup.d.ts +8 -0
  12. package/lib/logic/PackageLookup.js +1 -0
  13. package/lib/logic/ProjectImpactGraphGenerator.d.ts +51 -0
  14. package/lib/logic/ProjectImpactGraphGenerator.js +1 -0
  15. package/lib/logic/ProjectWatcher.d.ts +78 -0
  16. package/lib/logic/ProjectWatcher.js +1 -0
  17. package/lib/logic/TempProjectHelper.d.ts +19 -0
  18. package/lib/logic/TempProjectHelper.js +1 -0
  19. package/lib/logic/VersionManager.d.ts +48 -0
  20. package/lib/logic/VersionManager.js +1 -0
  21. package/lib/logic/base/BaseInstallManager.d.ts +57 -0
  22. package/lib/logic/base/BaseInstallManager.js +1 -0
  23. package/lib/logic/base/BaseLinkManager.d.ts +35 -0
  24. package/lib/logic/base/BaseLinkManager.js +1 -0
  25. package/lib/logic/base/BasePackage.d.ts +113 -0
  26. package/lib/logic/base/BasePackage.js +1 -0
  27. package/lib/logic/base/BaseWorkspaceFile.d.ts +31 -0
  28. package/lib/logic/base/BaseWorkspaceFile.js +1 -0
  29. package/lib/logic/installManager/RushInstallManager.d.ts +77 -0
  30. package/lib/logic/installManager/RushInstallManager.js +1 -0
  31. package/lib/logic/installManager/WorkspaceInstallManager.d.ts +46 -0
  32. package/lib/logic/installManager/WorkspaceInstallManager.js +1 -0
  33. package/lib/logic/installManager/doBasicInstallAsync.d.ts +17 -0
  34. package/lib/logic/installManager/doBasicInstallAsync.js +1 -0
  35. package/lib/logic/npm/NpmLinkManager.d.ts +12 -0
  36. package/lib/logic/npm/NpmLinkManager.js +1 -0
  37. package/lib/logic/npm/NpmPackage.d.ts +86 -0
  38. package/lib/logic/npm/NpmPackage.js +1 -0
  39. package/lib/logic/operations/BuildPlanPlugin.d.ts +8 -0
  40. package/lib/logic/operations/BuildPlanPlugin.js +1 -0
  41. package/lib/logic/operations/ConsoleTimelinePlugin.d.ts +26 -0
  42. package/lib/logic/operations/ConsoleTimelinePlugin.js +1 -0
  43. package/lib/logic/operations/IPCOperationRunner.d.ts +34 -0
  44. package/lib/logic/operations/IPCOperationRunner.js +1 -0
  45. package/lib/logic/operations/IPCOperationRunnerPlugin.d.ts +8 -0
  46. package/lib/logic/operations/IPCOperationRunnerPlugin.js +1 -0
  47. package/lib/logic/operations/PnpmSyncCopyOperationPlugin.d.ts +8 -0
  48. package/lib/logic/operations/PnpmSyncCopyOperationPlugin.js +1 -0
  49. package/lib/logic/pnpm/PnpmLinkManager.d.ts +18 -0
  50. package/lib/logic/pnpm/PnpmLinkManager.js +1 -0
  51. package/lib/logic/pnpm/PnpmShrinkWrapFileConverters.d.ts +11 -0
  52. package/lib/logic/pnpm/PnpmShrinkWrapFileConverters.js +1 -0
  53. package/lib/logic/pnpm/PnpmShrinkwrapFile.d.ts +46 -90
  54. package/lib/logic/pnpm/PnpmWorkspaceFile.d.ts +18 -0
  55. package/lib/logic/pnpm/PnpmWorkspaceFile.js +1 -0
  56. package/lib/utilities/InteractiveUpgradeUI.d.ts +22 -0
  57. package/lib/utilities/InteractiveUpgradeUI.js +1 -0
  58. package/lib/utilities/WebClient.d.ts +56 -0
  59. package/lib/utilities/WebClient.js +1 -0
  60. package/package.json +7 -6
@@ -0,0 +1,22 @@
1
+ /// <reference path="../../src/npm-check-typings.d.ts" />
2
+ import type * as NpmCheck from 'npm-check';
3
+ export interface IUIGroup {
4
+ title: string;
5
+ bgColor?: string;
6
+ filter: {
7
+ mismatch?: boolean;
8
+ bump?: undefined | 'major' | 'minor' | 'patch' | 'nonSemver';
9
+ notInstalled?: boolean;
10
+ };
11
+ }
12
+ export interface IDepsToUpgradeAnswers {
13
+ packages: NpmCheck.INpmCheckPackage[];
14
+ }
15
+ export interface IUpgradeInteractiveDepChoice {
16
+ value: NpmCheck.INpmCheckPackage;
17
+ name: string | string[];
18
+ short: string;
19
+ }
20
+ export declare const UI_GROUPS: IUIGroup[];
21
+ export declare const upgradeInteractive: (pkgs: NpmCheck.INpmCheckPackage[]) => Promise<IDepsToUpgradeAnswers>;
22
+ //# sourceMappingURL=InteractiveUpgradeUI.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../lib-shim/index")._rushSdk_loadInternalModule("utilities/InteractiveUpgradeUI");
@@ -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.142.0",
3
+ "version": "5.143.0-pr5009.1",
4
4
  "description": "An API for interacting with the Rush engine",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,24 +33,25 @@
33
33
  },
34
34
  "license": "MIT",
35
35
  "dependencies": {
36
+ "@pnpm/lockfile.types": "~1.0.3",
36
37
  "@types/node-fetch": "2.6.2",
37
38
  "tapable": "2.2.1",
38
39
  "@rushstack/lookup-by-path": "0.4.5",
39
- "@rushstack/node-core-library": "5.10.0",
40
40
  "@rushstack/package-deps-hash": "4.2.10",
41
+ "@rushstack/node-core-library": "5.10.0",
41
42
  "@rushstack/terminal": "0.14.3"
42
43
  },
43
44
  "devDependencies": {
44
45
  "@types/semver": "7.5.0",
45
46
  "@types/webpack-env": "1.18.0",
46
47
  "webpack": "~5.95.0",
48
+ "@microsoft/rush-lib": "5.143.0-pr5009.1",
47
49
  "@rushstack/heft": "0.68.9",
48
- "@rushstack/heft-webpack5-plugin": "0.11.7",
50
+ "local-node-rig": "1.0.0",
49
51
  "@rushstack/stream-collator": "4.1.77",
50
- "@microsoft/rush-lib": "5.142.0",
51
- "@rushstack/webpack-preserve-dynamic-require-plugin": "0.11.76",
52
+ "@rushstack/heft-webpack5-plugin": "0.11.7",
52
53
  "@rushstack/ts-command-line": "4.23.1",
53
- "local-node-rig": "1.0.0"
54
+ "@rushstack/webpack-preserve-dynamic-require-plugin": "0.11.76"
54
55
  },
55
56
  "scripts": {
56
57
  "build": "heft build --clean",