admin felület fejlesztése garázs, előfizeztési csomagok
This commit is contained in:
1
frontend_admin/.output/server/node_modules/perfect-debounce
generated
vendored
Symbolic link
1
frontend_admin/.output/server/node_modules/perfect-debounce
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
||||
.nitro/perfect-debounce@2.1.0
|
||||
59
frontend_admin/.output/server/node_modules/perfect-debounce/dist/index.cjs
generated
vendored
59
frontend_admin/.output/server/node_modules/perfect-debounce/dist/index.cjs
generated
vendored
@@ -1,59 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
const DEBOUNCE_DEFAULTS = {
|
||||
trailing: true
|
||||
};
|
||||
function debounce(fn, wait = 25, options = {}) {
|
||||
options = { ...DEBOUNCE_DEFAULTS, ...options };
|
||||
if (!Number.isFinite(wait)) {
|
||||
throw new TypeError("Expected `wait` to be a finite number");
|
||||
}
|
||||
let leadingValue;
|
||||
let timeout;
|
||||
let resolveList = [];
|
||||
let currentPromise;
|
||||
let trailingArgs;
|
||||
const applyFn = (_this, args) => {
|
||||
currentPromise = _applyPromised(fn, _this, args);
|
||||
currentPromise.finally(() => {
|
||||
currentPromise = null;
|
||||
if (options.trailing && trailingArgs && !timeout) {
|
||||
const promise = applyFn(_this, trailingArgs);
|
||||
trailingArgs = null;
|
||||
return promise;
|
||||
}
|
||||
});
|
||||
return currentPromise;
|
||||
};
|
||||
return function(...args) {
|
||||
if (currentPromise) {
|
||||
if (options.trailing) {
|
||||
trailingArgs = args;
|
||||
}
|
||||
return currentPromise;
|
||||
}
|
||||
return new Promise((resolve) => {
|
||||
const shouldCallNow = !timeout && options.leading;
|
||||
clearTimeout(timeout);
|
||||
timeout = setTimeout(() => {
|
||||
timeout = null;
|
||||
const promise = options.leading ? leadingValue : applyFn(this, args);
|
||||
for (const _resolve of resolveList) {
|
||||
_resolve(promise);
|
||||
}
|
||||
resolveList = [];
|
||||
}, wait);
|
||||
if (shouldCallNow) {
|
||||
leadingValue = applyFn(this, args);
|
||||
resolve(leadingValue);
|
||||
} else {
|
||||
resolveList.push(resolve);
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
async function _applyPromised(fn, _this, args) {
|
||||
return await fn.apply(_this, args);
|
||||
}
|
||||
|
||||
exports.debounce = debounce;
|
||||
44
frontend_admin/.output/server/node_modules/perfect-debounce/package.json
generated
vendored
44
frontend_admin/.output/server/node_modules/perfect-debounce/package.json
generated
vendored
@@ -1,44 +0,0 @@
|
||||
{
|
||||
"name": "perfect-debounce",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"repository": "unjs/perfect-debounce",
|
||||
"license": "MIT",
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/index.mjs",
|
||||
"require": "./dist/index.cjs"
|
||||
}
|
||||
},
|
||||
"main": "./dist/index.cjs",
|
||||
"module": "./dist/index.mjs",
|
||||
"types": "./dist/index.d.ts",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "unbuild",
|
||||
"dev": "vitest dev",
|
||||
"lint": "eslint --ext .ts,.js,.mjs,.cjs . && prettier --check src test",
|
||||
"lint:fix": "eslint --ext .ts,.js,.mjs,.cjs . --fix && prettier -w src test",
|
||||
"release": "pnpm test && pnpm build && changelogen --release --push && npm publish",
|
||||
"test": "vitest run --coverage"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^18.16.3",
|
||||
"@vitest/coverage-c8": "^0.31.0",
|
||||
"changelogen": "^0.5.3",
|
||||
"eslint": "^8.39.0",
|
||||
"eslint-config-unjs": "^0.1.0",
|
||||
"in-range": "^3.0.0",
|
||||
"prettier": "^2.8.8",
|
||||
"time-span": "^5.1.0",
|
||||
"typescript": "^5.0.4",
|
||||
"unbuild": "^1.2.1",
|
||||
"vitest": "^0.31.0"
|
||||
},
|
||||
"packageManager": "pnpm@8.4.0"
|
||||
}
|
||||
Reference in New Issue
Block a user