
Security News
TC39 Advances Temporal to Stage 4 Alongside Several ECMAScript Proposals
TC39’s March 2026 meeting advanced eight ECMAScript proposals, including Temporal reaching Stage 4 and securing its place in the ECMAScript 2026 specification.
proxify-method
Advanced tools
## Zero dependencies package. Main purpose of this package is to provide integration of the common assertions into class methods without refactoring and updates of the class methods, this package does not affect constructor, getters/setters and does not a
// example with node-fetch and chai
const fetch = require('node-fetch');
const {chainProxify} = require('proxify-method');
const {expect} = require('chai');
function assertResponseBody(expectedBodyTextPart, {response}) {
expect(response).to.include(expectedBodyTextPart)
}
function assertResponseBodyStrictEqual(expectedBody, {response}) {
expect(response).to.equal(bodyTextPart)
}
class ControllerIterface {
constructor() {
// this two assertions will be available for every method in this class
chainProxify('assertBodyIncludes', assertResponseBody)
.chainProxify('strictAssertBody', assertResponseBodyStrictEqual)
.initChainModel(this);
}
getDataFromServerController() {
return fetch('http://someurl.that.returns.some.data')
.then(result => result.text())
// this {response: result} object will be second argument of the assert functions
.then(result => ({response: result}))
}
postDataFromServerController() {
return fetch('http://someurl.that.should_receive.some.data', {method: 'POST', body: 'string data'})
.then(result => result.text())
// this {response: result} object will be second argument of the assert functions
.then(result => ({response: result}))
}
}
async function test() {
const controller = new ControllerIterface();
const expectedGetBodyPart = 'some string';
const expectedGetBodyFull = 'some string full'
// can be done like TDD
const {response: responseTddExample} = await controller.getDataFromServerController();
expect(responseTddExample).to.include(expectedGetBodyPart);
expect(responseTddExample).to.equal(expectedGetBodyFull);
// ... usage of the response
const resultTdd = responseTddExample;
// can be done like BDD
const {response: responseBddExample} = await controller.getDataFromServerController()
.assertBodyIncludes(expectedGetBodyPart)
.strictAssertBody(expectedGetBodyFull)
// ... usage of the response
const resultBdd = responseBddExample;
}
FAQs
Project for flexible extension of the existing functionality
The npm package proxify-method receives a total of 2 weekly downloads. As such, proxify-method popularity was classified as not popular.
We found that proxify-method 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
TC39’s March 2026 meeting advanced eight ECMAScript proposals, including Temporal reaching Stage 4 and securing its place in the ECMAScript 2026 specification.

Research
/Security News
Since January 31, 2026, we identified at least 72 additional malicious Open VSX extensions, including transitive GlassWorm loader extensions targeting developers.

Research
Six malicious Packagist packages posing as OphimCMS themes contain trojanized jQuery that exfiltrates URLs, injects ads, and loads FUNNULL-linked redirects.