File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ export default async ({
6666 }
6767
6868 json [ 'dist-tags' ] [ tag ] = version ;
69+ json . _attachments = { } ; // eslint-disable-line no-underscore-dangle
6970 json . _attachments [ `${ name } -${ version } .tgz` ] = pkg . _attachments [ `${ name } -${ version } .tgz` ] ; // eslint-disable-line no-underscore-dangle
7071 json . versions [ version ] = versionData ;
7172 } catch ( storageError ) {
Original file line number Diff line number Diff line change @@ -240,11 +240,10 @@ describe('PUT /registry/{name}', () => {
240240 const pkg2 = JSON . parse ( pkg . withAttachments ( { major : 2 , minor : 0 , patch : 0 } ) . toString ( ) ) ;
241241
242242 const versions = Object . assign ( pkg1 . versions , pkg2 . versions ) ;
243- const attachments = Object . assign ( pkg1 . _attachments , pkg2 . _attachments ) ;
244243
245244 const updatedPackage = Object . assign ( { } , pkg1 , pkg2 ) ;
246245 updatedPackage . versions = versions ;
247- updatedPackage . _attachments = attachments ;
246+ updatedPackage . _attachments = pkg2 . _attachments ;
248247
249248 const expected = JSON . stringify ( updatedPackage ) ;
250249
You can’t perform that action at this time.
0 commit comments