forked from olcxjas-softworks/LarpixClient
fix gitignore again
This commit is contained in:
parent
ce5a1e330b
commit
5da5c2afe2
3329 changed files with 364540 additions and 3 deletions
39
electron/node_modules/@ionic/cli-framework-output/dist/utils.js
generated
vendored
Normal file
39
electron/node_modules/@ionic/cli-framework-output/dist/utils.js
generated
vendored
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.formatHrTime = exports.dropWhile = exports.enforceLF = exports.identity = void 0;
|
||||
function identity(v) {
|
||||
return v;
|
||||
}
|
||||
exports.identity = identity;
|
||||
function enforceLF(str) {
|
||||
return str.match(/[\r\n]$/) ? str : str + '\n';
|
||||
}
|
||||
exports.enforceLF = enforceLF;
|
||||
function dropWhile(array, predicate = v => !!v) {
|
||||
let done = false;
|
||||
return array.filter(item => {
|
||||
if (done) {
|
||||
return true;
|
||||
}
|
||||
if (predicate(item)) {
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
done = true;
|
||||
return true;
|
||||
}
|
||||
});
|
||||
}
|
||||
exports.dropWhile = dropWhile;
|
||||
const TIME_UNITS = ['s', 'ms', 'μs'];
|
||||
function formatHrTime(hrtime) {
|
||||
let time = hrtime[0] + hrtime[1] / 1e9;
|
||||
let index = 0;
|
||||
for (; index < TIME_UNITS.length - 1; index++, time *= 1000) {
|
||||
if (time >= 1) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return time.toFixed(2) + TIME_UNITS[index];
|
||||
}
|
||||
exports.formatHrTime = formatHrTime;
|
||||
Loading…
Add table
Add a link
Reference in a new issue