mirror of
https://github.com/Shiva108/ai-llm-red-team-handbook.git
synced 2026-08-30 06:30:40 +02:00
13 lines
394 B
JavaScript
13 lines
394 B
JavaScript
'use strict'
|
|
|
|
const packageId = require('../../utils/package-id.js')
|
|
const pacote = require('pacote')
|
|
const pacoteOpts = require('../../config/pacote')
|
|
|
|
module.exports = fetch
|
|
function fetch (staging, pkg, log, next) {
|
|
log.silly('fetch', packageId(pkg))
|
|
const opts = pacoteOpts({integrity: pkg.package._integrity})
|
|
pacote.prefetch(pkg.package._requested, opts).then(() => next(), next)
|
|
}
|