Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
jasmine-await
Advanced tools
Integrates asyncawait support into jasmine to write more concise specs
This project adds asyncawait support to jasmine.
It extends the functions it()
, beforeEach()
, afterEach()
, beforeAll()
and afterAll()
and wraps
them in the async()
function. So you can always use await()
to wait for a promise's resolution or rejection.
npm i -D jasmine-await
Example1:
var async = require("jasmine-await");
var it = async.it;
var await = async.await;
it("should work", () => {
var x = await(new Promise(res => res(42)));
expect(x).toBe(42);
})
Example2 (same test, using typescript with jasmine-ts):
import {it, await} from "jasmine-await"
it("should work", () => {
let x = await(new Promise(res => res(42)));
expect(x).toBe(42);
})
You still need to install the typings for jasmine to make the typescript-compiler happy about your specs:
typings i -D --ambient jasmine
FAQs
Integrates asyncawait support into jasmine to write more concise specs
The npm package jasmine-await receives a total of 1 weekly downloads. As such, jasmine-await popularity was classified as not popular.
We found that jasmine-await demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.