@pnpm/client 1000.0.21 → 1000.1.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/index.d.ts +2 -1
- package/lib/index.js +6 -0
- package/lib/index.js.map +1 -1
- package/package.json +14 -12
package/lib/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { type ResolveFunction, type ResolverFactoryOptions } from '@pnpm/default
|
|
|
2
2
|
import { type AgentOptions } from '@pnpm/fetch';
|
|
3
3
|
import { type SslConfig } from '@pnpm/types';
|
|
4
4
|
import { type RetryTimeoutOptions } from '@pnpm/fetching-types';
|
|
5
|
-
import type { CustomFetchers, GitFetcher, DirectoryFetcher } from '@pnpm/fetcher-base';
|
|
5
|
+
import type { CustomFetchers, GitFetcher, DirectoryFetcher, NodeRuntimeFetcher } from '@pnpm/fetcher-base';
|
|
6
6
|
import { type TarballFetchers } from '@pnpm/tarball-fetcher';
|
|
7
7
|
export type { ResolveFunction };
|
|
8
8
|
export type ClientOptions = {
|
|
@@ -33,4 +33,5 @@ export declare function createResolver(opts: ClientOptions): {
|
|
|
33
33
|
type Fetchers = {
|
|
34
34
|
git: GitFetcher;
|
|
35
35
|
directory: DirectoryFetcher;
|
|
36
|
+
nodeRuntime: NodeRuntimeFetcher;
|
|
36
37
|
} & TarballFetchers;
|
package/lib/index.js
CHANGED
|
@@ -11,6 +11,7 @@ const directory_fetcher_1 = require("@pnpm/directory-fetcher");
|
|
|
11
11
|
const git_fetcher_1 = require("@pnpm/git-fetcher");
|
|
12
12
|
const tarball_fetcher_1 = require("@pnpm/tarball-fetcher");
|
|
13
13
|
const network_auth_header_1 = require("@pnpm/network.auth-header");
|
|
14
|
+
const node_fetcher_1 = require("@pnpm/node.fetcher");
|
|
14
15
|
const map_1 = __importDefault(require("ramda/src/map"));
|
|
15
16
|
function createClient(opts) {
|
|
16
17
|
const fetchFromRegistry = (0, fetch_1.createFetchFromRegistry)(opts);
|
|
@@ -32,6 +33,11 @@ function createFetchers(fetchFromRegistry, getAuthHeader, opts, customFetchers)
|
|
|
32
33
|
...(0, tarball_fetcher_1.createTarballFetcher)(fetchFromRegistry, getAuthHeader, opts),
|
|
33
34
|
...(0, git_fetcher_1.createGitFetcher)(opts),
|
|
34
35
|
...(0, directory_fetcher_1.createDirectoryFetcher)({ resolveSymlinks: opts.resolveSymlinksInInjectedDirs, includeOnlyPackageFiles: opts.includeOnlyPackageFiles }),
|
|
36
|
+
...(0, node_fetcher_1.createNodeRuntimeFetcher)({
|
|
37
|
+
fetch: fetchFromRegistry,
|
|
38
|
+
offline: opts.offline,
|
|
39
|
+
rawConfig: opts.rawConfig,
|
|
40
|
+
}),
|
|
35
41
|
};
|
|
36
42
|
const overwrites = (0, map_1.default)((factory) => factory({ defaultFetchers }), // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
37
43
|
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":";;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAwCA,oCASC;AAED,wCAIC;AAvDD,6DAI+B;AAC/B,uCAAwE;AAIxE,+DAAgE;AAChE,mDAAoD;AACpD,2DAAkF;AAClF,mEAAoE;AACpE,qDAA6D;AAC7D,wDAAqC;AA0BrC,SAAgB,YAAY,CAAE,IAAmB;IAC/C,MAAM,iBAAiB,GAAG,IAAA,+BAAuB,EAAC,IAAI,CAAC,CAAA;IACvD,MAAM,aAAa,GAAG,IAAA,8CAAwB,EAAC,EAAE,WAAW,EAAE,IAAI,CAAC,UAAU,EAAE,YAAY,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAA;IAC/G,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,GAAG,IAAA,iCAAe,EA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UAAU;KACd,CAAA;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/client",
|
|
3
|
-
"version": "1000.0
|
|
3
|
+
"version": "1000.1.0",
|
|
4
4
|
"description": "Creates the package resolve and fetch functions",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"bugs": {
|
|
16
16
|
"url": "https://github.com/pnpm/pnpm/issues"
|
|
17
17
|
},
|
|
18
|
+
"type": "commonjs",
|
|
18
19
|
"main": "lib/index.js",
|
|
19
20
|
"types": "lib/index.d.ts",
|
|
20
21
|
"exports": {
|
|
@@ -26,20 +27,21 @@
|
|
|
26
27
|
],
|
|
27
28
|
"dependencies": {
|
|
28
29
|
"ramda": "npm:@pnpm/ramda@0.28.1",
|
|
29
|
-
"@pnpm/
|
|
30
|
-
"@pnpm/
|
|
31
|
-
"@pnpm/
|
|
32
|
-
"@pnpm/git-fetcher": "1001.0.
|
|
33
|
-
"@pnpm/
|
|
34
|
-
"@pnpm/
|
|
35
|
-
"@pnpm/
|
|
36
|
-
"@pnpm/
|
|
37
|
-
"@pnpm/resolver
|
|
30
|
+
"@pnpm/directory-fetcher": "1000.1.9",
|
|
31
|
+
"@pnpm/fetching-types": "1000.2.0",
|
|
32
|
+
"@pnpm/fetch": "1000.2.3",
|
|
33
|
+
"@pnpm/git-fetcher": "1001.0.11",
|
|
34
|
+
"@pnpm/network.auth-header": "1000.0.4",
|
|
35
|
+
"@pnpm/resolver-base": "1004.1.0",
|
|
36
|
+
"@pnpm/node.fetcher": "1000.1.0",
|
|
37
|
+
"@pnpm/tarball-fetcher": "1001.0.11",
|
|
38
|
+
"@pnpm/default-resolver": "1002.1.2",
|
|
39
|
+
"@pnpm/types": "1000.7.0"
|
|
38
40
|
},
|
|
39
41
|
"devDependencies": {
|
|
40
42
|
"@types/ramda": "0.29.12",
|
|
41
|
-
"@pnpm/
|
|
42
|
-
"@pnpm/
|
|
43
|
+
"@pnpm/client": "1000.1.0",
|
|
44
|
+
"@pnpm/fetcher-base": "1000.1.0"
|
|
43
45
|
},
|
|
44
46
|
"engines": {
|
|
45
47
|
"node": ">=18.12"
|