Socket
Socket
Sign inDemoInstall

electron-installer-common

Package Overview
Dependencies
Maintainers
4
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-installer-common - npm Package Compare versions

Comparing version 0.7.1 to 0.7.2

10

NEWS.md

@@ -5,4 +5,12 @@ # `electron-installer-common` - Changes by Version

[Unreleased]: https://github.com/electron-userland/electron-installer-common/compare/v0.7.1...master
[Unreleased]: https://github.com/electron-userland/electron-installer-common/compare/v0.7.2...master
## [0.7.2] - 2019-06-12
[0.7.2]: https://github.com/electron-userland/electron-installer-common/compare/v0.7.1...v0.7.2
### Added
* Add `packagePaths` to `options` when calling `ElectronInstaller.movePackage()` (#36)
## [0.7.1] - 2019-06-09

@@ -9,0 +17,0 @@

2

package.json
{
"name": "electron-installer-common",
"version": "0.7.1",
"version": "0.7.2",
"description": "Common functionality for creating distributable Electron apps",

@@ -5,0 +5,0 @@ "author": "Mark Lee",

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

* Move the package to the specified destination.
*
* Also adds `packagePaths` to `options`, which is an `Array` of the absolute paths to the
* moved packages.
*/

@@ -220,7 +223,8 @@ async movePackage () {

const files = await glob(this.packagePattern)
return Promise.all(files.map(async file => {
this.options.packagePaths = await Promise.all(files.map(async file => {
const renameTemplate = this.options.rename(this.options.dest, path.basename(file))
const dest = _.template(renameTemplate)(this.options)
debug(`Moving file ${file} to ${dest}`)
return fs.move(file, dest, { clobber: true })
await fs.move(file, dest, { clobber: true })
return dest
}))

@@ -227,0 +231,0 @@ })

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