Class NpmComponentDependency_1_0

java.lang.Object
com.gradle.scan.eventmodel.npm.dependencies.NpmComponentDependency_1_0

@NpmAgentVersion(since="2.0.0") public class NpmComponentDependency_1_0 extends Object
A component dependency.
  • Field Details

    • requested

      @Nullable("when requested identity is the same as the resolved identity") public final @Nullable("when requested identity is the same as the resolved identity") Integer requested
      The requested identity, when resolution succeeded and is different to the resolved identity.

      It is what is defined in the `package.json` file.

      Index into NpmDependencyResolutionData_1_0.identities.

    • to

      @Nullable("when resolved dependency was not installed, e.g. optional peer dependency") public final @Nullable("when resolved dependency was not installed, e.g. optional peer dependency") Integer to
      The resolved identity.

      It is what is defined in the `package-lock.json` file.

      Index into NpmDependencyResolutionData_1_0.identities.

    • type

      public final NpmDependencyType_1 type
      The dependency type.
  • Constructor Details

  • Method Details