Top Level Namespace

Included Modules

Extended Modules

Defined in:

Constant Summary

A_CAPS_ORD = 65
A_ORD = 97
COMPARATOR_INTERSECTION_FIXTURES = { {"1.3.0", ">=1.3.0", "1.3.0"}, {"1.3.0", ">1.3.0", ""}, {">=1.3.0", "1.3.0", "1.3.0"}, {">1.3.0", "1.3.0", ""}, {">1.3.0", ">1.2.0", ">1.3.0"}, {">1.2.0", ">1.3.0", ">1.3.0"}, {">=1.2.0", ">1.3.0", ">1.3.0"}, {">1.2.0", ">=1.3.0", ">=1.3.0"}, {"<1.3.0", "<1.2.0", "<1.2.0"}, {"<1.2.0", "<1.3.0", "<1.2.0"}, {"<=1.2.0", "<1.3.0", "<=1.2.0"}, {"<1.2.0", "<=1.3.0", "<1.2.0"}, {">=1.3.0", "<=1.3.0", "1.3.0"}, {">=1.3.0", ">=1.3.0", ">=1.3.0"}, {"<=1.3.0", "<=1.3.0", "<=1.3.0"}, {">1.3.0", "<=1.3.0", ""}, {">=1.3.0", "<1.3.0", ""}, {">1.0.0", "<2.0.0", ">1.0.0 <2.0.0"}, {">=1.0.0", "<2.0.0", ">=1.0.0 <2.0.0"}, {">=1.0.0", "<=2.0.0", ">=1.0.0 <=2.0.0"}, {">1.0.0", "<=2.0.0", ">1.0.0 <=2.0.0"}, {"<=2.0.0", ">1.0.0", ">1.0.0 <=2.0.0"}, {"<=1.0.0", ">=2.0.0", ""}, {"", "", ">=0.0.0"}, {"", ">1.0.0", ">1.0.0"}, {"<=2.0.0", "", "<=2.0.0"}, {"<0.0.0", "<0.1.0", ""}, {"<0.1.0", "<0.0.0", ""}, {"<0.0.0-0", "<0.1.0", ""}, {"<0.1.0", "<0.0.0-0", ""}, {"<0.0.0-0", "<0.1.0", ""}, {"<0.1.0", "<0.0.0-0", ""}, {"<=0.2.0 <0.2.0 >0.1.0 >=0.1.0", "<=0.2.0 <0.2.0 >0.1.0 >=0.1.0", ">0.1.0 <0.2.0"}, {"1.x", ">1.0.0", ">1.0.0 <2.0.0"}, {">1.2.0-alpha.0", ">1.2.0-alpha.2", ">1.2.0-alpha.2"}, {">=1.2.0-alpha.0", ">1.2.0-alpha.2", ">1.2.0-alpha.2"}, {">1.2.0-alpha.0", ">=1.2.0-alpha.2", ">=1.2.0-alpha.2"}, {">=1.2.0-alpha.0", "<1.2.0-alpha.2", ">=1.2.0-alpha.0 <1.2.0-alpha.2"}, {">1.2.0-alpha.0", "<=1.2.0-alpha.2", ">1.2.0-alpha.0 <=1.2.0-alpha.2"}, {">1.2.0-alpha.0", ">1.2.0-beta", ">1.2.0-beta"}, {">=1.2.0-alpha.0", "<1.2.0-beta", ">=1.2.0-alpha.0 <1.2.0-beta"}, {"<1.2.0-alpha", "<1.2.0-beta", "<1.2.0-alpha"}, {"<1.2.1-alpha", "<1.2.0-beta", "<1.2.0-beta"}, {">1.2.1-alpha", ">1.2.0-beta", ">1.2.1-alpha"}, {"<1.2.1-alpha", "<1.2.1", "<1.2.1"}, {"<1.2.1", "<1.2.1-beta", "<1.2.1"}, {"<=1.2.1-alpha", "<=1.2.1", "<=1.2.1"}, {"<=1.2.1", "<=1.2.1-beta", "<=1.2.1"}, {">8.0.0-0", ">8.0.0", ">8.0.0"}, {">8.0.0", ">8.0.0-0", ">8.0.0"}, {">=8.0.0-0", ">=8.0.0", ">=8.0.0"}, {">=8.0.0", ">=8.0.0-0", ">=8.0.0"} }

Adapted from: https://github.com/npm/node-semver/blob/main/test/fixtures/comparator-intersection.js {comparator1, comparator2, expected intersection}

EQUALITY_FIXTURES = [{"1.2.3", "1.2.3", ["1.2.3"], ["1.2.2"]}, {"1.2.3-0", "1.2.3-0", ["1.2.3-0"], ["1.2.3"]}, {"1.2.3-1", "1.2.3-1", ["1.2.3-1"], ["1.2.3"]}, {"1.2.3-beta", "1.2.3-beta", ["1.2.3-beta"], ["1.2.3-alpha"]}, {"1.2.3+build", "1.2.3+build", ["1.2.3+otherbuild"], ["1.2.2+build"]}, {"1.2.3-beta+build", "1.2.3-beta+build", ["1.2.3-beta+otherbuild"], ["1.2.2-beta+build"]}, {"0.0.2--canary.4566f4d.1", "0.0.2--canary.4566f4d.1", ["0.0.2--canary.4566f4d.1"], ["0.0.2--canary"]}, {"4.16.1-1.4bc8b6e1b66cb932731fb1bdbbc550d1e010de81", "4.16.1-1.4bc8b6e1b66cb932731fb1bdbbc550d1e010de81", ["4.16.1-1.4bc8b6e1b66cb932731fb1bdbbc550d1e010de81"], ["4.16.1-1"]}, {"^16.8||^17||^18", ">=16.8.0 <17.0.0 || >=17.0.0 <18.0.0 || >=18.0.0 <19.0.0", ["16.8.0", "16.9.0", "17.0.0", "18.0.0"], ["16.7.0", "19.0.0"]}]
RANGE_EXCLUSION_FIXTURES = [{"1.0.0 - 2.0.0", "2.2.3"}, {"1.2.3+asdf - 2.4.3+asdf", "1.2.3-pre.2"}, {"1.2.3+asdf - 2.4.3+asdf", "2.4.3-alpha"}, {"^1.2.3+build", "2.0.0"}, {"^1.2.3+build", "1.2.0"}, {"^1.2.3", "1.2.3-pre"}, {"^1.2", "1.2.0-pre"}, {">1.2", "1.3.0-beta"}, {"<=1.2.3", "1.2.3-beta"}, {"^1.2.3", "1.2.3-beta"}, {"=0.7.x", "0.7.0-asdf"}, {">=0.7.x", "0.7.0-asdf"}, {"<=0.7.x", "0.7.0-asdf"}, {"1", "1.0.0-beta"}, {"<1", "1.0.0-beta"}, {"< 1", "1.0.0-beta"}, {"1.0.0", "1.0.1"}, {">=1.0.0", "0.0.0"}, {">=1.0.0", "0.0.1"}, {">=1.0.0", "0.1.0"}, {">1.0.0", "0.0.1"}, {">1.0.0", "0.1.0"}, {"<=2.0.0", "3.0.0"}, {"<=2.0.0", "2.9999.9999"}, {"<=2.0.0", "2.2.9"}, {"<2.0.0", "2.9999.9999"}, {"<2.0.0", "2.2.9"}, {">=0.1.97", "0.1.93"}, {"0.1.20 || 1.2.4", "1.2.3"}, {">=0.2.3 || <0.0.1", "0.0.3"}, {">=0.2.3 || <0.0.1", "0.2.2"}, {"2.x.x", "1.1.3"}, {"2.x.x", "3.1.3"}, {"1.2.x", "1.3.3"}, {"1.2.x || 2.x", "3.1.3"}, {"1.2.x || 2.x", "1.1.3"}, {"2.*.*", "1.1.3"}, {"2.*.*", "3.1.3"}, {"1.2.*", "1.3.3"}, {"1.2.* || 2.*", "3.1.3"}, {"1.2.* || 2.*", "1.1.3"}, {"2", "1.1.2"}, {"2.3", "2.4.1"}, {"~0.0.1", "0.1.0-alpha"}, {"~0.0.1", "0.1.0"}, {"~2.4", "2.5.0"}, {"~2.4", "2.3.9"}, {"~3.2.1", "3.3.2"}, {"~3.2.1", "3.2.0"}, {"~1", "0.2.3"}, {"~1", "2.2.3"}, {"~1.0", "1.1.0"}, {"<1", "1.0.0"}, {">=1.2", "1.1.1"}, {"~0.5.4-beta", "0.5.4-alpha"}, {"=0.7.x", "0.8.2"}, {">=0.7.x", "0.6.2"}, {"<0.7.x", "0.7.2"}, {"<1.2.3", "1.2.3-beta"}, {"=1.2.3", "1.2.3-beta"}, {">1.2", "1.2.8"}, {"^0.0.1", "0.0.2-alpha"}, {"^0.0.1", "0.0.2"}, {"^1.2.3", "2.0.0-alpha"}, {"^1.2.3", "1.2.2"}, {"^1.2", "1.1.9"}, {"*", "not a version"}, {">=2", "glorp"}, {">=2", "false"}, {"^1.0.0", "2.0.0-rc1"}, {"1 - 2", "2.0.0-pre"}, {"1 - 2", "1.0.0-pre"}, {"1.0 - 2", "1.0.0-pre"}, {"1.1.x", "1.0.0-a"}, {"1.1.x", "1.1.0-a"}, {"1.1.x", "1.2.0-a"}, {"1.x", "1.0.0-a"}, {"1.x", "1.1.0-a"}, {"1.x", "1.2.0-a"}, {">=1.0.0 <1.1.0", "1.1.0"}, {">=1.0.0 <1.1.0", "1.1.0-pre"}, {">=1.0.0 <1.1.0", "1.1.0-pre"}, {"^1.0.0-0", "1.0.1-pre"}, {"<=1.0.0-alpha", "<=1.0.0-alpha", "1.0.0-beta"}, {"<=1.0.0", "<=1.0.0", "<=1.0.0-0"}]

Adapted from: https://github.com/npm/node-semver/blob/main/test/fixtures/range-exclude.js

RANGE_INCLUSION_FIXTURES = [{"1.0.0 - 2.0.0", ">=1.0.0 <=2.0.0", "1.2.3"}, {"^1.2.3+build", ">=1.2.3+build <2.0.0", "1.2.3"}, {"^1.2.3+build", ">=1.2.3+build <2.0.0", "1.3.0"}, {"1.2.3-pre+asdf - 2.4.3-pre+asdf", ">=1.2.3-pre+asdf <=2.4.3-pre+asdf", "1.2.3"}, {"1.2.3-pre+asdf - 2.4.3-pre+asdf", ">=1.2.3-pre+asdf <=2.4.3-pre+asdf", "1.2.3-pre.2"}, {"1.2.3-pre+asdf - 2.4.3-pre+asdf", ">=1.2.3-pre+asdf <=2.4.3-pre+asdf", "2.4.3-alpha"}, {"1.2.3+asdf - 2.4.3+asdf", ">=1.2.3+asdf <=2.4.3+asdf", "1.2.3"}, {"1.0.0", "1.0.0"}, {">=*", ">=0.0.0", "0.2.4"}, {"", ">=0.0.0", "1.0.0"}, {"*", ">=0.0.0", "1.2.3"}, {">=1.0.0", "1.0.0"}, {">=1.0.0", "1.0.1"}, {">=1.0.0", "1.1.0"}, {">1.0.0", "1.0.1"}, {">1.0.0", "1.1.0"}, {"<=2.0.0", "2.0.0"}, {"<=2.0.0", "1.9999.9999"}, {"<=2.0.0", "0.2.9"}, {"<2.0.0", "1.9999.9999"}, {"<2.0.0", "0.2.9"}, {">= 1.0.0", ">=1.0.0", "1.0.0"}, {">= 1.0.0", ">=1.0.0", "1.0.1"}, {">= 1.0.0", ">=1.0.0", "1.1.0"}, {"> 1.0.0", ">1.0.0", "1.0.1"}, {"> 1.0.0", ">1.0.0", "1.1.0"}, {"<= 2.0.0", "<=2.0.0", "2.0.0"}, {"<= 2.0.0", "<=2.0.0", "1.9999.9999"}, {"<= 2.0.0", "<=2.0.0", "0.2.9"}, {"< 2.0.0", "<2.0.0", "1.9999.9999"}, {"<\t2.0.0", "<2.0.0", "0.2.9"}, {">=0.1.97", ">=0.1.97", "0.1.97"}, {"0.1.20 || 1.2.4", "0.1.20 || 1.2.4", "1.2.4"}, {">=0.2.3 || <0.0.1", ">=0.2.3 || <0.0.1", "0.0.0"}, {">=0.2.3 || <0.0.1", "0.2.3"}, {">=0.2.3 || <0.0.1", "0.2.4"}, {"||", "", "1.3.4"}, {"2.x.x", ">=2.0.0 <3.0.0", "2.1.3"}, {"1.2.x", ">=1.2.0 <1.3.0", "1.2.3"}, {"1.2.x || 2.x", ">=1.2.0 <1.3.0 || >=2.0.0 <3.0.0", "2.1.3"}, {"1.2.x || 2.x", ">=1.2.0 <1.3.0 || >=2.0.0 <3.0.0", "1.2.3"}, {"x", ">=0.0.0", "1.2.3"}, {"2.*.*", ">=2.0.0 <3.0.0", "2.1.3"}, {"1.2.*", ">=1.2.0 <1.3.0", "1.2.3"}, {"1.2.* || 2.*", ">=1.2.0 <1.3.0 || >=2.0.0 <3.0.0", "2.1.3"}, {"1.2.* || 2.*", ">=1.2.0 <1.3.0 || >=2.0.0 <3.0.0", "1.2.3"}, {"*", ">=0.0.0", "1.2.3"}, {"2", ">=2.0.0 <3.0.0", "2.1.2"}, {"2.3", ">=2.3.0 <2.4.0", "2.3.1"}, {"~0.0.1", ">=0.0.1 <0.1.0", "0.0.1"}, {"~0.0.1", ">=0.0.1 <0.1.0", "0.0.2"}, {"~x", ">=0.0.0", "0.0.9"}, {"~2", ">=2.0.0 <3.0.0", "2.0.9"}, {"~2.4", ">=2.4.0 <2.5.0", "2.4.0"}, {"~2.4", ">=2.4.0 <2.5.0", "2.4.5"}, {"~3.2.1", ">=3.2.1 <3.3.0", "3.2.2"}, {"~1", ">=1.0.0 <2.0.0", "1.2.3"}, {"~1.0", ">=1.0.0 <1.1.0", "1.0.2"}, {"~ 1.0", ">=1.0.0 <1.1.0", "1.0.2"}, {"~ 1.0.3", ">=1.0.3 <1.1.0", "1.0.12"}, {">=1", ">=1.0.0", "1.0.0"}, {">= 1", ">=1.0.0", "1.0.0"}, {"<1.2", "<1.2.0", "1.1.1"}, {"< 1.2", "<1.2.0", "1.1.1"}, {"~0.5.4-pre", ">=0.5.4-pre <0.6.0", "0.5.5"}, {"~0.5.4-pre", ">=0.5.4-pre <0.6.0", "0.5.4"}, {"=0.7.x", ">=0.7.0 <0.8.0", "0.7.2"}, {"<=0.7.x", "<0.8.0", "0.7.2"}, {">=0.7.x", ">=0.7.0", "0.7.2"}, {"<=0.7.x", "<0.8.0", "0.6.2"}, {"~1.2.1 >=1.2.3", ">=1.2.1 <1.3.0 >=1.2.3", "1.2.3"}, {"~1.2.1 =1.2.3", ">=1.2.1 <1.3.0 1.2.3", "1.2.3"}, {"~1.2.1 1.2.3", ">=1.2.1 <1.3.0 1.2.3", "1.2.3"}, {"~1.2.1 >=1.2.3 1.2.3", ">=1.2.1 <1.3.0 >=1.2.3 1.2.3", "1.2.3"}, {"~1.2.1 1.2.3 >=1.2.3", ">=1.2.1 <1.3.0 1.2.3 >=1.2.3", "1.2.3"}, {"~1.2.1 1.2.3", ">=1.2.1 <1.3.0 1.2.3", "1.2.3"}, {">=1.2.1 1.2.3", "1.2.3"}, {"1.2.3 >=1.2.1", "1.2.3"}, {">=1.2.3 >=1.2.1", "1.2.3"}, {">=1.2.1 >=1.2.3", "1.2.3"}, {">=1.2", ">=1.2.0", "1.2.8"}, {"^1.2.3", ">=1.2.3 <2.0.0", "1.8.1"}, {"^0.1.2", ">=0.1.2 <0.2.0", "0.1.2"}, {"^0.1", ">=0.1.0 <0.2.0", "0.1.2"}, {"^0.0.1", ">=0.0.1 <0.0.2", "0.0.1"}, {"^1.2", ">=1.2.0 <2.0.0", "1.4.2"}, {"^1.2 ^1", ">=1.2.0 <2.0.0 >=1.0.0 <2.0.0", "1.4.2"}, {"^1.2.3-alpha", ">=1.2.3-alpha <2.0.0", "1.2.3-pre"}, {"^1.2.0-alpha", ">=1.2.0-alpha <2.0.0", "1.2.0-pre"}, {"^0.0.1-alpha", ">=0.0.1-alpha <0.0.2", "0.0.1-beta"}, {"^0.0.1-alpha", ">=0.0.1-alpha <0.0.2", "0.0.1"}, {"^0.1.1-alpha", ">=0.1.1-alpha <0.2.0", "0.1.1-beta"}, {"^x", ">=0.0.0", "1.2.3"}, {"x - 1.0.0", ">=0.0.0 <=1.0.0", "0.9.7"}, {"x - 1.x", ">=0.0.0 <=1.0.0", "0.9.7"}, {"1.0.0 - x", ">=1.0.0 <=#{UInt128::MAX}.0.0", "1.9.7"}, {"1.x - x", ">=1.0.0 <=#{UInt128::MAX}.0.0", "1.9.7"}, {"<=7.x", "<8.0.0", "7.9.9"}, {"<=1.0.0-beta", "<=1.0.0-beta", "1.0.0-alpha"}, {"<=1.0.0-beta", "<=1.0.0-beta", "1.0.0-beta"}, {"<=1.0.0-beta", "<=1.0.0-beta", "0.1.1"}]

Adapted from: https://github.com/npm/node-semver/blob/main/test/fixtures/range-include.js

RANGE_INTERSECTION_FIXTURES = { {"1.3.0 || <1.0.0 >2.0.0", "1.3.0 || <1.0.0 >2.0.0", "1.3.0"}, {"<1.0.0 >2.0.0", ">0.0.0", ""}, {">0.0.0", "<1.0.0 >2.0.0", ""}, {"<1.0.0 >2.0.0", ">1.4.0 <1.6.0", ""}, {"<1.0.0 >2.0.0", ">1.4.0 <1.6.0 || 2.0.0", ""}, {">1.0.0 <=2.0.0", "2.0.0", "2.0.0"}, {"<1.0.0 >=2.0.0", "2.1.0", ""}, {"<1.0.0 >=2.0.0", ">1.4.0 <1.6.0 || 2.0.0", ""}, {"1.5.x", "<1.5.0 || >=1.6.0", ""}, {"<1.5.0 || >=1.6.0", "1.5.x", ""}, {"<1.6.16 || >=1.7.0 <1.7.11 || >=1.8.0 <1.8.2", ">=1.6.16 <1.7.0 || >=1.7.11 <1.8.0 || >=1.8.2", ""}, {"<=1.6.16 || >=1.7.0 <1.7.11 || >=1.8.0 <1.8.2", ">=1.6.16 <1.7.0 || >=1.7.11 <1.8.0 || >=1.8.2", "1.6.16"}, {">=1.0.0", "<=1.0.0", "1.0.0"}, {">1.0.0 <1.0.0", "<=0.0.0", ""}, {"*", "0.0.1", "0.0.1"}, {"*", ">=1.0.0", ">=1.0.0"}, {"*", ">1.0.0", ">1.0.0"}, {"*", "~1.0.0", ">=1.0.0 <1.1.0"}, {"*", "<1.6.0", "<1.6.0"}, {"*", "<=1.6.0", "<=1.6.0"}, {"1.*", "0.0.1", ""}, {"1.*", "2.0.0", ""}, {"1.*", "1.0.0", "1.0.0"}, {"1.*", "<2.0.0", ">=1.0.0 <2.0.0"}, {"1.*", ">1.0.0", ">1.0.0 <2.0.0"}, {"1.*", "<=1.0.0", "1.0.0"}, {"1.*", "^1.0.0", ">=1.0.0 <2.0.0"}, {"1.0.*", "0.0.1", ""}, {"1.0.*", "<0.0.1", ""}, {"1.0.*", ">0.0.1", ">=1.0.0 <1.1.0"}, {"*", "1.3.0 || <1.0.0 >2.0.0", "1.3.0"}, {"1.3.0 || <1.0.0 >2.0.0", "*", "1.3.0"}, {"1.*", "1.3.0 || <1.0.0 >2.0.0", "1.3.0"}, {"x", "0.0.1", "0.0.1"}, {"x", ">=1.0.0", ">=1.0.0"}, {"x", ">1.0.0", ">1.0.0"}, {"x", "~1.0.0", ">=1.0.0 <1.1.0"}, {"x", "<1.6.0", "<1.6.0"}, {"x", "<=1.6.0", "<=1.6.0"}, {"1.x", "0.0.1", ""}, {"1.x", "2.0.0", ""}, {"1.x", "1.0.0", "1.0.0"}, {"1.x", "<2.0.0", ">=1.0.0 <2.0.0"}, {"1.x", ">1.0.0", ">1.0.0 <2.0.0"}, {"1.x", "<=1.0.0", "1.0.0"}, {"1.x", "^1.0.0", ">=1.0.0 <2.0.0"}, {"1.0.x", "0.0.1", ""}, {"1.0.x", "<0.0.1", ""}, {"1.0.x", ">0.0.1", ">=1.0.0 <1.1.0"}, {"x", "1.3.0 || <1.0.0 >2.0.0", "1.3.0"}, {"1.3.0 || <1.0.0 >2.0.0", "x", "1.3.0"}, {"1.x", "1.3.0 || <1.0.0 >2.0.0", "1.3.0"}, {"*", "*", ">=0.0.0"}, {"x", "", ">=0.0.0"} }

Adapted from: https://github.com/npm/node-semver/blob/main/test/fixtures/range-intersection.js {range1, range2, expected intersection}

WORKSPACE_A = Workspace.new(package: Package.from_json("{\n \"name\": \"a\",\n \"version\": \"1.0.0\",\n \"dependencies\": {\n \"b\": \"^1\",\n \"c\": \"workspace:*\"\n }\n }"), path: Path.new("/my-app/pkgs/a"), relative_path: Path.new("pkgs/a"))
WORKSPACE_B = Workspace.new(package: Package.from_json("{\n \"name\": \"b\",\n \"version\": \"1.5.0\",\n \"dependencies\": {\n \"c\": \"^2\",\n \"d\": \"workspace:*\"\n }\n }"), path: Path.new("/my-app/pkgs/b"), relative_path: Path.new("pkgs/b"))
WORKSPACE_C = Workspace.new(package: Package.from_json("{\n \"name\": \"c\",\n \"version\": \"0.3.0\",\n \"dependencies\": {\n \"b\": \"^2\"\n }\n }"), path: Path.new("/my-app/libs/c"), relative_path: Path.new("libs/c"))
WORKSPACE_D = Workspace.new(package: Package.from_json("{\n \"name\": \"d\",\n \"version\": \"0.4.0\"\n }"), path: Path.new("/my-app/libs/d"), relative_path: Path.new("libs/d"))
XR = {'x', 'X', '*'}
Z_CAPS_ORD = 90
Z_ORD = 122
ZERO_ORD = 48

Macro Summary

Macro Detail

macro test_gitignore_file(name, should_match, should_not_match) #

[View source]