Upakovka v Electron.JS no po staroy sborke cherez .cjs
This commit is contained in:
68
node_modules/cli-cursor/index.d.ts
generated
vendored
68
node_modules/cli-cursor/index.d.ts
generated
vendored
@@ -1,47 +1,45 @@
|
||||
declare const cliCursor: {
|
||||
/**
|
||||
Show cursor.
|
||||
/// <reference types="node"/>
|
||||
|
||||
@param stream - Default: `process.stderr`.
|
||||
/**
|
||||
Show cursor.
|
||||
|
||||
@example
|
||||
```
|
||||
import cliCursor from 'cli-cursor';
|
||||
@param stream - Default: `process.stderr`.
|
||||
|
||||
cliCursor.show();
|
||||
```
|
||||
*/
|
||||
show(stream?: NodeJS.WritableStream): void;
|
||||
@example
|
||||
```
|
||||
import * as cliCursor from 'cli-cursor';
|
||||
|
||||
/**
|
||||
Hide cursor.
|
||||
cliCursor.show();
|
||||
```
|
||||
*/
|
||||
export function show(stream?: NodeJS.WritableStream): void;
|
||||
|
||||
@param stream - Default: `process.stderr`.
|
||||
/**
|
||||
Hide cursor.
|
||||
|
||||
@example
|
||||
```
|
||||
import cliCursor from 'cli-cursor';
|
||||
@param stream - Default: `process.stderr`.
|
||||
|
||||
cliCursor.hide();
|
||||
```
|
||||
*/
|
||||
hide(stream?: NodeJS.WritableStream): void;
|
||||
@example
|
||||
```
|
||||
import * as cliCursor from 'cli-cursor';
|
||||
|
||||
/**
|
||||
Toggle cursor visibility.
|
||||
cliCursor.hide();
|
||||
```
|
||||
*/
|
||||
export function hide(stream?: NodeJS.WritableStream): void;
|
||||
|
||||
@param force - Is useful to show or hide the cursor based on a boolean.
|
||||
@param stream - Default: `process.stderr`.
|
||||
/**
|
||||
Toggle cursor visibility.
|
||||
|
||||
@example
|
||||
```
|
||||
import cliCursor from 'cli-cursor';
|
||||
@param force - Is useful to show or hide the cursor based on a boolean.
|
||||
@param stream - Default: `process.stderr`.
|
||||
|
||||
const unicornsAreAwesome = true;
|
||||
cliCursor.toggle(unicornsAreAwesome);
|
||||
```
|
||||
*/
|
||||
toggle(force?: boolean, stream?: NodeJS.WritableStream): void;
|
||||
};
|
||||
@example
|
||||
```
|
||||
import * as cliCursor from 'cli-cursor';
|
||||
|
||||
export default cliCursor;
|
||||
const unicornsAreAwesome = true;
|
||||
cliCursor.toggle(unicornsAreAwesome);
|
||||
```
|
||||
*/
|
||||
export function toggle(force?: boolean, stream?: NodeJS.WritableStream): void;
|
||||
|
||||
18
node_modules/cli-cursor/index.js
generated
vendored
18
node_modules/cli-cursor/index.js
generated
vendored
@@ -1,11 +1,9 @@
|
||||
import process from 'node:process';
|
||||
import restoreCursor from 'restore-cursor';
|
||||
'use strict';
|
||||
const restoreCursor = require('restore-cursor');
|
||||
|
||||
let isHidden = false;
|
||||
|
||||
const cliCursor = {};
|
||||
|
||||
cliCursor.show = (writableStream = process.stderr) => {
|
||||
exports.show = (writableStream = process.stderr) => {
|
||||
if (!writableStream.isTTY) {
|
||||
return;
|
||||
}
|
||||
@@ -14,7 +12,7 @@ cliCursor.show = (writableStream = process.stderr) => {
|
||||
writableStream.write('\u001B[?25h');
|
||||
};
|
||||
|
||||
cliCursor.hide = (writableStream = process.stderr) => {
|
||||
exports.hide = (writableStream = process.stderr) => {
|
||||
if (!writableStream.isTTY) {
|
||||
return;
|
||||
}
|
||||
@@ -24,16 +22,14 @@ cliCursor.hide = (writableStream = process.stderr) => {
|
||||
writableStream.write('\u001B[?25l');
|
||||
};
|
||||
|
||||
cliCursor.toggle = (force, writableStream) => {
|
||||
exports.toggle = (force, writableStream) => {
|
||||
if (force !== undefined) {
|
||||
isHidden = force;
|
||||
}
|
||||
|
||||
if (isHidden) {
|
||||
cliCursor.show(writableStream);
|
||||
exports.show(writableStream);
|
||||
} else {
|
||||
cliCursor.hide(writableStream);
|
||||
exports.hide(writableStream);
|
||||
}
|
||||
};
|
||||
|
||||
export default cliCursor;
|
||||
|
||||
2
node_modules/cli-cursor/license
generated
vendored
2
node_modules/cli-cursor/license
generated
vendored
@@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
|
||||
28
node_modules/cli-cursor/package.json
generated
vendored
28
node_modules/cli-cursor/package.json
generated
vendored
@@ -1,26 +1,19 @@
|
||||
{
|
||||
"name": "cli-cursor",
|
||||
"version": "5.0.0",
|
||||
"version": "3.1.0",
|
||||
"description": "Toggle the CLI cursor",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/cli-cursor",
|
||||
"funding": "https://github.com/sponsors/sindresorhus",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "https://sindresorhus.com"
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"type": "module",
|
||||
"exports": {
|
||||
"types": "./index.d.ts",
|
||||
"default": "./index.js"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
"node": ">=8"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava && tsc index.d.ts"
|
||||
"test": "xo && ava && tsd"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
@@ -42,15 +35,12 @@
|
||||
"command-line"
|
||||
],
|
||||
"dependencies": {
|
||||
"restore-cursor": "^5.0.0"
|
||||
"restore-cursor": "^3.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^20.14.12",
|
||||
"ava": "^6.1.3",
|
||||
"typescript": "^5.5.4",
|
||||
"xo": "^0.59.2"
|
||||
},
|
||||
"ava": {
|
||||
"workerThreads": false
|
||||
"@types/node": "^12.0.7",
|
||||
"ava": "^2.1.0",
|
||||
"tsd": "^0.7.2",
|
||||
"xo": "^0.24.0"
|
||||
}
|
||||
}
|
||||
|
||||
26
node_modules/cli-cursor/readme.md
generated
vendored
26
node_modules/cli-cursor/readme.md
generated
vendored
@@ -1,19 +1,21 @@
|
||||
# cli-cursor
|
||||
# cli-cursor [](https://travis-ci.org/sindresorhus/cli-cursor)
|
||||
|
||||
> Toggle the CLI cursor
|
||||
|
||||
The cursor is [gracefully restored](https://github.com/sindresorhus/restore-cursor) if the process exits.
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```sh
|
||||
npm install cli-cursor
|
||||
```
|
||||
$ npm install cli-cursor
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import cliCursor from 'cli-cursor';
|
||||
const cliCursor = require('cli-cursor');
|
||||
|
||||
cliCursor.hide();
|
||||
|
||||
@@ -21,6 +23,7 @@ const unicornsAreAwesome = true;
|
||||
cliCursor.toggle(unicornsAreAwesome);
|
||||
```
|
||||
|
||||
|
||||
## API
|
||||
|
||||
### .show(stream?)
|
||||
@@ -35,5 +38,18 @@ Useful for showing or hiding the cursor based on a boolean.
|
||||
|
||||
#### stream
|
||||
|
||||
Type: `stream.Writable`\
|
||||
Type: `stream.Writable`<br>
|
||||
Default: `process.stderr`
|
||||
|
||||
|
||||
---
|
||||
|
||||
<div align="center">
|
||||
<b>
|
||||
<a href="https://tidelift.com/subscription/pkg/npm-cli-cursor?utm_source=npm-cli-cursor&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
|
||||
</b>
|
||||
<br>
|
||||
<sub>
|
||||
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
|
||||
</sub>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user