Skip to content
HALOWERK

Package and Supply Chain Security

npm upgrade optional to required

npm dependency roles return dependencies that changed between optional and mandatory installation. Use it when an agent needs to assess installation failure exposure.

POST https://paket.halowerk.com/v1/npm-upgrade-optional-to-required

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
packagestringYes
fromstringYes
tostringYes
Show full input schema
{
  "type": "object",
  "properties": {
    "package": {
      "type": "string",
      "maxLength": 180,
      "minLength": 1
    },
    "from": {
      "type": "string",
      "maxLength": 60,
      "minLength": 1
    },
    "to": {
      "type": "string",
      "maxLength": 60,
      "minLength": 1
    }
  },
  "required": [
    "package",
    "from",
    "to"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "package": "commander",
  "from": "9.5.0",
  "to": "12.1.0"
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-19 UTC.

More endpoints in this hub

All endpoints in this hub โ†’