elasticsearch-memory-server
Advanced tools
Comparing version 0.1.9 to 0.1.10
@@ -27,3 +27,13 @@ "use strict"; | ||
getArchiveName(version) { | ||
return `elasticsearch-${version}-linux-x86_64.tar.gz`; | ||
// TODO: Add Windows support (unzipping) | ||
switch (process.platform) { | ||
case 'darwin': | ||
return `elasticsearch-${version}-darwin-x86_64.tar.gz`; | ||
case 'linux': | ||
return `elasticsearch-${version}-linux-x86_64.tar.gz`; | ||
case 'win32': | ||
return `elasticsearch-${version}-windows-x86_64.zip`; | ||
default: | ||
return `elasticsearch-${version}-linux-x86_64.tar.gz`; | ||
} | ||
} | ||
@@ -30,0 +40,0 @@ getDownloadUrl(version) { |
{ | ||
"name": "elasticsearch-memory-server", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"description": "Local elasticsearch server for testing/development. Inspired by https://github.com/nodkz/mongodb-memory-server", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -46,3 +46,14 @@ import fs from 'fs'; | ||
getArchiveName(version: string): string { | ||
return `elasticsearch-${version}-linux-x86_64.tar.gz`; | ||
// TODO: Add Windows support (unzipping) | ||
switch (process.platform) { | ||
case 'darwin': | ||
return `elasticsearch-${version}-darwin-x86_64.tar.gz`; | ||
case 'linux': | ||
return `elasticsearch-${version}-linux-x86_64.tar.gz`; | ||
case 'win32': | ||
return `elasticsearch-${version}-windows-x86_64.zip`; | ||
default: | ||
return `elasticsearch-${version}-linux-x86_64.tar.gz`; | ||
} | ||
} | ||
@@ -49,0 +60,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
59678
1210