@xsynaptic/satteri-trailing-slash 0.2.0 → 0.2.1

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/index.d.mts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- //#region src/index.d.ts
3
2
  declare const optionsSchema: z.ZodObject<{
4
3
  trailingSlash: z.ZodDefault<z.ZodEnum<{
5
4
  always: "always";
@@ -8,7 +7,7 @@ declare const optionsSchema: z.ZodObject<{
8
7
  }>>;
9
8
  }, z.core.$strip>;
10
9
  type TrailingSlashOptions = z.input<typeof optionsSchema>;
11
- declare function trailingSlash(options?: null | Readonly<TrailingSlashOptions>): {
10
+ export declare function trailingSlash(options?: null | Readonly<TrailingSlashOptions>): {
12
11
  element: {
13
12
  filter: string[];
14
13
  visit(node: Readonly<import("hast").Element>, ctx: import("satteri").HastVisitorContext): void;
@@ -16,6 +15,5 @@ declare function trailingSlash(options?: null | Readonly<TrailingSlashOptions>):
16
15
  name: string;
17
16
  };
18
17
  declare function normalizeHref(href: string, mode: 'always' | 'never'): string | undefined;
19
- //#endregion
20
- export { type TrailingSlashOptions, normalizeHref, trailingSlash };
18
+ export { type TrailingSlashOptions, normalizeHref };
21
19
  //# sourceMappingURL=index.d.mts.map
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineHastPlugin } from "satteri";
2
2
  import { z } from "zod";
3
- //#region src/index.ts
3
+ // src/index.ts
4
4
  const optionsSchema = z.object({ trailingSlash: z.enum([
5
5
  "always",
6
6
  "never",
@@ -37,7 +37,6 @@ function normalizeHref(href, mode) {
37
37
  if (!path.endsWith("/")) return void 0;
38
38
  return `${path.slice(0, -1)}${suffix}`;
39
39
  }
40
- //#endregion
41
40
  export { normalizeHref, trailingSlash };
42
41
 
43
42
  //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsynaptic/satteri-trailing-slash",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Sätteri hast plugin that normalizes trailing slashes on internal markdown links to match an Astro project's trailingSlash setting.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -37,13 +37,13 @@
37
37
  "sideEffects": false,
38
38
  "dependencies": {
39
39
  "@types/hast": "^3.0.5",
40
- "zod": "^4.4.3"
40
+ "zod": "^4.6.7"
41
41
  },
42
42
  "peerDependencies": {
43
- "satteri": "^0.10.0"
43
+ "satteri": "^0.10.0 || ^0.11.0"
44
44
  },
45
45
  "devDependencies": {
46
- "satteri": "^0.10.5"
46
+ "satteri": "^0.11.5"
47
47
  },
48
48
  "scripts": {
49
49
  "build": "tsdown",