@bendyline/docblocks 2.3.4 → 2.4.0
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/THIRD_PARTY_NOTICES.txt
CHANGED
|
@@ -14,7 +14,7 @@ This notice is included in the published npm tarball. Transitive packages instal
|
|
|
14
14
|
|
|
15
15
|
| Package | Version | License | Source |
|
|
16
16
|
| --- | --- | --- | --- |
|
|
17
|
-
| @bendyline/squisq | 2.
|
|
17
|
+
| @bendyline/squisq | 2.8.0 | MIT | https://github.com/bendyline/squisq |
|
|
18
18
|
| @types/debug | 4.1.12 | MIT | https://github.com/DefinitelyTyped/DefinitelyTyped |
|
|
19
19
|
| @types/hast | 3.0.4 | MIT | https://github.com/DefinitelyTyped/DefinitelyTyped |
|
|
20
20
|
| @types/katex | 0.16.8 | MIT | https://github.com/DefinitelyTyped/DefinitelyTyped |
|
|
@@ -132,7 +132,7 @@ This notice is included in the published npm tarball. Transitive packages instal
|
|
|
132
132
|
Package-local license, copying, and notice files are reproduced below. Where a published package omits its repository license, the reviewed aggregate or README identified in `Source files` supplies the retained material.
|
|
133
133
|
|
|
134
134
|
==============================================================================
|
|
135
|
-
Components: @bendyline/squisq@2.
|
|
135
|
+
Components: @bendyline/squisq@2.8.0
|
|
136
136
|
Source files: node_modules/@bendyline/squisq/LICENSE
|
|
137
137
|
==============================================================================
|
|
138
138
|
MIT License
|
|
@@ -158,7 +158,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
158
158
|
SOFTWARE.
|
|
159
159
|
|
|
160
160
|
==============================================================================
|
|
161
|
-
Components: @bendyline/squisq@2.
|
|
161
|
+
Components: @bendyline/squisq@2.8.0
|
|
162
162
|
Source files: node_modules/@bendyline/squisq/NOTICE.md
|
|
163
163
|
==============================================================================
|
|
164
164
|
# Third-Party Notices for @bendyline/squisq
|
|
@@ -189,7 +189,7 @@ third-party license texts for bundled code and data are shipped in
|
|
|
189
189
|
THIRD_PARTY_LICENSES.txt.
|
|
190
190
|
|
|
191
191
|
==============================================================================
|
|
192
|
-
Components: @bendyline/squisq@2.
|
|
192
|
+
Components: @bendyline/squisq@2.8.0
|
|
193
193
|
Source files: node_modules/@bendyline/squisq/THIRD_PARTY_LICENSES.txt
|
|
194
194
|
==============================================================================
|
|
195
195
|
THIRD-PARTY LICENSES FOR @bendyline/squisq
|
|
@@ -599,8 +599,8 @@ function documentCompanionPath(documentPath) {
|
|
|
599
599
|
if (parent) return `${parent}/${name}_files`;
|
|
600
600
|
return rooted ? `/${name}_files` : `${name}_files`;
|
|
601
601
|
}
|
|
602
|
-
function
|
|
603
|
-
return /\.md$/i.test(basename(path));
|
|
602
|
+
function hasDocumentCompanion(path) {
|
|
603
|
+
return /\.(?:md|html?|docx|pdf|pptx|xlsx)$/i.test(basename(path));
|
|
604
604
|
}
|
|
605
605
|
async function moveFileSystemEntry(provider, oldPath, newPath, kind) {
|
|
606
606
|
const providerV2 = getFileSystemProviderV2(provider);
|
|
@@ -619,7 +619,7 @@ async function moveFileSystemEntry(provider, oldPath, newPath, kind) {
|
|
|
619
619
|
}
|
|
620
620
|
let oldCompanion = null;
|
|
621
621
|
let newCompanion = null;
|
|
622
|
-
if (kind === "file" &&
|
|
622
|
+
if (kind === "file" && hasDocumentCompanion(oldPath)) {
|
|
623
623
|
const candidate = documentCompanionPath(oldPath);
|
|
624
624
|
if (await exists(candidate)) {
|
|
625
625
|
oldCompanion = candidate;
|
|
@@ -168,8 +168,9 @@ declare function createFileMediaProvider(container: ContentContainer, markdownBa
|
|
|
168
168
|
/** Return the hidden companion directory used for a document's media and versions. */
|
|
169
169
|
declare function documentCompanionPath(documentPath: string): string;
|
|
170
170
|
/**
|
|
171
|
-
* Move an explorer entry without overwriting an existing entry. Markdown
|
|
172
|
-
* carry their hidden `<basename>_files`
|
|
171
|
+
* Move an explorer entry without overwriting an existing entry. Markdown and
|
|
172
|
+
* outside-in rendered documents carry their hidden `<basename>_files`
|
|
173
|
+
* companion directory with them.
|
|
173
174
|
*/
|
|
174
175
|
declare function moveFileSystemEntry(provider: FileSystemProvider, oldPath: string, newPath: string, kind: 'file' | 'directory'): Promise<void>;
|
|
175
176
|
|
package/dist/filesystem/index.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bendyline/docblocks",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "Core data structures and filesystem abstractions for DocBlocks",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Bendyline",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"typecheck": "tsc --noEmit"
|
|
107
107
|
},
|
|
108
108
|
"dependencies": {
|
|
109
|
-
"@bendyline/squisq": "2.
|
|
109
|
+
"@bendyline/squisq": "2.8.0",
|
|
110
110
|
"zod": "3.25.76"
|
|
111
111
|
}
|
|
112
112
|
}
|