
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
import { postwowan, setVar, getVar } from "postalien";
postalien(request: Requests);
Requests objectEach sub-field act as a sub-level until you define the Request object.
Parent: {
Child: {
"Request 1": {
request: () => fetch(..),
},
"Request 2": {
body: {
name: `name`,
url: `{{variable}}`,
},
prequest: function () {
return Promise.resolve(doSomething(this.body));
},
request: function (prequest_result?) {
return fetch(this.body);
},
postquest: (request_result?) => {
setVar(request_result.x);
return Promise.resolve();
}
},
},
}
Will give you this structure:
Parent
=== Child
Request 1
Request 2
Request objecthas 4 fields:
request function, this helps if someone want to verify the body structure instead without needing to look into the request function source code. You can also use variable here using the syntax {{variable}}requestpostquestThe result of these 3 functions are chained one after another: prequest -> request -> postquest. Also, if you want to use the body in one of these 3 functions, make sure you use the function() syntax and not the arrow function, as it doesn't bind this. Nothing stop you from defining another data field than body then use it, but only body field support {{variable}}. To set or get variables in functions, use setVar and getVar, or set it manually in db.json
FAQs
NodeJS 14 app with Typescript
We found that postalien 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.