MCPcopy
hub / github.com/11ty/buildawesome / satisfies

Method satisfies

src/Util/Compatibility.js:44–52  ·  view source on GitHub ↗
(version, compatibleRange)

Source from the content-addressed store, hash-verified

42 }
43
44 static satisfies(version, compatibleRange) {
45 return semver.satisfies(
46 Compatibility.normalizeIdentifier(version),
47 Compatibility.normalizeIdentifier(compatibleRange),
48 {
49 includePrerelease: true,
50 },
51 );
52 }
53
54 getErrorMessage() {
55 return `We found Eleventy version '${pkg.version}' which does not meet the required version range: '${this.compatibleRange}'. Use \`npm install @11ty/eleventy\` to upgrade your local project to the latest Eleventy version (or \`npm install @11ty/eleventy -g\` to upgrade the globally installed version).`;

Callers 3

SemverCheckTest.jsFile · 0.80
isCompatibleMethod · 0.80

Calls 1

normalizeIdentifierMethod · 0.80

Tested by

no test coverage detected