
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
transduce-with-generators
Advanced tools
This library implements a transducer library capable of handling asychronous streams of data as part of a study on generators and asychronous generators in JavaScript and TypeScript.
This library implements a transducer library capable of handling asychronous streams of data as part of a study on generators and asychronous generators in JavaScript and TypeScript.
Note: this is an experimental library.
To install:
npm install transduce-with-generators
or
yarn add transduce-with-generators
ES6 and ES5 builds are exposed. Example from integration test:
import * as T from 'transduce-with-generators/es6/async'
let triggerButton = document.getElementById('trigger')
let debounceCounterEl = document.getElementById('debounce-counter')
let debounceTrailingCounterEl = document.getElementById('debounce-trailing-counter')
let debounceCounter = 0
let debounceTrailingCounter = 0
let debounceStream1 = T.fromDomEvent( 'click' , triggerButton! )
let debounceStream2 = T.fromDomEvent( 'click' , triggerButton! )
function debounceCounterHandler( a: unknown ) {
if(debounceCounterEl) {
// mutate state
debounceCounter = debounceCounter + 1
// side effect
debounceCounterEl.innerHTML = String(debounceCounter)
}
}
function debounceCounterTrailingHandler( a: unknown ) {
if( debounceTrailingCounterEl) {
// mutate state
debounceTrailingCounter = debounceTrailingCounter + 1
// side effect
debounceTrailingCounterEl.innerHTML = String(debounceTrailingCounter)
}
}
let localDebounce= T.transduce(
T.debounce( 300 )
)
let localDebounceTrailing = T.transduce(
T.debounceTrailing( 300 )
)
T.subscribe( debounceCounterHandler, localDebounce( debounceStream1 ) )
T.subscribe( debounceCounterTrailingHandler, localDebounceTrailing( debounceStream2 ) )
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
This library implements a transducer library capable of handling asychronous streams of data as part of a study on generators and asychronous generators in JavaScript and TypeScript.
The npm package transduce-with-generators receives a total of 1 weekly downloads. As such, transduce-with-generators popularity was classified as not popular.
We found that transduce-with-generators 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.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.