CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-promise-allsettled

ES Proposal spec-compliant shim for Promise.allSettled

94

1.10x
Quality

Pending

Does it follow best practices?

Impact

94%

1.10x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.jsonevals/scenario-4/

{
  "context": "This criteria evaluates how well the engineer uses the promise.allsettled package to handle mixed collections of promises, thenables, and values. The focus is on proper package integration and leveraging its ES abstract operations capabilities for spec-compliant promise resolution.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Package Import",
      "description": "Correctly imports the promise.allsettled package using require('promise.allsettled') or one of its sub-modules (implementation, polyfill, shim, or auto)",
      "max_score": 15
    },
    {
      "name": "Core Function Usage",
      "description": "Uses the imported allSettled function (or Promise.allSettled after shimming) to process the input iterable",
      "max_score": 30
    },
    {
      "name": "Thenable Handling",
      "description": "Relies on the package's built-in thenable resolution capability (via PromiseResolve abstract operation) rather than manually detecting or converting thenables",
      "max_score": 25
    },
    {
      "name": "Result Format",
      "description": "Returns results in the correct format as produced by promise.allsettled: objects with 'status' field set to 'fulfilled' or 'rejected', and corresponding 'value' or 'reason' fields",
      "max_score": 20
    },
    {
      "name": "Direct Pass-through",
      "description": "Passes the input iterable directly to the package function without unnecessary pre-processing or manual promise wrapping",
      "max_score": 10
    }
  ]
}

tile.json