@pnpm/lockfile.fs 1100.1.3 → 1100.1.4

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.
@@ -1,17 +1,8 @@
1
1
  import { LOCKFILE_VERSION } from '@pnpm/constants';
2
2
  import { parse, refToRelative, removeSuffix } from '@pnpm/deps.path';
3
+ import { isGitHostedTarballUrl } from '@pnpm/lockfile.utils';
3
4
  import { DEPENDENCIES_FIELDS } from '@pnpm/types';
4
5
  import { isEmpty, map as _mapValues, omit, pick, pickBy } from 'ramda';
5
- // Minimal duplicate of `isGitHostedPkgUrl` from `@pnpm/fetching.pick-fetcher`,
6
- // inlined to avoid pulling the fetcher dep into the lockfile I/O layer. Used
7
- // to enrich entries written by older pnpm versions (which didn't record the
8
- // `gitHosted` field on TarballResolution) so every downstream reader can rely
9
- // on the field directly.
10
- function isGitHostedTarballUrl(url) {
11
- return (url.startsWith('https://codeload.github.com/') ||
12
- url.startsWith('https://bitbucket.org/') ||
13
- url.startsWith('https://gitlab.com/')) && url.includes('tar.gz');
14
- }
15
6
  export function convertToLockfileFile(lockfile) {
16
7
  const packages = {};
17
8
  const snapshots = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/lockfile.fs",
3
- "version": "1100.1.3",
3
+ "version": "1100.1.4",
4
4
  "description": "Read/write pnpm-lock.yaml files",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -38,14 +38,14 @@
38
38
  "strip-bom": "^5.0.0",
39
39
  "write-file-atomic": "^7.0.1",
40
40
  "@pnpm/constants": "1100.0.0",
41
+ "@pnpm/deps.path": "1100.0.7",
41
42
  "@pnpm/error": "1100.0.0",
42
- "@pnpm/deps.path": "1100.0.6",
43
- "@pnpm/lockfile.types": "1100.0.9",
44
- "@pnpm/lockfile.utils": "1100.0.11",
45
- "@pnpm/types": "1101.3.0",
43
+ "@pnpm/lockfile.types": "1100.0.10",
44
+ "@pnpm/lockfile.merger": "1100.0.10",
45
+ "@pnpm/lockfile.utils": "1100.0.12",
46
46
  "@pnpm/object.key-sorting": "1100.0.0",
47
47
  "@pnpm/network.git-utils": "1100.0.1",
48
- "@pnpm/lockfile.merger": "1100.0.9"
48
+ "@pnpm/types": "1101.3.1"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "@pnpm/logger": "^1001.0.1"
@@ -60,8 +60,8 @@
60
60
  "tempy": "3.0.0",
61
61
  "write-yaml-file": "^6.0.0",
62
62
  "yaml-tag": "1.1.0",
63
- "@pnpm/logger": "1100.0.0",
64
- "@pnpm/lockfile.fs": "1100.1.3"
63
+ "@pnpm/lockfile.fs": "1100.1.4",
64
+ "@pnpm/logger": "1100.0.0"
65
65
  },
66
66
  "engines": {
67
67
  "node": ">=22.13"