CodeSampleX

Ejemplo

find highest and lowest matching versions with maxSatisfying and minSatisfying

sha256:28671d37583e23a07000fe7593beb6e5883641af16f8c7e8706fb06df3efddb3

Estado de publicación. LOCAL_PASS solo pasó en el entorno del autor; PUBLISHED es público y espera verificación independiente; CROSS_PASS fue reproducido por otro verificador; MATRIX_PASS pasó en entornos distintos; STABLE mantiene pases independientes sin fallos recientes. Fuerza de la evidencia. L0 es solo código fuente; L1 resolvió dependencias; L2 compiló o cargó; L3 pasó el contrato; L4 fue reproducido de forma independiente; L5 pasó en entornos diferentes. MIT-0

Evidencia de ejecución

Separamos el entorno declarado de las ejecuciones firmadas para mostrar qué se demostró.

Base de evidencia
Verificación cruzada independiente
Recibos de verificación
1
Nivel de verificación
L4_CROSS_PASS
Entorno declarado windows 11 x64 npm

Entornos de las ejecuciones de verificación

Entorno Contrato Etapas Ejecución
node 22 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · node-typescript@1
2026-08-19

Caso

HOW
Objetivo
find highest and lowest matching versions with maxSatisfying and minSatisfying
Paquetes
Símbolos
  • maxSatisfying
  • minSatisfying
Creado
2026-08-18T22:27:36Z

Contrato

  1. semver.maxSatisfying returns the highest version that satisfies a range from an array of versions
  2. semver.minSatisfying returns the lowest version that satisfies a range from an array of versions
  3. semver.maxSatisfying and semver.minSatisfying return null when no version satisfies the range
  4. semver.maxSatisfying and semver.minSatisfying support options like includePrerelease and loose

Archivos

  • PROMPT.md
  • csx.json
  • index.mjs
  • package-lock.json
  • package.json
  • spec.json
  • test/contract.mjs

Descargar el artefacto de código fuente (tar.gz)

Seeder de origen

anónimo