tnp-core 18.0.53 → 18.0.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/README.md +20 -20
  2. package/assets/shared/shared_folder_info.txt +1 -1
  3. package/browser/README.md +24 -24
  4. package/browser/esm2022/lib/helpers.mjs +6 -4
  5. package/browser/esm2022/lib/utils.mjs +4 -15
  6. package/browser/fesm2022/tnp-core.mjs +8 -17
  7. package/browser/fesm2022/tnp-core.mjs.map +1 -1
  8. package/browser/lib/helpers.d.ts +4 -3
  9. package/cli.backend.js.map +1 -1
  10. package/client/README.md +24 -24
  11. package/client/esm2022/lib/helpers.mjs +6 -4
  12. package/client/esm2022/lib/utils.mjs +4 -15
  13. package/client/fesm2022/tnp-core.mjs +8 -17
  14. package/client/fesm2022/tnp-core.mjs.map +1 -1
  15. package/client/lib/helpers.d.ts +4 -3
  16. package/index.js.map +1 -1
  17. package/lib/build-info._auto-generated_.js.map +1 -1
  18. package/lib/command-exists.js.map +1 -1
  19. package/lib/core-cli.js.map +1 -1
  20. package/lib/core-config.js.map +1 -1
  21. package/lib/core-imports.js.map +1 -1
  22. package/lib/core-models.js.map +1 -1
  23. package/lib/framework-name.js.map +1 -1
  24. package/lib/helpers-isomorphic.js.map +1 -1
  25. package/lib/helpers-messages.js.map +1 -1
  26. package/lib/helpers.d.ts +5 -4
  27. package/lib/helpers.js +7 -2
  28. package/lib/helpers.js.map +1 -1
  29. package/lib/index._auto-generated_.js.map +1 -1
  30. package/lib/index.js.map +1 -1
  31. package/lib/node-chalk-mock.js +2 -2
  32. package/lib/node-chalk-mock.js.map +1 -1
  33. package/lib/node-path-mock.js +2 -2
  34. package/lib/node-path-mock.js.map +1 -1
  35. package/lib/progress-data.js.map +1 -1
  36. package/lib/public-api.js.map +1 -1
  37. package/lib/required-global-npm-packages.js.map +1 -1
  38. package/lib/utils.js +14 -29
  39. package/lib/utils.js.map +1 -1
  40. package/migrations/index.js.map +1 -1
  41. package/migrations/migrations_index._auto-generated_.js.map +1 -1
  42. package/package.json +1 -1
  43. package/taon.jsonc +56 -54
  44. package/tmp-environment.json +3 -3
  45. package/websql/README.md +24 -24
  46. package/websql/esm2022/lib/helpers.mjs +6 -4
  47. package/websql/esm2022/lib/utils.mjs +4 -15
  48. package/websql/fesm2022/tnp-core.mjs +8 -17
  49. package/websql/fesm2022/tnp-core.mjs.map +1 -1
  50. package/websql/lib/helpers.d.ts +4 -3
  51. package/lib/required.d.ts +0 -44
  52. package/lib/safe-types/glob.d.ts +0 -102
  53. package/lib/safe-types/minimatch/assert-valid-pattern.d.ts +0 -1
  54. package/lib/safe-types/minimatch/ast.d.ts +0 -17
  55. package/lib/safe-types/minimatch/brace-expressions.d.ts +0 -7
  56. package/lib/safe-types/minimatch/escape.d.ts +0 -11
  57. package/lib/safe-types/minimatch/index.d copy.d.ts +0 -93
  58. package/lib/safe-types/minimatch/index.d.ts +0 -93
  59. package/lib/safe-types/minimatch/unescapd.d.ts +0 -16
  60. package/lib/safe-types/minimatch/unescape.d.ts +0 -16
  61. package/lib/safe-types/minimatch.d.ts +0 -0
  62. package/lib/safe-types/rimraf.d.ts +0 -28
@@ -1,7 +1,6 @@
1
1
  // @ts-nocheck
2
2
  import { HelpersMessages } from './helpers-messages';
3
3
  import { CoreModels } from './core-models';
4
- import { ipcRenderer, webFrame } from 'electron';
5
4
  import type { ChildProcess } from 'child_process';
6
5
  export interface RunSyncOrAsyncOptions {
7
6
  functionFn: Function;
@@ -37,14 +36,16 @@ export declare class HelpersCore extends HelpersMessages {
37
36
  */
38
37
  clearConsole(): void;
39
38
  /**
39
+ * @deprecated
40
40
  * get electron browser ipc renderer
41
41
  */
42
- get ipcRenderer(): typeof ipcRenderer;
42
+ get ipcRenderer(): any;
43
43
  /**
44
44
  * get electron web frame
45
45
  */
46
- get webFrame(): typeof webFrame;
46
+ get webFrame(): any;
47
47
  /**
48
+ * @deprecated
48
49
  * get electron backend ipc main proces
49
50
  */
50
51
  get ipcMain(): any;
package/lib/required.d.ts DELETED
@@ -1,44 +0,0 @@
1
- export declare const requiredForDev: {
2
- npm: ({
3
- name: string;
4
- version: string;
5
- installName: string;
6
- } | {
7
- name: string;
8
- version: string;
9
- installName?: undefined;
10
- } | {
11
- name: string;
12
- version?: undefined;
13
- installName?: undefined;
14
- } | {
15
- name: string;
16
- installName: string;
17
- version?: undefined;
18
- })[];
19
- niceTools: ({
20
- name: string;
21
- platform?: undefined;
22
- installName?: undefined;
23
- isNotCli?: undefined;
24
- } | {
25
- name: string;
26
- platform: string;
27
- installName?: undefined;
28
- isNotCli?: undefined;
29
- } | {
30
- name: string;
31
- installName: string;
32
- platform?: undefined;
33
- isNotCli?: undefined;
34
- } | {
35
- name: string;
36
- isNotCli: boolean;
37
- platform?: undefined;
38
- installName?: undefined;
39
- })[];
40
- programs: {
41
- name: string;
42
- website: string;
43
- }[];
44
- };
@@ -1,102 +0,0 @@
1
- import events = require('events');
2
- import fs = require('fs');
3
- import { MinimatchOptions, Minimatch } from './minimatch/index';
4
- export declare function GLOB(pattern: string, cb: (err: Error | null, matches: string[]) => void): void;
5
- export declare function GLOB(pattern: string, options: GLOB.IOptions, cb: (err: Error | null, matches: string[]) => void): void;
6
- export declare namespace GLOB {
7
- function __promisify__(pattern: string, options?: IOptions): Promise<string[]>;
8
- function sync(pattern: string, options?: IOptions): string[];
9
- function hasMagic(pattern: string, options?: IOptions): boolean;
10
- let Glob: IGlobStatic;
11
- let GlobSync: IGlobSyncStatic;
12
- interface IOptions extends MinimatchOptions {
13
- cwd?: string;
14
- root?: string;
15
- dot?: boolean;
16
- nomount?: boolean;
17
- mark?: boolean;
18
- nosort?: boolean;
19
- stat?: boolean;
20
- silent?: boolean;
21
- strict?: boolean;
22
- cache?: {
23
- [path: string]: any;
24
- };
25
- statCache?: {
26
- [path: string]: fs.Stats;
27
- };
28
- symlinks?: any;
29
- sync?: boolean;
30
- nounique?: boolean;
31
- nonull?: boolean;
32
- debug?: boolean;
33
- nobrace?: boolean;
34
- noglobstar?: boolean;
35
- noext?: boolean;
36
- nocase?: boolean;
37
- matchBase?: any;
38
- nodir?: boolean;
39
- ignore?: any;
40
- follow?: boolean;
41
- realpath?: boolean;
42
- nonegate?: boolean;
43
- nocomment?: boolean;
44
- absolute?: boolean;
45
- /** Deprecated. */
46
- globDebug?: boolean;
47
- }
48
- interface IGlobStatic extends events.EventEmitter {
49
- new (pattern: string, cb?: (err: Error | null, matches: string[]) => void): IGlob;
50
- new (pattern: string, options: IOptions, cb?: (err: Error | null, matches: string[]) => void): IGlob;
51
- prototype: IGlob;
52
- }
53
- interface IGlobSyncStatic {
54
- new (pattern: string, options?: IOptions): IGlobBase;
55
- prototype: IGlobBase;
56
- }
57
- interface IGlobBase {
58
- minimatch: Minimatch;
59
- options: IOptions;
60
- aborted: boolean;
61
- cache: {
62
- [path: string]: any;
63
- };
64
- statCache: {
65
- [path: string]: fs.Stats;
66
- };
67
- symlinks: {
68
- [path: string]: boolean;
69
- };
70
- realpathCache: {
71
- [path: string]: string;
72
- };
73
- found: string[];
74
- }
75
- interface IGlob extends IGlobBase, events.EventEmitter {
76
- pause(): void;
77
- resume(): void;
78
- abort(): void;
79
- /** Deprecated. */
80
- EOF: any;
81
- /** Deprecated. */
82
- paused: boolean;
83
- /** Deprecated. */
84
- maxDepth: number;
85
- /** Deprecated. */
86
- maxLength: number;
87
- /** Deprecated. */
88
- changedCwd: boolean;
89
- /** Deprecated. */
90
- cwd: string;
91
- /** Deprecated. */
92
- root: string;
93
- /** Deprecated. */
94
- error: any;
95
- /** Deprecated. */
96
- matches: string[];
97
- /** Deprecated. */
98
- log(...args: any[]): void;
99
- /** Deprecated. */
100
- emitMatch(m: any): void;
101
- }
102
- }
@@ -1 +0,0 @@
1
- export declare const assertValidPattern: (pattern: any) => void;
@@ -1,17 +0,0 @@
1
- import { MinimatchOptions, MMRegExp } from './index.js';
2
- export type ExtglobType = '!' | '?' | '+' | '*' | '@';
3
- export declare class AST {
4
- type: ExtglobType | null;
5
- constructor(type: ExtglobType | null, parent?: AST, options?: MinimatchOptions);
6
- get hasMagic(): boolean | undefined;
7
- toString(): string;
8
- push(...parts: (string | AST)[]): void;
9
- toJSON(): any[];
10
- isStart(): boolean;
11
- isEnd(): boolean;
12
- copyIn(part: AST | string): void;
13
- clone(parent: AST): AST;
14
- static fromGlob(pattern: string, options?: MinimatchOptions): AST;
15
- toMMPattern(): MMRegExp | string;
16
- toRegExpSource(allowDot?: boolean): [re: string, body: string, hasMagic: boolean, uflag: boolean];
17
- }
@@ -1,7 +0,0 @@
1
- export type ParseClassResult = [
2
- src: string,
3
- uFlag: boolean,
4
- consumed: number,
5
- hasMagic: boolean
6
- ];
7
- export declare const parseClass: (glob: string, position: number) => ParseClassResult;
@@ -1,11 +0,0 @@
1
- import { MinimatchOptions } from './index.js';
2
- /**
3
- * Escape all magic characters in a glob pattern.
4
- *
5
- * If the {@link windowsPathsNoEscape | GlobOptions.windowsPathsNoEscape}
6
- * option is used, then characters are escaped by wrapping in `[]`, because
7
- * a magic character wrapped in a character class can only be satisfied by
8
- * that exact character. In this mode, `\` is _not_ escaped, because it is
9
- * not interpreted as a magic character, but instead as a path separator.
10
- */
11
- export declare const escape: (s: string, { windowsPathsNoEscape, }?: Pick<MinimatchOptions, 'windowsPathsNoEscape'>) => string;
@@ -1,93 +0,0 @@
1
- import { AST } from './ast.js';
2
- type Platform = 'aix' | 'android' | 'darwin' | 'freebsd' | 'haiku' | 'linux' | 'openbsd' | 'sunos' | 'win32' | 'cygwin' | 'netbsd';
3
- export interface MinimatchOptions {
4
- nobrace?: boolean;
5
- nocomment?: boolean;
6
- nonegate?: boolean;
7
- debug?: boolean;
8
- noglobstar?: boolean;
9
- noext?: boolean;
10
- nonull?: boolean;
11
- windowsPathsNoEscape?: boolean;
12
- allowWindowsEscape?: boolean;
13
- partial?: boolean;
14
- dot?: boolean;
15
- nocase?: boolean;
16
- nocaseMagicOnly?: boolean;
17
- magicalBraces?: boolean;
18
- matchBase?: boolean;
19
- flipNegate?: boolean;
20
- preserveMultipleSlashes?: boolean;
21
- optimizationLevel?: number;
22
- platform?: Platform;
23
- windowsNoMagicRoot?: boolean;
24
- }
25
- export declare const minimatch: {
26
- (p: string, pattern: string, options?: MinimatchOptions): boolean;
27
- sep: Sep;
28
- GLOBSTAR: typeof GLOBSTAR;
29
- filter: (pattern: string, options?: MinimatchOptions) => (p: string) => boolean;
30
- defaults: (def: MinimatchOptions) => typeof minimatch;
31
- braceExpand: (pattern: string, options?: MinimatchOptions) => string[];
32
- makeRe: (pattern: string, options?: MinimatchOptions) => false | MMRegExp;
33
- match: (list: string[], pattern: string, options?: MinimatchOptions) => string[];
34
- AST: typeof AST;
35
- Minimatch: typeof Minimatch;
36
- escape: (s: string, { windowsPathsNoEscape, }?: Pick<MinimatchOptions, "windowsPathsNoEscape">) => string;
37
- unescape: (s: string, { windowsPathsNoEscape, }?: Pick<MinimatchOptions, "windowsPathsNoEscape">) => string;
38
- };
39
- type Sep = '\\' | '/';
40
- export declare const sep: Sep;
41
- export declare const GLOBSTAR: unique symbol;
42
- export declare const filter: (pattern: string, options?: MinimatchOptions) => (p: string) => boolean;
43
- export declare const defaults: (def: MinimatchOptions) => typeof minimatch;
44
- export declare const braceExpand: (pattern: string, options?: MinimatchOptions) => string[];
45
- export declare const makeRe: (pattern: string, options?: MinimatchOptions) => false | MMRegExp;
46
- export declare const match: (list: string[], pattern: string, options?: MinimatchOptions) => string[];
47
- export type MMRegExp = RegExp & {
48
- _src?: string;
49
- _glob?: string;
50
- };
51
- export type ParseReturnFiltered = string | MMRegExp | typeof GLOBSTAR;
52
- export type ParseReturn = ParseReturnFiltered | false;
53
- export declare class Minimatch {
54
- options: MinimatchOptions;
55
- set: ParseReturnFiltered[][];
56
- pattern: string;
57
- windowsPathsNoEscape: boolean;
58
- nonegate: boolean;
59
- negate: boolean;
60
- comment: boolean;
61
- empty: boolean;
62
- preserveMultipleSlashes: boolean;
63
- partial: boolean;
64
- globSet: string[];
65
- globParts: string[][];
66
- nocase: boolean;
67
- isWindows: boolean;
68
- platform: Platform;
69
- windowsNoMagicRoot: boolean;
70
- regexp: false | null | MMRegExp;
71
- constructor(pattern: string, options?: MinimatchOptions);
72
- hasMagic(): boolean;
73
- debug(..._: any[]): void;
74
- make(): void;
75
- preprocess(globParts: string[][]): string[][];
76
- adjascentGlobstarOptimize(globParts: string[][]): string[][];
77
- levelOneOptimize(globParts: string[][]): string[][];
78
- levelTwoFileOptimize(parts: string | string[]): string[];
79
- firstPhasePreProcess(globParts: string[][]): string[][];
80
- secondPhasePreProcess(globParts: string[][]): string[][];
81
- partsMatch(a: string[], b: string[], emptyGSMatch?: boolean): false | string[];
82
- parseNegate(): void;
83
- matchOne(file: string[], pattern: ParseReturn[], partial?: boolean): boolean;
84
- braceExpand(): string[];
85
- parse(pattern: string): ParseReturn;
86
- makeRe(): false | MMRegExp;
87
- slashSplit(p: string): string[];
88
- match(f: string, partial?: boolean): boolean;
89
- static defaults(def: MinimatchOptions): typeof Minimatch;
90
- }
91
- export { AST } from './ast.js';
92
- export { escape } from './escape.js';
93
- export { unescape } from './unescape.js';
@@ -1,93 +0,0 @@
1
- import { AST } from './ast.js';
2
- type Platform = 'aix' | 'android' | 'darwin' | 'freebsd' | 'haiku' | 'linux' | 'openbsd' | 'sunos' | 'win32' | 'cygwin' | 'netbsd';
3
- export interface MinimatchOptions {
4
- nobrace?: boolean;
5
- nocomment?: boolean;
6
- nonegate?: boolean;
7
- debug?: boolean;
8
- noglobstar?: boolean;
9
- noext?: boolean;
10
- nonull?: boolean;
11
- windowsPathsNoEscape?: boolean;
12
- allowWindowsEscape?: boolean;
13
- partial?: boolean;
14
- dot?: boolean;
15
- nocase?: boolean;
16
- nocaseMagicOnly?: boolean;
17
- magicalBraces?: boolean;
18
- matchBase?: boolean;
19
- flipNegate?: boolean;
20
- preserveMultipleSlashes?: boolean;
21
- optimizationLevel?: number;
22
- platform?: Platform;
23
- windowsNoMagicRoot?: boolean;
24
- }
25
- export declare const minimatch: {
26
- (p: string, pattern: string, options?: MinimatchOptions): boolean;
27
- sep: Sep;
28
- GLOBSTAR: typeof GLOBSTAR;
29
- filter: (pattern: string, options?: MinimatchOptions) => (p: string) => boolean;
30
- defaults: (def: MinimatchOptions) => typeof minimatch;
31
- braceExpand: (pattern: string, options?: MinimatchOptions) => string[];
32
- makeRe: (pattern: string, options?: MinimatchOptions) => false | MMRegExp;
33
- match: (list: string[], pattern: string, options?: MinimatchOptions) => string[];
34
- AST: typeof AST;
35
- Minimatch: typeof Minimatch;
36
- escape: (s: string, { windowsPathsNoEscape, }?: Pick<MinimatchOptions, "windowsPathsNoEscape">) => string;
37
- unescape: (s: string, { windowsPathsNoEscape, }?: Pick<MinimatchOptions, "windowsPathsNoEscape">) => string;
38
- };
39
- type Sep = '\\' | '/';
40
- export declare const sep: Sep;
41
- export declare const GLOBSTAR: unique symbol;
42
- export declare const filter: (pattern: string, options?: MinimatchOptions) => (p: string) => boolean;
43
- export declare const defaults: (def: MinimatchOptions) => typeof minimatch;
44
- export declare const braceExpand: (pattern: string, options?: MinimatchOptions) => string[];
45
- export declare const makeRe: (pattern: string, options?: MinimatchOptions) => false | MMRegExp;
46
- export declare const match: (list: string[], pattern: string, options?: MinimatchOptions) => string[];
47
- export type MMRegExp = RegExp & {
48
- _src?: string;
49
- _glob?: string;
50
- };
51
- export type ParseReturnFiltered = string | MMRegExp | typeof GLOBSTAR;
52
- export type ParseReturn = ParseReturnFiltered | false;
53
- export declare class Minimatch {
54
- options: MinimatchOptions;
55
- set: ParseReturnFiltered[][];
56
- pattern: string;
57
- windowsPathsNoEscape: boolean;
58
- nonegate: boolean;
59
- negate: boolean;
60
- comment: boolean;
61
- empty: boolean;
62
- preserveMultipleSlashes: boolean;
63
- partial: boolean;
64
- globSet: string[];
65
- globParts: string[][];
66
- nocase: boolean;
67
- isWindows: boolean;
68
- platform: Platform;
69
- windowsNoMagicRoot: boolean;
70
- regexp: false | null | MMRegExp;
71
- constructor(pattern: string, options?: MinimatchOptions);
72
- hasMagic(): boolean;
73
- debug(..._: any[]): void;
74
- make(): void;
75
- preprocess(globParts: string[][]): string[][];
76
- adjascentGlobstarOptimize(globParts: string[][]): string[][];
77
- levelOneOptimize(globParts: string[][]): string[][];
78
- levelTwoFileOptimize(parts: string | string[]): string[];
79
- firstPhasePreProcess(globParts: string[][]): string[][];
80
- secondPhasePreProcess(globParts: string[][]): string[][];
81
- partsMatch(a: string[], b: string[], emptyGSMatch?: boolean): false | string[];
82
- parseNegate(): void;
83
- matchOne(file: string[], pattern: ParseReturn[], partial?: boolean): boolean;
84
- braceExpand(): string[];
85
- parse(pattern: string): ParseReturn;
86
- makeRe(): false | MMRegExp;
87
- slashSplit(p: string): string[];
88
- match(f: string, partial?: boolean): boolean;
89
- static defaults(def: MinimatchOptions): typeof Minimatch;
90
- }
91
- export { AST } from './ast.js';
92
- export { escape } from './escape.js';
93
- export { unescape } from './unescape.js';
@@ -1,16 +0,0 @@
1
- import { MinimatchOptions } from './index.js';
2
- /**
3
- * Un-escape a string that has been escaped with {@link escape}.
4
- *
5
- * If the {@link windowsPathsNoEscape} option is used, then square-brace
6
- * escapes are removed, but not backslash escapes. For example, it will turn
7
- * the string `'[*]'` into `*`, but it will not turn `'\\*'` into `'*'`,
8
- * becuase `\` is a path separator in `windowsPathsNoEscape` mode.
9
- *
10
- * When `windowsPathsNoEscape` is not set, then both brace escapes and
11
- * backslash escapes are removed.
12
- *
13
- * Slashes (and backslashes in `windowsPathsNoEscape` mode) cannot be escaped
14
- * or unescaped.
15
- */
16
- export declare const unescape: (s: string, { windowsPathsNoEscape, }?: Pick<MinimatchOptions, 'windowsPathsNoEscape'>) => string;
@@ -1,16 +0,0 @@
1
- import { MinimatchOptions } from './index.js';
2
- /**
3
- * Un-escape a string that has been escaped with {@link escape}.
4
- *
5
- * If the {@link windowsPathsNoEscape} option is used, then square-brace
6
- * escapes are removed, but not backslash escapes. For example, it will turn
7
- * the string `'[*]'` into `*`, but it will not turn `'\\*'` into `'*'`,
8
- * becuase `\` is a path separator in `windowsPathsNoEscape` mode.
9
- *
10
- * When `windowsPathsNoEscape` is not set, then both brace escapes and
11
- * backslash escapes are removed.
12
- *
13
- * Slashes (and backslashes in `windowsPathsNoEscape` mode) cannot be escaped
14
- * or unescaped.
15
- */
16
- export declare const unescape: (s: string, { windowsPathsNoEscape, }?: Pick<MinimatchOptions, 'windowsPathsNoEscape'>) => string;
File without changes
@@ -1,28 +0,0 @@
1
- import fs = require('fs');
2
- import { GLOB } from './glob';
3
- export declare function RIMRAF(path: string, options: RIMRAF.Options, callback: (error: Error) => void): void;
4
- export declare function RIMRAF(path: string, callback: (error: Error) => void): void;
5
- export declare namespace RIMRAF {
6
- function __promisify__(path: string, options?: Options): Promise<void>;
7
- function sync(path: string, options?: Options): void;
8
- let EMFILE_MAX: number;
9
- let BUSYTRIES_MAX: number;
10
- interface Options {
11
- maxBusyTries?: number;
12
- emfileWait?: boolean;
13
- disableGlob?: boolean;
14
- glob?: GLOB.IOptions | false;
15
- unlink?: typeof fs.unlink;
16
- chmod?: typeof fs.chmod;
17
- stat?: typeof fs.stat;
18
- lstat?: typeof fs.lstat;
19
- rmdir?: typeof fs.rmdir;
20
- readdir?: typeof fs.readdir;
21
- unlinkSync?: typeof fs.unlinkSync;
22
- chmodSync?: typeof fs.chmodSync;
23
- statSync?: typeof fs.statSync;
24
- lstatSync?: typeof fs.lstatSync;
25
- rmdirSync?: typeof fs.rmdirSync;
26
- readdirSync?: typeof fs.readdirSync;
27
- }
28
- }