@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,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "minipass",
|
|
3
|
+
"version": "7.1.2",
|
|
4
|
+
"description": "minimal implementation of a PassThrough stream",
|
|
5
|
+
"main": "./dist/commonjs/index.js",
|
|
6
|
+
"types": "./dist/commonjs/index.d.ts",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"tshy": {
|
|
9
|
+
"selfLink": false,
|
|
10
|
+
"main": true,
|
|
11
|
+
"exports": {
|
|
12
|
+
"./package.json": "./package.json",
|
|
13
|
+
".": "./src/index.ts"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"exports": {
|
|
17
|
+
"./package.json": "./package.json",
|
|
18
|
+
".": {
|
|
19
|
+
"import": {
|
|
20
|
+
"types": "./dist/esm/index.d.ts",
|
|
21
|
+
"default": "./dist/esm/index.js"
|
|
22
|
+
},
|
|
23
|
+
"require": {
|
|
24
|
+
"types": "./dist/commonjs/index.d.ts",
|
|
25
|
+
"default": "./dist/commonjs/index.js"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"dist"
|
|
31
|
+
],
|
|
32
|
+
"scripts": {
|
|
33
|
+
"preversion": "npm test",
|
|
34
|
+
"postversion": "npm publish",
|
|
35
|
+
"prepublishOnly": "git push origin --follow-tags",
|
|
36
|
+
"prepare": "tshy",
|
|
37
|
+
"pretest": "npm run prepare",
|
|
38
|
+
"presnap": "npm run prepare",
|
|
39
|
+
"test": "tap",
|
|
40
|
+
"snap": "tap",
|
|
41
|
+
"format": "prettier --write . --loglevel warn",
|
|
42
|
+
"typedoc": "typedoc --tsconfig .tshy/esm.json ./src/*.ts"
|
|
43
|
+
},
|
|
44
|
+
"prettier": {
|
|
45
|
+
"semi": false,
|
|
46
|
+
"printWidth": 75,
|
|
47
|
+
"tabWidth": 2,
|
|
48
|
+
"useTabs": false,
|
|
49
|
+
"singleQuote": true,
|
|
50
|
+
"jsxSingleQuote": false,
|
|
51
|
+
"bracketSameLine": true,
|
|
52
|
+
"arrowParens": "avoid",
|
|
53
|
+
"endOfLine": "lf"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@types/end-of-stream": "^1.4.2",
|
|
57
|
+
"@types/node": "^20.1.2",
|
|
58
|
+
"end-of-stream": "^1.4.0",
|
|
59
|
+
"node-abort-controller": "^3.1.1",
|
|
60
|
+
"prettier": "^2.6.2",
|
|
61
|
+
"tap": "^19.0.0",
|
|
62
|
+
"through2": "^2.0.3",
|
|
63
|
+
"tshy": "^1.14.0",
|
|
64
|
+
"typedoc": "^0.25.1"
|
|
65
|
+
},
|
|
66
|
+
"repository": "https://github.com/isaacs/minipass",
|
|
67
|
+
"keywords": [
|
|
68
|
+
"passthrough",
|
|
69
|
+
"stream"
|
|
70
|
+
],
|
|
71
|
+
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
|
|
72
|
+
"license": "ISC",
|
|
73
|
+
"engines": {
|
|
74
|
+
"node": ">=16 || 14 >=14.17"
|
|
75
|
+
},
|
|
76
|
+
"tap": {
|
|
77
|
+
"typecheck": true,
|
|
78
|
+
"include": [
|
|
79
|
+
"test/*.ts"
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.constants = void 0;
|
|
7
|
+
// Update with any zlib constants that are added or changed in the future.
|
|
8
|
+
// Node v6 didn't export this, so we just hard code the version and rely
|
|
9
|
+
// on all the other hard-coded values from zlib v4736. When node v6
|
|
10
|
+
// support drops, we can just export the realZlibConstants object.
|
|
11
|
+
const zlib_1 = __importDefault(require("zlib"));
|
|
12
|
+
/* c8 ignore start */
|
|
13
|
+
const realZlibConstants = zlib_1.default.constants || { ZLIB_VERNUM: 4736 };
|
|
14
|
+
/* c8 ignore stop */
|
|
15
|
+
exports.constants = Object.freeze(Object.assign(Object.create(null), {
|
|
16
|
+
Z_NO_FLUSH: 0,
|
|
17
|
+
Z_PARTIAL_FLUSH: 1,
|
|
18
|
+
Z_SYNC_FLUSH: 2,
|
|
19
|
+
Z_FULL_FLUSH: 3,
|
|
20
|
+
Z_FINISH: 4,
|
|
21
|
+
Z_BLOCK: 5,
|
|
22
|
+
Z_OK: 0,
|
|
23
|
+
Z_STREAM_END: 1,
|
|
24
|
+
Z_NEED_DICT: 2,
|
|
25
|
+
Z_ERRNO: -1,
|
|
26
|
+
Z_STREAM_ERROR: -2,
|
|
27
|
+
Z_DATA_ERROR: -3,
|
|
28
|
+
Z_MEM_ERROR: -4,
|
|
29
|
+
Z_BUF_ERROR: -5,
|
|
30
|
+
Z_VERSION_ERROR: -6,
|
|
31
|
+
Z_NO_COMPRESSION: 0,
|
|
32
|
+
Z_BEST_SPEED: 1,
|
|
33
|
+
Z_BEST_COMPRESSION: 9,
|
|
34
|
+
Z_DEFAULT_COMPRESSION: -1,
|
|
35
|
+
Z_FILTERED: 1,
|
|
36
|
+
Z_HUFFMAN_ONLY: 2,
|
|
37
|
+
Z_RLE: 3,
|
|
38
|
+
Z_FIXED: 4,
|
|
39
|
+
Z_DEFAULT_STRATEGY: 0,
|
|
40
|
+
DEFLATE: 1,
|
|
41
|
+
INFLATE: 2,
|
|
42
|
+
GZIP: 3,
|
|
43
|
+
GUNZIP: 4,
|
|
44
|
+
DEFLATERAW: 5,
|
|
45
|
+
INFLATERAW: 6,
|
|
46
|
+
UNZIP: 7,
|
|
47
|
+
BROTLI_DECODE: 8,
|
|
48
|
+
BROTLI_ENCODE: 9,
|
|
49
|
+
Z_MIN_WINDOWBITS: 8,
|
|
50
|
+
Z_MAX_WINDOWBITS: 15,
|
|
51
|
+
Z_DEFAULT_WINDOWBITS: 15,
|
|
52
|
+
Z_MIN_CHUNK: 64,
|
|
53
|
+
Z_MAX_CHUNK: Infinity,
|
|
54
|
+
Z_DEFAULT_CHUNK: 16384,
|
|
55
|
+
Z_MIN_MEMLEVEL: 1,
|
|
56
|
+
Z_MAX_MEMLEVEL: 9,
|
|
57
|
+
Z_DEFAULT_MEMLEVEL: 8,
|
|
58
|
+
Z_MIN_LEVEL: -1,
|
|
59
|
+
Z_MAX_LEVEL: 9,
|
|
60
|
+
Z_DEFAULT_LEVEL: -1,
|
|
61
|
+
BROTLI_OPERATION_PROCESS: 0,
|
|
62
|
+
BROTLI_OPERATION_FLUSH: 1,
|
|
63
|
+
BROTLI_OPERATION_FINISH: 2,
|
|
64
|
+
BROTLI_OPERATION_EMIT_METADATA: 3,
|
|
65
|
+
BROTLI_MODE_GENERIC: 0,
|
|
66
|
+
BROTLI_MODE_TEXT: 1,
|
|
67
|
+
BROTLI_MODE_FONT: 2,
|
|
68
|
+
BROTLI_DEFAULT_MODE: 0,
|
|
69
|
+
BROTLI_MIN_QUALITY: 0,
|
|
70
|
+
BROTLI_MAX_QUALITY: 11,
|
|
71
|
+
BROTLI_DEFAULT_QUALITY: 11,
|
|
72
|
+
BROTLI_MIN_WINDOW_BITS: 10,
|
|
73
|
+
BROTLI_MAX_WINDOW_BITS: 24,
|
|
74
|
+
BROTLI_LARGE_MAX_WINDOW_BITS: 30,
|
|
75
|
+
BROTLI_DEFAULT_WINDOW: 22,
|
|
76
|
+
BROTLI_MIN_INPUT_BLOCK_BITS: 16,
|
|
77
|
+
BROTLI_MAX_INPUT_BLOCK_BITS: 24,
|
|
78
|
+
BROTLI_PARAM_MODE: 0,
|
|
79
|
+
BROTLI_PARAM_QUALITY: 1,
|
|
80
|
+
BROTLI_PARAM_LGWIN: 2,
|
|
81
|
+
BROTLI_PARAM_LGBLOCK: 3,
|
|
82
|
+
BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING: 4,
|
|
83
|
+
BROTLI_PARAM_SIZE_HINT: 5,
|
|
84
|
+
BROTLI_PARAM_LARGE_WINDOW: 6,
|
|
85
|
+
BROTLI_PARAM_NPOSTFIX: 7,
|
|
86
|
+
BROTLI_PARAM_NDIRECT: 8,
|
|
87
|
+
BROTLI_DECODER_RESULT_ERROR: 0,
|
|
88
|
+
BROTLI_DECODER_RESULT_SUCCESS: 1,
|
|
89
|
+
BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT: 2,
|
|
90
|
+
BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT: 3,
|
|
91
|
+
BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION: 0,
|
|
92
|
+
BROTLI_DECODER_PARAM_LARGE_WINDOW: 1,
|
|
93
|
+
BROTLI_DECODER_NO_ERROR: 0,
|
|
94
|
+
BROTLI_DECODER_SUCCESS: 1,
|
|
95
|
+
BROTLI_DECODER_NEEDS_MORE_INPUT: 2,
|
|
96
|
+
BROTLI_DECODER_NEEDS_MORE_OUTPUT: 3,
|
|
97
|
+
BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE: -1,
|
|
98
|
+
BROTLI_DECODER_ERROR_FORMAT_RESERVED: -2,
|
|
99
|
+
BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE: -3,
|
|
100
|
+
BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET: -4,
|
|
101
|
+
BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME: -5,
|
|
102
|
+
BROTLI_DECODER_ERROR_FORMAT_CL_SPACE: -6,
|
|
103
|
+
BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE: -7,
|
|
104
|
+
BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT: -8,
|
|
105
|
+
BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1: -9,
|
|
106
|
+
BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2: -10,
|
|
107
|
+
BROTLI_DECODER_ERROR_FORMAT_TRANSFORM: -11,
|
|
108
|
+
BROTLI_DECODER_ERROR_FORMAT_DICTIONARY: -12,
|
|
109
|
+
BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS: -13,
|
|
110
|
+
BROTLI_DECODER_ERROR_FORMAT_PADDING_1: -14,
|
|
111
|
+
BROTLI_DECODER_ERROR_FORMAT_PADDING_2: -15,
|
|
112
|
+
BROTLI_DECODER_ERROR_FORMAT_DISTANCE: -16,
|
|
113
|
+
BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET: -19,
|
|
114
|
+
BROTLI_DECODER_ERROR_INVALID_ARGUMENTS: -20,
|
|
115
|
+
BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES: -21,
|
|
116
|
+
BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS: -22,
|
|
117
|
+
BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP: -25,
|
|
118
|
+
BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1: -26,
|
|
119
|
+
BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2: -27,
|
|
120
|
+
BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: -30,
|
|
121
|
+
BROTLI_DECODER_ERROR_UNREACHABLE: -31,
|
|
122
|
+
}, realZlibConstants));
|
|
123
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { Buffer } from 'buffer';
|
|
2
|
+
import { Minipass } from 'minipass';
|
|
3
|
+
import * as realZlib from 'zlib';
|
|
4
|
+
export { constants } from './constants.js';
|
|
5
|
+
declare const _superWrite: unique symbol;
|
|
6
|
+
export declare class ZlibError extends Error {
|
|
7
|
+
code?: string;
|
|
8
|
+
errno?: number;
|
|
9
|
+
constructor(err: NodeJS.ErrnoException | Error, origin?: Function);
|
|
10
|
+
get name(): string;
|
|
11
|
+
}
|
|
12
|
+
declare const _flushFlag: unique symbol;
|
|
13
|
+
export type ChunkWithFlushFlag = Minipass.ContiguousData & {
|
|
14
|
+
[_flushFlag]?: number;
|
|
15
|
+
};
|
|
16
|
+
export type ZlibBaseOptions = Minipass.Options<Minipass.ContiguousData> & {
|
|
17
|
+
flush?: number;
|
|
18
|
+
finishFlush?: number;
|
|
19
|
+
fullFlushFlag?: number;
|
|
20
|
+
};
|
|
21
|
+
export type ZlibHandle = realZlib.Gzip | realZlib.Gunzip | realZlib.Deflate | realZlib.Inflate | realZlib.DeflateRaw | realZlib.InflateRaw | realZlib.BrotliCompress | realZlib.BrotliDecompress | realZlib.ZstdCompress | realZlib.ZstdDecompress;
|
|
22
|
+
export type ZlibMode = 'Gzip' | 'Gunzip' | 'Deflate' | 'Inflate' | 'DeflateRaw' | 'InflateRaw' | 'Unzip';
|
|
23
|
+
export type BrotliMode = 'BrotliCompress' | 'BrotliDecompress';
|
|
24
|
+
export type ZstdMode = 'ZstdCompress' | 'ZstdDecompress';
|
|
25
|
+
declare abstract class ZlibBase extends Minipass<Buffer, ChunkWithFlushFlag> {
|
|
26
|
+
#private;
|
|
27
|
+
get sawError(): boolean;
|
|
28
|
+
get handle(): ZlibHandle | undefined;
|
|
29
|
+
get flushFlag(): number;
|
|
30
|
+
constructor(opts: ZlibBaseOptions, mode: ZlibMode | BrotliMode | ZstdMode);
|
|
31
|
+
close(): void;
|
|
32
|
+
reset(): any;
|
|
33
|
+
flush(flushFlag?: number): void;
|
|
34
|
+
end(cb?: () => void): this;
|
|
35
|
+
end(chunk: ChunkWithFlushFlag, cb?: () => void): this;
|
|
36
|
+
end(chunk: ChunkWithFlushFlag, encoding?: Minipass.Encoding, cb?: () => void): this;
|
|
37
|
+
get ended(): boolean;
|
|
38
|
+
[_superWrite](data: Buffer & {
|
|
39
|
+
[_flushFlag]?: number;
|
|
40
|
+
}): boolean;
|
|
41
|
+
write(chunk: ChunkWithFlushFlag, cb?: () => void): boolean;
|
|
42
|
+
write(chunk: ChunkWithFlushFlag, encoding?: Minipass.Encoding, cb?: () => void): boolean;
|
|
43
|
+
}
|
|
44
|
+
export type ZlibOptions = ZlibBaseOptions & {
|
|
45
|
+
level?: number;
|
|
46
|
+
strategy?: number;
|
|
47
|
+
};
|
|
48
|
+
export declare class Zlib extends ZlibBase {
|
|
49
|
+
#private;
|
|
50
|
+
constructor(opts: ZlibOptions, mode: ZlibMode);
|
|
51
|
+
params(level: number, strategy: number): void;
|
|
52
|
+
}
|
|
53
|
+
export declare class Deflate extends Zlib {
|
|
54
|
+
constructor(opts: ZlibOptions);
|
|
55
|
+
}
|
|
56
|
+
export declare class Inflate extends Zlib {
|
|
57
|
+
constructor(opts: ZlibOptions);
|
|
58
|
+
}
|
|
59
|
+
export type GzipOptions = ZlibOptions & {
|
|
60
|
+
portable?: boolean;
|
|
61
|
+
};
|
|
62
|
+
export declare class Gzip extends Zlib {
|
|
63
|
+
#private;
|
|
64
|
+
constructor(opts: GzipOptions);
|
|
65
|
+
[_superWrite](data: Buffer & {
|
|
66
|
+
[_flushFlag]?: number;
|
|
67
|
+
}): boolean;
|
|
68
|
+
}
|
|
69
|
+
export declare class Gunzip extends Zlib {
|
|
70
|
+
constructor(opts: ZlibOptions);
|
|
71
|
+
}
|
|
72
|
+
export declare class DeflateRaw extends Zlib {
|
|
73
|
+
constructor(opts: ZlibOptions);
|
|
74
|
+
}
|
|
75
|
+
export declare class InflateRaw extends Zlib {
|
|
76
|
+
constructor(opts: ZlibOptions);
|
|
77
|
+
}
|
|
78
|
+
export declare class Unzip extends Zlib {
|
|
79
|
+
constructor(opts: ZlibOptions);
|
|
80
|
+
}
|
|
81
|
+
declare class Brotli extends ZlibBase {
|
|
82
|
+
constructor(opts: ZlibOptions, mode: BrotliMode);
|
|
83
|
+
}
|
|
84
|
+
export declare class BrotliCompress extends Brotli {
|
|
85
|
+
constructor(opts: ZlibOptions);
|
|
86
|
+
}
|
|
87
|
+
export declare class BrotliDecompress extends Brotli {
|
|
88
|
+
constructor(opts: ZlibOptions);
|
|
89
|
+
}
|
|
90
|
+
declare class Zstd extends ZlibBase {
|
|
91
|
+
constructor(opts: ZlibOptions, mode: ZstdMode);
|
|
92
|
+
}
|
|
93
|
+
export declare class ZstdCompress extends Zstd {
|
|
94
|
+
constructor(opts: ZlibOptions);
|
|
95
|
+
}
|
|
96
|
+
export declare class ZstdDecompress extends Zstd {
|
|
97
|
+
constructor(opts: ZlibOptions);
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=index.d.ts.map
|