Partner Workspace limitation: Internal Script Packages not allowed

UPDATE:
Found out that third party packages are resticted from internet access. I guess I left using eval or copying functions definitions all over the worksapce. Postman Community Post

Thanks for your answer! A question abount npm or JSR packages: is it possible to create a package, which uses such funtions as pm.sendRequest, pm.request.headers or console.error? For example, here is a part of my Postman script package:

async function sendRequest(options) {
    try {
        const res = await pm.sendRequest(options);
        if (res.code !== 200) {
            console.error(`Non-200 response: ${res.code}, ${res.text()}`);
            return null;
        }
        return res.json();
    } catch (e) {
        console.error(`Request failed: ${e.message}`);
        return null;
    }
}

Is it possible to create an npm or JRS package, which internally uses Postman client toolling by itself?

1 Like