Socket
Socket
Sign inDemoInstall

asar

Package Overview
Dependencies
Maintainers
2
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asar - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

15

bin/asar.js
#!/usr/bin/env node
var packageJSON = require('../package.json')
var splitVersion = function (version) { return version.split('.').map(function (part) { return Number(part) }) }
var requiredNodeVersion = splitVersion(packageJSON.engines.node.slice(2))
var actualNodeVersion = splitVersion(process.versions.node)
if (actualNodeVersion[0] < requiredNodeVersion[0] || (actualNodeVersion[0] === requiredNodeVersion[0] && actualNodeVersion[1] < requiredNodeVersion[1])) {
console.error('CANNOT RUN WITH NODE ' + process.versions.node)
console.error('asar requires Node ' + packageJSON.engines.node + '.')
process.exit(1)
}
// Not consts so that this file can load in Node < 4.0
var asar = require('../lib/asar')
var program = require('commander')
program.version('v' + require('../package.json').version)
program.version('v' + packageJSON.version)
.description('Manipulate asar archive files')

@@ -7,0 +20,0 @@

11

CHANGELOG.md

@@ -1,13 +0,8 @@

# [3.0.0](https://github.com/electron/asar/compare/v2.1.0...v3.0.0) (2020-03-10)
## [3.0.1](https://github.com/electron/asar/compare/v3.0.0...v3.0.1) (2020-03-12)
### Features
### Bug Fixes
* require Node 10.12.0 ([#191](https://github.com/electron/asar/issues/191)) ([f1a29ba](https://github.com/electron/asar/commit/f1a29ba1e8465a260b1d6c037957ef14af0b262f))
* enforce Node version constraint for the CLI ([#193](https://github.com/electron/asar/issues/193)) ([49bba74](https://github.com/electron/asar/commit/49bba749ad41c6fe707085467508cabe61bb810c))
### BREAKING CHANGES
* Drops support for Node < 10.12.0
# Changes By Version

@@ -14,0 +9,0 @@

{
"name": "asar",
"description": "Creating Electron app packages",
"version": "3.0.0",
"version": "3.0.1",
"main": "./lib/asar.js",

@@ -10,2 +10,7 @@ "types": "./lib/index.d.ts",

},
"files": [
"bin",
"lib",
"lib/index.d.ts"
],
"engines": {

@@ -12,0 +17,0 @@ "node": ">=10.12.0"

@@ -20,4 +20,6 @@ # asar - Electron Archive

This module requires Node 10 or later.
```bash
$ npm install asar
$ npm install --engine-strict asar
```

@@ -24,0 +26,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