Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pacote

Package Overview
Dependencies
Maintainers
2
Versions
223
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pacote - npm Package Compare versions

Comparing version 6.0.2 to 6.0.3

12

CHANGELOG.md

@@ -5,2 +5,14 @@ # Change Log

<a name="6.0.3"></a>
## [6.0.3](https://github.com/zkat/pacote/compare/v6.0.2...v6.0.3) (2017-10-05)
### Bug Fixes
* **extract:** clean up mode/fmode/dmode tests ([f915045](https://github.com/zkat/pacote/commit/f915045))
* **file:** make sure file tarballs are written to cache and have integrity data ([dae391a](https://github.com/zkat/pacote/commit/dae391a))
* **git:** version resolution regression from #115 (#119) ([9a68205](https://github.com/zkat/pacote/commit/9a68205))
<a name="6.0.2"></a>

@@ -7,0 +19,0 @@ ## [6.0.2](https://github.com/zkat/pacote/compare/v6.0.1...v6.0.2) (2017-09-06)

15

lib/fetchers/file.js

@@ -5,2 +5,3 @@ 'use strict'

const cacache = require('cacache')
const Fetcher = require('../fetch')

@@ -33,6 +34,18 @@ const fs = require('fs')

statAsync(src).then(stat => {
if (spec._resolved) { stream.emit('manifest', spec) }
if (stat.size <= MAX_BULK_SIZE) {
// YAY LET'S DO THING IN BULK
return readFileAsync(src).then(data => {
stream.write(data, () => {
if (opts.cache) {
return cacache.put(
opts.cache, `pacote:tarball:file:${src}`, data, {
integrity: opts.integrity
}
).then(integrity => ({data, integrity}))
} else {
return {data}
}
}).then(info => {
if (info.integrity) { stream.emit('integrity', info.integrity) }
stream.write(info.data, () => {
stream.end()

@@ -39,0 +52,0 @@ })

4

lib/util/git.js

@@ -207,4 +207,4 @@ 'use strict'

const REFS_TAGS = '/refs/tags/'
const REFS_HEADS = '/refs/heads/'
const REFS_TAGS = 'refs/tags/'
const REFS_HEADS = 'refs/heads/'
const HEAD = 'HEAD'

@@ -211,0 +211,0 @@ function refType (ref) {

{
"name": "pacote",
"version": "6.0.2",
"version": "6.0.3",
"description": "JavaScript package downloader",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc