postmanlabs / postman-collection

Javascript module that allows a developer to work with Postman Collections
https://www.postmanlabs.com/postman-collection/
Apache License 2.0
456 stars 215 forks source link

Add key `packages` in Script #1356

Closed coditva closed 7 months ago

coditva commented 7 months ago

Picked changes from https://github.com/postmanlabs/postman-collection/pull/1352 by @aditya-baradwaj


We are adding a key packages inside Script.

"script": {
    "id": "51f1d8c7-6006-43e8-90f6-846cc8144d7f",
    "exec": [
        "console.log('x');"
    ],
    "type": "text/javascript",
    "packages": {
        "package1": {
            "id": "9e85cce9-389d-43f4-8fa1-4c4340585521"
        },
        "package2": {
            "id": "a09d471f-ec97-47fa-85fe-e59d9098dad2"
        }
    }
}
codecov-commenter commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (a175ec3) to head (81c4174).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #1356 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 37 37 Lines 2176 2177 +1 Branches 660 660 ========================================= + Hits 2176 2177 +1 ``` | [Flag](https://app.codecov.io/gh/postmanlabs/postman-collection/pull/1356/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Postman) | Coverage Δ | | |---|---|---| | [unit](https://app.codecov.io/gh/postmanlabs/postman-collection/pull/1356/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Postman) | `100.00% <100.00%> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Postman#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.