Socket
Socket
Sign inDemoInstall

pacote

Package Overview
Dependencies
Maintainers
1
Versions
221
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 2.0.2 to 2.0.3

13

CHANGELOG.md

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

<a name="2.0.3"></a>
## [2.0.3](https://github.com/zkat/pacote/compare/v2.0.2...v2.0.3) (2017-04-15)
### Bug Fixes
* **manifest:** meh just shove _from in there ([4396f09](https://github.com/zkat/pacote/commit/4396f09))
* **registry:** include CI header ([86ad911](https://github.com/zkat/pacote/commit/86ad911))
* **registry:** include npm-scope header ([574cd93](https://github.com/zkat/pacote/commit/574cd93))
* **registry:** make sure to send referer header ([2d3aaac](https://github.com/zkat/pacote/commit/2d3aaac))
<a name="2.0.2"></a>

@@ -7,0 +20,0 @@ ## [2.0.2](https://github.com/zkat/pacote/compare/v2.0.1...v2.0.2) (2017-04-15)

5

lib/registry/manifest.js

@@ -92,5 +92,8 @@ 'use strict'

authorization: (auth && auth.token && `Bearer ${auth.token}`) || '',
'npm-in-ci': opts.isFromCI,
'npm-scope': opts.projectScope,
'user-agent': opts.userAgent,
'pacote-req-type': 'packument',
'pacote-pkg-id': `registry:${manifest.name}`
'pacote-pkg-id': `registry:${manifest.name}`,
'referer': opts.refer
},

@@ -97,0 +100,0 @@ proxy: opts.proxy,

@@ -57,6 +57,9 @@ 'use strict'

authorization: (auth && auth.token && `Bearer ${auth.token}`) || '',
'npm-in-ci': opts.isFromCI,
'npm-scope': opts.projectScope,
'user-agent': opts.userAgent,
'pacote-req-type': 'tarball',
'pacote-pkg-id': `registry:${manifest.name}@${manifest.version}`,
'pacote-pkg-manifest': JSON.stringify(manifest)
'pacote-pkg-manifest': JSON.stringify(manifest),
'referer': opts.refer
},

@@ -63,0 +66,0 @@ integrity: manifest._integrity,

@@ -28,2 +28,11 @@ 'use strict'

this.preferOnline = opts.preferOnline
this.isFromCI = !!(
opts.isFromCI ||
process.env['CI'] === 'true' ||
process.env['TDDIUM'] ||
process.env['JENKINS_URL'] ||
process.env['bamboo.buildKey']
)
this.refer = opts.referer || opts.refer
this.projectScope = opts.projectScope

@@ -30,0 +39,0 @@ this.dirPacker = opts.dirPacker || null

1

manifest.js

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

manifest._spec = spec.raw
manifest._from = spec.raw
manifest._where = opts.where

@@ -41,0 +42,0 @@ }

{
"name": "pacote",
"version": "2.0.2",
"version": "2.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