Skip to content

Commit

Permalink
Merge pull request #7 from cristiammercado/develop
Browse files Browse the repository at this point in the history
General improvements
  • Loading branch information
cristiammercado authored Jun 4, 2020
2 parents 459f29a + fcaeebb commit 1fc65d5
Show file tree
Hide file tree
Showing 13 changed files with 196 additions and 168 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ os:
- osx
- windows
node_js:
- 14
- 13
- 12
- 11
Expand Down
12 changes: 6 additions & 6 deletions dist/classes/drive.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var Drive = /** @class */ (function () {
get: function () {
return this._filesystem;
},
enumerable: true,
enumerable: false,
configurable: true
});
Object.defineProperty(Drive.prototype, "blocks", {
Expand All @@ -45,7 +45,7 @@ var Drive = /** @class */ (function () {
get: function () {
return this._blocks;
},
enumerable: true,
enumerable: false,
configurable: true
});
Object.defineProperty(Drive.prototype, "used", {
Expand All @@ -57,7 +57,7 @@ var Drive = /** @class */ (function () {
get: function () {
return this._used;
},
enumerable: true,
enumerable: false,
configurable: true
});
Object.defineProperty(Drive.prototype, "available", {
Expand All @@ -69,7 +69,7 @@ var Drive = /** @class */ (function () {
get: function () {
return this._available;
},
enumerable: true,
enumerable: false,
configurable: true
});
Object.defineProperty(Drive.prototype, "capacity", {
Expand All @@ -81,7 +81,7 @@ var Drive = /** @class */ (function () {
get: function () {
return this._capacity;
},
enumerable: true,
enumerable: false,
configurable: true
});
Object.defineProperty(Drive.prototype, "mounted", {
Expand All @@ -93,7 +93,7 @@ var Drive = /** @class */ (function () {
get: function () {
return this._mounted;
},
enumerable: true,
enumerable: false,
configurable: true
});
return Drive;
Expand Down
1 change: 1 addition & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ export declare function getDiskInfo(): Promise<Drive[]>;
*
* @author Cristiam Mercado
* @return {Drive[]} Array of disks and their info.
* @throws {Error} Current platform must be win32, linux or darwin.
*/
export declare function getDiskInfoSync(): Drive[];
2 changes: 2 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDiskInfoSync = exports.getDiskInfo = void 0;
var darwin_1 = require("./platforms/darwin");
var linux_1 = require("./platforms/linux");
var windows_1 = require("./platforms/windows");
Expand Down Expand Up @@ -43,6 +44,7 @@ exports.getDiskInfo = getDiskInfo;
*
* @author Cristiam Mercado
* @return {Drive[]} Array of disks and their info.
* @throws {Error} Current platform must be win32, linux or darwin.
*/
function getDiskInfoSync() {
var platform = utils_1.Utils.detectPlatform();
Expand Down
1 change: 1 addition & 0 deletions dist/platforms/darwin.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Darwin = void 0;
var constants_1 = require("../utils/constants");
var drive_1 = __importDefault(require("../classes/drive"));
var utils_1 = require("../utils/utils");
Expand Down
1 change: 1 addition & 0 deletions dist/platforms/linux.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Linux = void 0;
var constants_1 = require("../utils/constants");
var drive_1 = __importDefault(require("../classes/drive"));
var utils_1 = require("../utils/utils");
Expand Down
1 change: 1 addition & 0 deletions dist/platforms/windows.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Windows = void 0;
var constants_1 = require("../utils/constants");
var drive_1 = __importDefault(require("../classes/drive"));
var utils_1 = require("../utils/utils");
Expand Down
1 change: 1 addition & 0 deletions dist/utils/constants.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Constants = void 0;
/**
* Class with constants used in the application.
*/
Expand Down
17 changes: 15 additions & 2 deletions dist/utils/utils.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Utils = void 0;
var os = __importStar(require("os"));
var child_process_1 = require("child_process");
/**
Expand Down
3 changes: 2 additions & 1 deletion jasmine.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"spec_files": [
"*.spec.ts"
],
"stopSpecOnExpectationFailure": false
"stopSpecOnExpectationFailure": false,
"random": true
}
Loading

0 comments on commit 1fc65d5

Please sign in to comment.