@vltpkg/satisfies 1.0.0-rc.2 → 1.0.0-rc.22

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/package.json CHANGED
@@ -1,73 +1,63 @@
1
1
  {
2
2
  "name": "@vltpkg/satisfies",
3
3
  "description": "method for determining if a DepID satisfies a Spec",
4
- "version": "1.0.0-rc.2",
4
+ "version": "1.0.0-rc.22",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/vltpkg/vltpkg.git",
8
8
  "directory": "src/satisfies"
9
9
  },
10
- "author": "vlt technology inc. <support@vlt.sh> (http://vlt.sh)",
11
- "tshy": {
12
- "selfLink": false,
13
- "liveDev": true,
14
- "dialects": [
15
- "esm"
16
- ],
17
- "exports": {
18
- "./package.json": "./package.json",
19
- ".": "./src/index.ts"
20
- }
10
+ "author": {
11
+ "name": "vlt technology inc.",
12
+ "email": "support@vlt.sh"
21
13
  },
22
14
  "dependencies": {
23
- "@vltpkg/dep-id": "1.0.0-rc.2",
24
- "@vltpkg/semver": "1.0.0-rc.2",
25
- "@vltpkg/error-cause": "1.0.0-rc.2",
26
- "@vltpkg/workspaces": "1.0.0-rc.2",
27
- "@vltpkg/spec": "1.0.0-rc.2"
15
+ "@vltpkg/dep-id": "1.0.0-rc.22",
16
+ "@vltpkg/error-cause": "1.0.0-rc.22",
17
+ "@vltpkg/semver": "1.0.0-rc.22",
18
+ "@vltpkg/spec": "1.0.0-rc.22",
19
+ "@vltpkg/workspaces": "1.0.0-rc.22"
28
20
  },
29
21
  "devDependencies": {
30
- "@eslint/js": "^9.34.0",
31
- "@types/node": "^22.17.2",
32
- "eslint": "^9.34.0",
33
- "prettier": "^3.6.2",
34
- "tap": "^21.1.0",
35
- "tshy": "^3.0.2",
22
+ "@eslint/js": "^9.39.1",
23
+ "@types/node": "^22.19.2",
24
+ "eslint": "^9.39.1",
25
+ "prettier": "^3.7.4",
26
+ "tap": "^21.5.0",
36
27
  "typedoc": "~0.27.9",
37
28
  "typescript": "5.7.3",
38
- "typescript-eslint": "^8.40.0"
29
+ "typescript-eslint": "^8.49.0"
39
30
  },
40
31
  "license": "BSD-2-Clause-Patent",
41
32
  "engines": {
42
- "node": ">=22"
33
+ "node": ">=22.22.0"
34
+ },
35
+ "scripts": {
36
+ "format": "prettier --write . --log-level warn --ignore-path ../../.prettierignore --cache",
37
+ "format:check": "prettier --check . --ignore-path ../../.prettierignore --cache",
38
+ "lint": "eslint . --fix",
39
+ "lint:check": "eslint .",
40
+ "prepack": "tsc -p tsconfig.publish.json && ../../scripts/update-dist-exports.ts",
41
+ "snap": "tap",
42
+ "test": "tap",
43
+ "posttest": "tsc --noEmit",
44
+ "typecheck": "tsc --noEmit"
43
45
  },
44
46
  "tap": {
45
47
  "extends": "../../tap-config.yaml"
46
48
  },
47
49
  "prettier": "../../.prettierrc.js",
48
- "module": "./dist/esm/index.js",
50
+ "module": "./src/index.ts",
49
51
  "type": "module",
50
52
  "exports": {
51
53
  "./package.json": "./package.json",
52
54
  ".": {
53
55
  "import": {
54
- "types": "./dist/esm/index.d.ts",
55
- "default": "./dist/esm/index.js"
56
+ "default": "./src/index.ts"
56
57
  }
57
58
  }
58
59
  },
59
60
  "files": [
60
61
  "dist"
61
- ],
62
- "scripts": {
63
- "format": "prettier --write . --log-level warn --ignore-path ../../.prettierignore --cache",
64
- "format:check": "prettier --check . --ignore-path ../../.prettierignore --cache",
65
- "lint": "eslint . --fix",
66
- "lint:check": "eslint .",
67
- "snap": "tap",
68
- "test": "tap",
69
- "posttest": "tsc --noEmit",
70
- "tshy": "tshy",
71
- "typecheck": "tsc --noEmit"
72
- }
73
- }
62
+ ]
63
+ }
@@ -1,10 +0,0 @@
1
- import type { DepID, DepIDTuple } from '@vltpkg/dep-id';
2
- import { Spec } from '@vltpkg/spec';
3
- import { Monorepo } from '@vltpkg/workspaces';
4
- /**
5
- * Return true if the node referenced by this DepID would satisfy the
6
- * supplied Spec object.
7
- */
8
- export declare const satisfies: (id: DepID | undefined, spec: Spec, fromLocation?: string, projectRoot?: string, monorepo?: Monorepo) => boolean;
9
- export declare const satisfiesTuple: (tuple: DepIDTuple, spec: Spec, fromLocation?: string, projectRoot?: string, monorepo?: Monorepo) => boolean;
10
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAGvD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAEnC,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAG7C;;;GAGG;AACH,eAAO,MAAM,SAAS,OAChB,KAAK,GAAG,SAAS,QACf,IAAI,0DAGC,QAAQ,KAClB,OAQA,CAAA;AAEH,eAAO,MAAM,cAAc,UAClB,UAAU,QACX,IAAI,0DAGC,QAAQ,KAClB,OAqGF,CAAA"}
package/dist/esm/index.js DELETED
@@ -1,119 +0,0 @@
1
- import { splitDepID } from '@vltpkg/dep-id';
2
- import { error } from '@vltpkg/error-cause';
3
- import { parse, Version } from '@vltpkg/semver';
4
- import { Spec } from '@vltpkg/spec';
5
- import { Monorepo } from '@vltpkg/workspaces';
6
- import { relative, resolve } from 'node:path';
7
- /**
8
- * Return true if the node referenced by this DepID would satisfy the
9
- * supplied Spec object.
10
- */
11
- export const satisfies = (id, spec, fromLocation = process.cwd(), projectRoot = process.cwd(), monorepo) => !!id &&
12
- satisfiesTuple(splitDepID(id), spec, fromLocation, projectRoot, monorepo);
13
- export const satisfiesTuple = (tuple, spec, fromLocation = process.cwd(), projectRoot = process.cwd(), monorepo) => {
14
- const { options } = spec;
15
- spec = spec.final;
16
- const [type, first, second] = tuple;
17
- if (spec.type !== type)
18
- return false;
19
- switch (spec.type) {
20
- case 'registry': {
21
- if (!first) {
22
- // must be from the default registry
23
- if (spec.registry !== options.registry) {
24
- return false;
25
- }
26
- }
27
- else {
28
- let namedRegistry = options.registries[first];
29
- if (!namedRegistry && first === 'npm') {
30
- namedRegistry = options.registry;
31
- }
32
- if (namedRegistry && namedRegistry !== spec.registry) {
33
- // we know the name, and it's not the registry being used
34
- return false;
35
- }
36
- else if (!namedRegistry && first !== spec.registry) {
37
- // an explicit registry URL, but does not match
38
- return false;
39
- }
40
- }
41
- /* c8 ignore next */
42
- if (!second)
43
- throw error('Invalid DepID', { found: tuple });
44
- const [name, version] = parseNameVer(second);
45
- return (
46
- // mismatched name always invalid
47
- name !== spec.name || !version ? false
48
- // if just a dist-tag, assume valid
49
- : !spec.range ? true
50
- : spec.range.test(Version.parse(version)));
51
- }
52
- case 'file': {
53
- /* c8 ignore next - should be impossible */
54
- if (spec.file === undefined)
55
- return false;
56
- const resolvedSpec = resolve(projectRoot, fromLocation, spec.file);
57
- const resolvedId = resolve(projectRoot, first);
58
- // valid if the relative path is '', refers to the same path
59
- return !relative(resolvedSpec, resolvedId);
60
- }
61
- case 'workspace': {
62
- monorepo ??= Monorepo.load(projectRoot);
63
- /* c8 ignore next */
64
- if (!spec.workspace)
65
- return false;
66
- const fromID = monorepo.get(first);
67
- const fromSpec = monorepo.get(spec.workspace);
68
- if (fromID !== fromSpec || !fromSpec || !fromID)
69
- return false;
70
- if (!spec.range)
71
- return true;
72
- const v = parse(fromID.manifest.version ?? '');
73
- return !!v && spec.range.test(v);
74
- }
75
- case 'remote': {
76
- return spec.remoteURL === first;
77
- }
78
- case 'git': {
79
- const { gitRemote, gitSelectorParsed = {}, gitSelector, gitCommittish, namedGitHost, namedGitHostPath, } = spec;
80
- if (gitRemote !== first) {
81
- if (namedGitHost && namedGitHostPath) {
82
- const ngh = `${namedGitHost}:`;
83
- if (first.startsWith(ngh)) {
84
- if (first !== ngh + namedGitHostPath)
85
- return false;
86
- }
87
- else
88
- return false;
89
- }
90
- else
91
- return false;
92
- }
93
- if (gitSelector && !second)
94
- return false;
95
- /* c8 ignore next - always set to something, even if empty */
96
- const [parsed, committish] = Spec.parseGitSelector(second ?? '');
97
- if (gitCommittish && committish)
98
- return committish.startsWith(gitCommittish);
99
- for (const [k, v] of Object.entries(gitSelectorParsed)) {
100
- if (parsed[k] !== v)
101
- return false;
102
- }
103
- return true;
104
- }
105
- /* c8 ignore start */
106
- default: {
107
- throw error('Invalid spec type', { spec });
108
- }
109
- }
110
- /* c8 ignore stop */
111
- };
112
- const parseNameVer = (nv) => {
113
- const at = nv.lastIndexOf('@');
114
- // if it's 0, means @scoped without a version
115
- return at <= 0 ?
116
- [nv, '']
117
- : [nv.substring(0, at), nv.substring(at + 1)];
118
- };
119
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAE3C,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAC3C,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAEnC,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAC7C,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAE7C;;;GAGG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CACvB,EAAqB,EACrB,IAAU,EACV,YAAY,GAAG,OAAO,CAAC,GAAG,EAAE,EAC5B,WAAW,GAAG,OAAO,CAAC,GAAG,EAAE,EAC3B,QAAmB,EACV,EAAE,CACX,CAAC,CAAC,EAAE;IACJ,cAAc,CACZ,UAAU,CAAC,EAAE,CAAC,EACd,IAAI,EACJ,YAAY,EACZ,WAAW,EACX,QAAQ,CACT,CAAA;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,KAAiB,EACjB,IAAU,EACV,YAAY,GAAG,OAAO,CAAC,G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C,CAAC,CAAC;YACR,MAAM,KAAK,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,CAAC,CAAA;QAC5C,CAAC;IACH,CAAC;IACD,oBAAoB;AACtB,CAAC,CAAA;AAED,MAAM,YAAY,GAAG,CAAC,EAAU,EAAoB,EAAE;IACpD,MAAM,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,CAAC,CAAA;IAC9B,6CAA6C;IAC7C,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;QACZ,CAAC,EAAE,EAAE,EAAE,CAAC;QACV,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAA;AACjD,CAAC,CAAA","sourcesContent":["import { splitDepID } from '@vltpkg/dep-id'\nimport type { DepID, DepIDTuple } from '@vltpkg/dep-id'\nimport { error } from '@vltpkg/error-cause'\nimport { parse, Version } from '@vltpkg/semver'\nimport { Spec } from '@vltpkg/spec'\nimport type { GitSelectorParsed } from '@vltpkg/spec'\nimport { Monorepo } from '@vltpkg/workspaces'\nimport { relative, resolve } from 'node:path'\n\n/**\n * Return true if the node referenced by this DepID would satisfy the\n * supplied Spec object.\n */\nexport const satisfies = (\n id: DepID | undefined,\n spec: Spec,\n fromLocation = process.cwd(),\n projectRoot = process.cwd(),\n monorepo?: Monorepo,\n): boolean =>\n !!id &&\n satisfiesTuple(\n splitDepID(id),\n spec,\n fromLocation,\n projectRoot,\n monorepo,\n )\n\nexport const satisfiesTuple = (\n tuple: DepIDTuple,\n spec: Spec,\n fromLocation = process.cwd(),\n projectRoot = process.cwd(),\n monorepo?: Monorepo,\n): boolean => {\n const { options } = spec\n spec = spec.final\n const [type, first, second] = tuple\n if (spec.type !== type) return false\n\n switch (spec.type) {\n case 'registry': {\n if (!first) {\n // must be from the default registry\n if (spec.registry !== options.registry) {\n return false\n }\n } else {\n let namedRegistry = options.registries[first]\n if (!namedRegistry && first === 'npm') {\n namedRegistry = options.registry\n }\n if (namedRegistry && namedRegistry !== spec.registry) {\n // we know the name, and it's not the registry being used\n return false\n } else if (!namedRegistry && first !== spec.registry) {\n // an explicit registry URL, but does not match\n return false\n }\n }\n /* c8 ignore next */\n if (!second) throw error('Invalid DepID', { found: tuple })\n const [name, version] = parseNameVer(second)\n return (\n // mismatched name always invalid\n name !== spec.name || !version ? false\n // if just a dist-tag, assume valid\n : !spec.range ? true\n : spec.range.test(Version.parse(version))\n )\n }\n\n case 'file': {\n /* c8 ignore next - should be impossible */\n if (spec.file === undefined) return false\n const resolvedSpec = resolve(\n projectRoot,\n fromLocation,\n spec.file,\n )\n const resolvedId = resolve(projectRoot, first)\n // valid if the relative path is '', refers to the same path\n return !relative(resolvedSpec, resolvedId)\n }\n\n case 'workspace': {\n monorepo ??= Monorepo.load(projectRoot)\n /* c8 ignore next */\n if (!spec.workspace) return false\n const fromID = monorepo.get(first)\n const fromSpec = monorepo.get(spec.workspace)\n if (fromID !== fromSpec || !fromSpec || !fromID) return false\n if (!spec.range) return true\n const v = parse(fromID.manifest.version ?? '')\n return !!v && spec.range.test(v)\n }\n\n case 'remote': {\n return spec.remoteURL === first\n }\n\n case 'git': {\n const {\n gitRemote,\n gitSelectorParsed = {},\n gitSelector,\n gitCommittish,\n namedGitHost,\n namedGitHostPath,\n } = spec\n if (gitRemote !== first) {\n if (namedGitHost && namedGitHostPath) {\n const ngh = `${namedGitHost}:`\n if (first.startsWith(ngh)) {\n if (first !== ngh + namedGitHostPath) return false\n } else return false\n } else return false\n }\n if (gitSelector && !second) return false\n /* c8 ignore next - always set to something, even if empty */\n const [parsed, committish] = Spec.parseGitSelector(second ?? '')\n if (gitCommittish && committish)\n return committish.startsWith(gitCommittish)\n for (const [k, v] of Object.entries(gitSelectorParsed)) {\n if (parsed[k as keyof GitSelectorParsed] !== v) return false\n }\n return true\n }\n\n /* c8 ignore start */\n default: {\n throw error('Invalid spec type', { spec })\n }\n }\n /* c8 ignore stop */\n}\n\nconst parseNameVer = (nv: string): [string, string] => {\n const at = nv.lastIndexOf('@')\n // if it's 0, means @scoped without a version\n return at <= 0 ?\n [nv, '']\n : [nv.substring(0, at), nv.substring(at + 1)]\n}\n"]}
@@ -1,3 +0,0 @@
1
- {
2
- "type": "module"
3
- }