@riboseinc/anafero-cli 0.0.38 → 0.0.40

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/build-site.mjs CHANGED
@@ -18586,7 +18586,7 @@ var require_util = __commonJS({
18586
18586
  exports.bodyToBuffer = bodyToBuffer;
18587
18587
  exports.getAuthHeader = getAuthHeader;
18588
18588
  exports.pointsToLFS = pointsToLFS2;
18589
- exports.stripTrailingSlash = stripTrailingSlash;
18589
+ exports.stripTrailingSlash = stripTrailingSlash2;
18590
18590
  exports.toHex = toHex;
18591
18591
  var SPEC_URL = "https://git-lfs.github.com/spec/v1";
18592
18592
  exports.SPEC_URL = SPEC_URL;
@@ -18594,7 +18594,7 @@ var require_util = __commonJS({
18594
18594
  `;
18595
18595
  exports.LFS_POINTER_PREAMBLE = LFS_POINTER_PREAMBLE;
18596
18596
  var textDecoder = new TextDecoder("utf-8");
18597
- function stripTrailingSlash(aPath) {
18597
+ function stripTrailingSlash2(aPath) {
18598
18598
  return aPath.replace(/\/$/, "");
18599
18599
  }
18600
18600
  function pointsToLFS2(content) {
@@ -313124,8 +313124,11 @@ __export(anafero_exports, {
313124
313124
  fillInLocale: () => fillInLocale,
313125
313125
  gatherDescribedResourcesFromJsonifiedProseMirrorNode: () => gatherDescribedResourcesFromJsonifiedProseMirrorNode,
313126
313126
  gatherTextFromJsonifiedProseMirrorNode: () => gatherTextFromJsonifiedProseMirrorNode,
313127
+ getAllParentPaths: () => getAllParentPaths,
313127
313128
  makeDummyInMemoryCache: () => makeDummyInMemoryCache,
313128
313129
  parseModuleRef: () => parseModuleRef,
313130
+ stripLeadingSlash: () => stripLeadingSlash,
313131
+ stripTrailingSlash: () => stripTrailingSlash,
313129
313132
  titleSchema: () => titleSchema
313130
313133
  });
313131
313134
  init_cjs_shim();
@@ -313169,6 +313172,26 @@ function parseModuleRef(moduleRef) {
313169
313172
  return [url3, ref, subdir];
313170
313173
  }
313171
313174
 
313175
+ // ../anafero/path-utils.mts
313176
+ init_cjs_shim();
313177
+ function stripLeadingSlash(aPath) {
313178
+ return aPath.replace(/^\//, "");
313179
+ }
313180
+ function stripTrailingSlash(aPath) {
313181
+ return aPath.replace(/\/$/, "");
313182
+ }
313183
+ function getAllParentPaths(aPath) {
313184
+ let path3 = aPath;
313185
+ const parents = [];
313186
+ while (path3.includes("/")) {
313187
+ const parent = path3.slice(0, path3.lastIndexOf("/"));
313188
+ parents.push(parent);
313189
+ path3 = parent;
313190
+ }
313191
+ parents.reverse();
313192
+ return parents;
313193
+ }
313194
+
313172
313195
  // ../firelight-gui/loader.mts
313173
313196
  init_cjs_shim();
313174
313197
 
@@ -317140,7 +317163,7 @@ async function* generateStaticSiteAssets(versions, currentVersionID, opts) {
317140
317163
  };
317141
317164
  const prefixWithTrailing = opts.pathPrefix ? `${opts.pathPrefix}/` : "/";
317142
317165
  function expandGlobalPath(path3) {
317143
- const expanded = path3.startsWith("/") ? `${opts.pathPrefix}${path3}` : `${prefixWithTrailing}${path3}`;
317166
+ const expanded = path3.startsWith("/") ? `${opts.pathPrefix ?? ""}${path3}` : `${prefixWithTrailing}${path3}`;
317144
317167
  return expanded;
317145
317168
  }
317146
317169
  const htmlAttrs = `
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@riboseinc/anafero-cli",
3
3
  "type": "module",
4
- "version": "0.0.38",
4
+ "version": "0.0.40",
5
5
  "packageManager": "yarn@4.5.0",
6
6
  "bin": {
7
7
  "build-site": "build-site.mjs"
Binary file
Binary file