UNPKG

gulp-armapbo

Version:

The plugin for Gulp which allows to pack ArmA pbo files from sources.

22 lines (20 loc) 765 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Assert { static isString(input, paramName) { if (typeof paramName !== 'string' || !paramName.length || !paramName.trim().length) { throw new Error('paramName should be a non-empty string'); } if (typeof input !== 'string' || !input.length || !input.trim().length) { throw new Error(`${paramName} should be a non-empty string`); } } static isNotNull(input, paramName) { Assert.isString(paramName, 'paramName'); if (input === undefined || input === null) { throw new Error(`${paramName} should not be null`); } } } exports.Assert = Assert; //# sourceMappingURL=assert.js.map