Skip to content

Commit

Permalink
fix: sastisfies cjs export
Browse files Browse the repository at this point in the history
  • Loading branch information
cudr authored and omichelsen committed Aug 24, 2022
1 parent 866fe3c commit dd7d617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const satisfies = (v, r) => {
// export CJS style for parity
compareVersions.validate = validate;
compareVersions.compare = compare;
compareVersions.sastisfies = satisfies;
compareVersions.satisfies = satisfies;

const semver =
/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;
Expand Down

0 comments on commit dd7d617

Please sign in to comment.