Ignore:
Timestamp:
01/21/25 03:08:24 (3 days ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
0c6b92a
Message:

F4 Finalna Verzija

Location:
imaps-frontend/node_modules/chokidar/esm
Files:
4 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/chokidar/esm/handler.d.ts

    r0c6b92a r79a0317  
    1111export declare const isMacos: boolean;
    1212export declare const isLinux: boolean;
     13export declare const isFreeBSD: boolean;
    1314export declare const isIBMi: boolean;
    1415export declare const EVENTS: {
     
    8889    _addToNodeFs(path: string, initialAdd: boolean, priorWh: WatchHelper | undefined, depth: number, target?: string): Promise<string | false | undefined>;
    8990}
    90 //# sourceMappingURL=handler.d.ts.map
  • imaps-frontend/node_modules/chokidar/esm/handler.js

    r0c6b92a r79a0317  
    1212export const isMacos = pl === 'darwin';
    1313export const isLinux = pl === 'linux';
     14export const isFreeBSD = pl === 'freebsd';
    1415export const isIBMi = osType() === 'OS400';
    1516export const EVENTS = {
     
    360361                        this.fsw._emit(EV.CHANGE, file, newStats);
    361362                    }
    362                     if ((isMacos || isLinux) && prevStats.ino !== newStats.ino) {
     363                    if ((isMacos || isLinux || isFreeBSD) && prevStats.ino !== newStats.ino) {
    363364                        this.fsw._closeFile(path);
    364365                        prevStats = newStats;
     
    627628    }
    628629}
    629 //# sourceMappingURL=handler.js.map
  • imaps-frontend/node_modules/chokidar/esm/index.d.ts

    r0c6b92a r79a0317  
     1/*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) */
    12import { Stats } from 'fs';
    23import { EventEmitter } from 'events';
    34import { ReaddirpStream, ReaddirpOptions, EntryInfo } from 'readdirp';
    4 import { NodeFsHandler, EventName, Path } from './handler.js';
     5import { NodeFsHandler, EventName, Path, EVENTS as EV, WatchHandlers } from './handler.js';
    56type AWF = {
    67    stabilityThreshold: number;
     
    3435};
    3536export type ThrottleType = 'readdir' | 'watch' | 'add' | 'remove' | 'change';
    36 export type EmitArgs = [EventName, Path | Error, any?, any?, any?];
     37export type EmitArgs = [path: Path, stats?: Stats];
     38export type EmitErrorArgs = [error: Error, stats?: Stats];
     39export type EmitArgsWithName = [event: EventName, ...EmitArgs];
    3740export type MatchFunction = (val: string, stats?: Stats) => boolean;
    3841export interface MatcherObject {
     
    6871    filterDir(entry: EntryInfo): boolean;
    6972}
     73export interface FSWatcherKnownEventMap {
     74    [EV.READY]: [];
     75    [EV.RAW]: Parameters<WatchHandlers['rawEmitter']>;
     76    [EV.ERROR]: Parameters<WatchHandlers['errHandler']>;
     77    [EV.ALL]: [event: EventName, ...EmitArgs];
     78}
     79export type FSWatcherEventMap = FSWatcherKnownEventMap & {
     80    [k in Exclude<EventName, keyof FSWatcherKnownEventMap>]: EmitArgs;
     81};
    7082/**
    7183 * Watches files & directories for changes. Emitted events:
     
    7688 *       .on('add', path => log('File', path, 'was added'))
    7789 */
    78 export declare class FSWatcher extends EventEmitter {
     90export declare class FSWatcher extends EventEmitter<FSWatcherEventMap> {
    7991    closed: boolean;
    8092    options: FSWInstanceOptions;
     
    8698    _watched: Map<string, DirEntry>;
    8799    _pendingWrites: Map<string, any>;
    88     _pendingUnlinks: Map<string, EmitArgs>;
     100    _pendingUnlinks: Map<string, EmitArgsWithName>;
    89101    _readyCount: number;
    90102    _emitReady: () => void;
     
    92104    _userIgnored?: MatchFunction;
    93105    _readyEmitted: boolean;
    94     _emitRaw: () => void;
     106    _emitRaw: WatchHandlers['rawEmitter'];
    95107    _boundRemove: (dir: string, item: string) => void;
    96108    _nodeFsHandler: NodeFsHandler;
     
    202214};
    203215export default _default;
    204 //# sourceMappingURL=index.d.ts.map
  • imaps-frontend/node_modules/chokidar/esm/index.js

    r0c6b92a r79a0317  
     1/*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) */
    12import { stat as statcb } from 'fs';
    23import { stat, readdir } from 'fs/promises';
     
    428429    }
    429430    emitWithAll(event, args) {
    430         this.emit(...args);
     431        this.emit(event, ...args);
    431432        if (event !== EV.ERROR)
    432             this.emit(EV.ALL, ...args);
     433            this.emit(EV.ALL, event, ...args);
    433434    }
    434435    // Common helpers
     
    450451        if (opts.cwd)
    451452            path = sysPath.relative(opts.cwd, path);
    452         const args = [event, path];
     453        const args = [path];
    453454        if (stats != null)
    454455            args.push(stats);
     
    461462        if (opts.atomic) {
    462463            if (event === EV.UNLINK) {
    463                 this._pendingUnlinks.set(path, args);
     464                this._pendingUnlinks.set(path, [event, ...args]);
    464465                setTimeout(() => {
    465466                    this._pendingUnlinks.forEach((entry, path) => {
     
    472473            }
    473474            if (event === EV.ADD && this._pendingUnlinks.has(path)) {
    474                 event = args[0] = EV.CHANGE;
     475                event = EV.CHANGE;
    475476                this._pendingUnlinks.delete(path);
    476477            }
     
    479480            const awfEmit = (err, stats) => {
    480481                if (err) {
    481                     event = args[0] = EV.ERROR;
    482                     args[1] = err;
     482                    event = EV.ERROR;
     483                    args[0] = err;
    483484                    this.emitWithAll(event, args);
    484485                }
    485486                else if (stats) {
    486487                    // if stats doesn't exist the file must have been deleted
    487                     if (args.length > 2) {
    488                         args[2] = stats;
     488                    if (args.length > 1) {
     489                        args[1] = stats;
    489490                    }
    490491                    else {
     
    796797}
    797798export default { watch, FSWatcher };
    798 //# sourceMappingURL=index.js.map
Note: See TracChangeset for help on using the changeset viewer.