@pnpm/store-connection-manager 1002.2.3 → 1002.3.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.
|
@@ -2,7 +2,7 @@ import { type ClientOptions } from '@pnpm/client';
|
|
|
2
2
|
import { type Config } from '@pnpm/config';
|
|
3
3
|
import { type CafsLocker, type StoreController } from '@pnpm/package-store';
|
|
4
4
|
type CreateResolverOptions = Pick<Config, 'fetchRetries' | 'fetchRetryFactor' | 'fetchRetryMaxtimeout' | 'fetchRetryMintimeout' | 'offline' | 'rawConfig' | 'verifyStoreIntegrity'> & Required<Pick<Config, 'cacheDir' | 'storeDir'>>;
|
|
5
|
-
export type CreateNewStoreControllerOptions = CreateResolverOptions & Pick<Config, 'ca' | 'cert' | 'engineStrict' | 'force' | 'nodeVersion' | 'fetchTimeout' | 'fetchWarnTimeoutMs' | 'fetchMinSpeedKiBps' | 'gitShallowHosts' | 'ignoreScripts' | 'hooks' | 'httpProxy' | 'httpsProxy' | 'key' | 'localAddress' | 'maxSockets' | 'minimumReleaseAge' | 'networkConcurrency' | 'noProxy' | 'offline' | 'packageImportMethod' | 'preferOffline' | 'preserveAbsolutePaths' | 'registries' | 'registrySupportsTimeField' | 'resolutionMode' | 'saveWorkspaceProtocol' | 'strictSsl' | 'unsafePerm' | 'userAgent' | 'verifyStoreIntegrity' | 'virtualStoreDirMaxLength'> & {
|
|
5
|
+
export type CreateNewStoreControllerOptions = CreateResolverOptions & Pick<Config, 'ca' | 'cert' | 'engineStrict' | 'force' | 'nodeVersion' | 'fetchTimeout' | 'fetchWarnTimeoutMs' | 'fetchMinSpeedKiBps' | 'gitShallowHosts' | 'ignoreScripts' | 'hooks' | 'httpProxy' | 'httpsProxy' | 'key' | 'localAddress' | 'maxSockets' | 'minimumReleaseAge' | 'networkConcurrency' | 'noProxy' | 'offline' | 'packageImportMethod' | 'preferOffline' | 'preserveAbsolutePaths' | 'registries' | 'registrySupportsTimeField' | 'resolutionMode' | 'saveWorkspaceProtocol' | 'strictSsl' | 'trustPolicy' | 'unsafePerm' | 'userAgent' | 'verifyStoreIntegrity' | 'virtualStoreDirMaxLength'> & {
|
|
6
6
|
cafsLocker?: CafsLocker;
|
|
7
7
|
ignoreFile?: (filename: string) => boolean;
|
|
8
8
|
fetchFullMetadata?: boolean;
|
|
@@ -6,7 +6,9 @@ const client_1 = require("@pnpm/client");
|
|
|
6
6
|
const package_store_1 = require("@pnpm/package-store");
|
|
7
7
|
const cli_meta_1 = require("@pnpm/cli-meta");
|
|
8
8
|
async function createNewStoreController(opts) {
|
|
9
|
-
const fullMetadata = opts.fetchFullMetadata ?? ((opts.resolutionMode === 'time-based' ||
|
|
9
|
+
const fullMetadata = opts.fetchFullMetadata ?? ((opts.resolutionMode === 'time-based' ||
|
|
10
|
+
Boolean(opts.minimumReleaseAge) ||
|
|
11
|
+
opts.trustPolicy === 'no-downgrade') && !opts.registrySupportsTimeField);
|
|
10
12
|
const { resolve, fetchers, clearResolutionCache } = (0, client_1.createClient)({
|
|
11
13
|
customFetchers: opts.hooks?.fetchers,
|
|
12
14
|
userConfig: opts.userConfig,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createNewStoreController.js","sourceRoot":"","sources":["../src/createNewStoreController.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"createNewStoreController.js","sourceRoot":"","sources":["../src/createNewStoreController.ts"],"names":[],"mappings":";;AAwDA,4DA6EC;AArID,2BAAmC;AACnC,yCAA+D;AAE/D,uDAA+F;AAC/F,6CAA+C;AAoDxC,KAAK,UAAU,wBAAwB,CAC5C,IAAqC;IAErC,MAAM,YAAY,GAAG,IAAI,CAAC,iBAAiB,IAAI,CAC7C,CACE,IAAI,CAAC,cAAc,KAAK,YAAY;QACpC,OAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC;QAC/B,IAAI,CAAC,WAAW,KAAK,cAAc,CACpC,IAAI,CAAC,IAAI,CAAC,yBAAyB,CACrC,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;SACrB,CAAC;QACF,GAAG,EAAE,IAAI,CAAC,QAAQ;KACnB,CAAA;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/store-connection-manager",
|
|
3
|
-
"version": "1002.
|
|
3
|
+
"version": "1002.3.0",
|
|
4
4
|
"description": "Create a direct pnpm store controller or connect to a running store server",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
],
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"funding": "https://opencollective.com/pnpm",
|
|
11
|
-
"repository": "https://github.com/pnpm/pnpm/
|
|
12
|
-
"homepage": "https://github.com/pnpm/pnpm/
|
|
11
|
+
"repository": "https://github.com/pnpm/pnpm/tree/main/store/store-connection-manager",
|
|
12
|
+
"homepage": "https://github.com/pnpm/pnpm/tree/main/store/store-connection-manager#readme",
|
|
13
13
|
"bugs": {
|
|
14
14
|
"url": "https://github.com/pnpm/pnpm/issues"
|
|
15
15
|
},
|
|
@@ -27,20 +27,20 @@
|
|
|
27
27
|
"@zkochan/diable": "^1.0.2",
|
|
28
28
|
"delay": "^5.0.0",
|
|
29
29
|
"dir-is-case-sensitive": "^2.0.0",
|
|
30
|
-
"@pnpm/
|
|
31
|
-
"@pnpm/config": "1004.
|
|
32
|
-
"@pnpm/cli-meta": "1000.0.11",
|
|
30
|
+
"@pnpm/cli-meta": "1000.0.12",
|
|
31
|
+
"@pnpm/config": "1004.5.0",
|
|
33
32
|
"@pnpm/error": "1000.0.5",
|
|
34
|
-
"@pnpm/
|
|
35
|
-
"@pnpm/
|
|
36
|
-
"@pnpm/
|
|
33
|
+
"@pnpm/server": "1001.0.12",
|
|
34
|
+
"@pnpm/store-path": "1000.0.5",
|
|
35
|
+
"@pnpm/client": "1001.1.5",
|
|
36
|
+
"@pnpm/package-store": "1004.0.1"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"@pnpm/logger": ">=1001.0.0 <1002.0.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@pnpm/logger": "1001.0.1",
|
|
43
|
-
"@pnpm/store-connection-manager": "1002.
|
|
43
|
+
"@pnpm/store-connection-manager": "1002.3.0"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
46
46
|
"node": ">=18.12"
|