New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

electron-installer-snap

Package Overview
Dependencies
Maintainers
5
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-installer-snap - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

NEWS.md

7

package.json
{
"name": "electron-installer-snap",
"version": "3.1.0",
"version": "3.1.1",
"description": "Build snapcraft packages for Electron applications",

@@ -12,3 +12,3 @@ "author": "Mark Lee",

"files": [
"NEWS",
"NEWS.md",
"resources",

@@ -48,3 +48,3 @@ "src"

"debug": "^4.1.1",
"electron-installer-common": "^0.5.0",
"electron-installer-common": "^0.6.1",
"fs-extra": "^7.0.1",

@@ -55,3 +55,2 @@ "js-yaml": "^3.10.0",

"lodash.pull": "^4.1.0",
"lodash.template": "^4.4.0",
"nodeify": "^1.0.1",

@@ -58,0 +57,0 @@ "pify": "^4.0.1",

@@ -19,3 +19,3 @@ 'use strict'

const debug = require('debug')('electron-installer-snap:default_args')
const { readMeta } = require('electron-installer-common')
const { readMetadata } = require('electron-installer-common')

@@ -32,4 +32,4 @@ function defaultArgsFromPackageJSON (packageJSON) {

module.exports = function defaultArgsFromApp (packageDir) {
return readMeta({ src: packageDir, logger: debug })
return readMetadata({ src: packageDir, logger: debug })
.then(defaultArgsFromPackageJSON)
}
'use strict'
/*
Copyright 2017 Mark Lee and contributors
Copyright 2017, 2018, 2019 Mark Lee and contributors

@@ -18,5 +18,4 @@ Licensed under the Apache License, Version 2.0 (the "License");

const fs = require('fs-extra')
const { createDesktopFile } = require('electron-installer-common')
const path = require('path')
const template = require('lodash.template')

@@ -45,10 +44,4 @@ function getDesktopTemplatePath (userSupplied) {

function createDesktopFile (snapGuiDir, userSupplied) {
const desktopFilePath = path.join(snapGuiDir, `${userSupplied.name}.desktop`)
return fs.readFile(getDesktopTemplatePath(userSupplied))
.then(templateData => template(templateData)(templateScope(userSupplied)))
.then(desktopData => fs.writeFile(desktopFilePath, desktopData))
module.exports = function (snapGuiDir, userSupplied) {
return createDesktopFile(getDesktopTemplatePath(userSupplied), snapGuiDir, userSupplied.name, templateScope(userSupplied))
}
module.exports = createDesktopFile

@@ -58,4 +58,2 @@ 'use strict'

delete this.config.arch
return this.snapcraftOptions
}

@@ -62,0 +60,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