@markii/pack 0.17.0-next.2 → 0.17.0-next.3
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/dist/archive.js +4 -4
- package/dist/namespace.d.ts +1 -2
- package/dist/namespace.js +1 -2
- package/package.json +2 -2
package/dist/archive.js
CHANGED
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
* writes anything anywhere, so "nothing is written outside the pack
|
|
28
28
|
* directory" holds structurally for every rejection path — there is no
|
|
29
29
|
* write side to leak from. A host that wants to install a `.mkp` (unzip it
|
|
30
|
-
* into its own pack directory) is a separate, host-specific concern (
|
|
31
|
-
*
|
|
30
|
+
* into its own pack directory) is a separate, host-specific concern (an
|
|
31
|
+
* "Install pack from file" command) and is out of this module's
|
|
32
32
|
* scope entirely.
|
|
33
33
|
*/
|
|
34
34
|
import { BundleZipError, DEFAULT_MAX_ZIP_ENTRY_BYTES, DEFAULT_MAX_ZIP_TOTAL_BYTES, openZipBundle, } from '@markii/bundle';
|
|
@@ -40,7 +40,7 @@ const STYLESHEET_ENTRY = 'webview.css';
|
|
|
40
40
|
/** The optional terminal registration module (docs/packs.md). A pack with no terminal views has none. */
|
|
41
41
|
const TERMINAL_ENTRY = 'terminal.js';
|
|
42
42
|
const SCRIPTS_DIR_PREFIX = 'scripts/';
|
|
43
|
-
/** macOS's zip metadata folder — never a real pack file, and never counted toward "is this archive a single wrapped folder" detection below
|
|
43
|
+
/** macOS's zip metadata folder — never a real pack file, and never counted toward "is this archive a single wrapped folder" detection below. */
|
|
44
44
|
const MACOSX_PREFIX = '__MACOSX/';
|
|
45
45
|
/** Every entry in `paths` that isn't macOS's `__MACOSX` metadata folder or its bare directory entry. */
|
|
46
46
|
function significantEntries(paths) {
|
|
@@ -124,7 +124,7 @@ export async function openPackArchive(bytes, options = {}) {
|
|
|
124
124
|
// pack.json anywhere", and sends a user who zipped a FOLDER instead of
|
|
125
125
|
// its CONTENTS looking for a file that plainly exists one level down),
|
|
126
126
|
// check whether this archive is exactly that shape: every entry
|
|
127
|
-
// wrapped under one common top-level folder
|
|
127
|
+
// wrapped under one common top-level folder.
|
|
128
128
|
const wrappingFolder = singleWrappingFolder(paths);
|
|
129
129
|
if (wrappingFolder !== undefined &&
|
|
130
130
|
paths.includes(`${wrappingFolder}/${MANIFEST_ENTRY}`)) {
|
package/dist/namespace.d.ts
CHANGED
|
@@ -15,8 +15,7 @@
|
|
|
15
15
|
* `paths.ts`: no filesystem, no registry, just the string rules a later
|
|
16
16
|
* slice (registry loading, install-time rejection) builds on.
|
|
17
17
|
*
|
|
18
|
-
* Design decision
|
|
19
|
-
* report): the charset chosen for both a pack namespace and a pack's local
|
|
18
|
+
* Design decision: the charset chosen for both a pack namespace and a pack's local
|
|
20
19
|
* component names is lowercase-kebab, matching spec.md §1's "SHOULD be
|
|
21
20
|
* lowercase-kebab" guidance for directive names generally: a leading
|
|
22
21
|
* lowercase letter, then lowercase letters/digits, with single internal
|
package/dist/namespace.js
CHANGED
|
@@ -15,8 +15,7 @@
|
|
|
15
15
|
* `paths.ts`: no filesystem, no registry, just the string rules a later
|
|
16
16
|
* slice (registry loading, install-time rejection) builds on.
|
|
17
17
|
*
|
|
18
|
-
* Design decision
|
|
19
|
-
* report): the charset chosen for both a pack namespace and a pack's local
|
|
18
|
+
* Design decision: the charset chosen for both a pack namespace and a pack's local
|
|
20
19
|
* component names is lowercase-kebab, matching spec.md §1's "SHOULD be
|
|
21
20
|
* lowercase-kebab" guidance for directive names generally: a leading
|
|
22
21
|
* lowercase letter, then lowercase letters/digits, with single internal
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markii/pack",
|
|
3
|
-
"version": "0.17.0-next.
|
|
3
|
+
"version": "0.17.0-next.3",
|
|
4
4
|
"description": "Component pack contract for Markii (docs/packs.md): the pack.json manifest shape, namespace and engine rules, hand-rolled validation, and the .mkp prebuilt-archive reader. No React, no parsing.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"markdown",
|
|
@@ -42,6 +42,6 @@
|
|
|
42
42
|
"lint": "eslint ."
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@markii/bundle": "^0.17.0-next.
|
|
45
|
+
"@markii/bundle": "^0.17.0-next.3"
|
|
46
46
|
}
|
|
47
47
|
}
|