Socket
Socket
Sign inDemoInstall

electron-installer-common

Package Overview
Dependencies
Maintainers
5
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.2.0 to 0.3.0

10

NEWS.md

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

[Unreleased]: https://github.com/electron-userland/electron-installer-common/compare/v0.2.0...master
[Unreleased]: https://github.com/electron-userland/electron-installer-common/compare/v0.3.0...master
## [0.3.0] - 2018-12-26
[0.3.0]: https://github.com/electron-userland/electron-installer-common/compare/v0.2.0...v0.3.0
## Changed
* Don't require an `options` object to use `readElectronVersion` (#3)
## [0.2.0] - 2018-12-26

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

2

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

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

@@ -13,5 +13,5 @@ 'use strict'

*/
module.exports = function readElectronVersion (options) {
return fs.readFile(path.resolve(options.src, 'version'))
module.exports = function readElectronVersion (appDir) {
return fs.readFile(path.resolve(appDir, 'version'))
.then(tag => tag.toString().trim())
}
'use strict'
const path = require('path')
const readElectronVersion = require('../src/readelectronversion')

@@ -7,4 +8,4 @@ const test = require('ava')

test('readElectronVersion', t => {
return readElectronVersion({ src: 'test/fixtures' })
return readElectronVersion(path.resolve(__dirname, 'fixtures'))
.then(version => t.is(version, 'v3.0.11'))
})
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