@rsdoctor/utils 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,6 +27,7 @@ __export(envinfo_exports, {
27
27
  getNpmPackageVersion: () => getNpmPackageVersion,
28
28
  getNpmVersion: () => getNpmVersion,
29
29
  getOSInfo: () => getOSInfo,
30
+ getPnpmVersion: () => getPnpmVersion,
30
31
  getYarnVersion: () => getYarnVersion
31
32
  });
32
33
  module.exports = __toCommonJS(envinfo_exports);
@@ -38,6 +39,7 @@ const getMemoryInfo = () => import_envinfo.helpers.getMemoryInfo().then((res) =>
38
39
  const getNodeVersion = () => import_envinfo.helpers.getNodeInfo().then((res) => res[1]);
39
40
  const getYarnVersion = () => import_envinfo.helpers.getYarnInfo().then((res) => res[1]);
40
41
  const getNpmVersion = () => import_envinfo.helpers.getnpmInfo().then((res) => res[1]);
42
+ const getPnpmVersion = () => import_envinfo.helpers.getpnpmInfo().then((res) => res[1]);
41
43
  function getNpmPackageVersion(pkg) {
42
44
  const isArray = Array.isArray(pkg);
43
45
  return (0, import_envinfo.run)(
@@ -102,5 +104,6 @@ function getGitRepo() {
102
104
  getNpmPackageVersion,
103
105
  getNpmVersion,
104
106
  getOSInfo,
107
+ getPnpmVersion,
105
108
  getYarnVersion
106
109
  });
@@ -6,6 +6,7 @@ const getMemoryInfo = () => helpers.getMemoryInfo().then((res) => res[1]);
6
6
  const getNodeVersion = () => helpers.getNodeInfo().then((res) => res[1]);
7
7
  const getYarnVersion = () => helpers.getYarnInfo().then((res) => res[1]);
8
8
  const getNpmVersion = () => helpers.getnpmInfo().then((res) => res[1]);
9
+ const getPnpmVersion = () => helpers.getpnpmInfo().then((res) => res[1]);
9
10
  function getNpmPackageVersion(pkg) {
10
11
  const isArray = Array.isArray(pkg);
11
12
  return run(
@@ -69,5 +70,6 @@ export {
69
70
  getNpmPackageVersion,
70
71
  getNpmVersion,
71
72
  getOSInfo,
73
+ getPnpmVersion,
72
74
  getYarnVersion
73
75
  };
@@ -4,6 +4,7 @@ export declare const getMemoryInfo: () => Promise<string>;
4
4
  export declare const getNodeVersion: () => Promise<string>;
5
5
  export declare const getYarnVersion: () => Promise<string>;
6
6
  export declare const getNpmVersion: () => Promise<string>;
7
+ export declare const getPnpmVersion: () => Promise<string>;
7
8
  export declare function getNpmPackageVersion(pkg: string): Promise<string>;
8
9
  export declare function getNpmPackageVersion(pkgs: string[]): Promise<string[]>;
9
10
  export declare function getGlobalNpmPackageVersion(pkg: string): Promise<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"envinfo.d.ts","sourceRoot":"","sources":["../../../src/build/envinfo.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,uBACqB,CAAC;AAE7C,eAAO,MAAM,SAAS,uBACqB,CAAC;AAE5C,eAAO,MAAM,aAAa,uBACqB,CAAC;AAEhD,eAAO,MAAM,cAAc,uBACkB,CAAC;AAE9C,eAAO,MAAM,cAAc,uBACkB,CAAC;AAE9C,eAAO,MAAM,aAAa,uBACkB,CAAC;AAE7C,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AACnE,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;AAiBxE,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AACzE,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;AAiB9E,wBAAgB,YAAY,oBAsB3B;AAED,wBAAgB,UAAU,oBAOzB"}
1
+ {"version":3,"file":"envinfo.d.ts","sourceRoot":"","sources":["../../../src/build/envinfo.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,uBAAmD,CAAC;AAE3E,eAAO,MAAM,SAAS,uBAAkD,CAAC;AAEzE,eAAO,MAAM,aAAa,uBACqB,CAAC;AAEhD,eAAO,MAAM,cAAc,uBAAoD,CAAC;AAEhF,eAAO,MAAM,cAAc,uBAAoD,CAAC;AAEhF,eAAO,MAAM,aAAa,uBAAmD,CAAC;AAE9E,eAAO,MAAM,cAAc,uBAAoD,CAAC;AAEhF,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AACnE,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;AAgBxE,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AACzE,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;AAgB9E,wBAAgB,YAAY,oBAsB3B;AAED,wBAAgB,UAAU,oBAOzB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsdoctor/utils",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/web-infra-dev/rsdoctor",
@@ -84,14 +84,14 @@
84
84
  "lodash": "^4.17.21",
85
85
  "rslog": "^1.2.0",
86
86
  "strip-ansi": "^6.0.1",
87
- "@rsdoctor/types": "0.3.1"
87
+ "@rsdoctor/types": "0.3.2"
88
88
  },
89
89
  "devDependencies": {
90
90
  "@types/deep-eql": "4.0.0",
91
91
  "@types/babel__code-frame": "7.0.3",
92
92
  "@types/bytes": "3.1.1",
93
93
  "@types/connect": "3.4.35",
94
- "@types/envinfo": "7.8.1",
94
+ "@types/envinfo": "7.8.4",
95
95
  "@types/fs-extra": "^11.0.2",
96
96
  "@types/lodash": "^4.17.0",
97
97
  "@types/node": "^16",