Comparing version 1.0.7 to 1.0.8
@@ -208,2 +208,9 @@ "use strict"; | ||
deleteFolderRecursive(cf); | ||
}, | ||
escape: function () { | ||
var parts = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
parts[_i] = arguments[_i]; | ||
} | ||
return shellescape.escapePath(getShellType(), __spread(parts)); | ||
} | ||
@@ -503,2 +510,2 @@ }; | ||
}); }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhlY1J1bnRpbWUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbGliL2V4ZWNSdW50aW1lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsaUJBNlpBOztBQTdaQSw2QkFBK0I7QUFDL0IsNkNBQStDO0FBQy9DLHVCQUF5QjtBQUN6QiwyQkFBNkI7QUFDN0IseUJBQTJCO0FBQzNCLG1DQUFnRDtBQUNoRCwrQkFBa0w7QUFDbEwsK0NBQThDO0FBTTlDLDJDQUE2QztBQUM3QyxpQ0FBc0c7QUFJdEcsSUFBTSxZQUFZLEdBQUcsT0FBTyxDQUFDLGVBQWUsQ0FBQyxDQUFDO0FBRTlDLElBQU0sWUFBWSxHQUFHLGNBQU0sT0FBQSxDQUFDLE9BQU8sQ0FBQyxHQUFHLENBQUMsS0FBSyxHQUFHLElBQUksR0FBRyxLQUFLLENBQUMsRUFBbEMsQ0FBa0MsQ0FBQztBQUM5RCxJQUFNLGNBQWMsR0FBRyxjQUFNLE9BQUEsQ0FBQyxZQUFZLEVBQUUsS0FBSyxJQUFJLEdBQUcsTUFBTSxHQUFHLE1BQU0sQ0FBQyxFQUEzQyxDQUEyQyxDQUFDO0FBQ3pFL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cmluZzpcclxuICAgICAgcmV0dXJuIGdldEhlbHAoJ3N0cmluZycsIGJ5RGVmYXVsdCk7XHJcbiAgICBjYXNlIFR5cGUuRW51bTpcclxuICAgICAgY29uc3QgeyB2YWx1ZXMgfSA9IGFyZ0RlZmluaXRpb24gYXMgRW51bUFyZ0RlZmluaXRpb247XHJcbiAgICAgIHJldHVybiBnZXRIZWxwKHZhbHVlcy5qb2luKCd8JyksIGJ5RGVmYXVsdCk7XHJcbiAgICBkZWZhdWx0OlxyXG4gICAgICB0aHJvdyBuZXcgRXJyb3IoYGludGVybmFsIGVycm9yIC0gdW5rbm93biB0eXBlOiAke25vcm1hbGl6ZWRUeXBlfWApO1xyXG4gIH1cclxufTtcclxuIl19 |
@@ -14,2 +14,3 @@ export interface ExecObject { | ||
cleanCacheSync(): void; | ||
escape(...parts: string[]): string; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicnVudGltZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvc2NoZW1hL3J1bnRpbWUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgRXhlY09iamVjdCB7XG4gIF86IHN0cmluZzsgLy8gY29tbWFuZCBuYW1lXG4gIGFyZ3M/OiB7XG4gICAgW2FyZ05hbWU6IHN0cmluZ106IHN0cmluZyB8IGJvb2xlYW47XG4gIH07XG59XG5cbmV4cG9ydCB0eXBlIEV4ZWNDb21tYW5kID0gc3RyaW5nIHwgRXhlY09iamVjdCB8IGFueVtdOyAvLyBzaG91bGQgYmUgRXhlY0NvbW1hbmRbXSwgYnV0IHRoYXQgZ2l2ZXMgYSBjaXJjdWxhciB0eXBlXG5cbmV4cG9ydCB0eXBlIEV4ZWNGdW5jdGlvbiA9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EtejAtOV9cXC8tXSskLy50ZXN0KHBhdGgpKVxuICAgIHJldHVybiAoXCInXCIgKyBwYXRoLnJlcGxhY2UoLycvZywgXCInXFxcIidcXFwiJ1wiKSArIFwiJ1wiKS5yZXBsYWNlKC8nJy9nLCAnJyk7XG4gIGVsc2VcbiAgICByZXR1cm4gcGF0aDtcbn1cblxuZnVuY3Rpb24gX2VzY2FwZVBhdGhXaW4ocGF0aDogc3RyaW5nKSB7XG4gIGlmICghL15bQS1aYS16MC05X1xcLy1dKyQvLnRlc3QocGF0aCkpXG4gICAgcmV0dXJuICdcIicgKyBwYXRoLnJlcGxhY2UoL1wiL2csICdcIlwiJykgKyAnXCInO1xuICBlbHNlXG4gICAgcmV0dXJuIHBhdGg7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBlc2NhcGVQYXRoKHNoZWxsOiAnY21kJyB8ICdzaCcsIHN0cmluZ09yQXJyYXk6IHN0cmluZyB8IHN0cmluZ1tdKSB7XG4gIGNvbnN0IGVzY2FwZSA9IHNoZWxsID09PSAnY21kJyA/IF9lc2NhcGVQYXRoV2luIDogX2VzY2FwZVBhdGhTaDtcblxuICBjb25zdCByZXQ6IHN0cmluZ1tdID0gW107XG5cbiAgaWYgKHR5cGVvZihzdHJpbmdPckFycmF5KSA9PT0gJ3N0cmluZycpIHtcbiAgICByZXR1cm4gZXNjYXBlKHN0cmluZ09yQXJyYXkpO1xuICB9IGVsc2Uge1xuICAgIHN0cmluZ09yQXJyYXkuZm9yRWFjaChmdW5jdGlvbihtZW1iZXIpIHtcbiAgICAgIHJldC5wdXNoKGVzY2FwZShtZW1iZXIpKTtcbiAgICB9KTtcbiAgICByZXR1cm4gcmV0LmpvaW4oJyAnKTtcbiAgfVxufVxuIl19 |
@@ -218,2 +218,2 @@ "use strict"; | ||
exports.TextWriter = TextWriter; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic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pc2U8c3RyaW5nW10+KChyZXNvbHZlLCByZWplY3QpID0+IHtcbiAgICBnbG9iKGdsb2JQYXR0ZXJuLCB7IHN0cmljdDogdHJ1ZSwgbm9kaXI6IHRydWUgfSwgKGVycjogRXJyb3IgfCBudWxsLCBmaWxlczogc3RyaW5nW10pID0+IHtcbiAgICAgIGlmIChlcnIpIHtcbiAgICAgICAgcmVqZWN0KGVycik7XG4gICAgICAgIHJldHVybjtcbiAgICAgIH1cblxuICAgICAgcmVzb2x2ZShmaWxlcyk7XG4gICAgfSk7XG5cbiAgfSk7XG59O1xuXG5leHBvcnQgY29uc3QgdW5yb2xsR2xvYlBhdHRlcm5zQXN5bmMgPSBhc3luYyAoZ2xvYlBhdHRlcm5zOiBzdHJpbmdbXSk6IFByb21pc2U8c3RyaW5nW10+ICA9PiB7XG4gIGNvbnN0IHNldCA9IG5ldyBTZXQoKTtcbiAgZm9yIChjb25zdCBnbG9iUGF0dGVybiBvZiBnbG9iUGF0dGVybnMpIHtcbiAgICBjb25zdCBmaWxlcyA9IGF3YWl0IHVucm9sbEdsb2JQYXR0ZXJuQXN5bmMoZ2xvYlBhdHRlcm4pO1xuICAgIGZvciAoY29uc3QgZmlsZSBvZiBmaWxlcykge1xuICAgICAgc2V0LmFkZChmaWxlKTtcbiAgICB9XG4gIH1cbiAgcmV0dXJuIFsuLi5zZXRdO1xufTtcblxuZXhwb3J0IGNsYXNzIFRleHRXcml0ZXIge1xuICBvdXRwdXQ6IHN0cmluZyA9ICcnO1xuXG4gIHdyaXRlKHN0cj86IHN0cmluZykge1xuICAgIHRoaXMub3V0cHV0ICs9IChzdHIgPyBzdHIgOiAnJyk7XG4gIH1cblxuICB3cml0ZUxpbmUoc3RyPzogc3RyaW5nKSB7XG4gICAgdGhpcy53cml0ZShzdHIpO1xuICAgIHRoaXMud3JpdGUoJ1xcbicpO1xuICB9XG59XG5cbiJdfQ== |
{ | ||
"name": "makfy", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "makfy - npm scripts on steroids!", | ||
@@ -5,0 +5,0 @@ "main": "dist/lib/index.js", |
@@ -241,2 +241,4 @@ <p align="center"> | ||
> > | ||
> > * **```escape: (...parts: string[]) => string```** | ||
> > > Escapes all parts of a given shell command (e.g. ```['hello', 'to this world']``` will return under cmd ```hello "to this world"``` and under other shells ```hello 'to this world'```) | ||
> > * **```filesChanged: async([gobPatterns: string[] | string], log = true) => Promise<boolean>```** | ||
@@ -243,0 +245,0 @@ > > > Returns true if any of the files represented from the union of all gob pattern(s) changed. Useful for example if you don't need to rerun the babel if none of the sources changed. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
248883
2312
281