Zum Inhalt
HALOWERK

Technische Prüfungen & Formate

F TD2000 DOCUMENTS 02 / npm semver comparator set caret tilde prerelease membership

Evaluate a bounded npm range against supplied SemVer releases and find the highest satisfying release.

POST https://detect.halowerk.com/v1/F-TD2000-DOCUMENTS-02/npm-semver-comparator-set-caret-tilde-prerelease-membership

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
artifactobjectJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "artifact"
  ],
  "properties": {
    "artifact": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "npmRanges"
      ],
      "properties": {
        "npmRanges": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "data",
            "claim"
          ],
          "properties": {
            "data": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "versions",
                "range",
                "include_prerelease"
              ],
              "properties": {
                "versions": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "maxLength": 128
                  },
                  "maxItems": 24,
                  "minItems": 1
                },
                "range": {
                  "type": "string",
                  "maxLength": 512
                },
                "include_prerelease": {
                  "type": "boolean"
                }
              }
            },
            "claim": {
              "anyOf": [
                {
                  "type": "null"
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "max_satisfying",
                    "versions"
                  ],
                  "properties": {
                    "max_satisfying": {
                      "type": "string",
                      "maxLength": 20000
                    },
                    "versions": {
                      "type": "array",
                      "maxItems": 4096,
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "matches",
                          "version"
                        ],
                        "properties": {
                          "matches": {
                            "type": "boolean"
                          },
                          "version": {
                            "type": "string",
                            "maxLength": 20000
                          }
                        }
                      }
                    }
                  }
                }
              ]
            }
          }
        }
      }
    }
  }
}

Originalschema öffnen

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →