@nocobase/plugin-multi-portal 2.2.0-alpha.10
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.
- package/LICENSE.txt +107 -0
- package/README.md +14 -0
- package/client-v2.d.ts +2 -0
- package/client-v2.js +1 -0
- package/client.d.ts +2 -0
- package/client.js +1 -0
- package/dist/client/index.d.ts +9 -0
- package/dist/client/index.js +10 -0
- package/dist/client/locale.d.ts +10 -0
- package/dist/client/models/index.d.ts +11 -0
- package/dist/client/plugin.d.ts +13 -0
- package/dist/client-v2/354.ead3e96143164cd5.js +10 -0
- package/dist/client-v2/499.ef2ff0c022687485.js +10 -0
- package/dist/client-v2/778.23ba409a924ee34a.js +10 -0
- package/dist/client-v2/845.f2b0ce44ae4be707.js +10 -0
- package/dist/client-v2/entryActions/PortalEntryActionModel.d.ts +52 -0
- package/dist/client-v2/entryActions/portalEntryActionStore.d.ts +36 -0
- package/dist/client-v2/entryActions/registerPortalEntryActions.d.ts +10 -0
- package/dist/client-v2/entryActions/types.d.ts +41 -0
- package/dist/client-v2/entryActions/url.d.ts +10 -0
- package/dist/client-v2/index.d.ts +9 -0
- package/dist/client-v2/index.js +10 -0
- package/dist/client-v2/layoutRegistration.d.ts +38 -0
- package/dist/client-v2/locale.d.ts +13 -0
- package/dist/client-v2/models/MultiPortalBlockModel.d.ts +13 -0
- package/dist/client-v2/models/MultiPortalMobilePageModels.d.ts +34 -0
- package/dist/client-v2/pages/MultiPortalsPage.d.ts +80 -0
- package/dist/client-v2/permissions/MultiPortalPermissionsTab.d.ts +21 -0
- package/dist/client-v2/permissions/multiPortalPermissions.d.ts +12 -0
- package/dist/client-v2/plugin.d.ts +13 -0
- package/dist/client-v2/routeRepositoryScope.d.ts +11 -0
- package/dist/client-v2/routeUrl.d.ts +18 -0
- package/dist/externalVersion.js +25 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +48 -0
- package/dist/locale/en-US.json +82 -0
- package/dist/locale/zh-CN.json +82 -0
- package/dist/node_modules/tar/dist/commonjs/create.d.ts +3 -0
- package/dist/node_modules/tar/dist/commonjs/create.js +82 -0
- package/dist/node_modules/tar/dist/commonjs/cwd-error.d.ts +8 -0
- package/dist/node_modules/tar/dist/commonjs/cwd-error.js +18 -0
- package/dist/node_modules/tar/dist/commonjs/extract.d.ts +3 -0
- package/dist/node_modules/tar/dist/commonjs/extract.js +88 -0
- package/dist/node_modules/tar/dist/commonjs/get-write-flag.d.ts +2 -0
- package/dist/node_modules/tar/dist/commonjs/get-write-flag.js +32 -0
- package/dist/node_modules/tar/dist/commonjs/header.d.ts +53 -0
- package/dist/node_modules/tar/dist/commonjs/header.js +312 -0
- package/dist/node_modules/tar/dist/commonjs/index.d.ts +20 -0
- package/dist/node_modules/tar/dist/commonjs/index.js +64 -0
- package/dist/node_modules/tar/dist/commonjs/index.min.js +1 -0
- package/dist/node_modules/tar/dist/commonjs/large-numbers.d.ts +3 -0
- package/dist/node_modules/tar/dist/commonjs/large-numbers.js +99 -0
- package/dist/node_modules/tar/dist/commonjs/list.d.ts +7 -0
- package/dist/node_modules/tar/dist/commonjs/list.js +145 -0
- package/dist/node_modules/tar/dist/commonjs/make-command.d.ts +49 -0
- package/dist/node_modules/tar/dist/commonjs/make-command.js +52 -0
- package/dist/node_modules/tar/dist/commonjs/mkdir.d.ts +25 -0
- package/dist/node_modules/tar/dist/commonjs/mkdir.js +187 -0
- package/dist/node_modules/tar/dist/commonjs/mode-fix.d.ts +2 -0
- package/dist/node_modules/tar/dist/commonjs/mode-fix.js +29 -0
- package/dist/node_modules/tar/dist/commonjs/normalize-unicode.d.ts +2 -0
- package/dist/node_modules/tar/dist/commonjs/normalize-unicode.js +38 -0
- package/dist/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts +2 -0
- package/dist/node_modules/tar/dist/commonjs/normalize-windows-path.js +12 -0
- package/dist/node_modules/tar/dist/commonjs/options.d.ts +596 -0
- package/dist/node_modules/tar/dist/commonjs/options.js +66 -0
- package/dist/node_modules/tar/dist/commonjs/pack.d.ts +105 -0
- package/dist/node_modules/tar/dist/commonjs/pack.js +545 -0
- package/dist/node_modules/tar/dist/commonjs/package.json +3 -0
- package/dist/node_modules/tar/dist/commonjs/parse.d.ts +85 -0
- package/dist/node_modules/tar/dist/commonjs/parse.js +610 -0
- package/dist/node_modules/tar/dist/commonjs/path-reservations.d.ts +11 -0
- package/dist/node_modules/tar/dist/commonjs/path-reservations.js +170 -0
- package/dist/node_modules/tar/dist/commonjs/pax.d.ts +26 -0
- package/dist/node_modules/tar/dist/commonjs/pax.js +158 -0
- package/dist/node_modules/tar/dist/commonjs/process-umask.d.ts +2 -0
- package/dist/node_modules/tar/dist/commonjs/process-umask.js +7 -0
- package/dist/node_modules/tar/dist/commonjs/read-entry.d.ts +36 -0
- package/dist/node_modules/tar/dist/commonjs/read-entry.js +136 -0
- package/dist/node_modules/tar/dist/commonjs/replace.d.ts +2 -0
- package/dist/node_modules/tar/dist/commonjs/replace.js +227 -0
- package/dist/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts +2 -0
- package/dist/node_modules/tar/dist/commonjs/strip-absolute-path.js +29 -0
- package/dist/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts +2 -0
- package/dist/node_modules/tar/dist/commonjs/strip-trailing-slashes.js +18 -0
- package/dist/node_modules/tar/dist/commonjs/symlink-error.d.ts +9 -0
- package/dist/node_modules/tar/dist/commonjs/symlink-error.js +19 -0
- package/dist/node_modules/tar/dist/commonjs/types.d.ts +7 -0
- package/dist/node_modules/tar/dist/commonjs/types.js +50 -0
- package/dist/node_modules/tar/dist/commonjs/unpack.d.ts +101 -0
- package/dist/node_modules/tar/dist/commonjs/unpack.js +932 -0
- package/dist/node_modules/tar/dist/commonjs/update.d.ts +2 -0
- package/dist/node_modules/tar/dist/commonjs/update.js +33 -0
- package/dist/node_modules/tar/dist/commonjs/warn-method.d.ts +24 -0
- package/dist/node_modules/tar/dist/commonjs/warn-method.js +31 -0
- package/dist/node_modules/tar/dist/commonjs/winchars.d.ts +3 -0
- package/dist/node_modules/tar/dist/commonjs/winchars.js +14 -0
- package/dist/node_modules/tar/dist/commonjs/write-entry.d.ts +129 -0
- package/dist/node_modules/tar/dist/commonjs/write-entry.js +698 -0
- package/dist/node_modules/tar/dist/esm/create.d.ts +3 -0
- package/dist/node_modules/tar/dist/esm/create.js +76 -0
- package/dist/node_modules/tar/dist/esm/cwd-error.d.ts +8 -0
- package/dist/node_modules/tar/dist/esm/cwd-error.js +14 -0
- package/dist/node_modules/tar/dist/esm/extract.d.ts +3 -0
- package/dist/node_modules/tar/dist/esm/extract.js +49 -0
- package/dist/node_modules/tar/dist/esm/get-write-flag.d.ts +2 -0
- package/dist/node_modules/tar/dist/esm/get-write-flag.js +26 -0
- package/dist/node_modules/tar/dist/esm/header.d.ts +53 -0
- package/dist/node_modules/tar/dist/esm/header.js +275 -0
- package/dist/node_modules/tar/dist/esm/index.d.ts +20 -0
- package/dist/node_modules/tar/dist/esm/index.js +20 -0
- package/dist/node_modules/tar/dist/esm/index.min.js +4 -0
- package/dist/node_modules/tar/dist/esm/large-numbers.d.ts +3 -0
- package/dist/node_modules/tar/dist/esm/large-numbers.js +94 -0
- package/dist/node_modules/tar/dist/esm/list.d.ts +7 -0
- package/dist/node_modules/tar/dist/esm/list.js +105 -0
- package/dist/node_modules/tar/dist/esm/make-command.d.ts +49 -0
- package/dist/node_modules/tar/dist/esm/make-command.js +48 -0
- package/dist/node_modules/tar/dist/esm/mkdir.d.ts +25 -0
- package/dist/node_modules/tar/dist/esm/mkdir.js +179 -0
- package/dist/node_modules/tar/dist/esm/mode-fix.d.ts +2 -0
- package/dist/node_modules/tar/dist/esm/mode-fix.js +25 -0
- package/dist/node_modules/tar/dist/esm/normalize-unicode.d.ts +2 -0
- package/dist/node_modules/tar/dist/esm/normalize-unicode.js +34 -0
- package/dist/node_modules/tar/dist/esm/normalize-windows-path.d.ts +2 -0
- package/dist/node_modules/tar/dist/esm/normalize-windows-path.js +9 -0
- package/dist/node_modules/tar/dist/esm/options.d.ts +596 -0
- package/dist/node_modules/tar/dist/esm/options.js +54 -0
- package/dist/node_modules/tar/dist/esm/pack.d.ts +105 -0
- package/dist/node_modules/tar/dist/esm/pack.js +503 -0
- package/dist/node_modules/tar/dist/esm/package.json +3 -0
- package/dist/node_modules/tar/dist/esm/parse.d.ts +85 -0
- package/dist/node_modules/tar/dist/esm/parse.js +606 -0
- package/dist/node_modules/tar/dist/esm/path-reservations.d.ts +11 -0
- package/dist/node_modules/tar/dist/esm/path-reservations.js +166 -0
- package/dist/node_modules/tar/dist/esm/pax.d.ts +26 -0
- package/dist/node_modules/tar/dist/esm/pax.js +154 -0
- package/dist/node_modules/tar/dist/esm/process-umask.d.ts +2 -0
- package/dist/node_modules/tar/dist/esm/process-umask.js +3 -0
- package/dist/node_modules/tar/dist/esm/read-entry.d.ts +36 -0
- package/dist/node_modules/tar/dist/esm/read-entry.js +132 -0
- package/dist/node_modules/tar/dist/esm/replace.d.ts +2 -0
- package/dist/node_modules/tar/dist/esm/replace.js +221 -0
- package/dist/node_modules/tar/dist/esm/strip-absolute-path.d.ts +2 -0
- package/dist/node_modules/tar/dist/esm/strip-absolute-path.js +25 -0
- package/dist/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts +2 -0
- package/dist/node_modules/tar/dist/esm/strip-trailing-slashes.js +14 -0
- package/dist/node_modules/tar/dist/esm/symlink-error.d.ts +9 -0
- package/dist/node_modules/tar/dist/esm/symlink-error.js +15 -0
- package/dist/node_modules/tar/dist/esm/types.d.ts +7 -0
- package/dist/node_modules/tar/dist/esm/types.js +45 -0
- package/dist/node_modules/tar/dist/esm/unpack.d.ts +101 -0
- package/dist/node_modules/tar/dist/esm/unpack.js +891 -0
- package/dist/node_modules/tar/dist/esm/update.d.ts +2 -0
- package/dist/node_modules/tar/dist/esm/update.js +30 -0
- package/dist/node_modules/tar/dist/esm/warn-method.d.ts +24 -0
- package/dist/node_modules/tar/dist/esm/warn-method.js +27 -0
- package/dist/node_modules/tar/dist/esm/winchars.d.ts +3 -0
- package/dist/node_modules/tar/dist/esm/winchars.js +9 -0
- package/dist/node_modules/tar/dist/esm/write-entry.d.ts +129 -0
- package/dist/node_modules/tar/dist/esm/write-entry.js +656 -0
- package/dist/node_modules/tar/node_modules/chownr/dist/commonjs/index.d.ts +3 -0
- package/dist/node_modules/tar/node_modules/chownr/dist/commonjs/index.js +93 -0
- package/dist/node_modules/tar/node_modules/chownr/dist/commonjs/package.json +3 -0
- package/dist/node_modules/tar/node_modules/chownr/dist/esm/index.d.ts +3 -0
- package/dist/node_modules/tar/node_modules/chownr/dist/esm/index.js +85 -0
- package/dist/node_modules/tar/node_modules/chownr/dist/esm/package.json +3 -0
- package/dist/node_modules/tar/node_modules/chownr/package.json +69 -0
- package/dist/node_modules/tar/node_modules/minipass/dist/commonjs/index.d.ts +549 -0
- package/dist/node_modules/tar/node_modules/minipass/dist/commonjs/index.js +1028 -0
- package/dist/node_modules/tar/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/dist/node_modules/tar/node_modules/minipass/dist/esm/index.d.ts +549 -0
- package/dist/node_modules/tar/node_modules/minipass/dist/esm/index.js +1018 -0
- package/dist/node_modules/tar/node_modules/minipass/dist/esm/package.json +3 -0
- package/dist/node_modules/tar/node_modules/minipass/package.json +82 -0
- package/dist/node_modules/tar/node_modules/minizlib/dist/commonjs/constants.d.ts +2 -0
- package/dist/node_modules/tar/node_modules/minizlib/dist/commonjs/constants.js +123 -0
- package/dist/node_modules/tar/node_modules/minizlib/dist/commonjs/index.d.ts +99 -0
- package/dist/node_modules/tar/node_modules/minizlib/dist/commonjs/index.js +416 -0
- package/dist/node_modules/tar/node_modules/minizlib/dist/commonjs/package.json +3 -0
- package/dist/node_modules/tar/node_modules/minizlib/dist/esm/constants.d.ts +2 -0
- package/dist/node_modules/tar/node_modules/minizlib/dist/esm/constants.js +117 -0
- package/dist/node_modules/tar/node_modules/minizlib/dist/esm/index.d.ts +99 -0
- package/dist/node_modules/tar/node_modules/minizlib/dist/esm/index.js +363 -0
- package/dist/node_modules/tar/node_modules/minizlib/dist/esm/package.json +3 -0
- package/dist/node_modules/tar/node_modules/minizlib/package.json +80 -0
- package/dist/node_modules/tar/node_modules/yallist/dist/commonjs/index.d.ts +39 -0
- package/dist/node_modules/tar/node_modules/yallist/dist/commonjs/index.js +384 -0
- package/dist/node_modules/tar/node_modules/yallist/dist/commonjs/package.json +3 -0
- package/dist/node_modules/tar/node_modules/yallist/dist/esm/index.d.ts +39 -0
- package/dist/node_modules/tar/node_modules/yallist/dist/esm/index.js +379 -0
- package/dist/node_modules/tar/node_modules/yallist/dist/esm/package.json +3 -0
- package/dist/node_modules/tar/node_modules/yallist/package.json +68 -0
- package/dist/node_modules/tar/package.json +1 -0
- package/dist/server/collections/desktopRoutes.d.ts +14 -0
- package/dist/server/collections/desktopRoutes.js +48 -0
- package/dist/server/collections/extendRoleField.d.ts +14 -0
- package/dist/server/collections/extendRoleField.js +51 -0
- package/dist/server/collections/multiPortals.d.ts +10 -0
- package/dist/server/collections/multiPortals.js +128 -0
- package/dist/server/collections/rolesMultiPortalDesktopRoutes.d.ts +10 -0
- package/dist/server/collections/rolesMultiPortalDesktopRoutes.js +76 -0
- package/dist/server/collections/rolesMultiPortalRoutePolicies.d.ts +10 -0
- package/dist/server/collections/rolesMultiPortalRoutePolicies.js +73 -0
- package/dist/server/collections/rolesMultiPortals.d.ts +10 -0
- package/dist/server/collections/rolesMultiPortals.js +68 -0
- package/dist/server/ensureDefaultRoleMultiPortalAccess.d.ts +11 -0
- package/dist/server/ensureDefaultRoleMultiPortalAccess.js +70 -0
- package/dist/server/index.d.ts +9 -0
- package/dist/server/index.js +42 -0
- package/dist/server/migrations/20260723105200-drop-ui-layout-foreign-key-constraint.d.ts +13 -0
- package/dist/server/migrations/20260723105200-drop-ui-layout-foreign-key-constraint.js +104 -0
- package/dist/server/plugin.d.ts +63 -0
- package/dist/server/plugin.js +2130 -0
- package/package.json +34 -0
- package/server.d.ts +2 -0
- package/server.js +1 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// tar -u
|
|
2
|
+
import { makeCommand } from './make-command.js';
|
|
3
|
+
import { replace as r } from './replace.js';
|
|
4
|
+
// just call tar.r with the filter and mtimeCache
|
|
5
|
+
export const update = makeCommand(r.syncFile, r.asyncFile, r.syncNoFile, r.asyncNoFile, (opt, entries = []) => {
|
|
6
|
+
r.validate?.(opt, entries);
|
|
7
|
+
mtimeFilter(opt);
|
|
8
|
+
});
|
|
9
|
+
const mtimeFilter = (opt) => {
|
|
10
|
+
const filter = opt.filter;
|
|
11
|
+
if (!opt.mtimeCache) {
|
|
12
|
+
opt.mtimeCache = new Map();
|
|
13
|
+
}
|
|
14
|
+
opt.filter =
|
|
15
|
+
filter ?
|
|
16
|
+
(path, stat) => filter(path, stat) &&
|
|
17
|
+
!(
|
|
18
|
+
/* c8 ignore start */
|
|
19
|
+
((opt.mtimeCache?.get(path) ?? stat.mtime ?? 0) >
|
|
20
|
+
(stat.mtime ?? 0))
|
|
21
|
+
/* c8 ignore stop */
|
|
22
|
+
)
|
|
23
|
+
: (path, stat) => !(
|
|
24
|
+
/* c8 ignore start */
|
|
25
|
+
((opt.mtimeCache?.get(path) ?? stat.mtime ?? 0) >
|
|
26
|
+
(stat.mtime ?? 0))
|
|
27
|
+
/* c8 ignore stop */
|
|
28
|
+
);
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=update.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type Minipass } from 'minipass';
|
|
2
|
+
/** has a warn method */
|
|
3
|
+
export type Warner = {
|
|
4
|
+
warn(code: string, message: string | Error, data: unknown): void;
|
|
5
|
+
file?: string;
|
|
6
|
+
cwd?: string;
|
|
7
|
+
strict?: boolean;
|
|
8
|
+
emit(event: 'warn', code: string, message: string, data?: WarnData): void;
|
|
9
|
+
emit(event: 'error', error: TarError): void;
|
|
10
|
+
};
|
|
11
|
+
export type WarnEvent<T = Buffer> = Minipass.Events<T> & {
|
|
12
|
+
warn: [code: string, message: string, data: WarnData];
|
|
13
|
+
};
|
|
14
|
+
export type WarnData = {
|
|
15
|
+
file?: string;
|
|
16
|
+
cwd?: string;
|
|
17
|
+
code?: string;
|
|
18
|
+
tarCode?: string;
|
|
19
|
+
recoverable?: boolean;
|
|
20
|
+
[k: string]: unknown;
|
|
21
|
+
};
|
|
22
|
+
export type TarError = Error & WarnData;
|
|
23
|
+
export declare const warnMethod: (self: Warner, code: string, message: string | Error, data?: WarnData) => void;
|
|
24
|
+
//# sourceMappingURL=warn-method.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export const warnMethod = (self, code, message, data = {}) => {
|
|
2
|
+
if (self.file) {
|
|
3
|
+
data.file = self.file;
|
|
4
|
+
}
|
|
5
|
+
if (self.cwd) {
|
|
6
|
+
data.cwd = self.cwd;
|
|
7
|
+
}
|
|
8
|
+
data.code =
|
|
9
|
+
(message instanceof Error &&
|
|
10
|
+
message.code) ||
|
|
11
|
+
code;
|
|
12
|
+
data.tarCode = code;
|
|
13
|
+
if (!self.strict && data.recoverable !== false) {
|
|
14
|
+
if (message instanceof Error) {
|
|
15
|
+
data = Object.assign(message, data);
|
|
16
|
+
message = message.message;
|
|
17
|
+
}
|
|
18
|
+
self.emit('warn', code, message, data);
|
|
19
|
+
}
|
|
20
|
+
else if (message instanceof Error) {
|
|
21
|
+
self.emit('error', Object.assign(message, data));
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
self.emit('error', Object.assign(new Error(`${code}: ${message}`), data));
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=warn-method.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// When writing files on Windows, translate the characters to their
|
|
2
|
+
// 0xf000 higher-encoded versions.
|
|
3
|
+
const raw = ['|', '<', '>', '?', ':'];
|
|
4
|
+
const win = raw.map(char => String.fromCodePoint(0xf000 + Number(char.codePointAt(0))));
|
|
5
|
+
const toWin = new Map(raw.map((char, i) => [char, win[i]]));
|
|
6
|
+
const toRaw = new Map(win.map((char, i) => [char, raw[i]]));
|
|
7
|
+
export const encode = (s) => raw.reduce((s, c) => s.split(c).join(toWin.get(c)), s);
|
|
8
|
+
export const decode = (s) => win.reduce((s, c) => s.split(c).join(toRaw.get(c)), s);
|
|
9
|
+
//# sourceMappingURL=winchars.js.map
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { type Stats } from 'fs';
|
|
2
|
+
import { Minipass } from 'minipass';
|
|
3
|
+
import { Header } from './header.js';
|
|
4
|
+
import type { TarOptions, TarOptionsWithAliases } from './options.js';
|
|
5
|
+
import type { ReadEntry } from './read-entry.js';
|
|
6
|
+
import type { EntryTypeName } from './types.js';
|
|
7
|
+
import type { WarnData, Warner, WarnEvent } from './warn-method.js';
|
|
8
|
+
declare const PROCESS: unique symbol;
|
|
9
|
+
declare const FILE: unique symbol;
|
|
10
|
+
declare const DIRECTORY: unique symbol;
|
|
11
|
+
declare const SYMLINK: unique symbol;
|
|
12
|
+
declare const HARDLINK: unique symbol;
|
|
13
|
+
declare const HEADER: unique symbol;
|
|
14
|
+
declare const READ: unique symbol;
|
|
15
|
+
declare const LSTAT: unique symbol;
|
|
16
|
+
declare const ONLSTAT: unique symbol;
|
|
17
|
+
declare const ONREAD: unique symbol;
|
|
18
|
+
declare const ONREADLINK: unique symbol;
|
|
19
|
+
declare const OPENFILE: unique symbol;
|
|
20
|
+
declare const ONOPENFILE: unique symbol;
|
|
21
|
+
declare const CLOSE: unique symbol;
|
|
22
|
+
declare const MODE: unique symbol;
|
|
23
|
+
declare const AWAITDRAIN: unique symbol;
|
|
24
|
+
declare const ONDRAIN: unique symbol;
|
|
25
|
+
declare const PREFIX: unique symbol;
|
|
26
|
+
export declare class WriteEntry extends Minipass<Buffer, Minipass.ContiguousData, WarnEvent> implements Warner {
|
|
27
|
+
#private;
|
|
28
|
+
path: string;
|
|
29
|
+
portable: boolean;
|
|
30
|
+
myuid: number;
|
|
31
|
+
myuser: string;
|
|
32
|
+
maxReadSize: number;
|
|
33
|
+
linkCache: Exclude<TarOptions['linkCache'], undefined>;
|
|
34
|
+
statCache: Exclude<TarOptions['statCache'], undefined>;
|
|
35
|
+
preservePaths: boolean;
|
|
36
|
+
cwd: string;
|
|
37
|
+
strict: boolean;
|
|
38
|
+
mtime?: Date;
|
|
39
|
+
noPax: boolean;
|
|
40
|
+
noMtime: boolean;
|
|
41
|
+
prefix?: string;
|
|
42
|
+
fd?: number;
|
|
43
|
+
blockLen: number;
|
|
44
|
+
blockRemain: number;
|
|
45
|
+
buf?: Buffer;
|
|
46
|
+
pos: number;
|
|
47
|
+
remain: number;
|
|
48
|
+
length: number;
|
|
49
|
+
offset: number;
|
|
50
|
+
win32: boolean;
|
|
51
|
+
absolute: string;
|
|
52
|
+
header?: Header;
|
|
53
|
+
type?: EntryTypeName | 'Unsupported';
|
|
54
|
+
linkpath?: string;
|
|
55
|
+
stat?: Stats;
|
|
56
|
+
onWriteEntry?: (entry: WriteEntry) => unknown;
|
|
57
|
+
constructor(p: string, opt_?: TarOptionsWithAliases);
|
|
58
|
+
warn(code: string, message: string | Error, data?: WarnData): void;
|
|
59
|
+
emit(ev: keyof WarnEvent, ...data: unknown[]): boolean;
|
|
60
|
+
[LSTAT](): void;
|
|
61
|
+
[ONLSTAT](stat: Stats): void;
|
|
62
|
+
[PROCESS](): void | this;
|
|
63
|
+
[MODE](mode: number): number;
|
|
64
|
+
[PREFIX](path: string): string;
|
|
65
|
+
[HEADER](): void;
|
|
66
|
+
[DIRECTORY](): void;
|
|
67
|
+
[SYMLINK](): void;
|
|
68
|
+
[ONREADLINK](linkpath: string): void;
|
|
69
|
+
[HARDLINK](linkpath: string): void;
|
|
70
|
+
[FILE](): void | this;
|
|
71
|
+
[OPENFILE](): void;
|
|
72
|
+
[ONOPENFILE](fd: number): void;
|
|
73
|
+
[READ](): void;
|
|
74
|
+
[CLOSE](cb?: (er?: null | Error | NodeJS.ErrnoException) => unknown): void;
|
|
75
|
+
[ONREAD](bytesRead: number): void;
|
|
76
|
+
[AWAITDRAIN](cb: () => unknown): void;
|
|
77
|
+
write(buffer: Buffer | string, cb?: () => void): boolean;
|
|
78
|
+
write(str: Buffer | string, encoding?: BufferEncoding | null, cb?: () => void): boolean;
|
|
79
|
+
[ONDRAIN](): void;
|
|
80
|
+
}
|
|
81
|
+
export declare class WriteEntrySync extends WriteEntry implements Warner {
|
|
82
|
+
sync: true;
|
|
83
|
+
[LSTAT](): void;
|
|
84
|
+
[SYMLINK](): void;
|
|
85
|
+
[OPENFILE](): void;
|
|
86
|
+
[READ](): void;
|
|
87
|
+
[AWAITDRAIN](cb: () => unknown): void;
|
|
88
|
+
[CLOSE](cb?: (er?: null | Error | NodeJS.ErrnoException) => unknown): void;
|
|
89
|
+
}
|
|
90
|
+
export declare class WriteEntryTar extends Minipass<Buffer, Buffer | string, WarnEvent> implements Warner {
|
|
91
|
+
blockLen: number;
|
|
92
|
+
blockRemain: number;
|
|
93
|
+
buf: number;
|
|
94
|
+
pos: number;
|
|
95
|
+
remain: number;
|
|
96
|
+
length: number;
|
|
97
|
+
preservePaths: boolean;
|
|
98
|
+
portable: boolean;
|
|
99
|
+
strict: boolean;
|
|
100
|
+
noPax: boolean;
|
|
101
|
+
noMtime: boolean;
|
|
102
|
+
readEntry: ReadEntry;
|
|
103
|
+
type: EntryTypeName;
|
|
104
|
+
prefix?: string;
|
|
105
|
+
path: string;
|
|
106
|
+
mode?: number;
|
|
107
|
+
uid?: number;
|
|
108
|
+
gid?: number;
|
|
109
|
+
uname?: string;
|
|
110
|
+
gname?: string;
|
|
111
|
+
header?: Header;
|
|
112
|
+
mtime?: Date;
|
|
113
|
+
atime?: Date;
|
|
114
|
+
ctime?: Date;
|
|
115
|
+
linkpath?: string;
|
|
116
|
+
size: number;
|
|
117
|
+
onWriteEntry?: (entry: WriteEntry) => unknown;
|
|
118
|
+
warn(code: string, message: string | Error, data?: WarnData): void;
|
|
119
|
+
constructor(readEntry: ReadEntry, opt_?: TarOptionsWithAliases);
|
|
120
|
+
[PREFIX](path: string): string;
|
|
121
|
+
[MODE](mode: number): number;
|
|
122
|
+
write(buffer: Buffer | string, cb?: () => void): boolean;
|
|
123
|
+
write(str: Buffer | string, encoding?: BufferEncoding | null, cb?: () => void): boolean;
|
|
124
|
+
end(cb?: () => void): this;
|
|
125
|
+
end(chunk: Buffer | string, cb?: () => void): this;
|
|
126
|
+
end(chunk: Buffer | string, encoding?: BufferEncoding, cb?: () => void): this;
|
|
127
|
+
}
|
|
128
|
+
export {};
|
|
129
|
+
//# sourceMappingURL=write-entry.d.ts.map
|