@pnpm/client 9.1.7 → 10.0.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.
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +13 -13
package/lib/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export type ClientOptions = {
|
|
|
16
16
|
userConfig?: Record<string, string>;
|
|
17
17
|
gitShallowHosts?: string[];
|
|
18
18
|
resolveSymlinksInInjectedDirs?: boolean;
|
|
19
|
+
includeOnlyPackageFiles?: boolean;
|
|
19
20
|
} & ResolverFactoryOptions & AgentOptions;
|
|
20
21
|
export interface Client {
|
|
21
22
|
fetchers: Fetchers;
|
package/lib/index.js
CHANGED
|
@@ -30,7 +30,7 @@ function createFetchers(fetchFromRegistry, getAuthHeader, opts, customFetchers)
|
|
|
30
30
|
const defaultFetchers = {
|
|
31
31
|
...(0, tarball_fetcher_1.createTarballFetcher)(fetchFromRegistry, getAuthHeader, opts),
|
|
32
32
|
...(0, git_fetcher_1.createGitFetcher)(opts),
|
|
33
|
-
...(0, directory_fetcher_1.createDirectoryFetcher)({ resolveSymlinks: opts.resolveSymlinksInInjectedDirs }),
|
|
33
|
+
...(0, directory_fetcher_1.createDirectoryFetcher)({ resolveSymlinks: opts.resolveSymlinksInInjectedDirs, includeOnlyPackageFiles: opts.includeOnlyPackageFiles }),
|
|
34
34
|
};
|
|
35
35
|
const overwrites = (0, map_1.default)((factory) => factory({ defaultFetchers }), // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
36
36
|
customFetchers ?? {} // eslint-disable-line @typescript-eslint/no-explicit-any
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,6DAI+B;AAC/B,uCAAwE;AAGxE,+DAAgE;AAChE,mDAAoD;AACpD,2DAAkF;AACl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sB,EAAC,EAAE,eAAe,EAAE,IAAI,CAAC,6BAA6B,EAAE,uBAAuB,EAAE,IAAI,CAAC,uBAAuB,EAAE,CAAC;KAC1I,CAAA;IAED,MAAM,UAAU,GAAG,IAAA,aAAS,EAC1B,CAAC,OAAY,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC,EAAE,yDAAyD;IACzG,cAAc,IAAI,EAAS,CAAC,yDAAyD;KACtF,CAAA;IAED,OAAO;QACL,GAAG,eAAe;QAClB,GAAG,UAAU;KACd,CAAA;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.1",
|
|
4
4
|
"description": "Creates the package resolve and fetch functions",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
"!*.map"
|
|
10
10
|
],
|
|
11
11
|
"engines": {
|
|
12
|
-
"node": ">=14
|
|
12
|
+
"node": ">=16.14"
|
|
13
13
|
},
|
|
14
14
|
"repository": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/client",
|
|
15
15
|
"keywords": [
|
|
16
|
-
"
|
|
16
|
+
"pnpm8",
|
|
17
17
|
"pnpm",
|
|
18
18
|
"resolver",
|
|
19
19
|
"npm"
|
|
@@ -25,19 +25,19 @@
|
|
|
25
25
|
"homepage": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/client#readme",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"ramda": "npm:@pnpm/ramda@0.28.1",
|
|
28
|
-
"@pnpm/default-resolver": "
|
|
29
|
-
"@pnpm/directory-fetcher": "
|
|
30
|
-
"@pnpm/fetch": "
|
|
31
|
-
"@pnpm/fetching-types": "
|
|
32
|
-
"@pnpm/git-fetcher": "
|
|
33
|
-
"@pnpm/network.auth-header": "
|
|
34
|
-
"@pnpm/resolver-base": "
|
|
35
|
-
"@pnpm/tarball-fetcher": "
|
|
28
|
+
"@pnpm/default-resolver": "18.0.1",
|
|
29
|
+
"@pnpm/directory-fetcher": "6.0.0",
|
|
30
|
+
"@pnpm/fetch": "7.0.0",
|
|
31
|
+
"@pnpm/fetching-types": "5.0.0",
|
|
32
|
+
"@pnpm/git-fetcher": "9.0.0",
|
|
33
|
+
"@pnpm/network.auth-header": "2.0.0",
|
|
34
|
+
"@pnpm/resolver-base": "10.0.0",
|
|
35
|
+
"@pnpm/tarball-fetcher": "15.0.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/ramda": "0.28.20",
|
|
39
|
-
"@pnpm/client": "
|
|
40
|
-
"@pnpm/fetcher-base": "
|
|
39
|
+
"@pnpm/client": "10.0.1",
|
|
40
|
+
"@pnpm/fetcher-base": "14.0.0"
|
|
41
41
|
},
|
|
42
42
|
"funding": "https://opencollective.com/pnpm",
|
|
43
43
|
"exports": {
|