@ilha/astro 0.1.7 → 0.1.9

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/client.js CHANGED
@@ -1,4 +1,4 @@
1
- import ilha, { raw } from "ilha";
1
+ import { ilha, raw } from "ilha";
2
2
 
3
3
  //#region src/client.ts
4
4
  const RAW = Symbol.for("ilha.raw");
package/dist/index.js CHANGED
@@ -10,14 +10,15 @@ function globToRegExp(pattern) {
10
10
  let source = "^";
11
11
  for (let i = 0; i < pattern.length; i++) {
12
12
  const char = pattern[i];
13
- if (char === "*") if (pattern[i + 1] === "*") {
14
- i++;
15
- if (pattern[i + 1] === "/") {
13
+ if (char === "*") {
14
+ if (pattern[i + 1] === "*") {
16
15
  i++;
17
- source += "(?:.*/)?";
18
- } else source += ".*";
19
- } else source += "[^/]*";
20
- else if (char === "?") source += "[^/]";
16
+ if (pattern[i + 1] === "/") {
17
+ i++;
18
+ source += "(?:.*/)?";
19
+ } else source += ".*";
20
+ } else source += "[^/]*";
21
+ } else if (char === "?") source += "[^/]";
21
22
  else source += char.replace(/[\\^$.*+?()[\]{}|]/g, "\\$&");
22
23
  }
23
24
  return new RegExp(`${source}$`);
package/dist/server.js CHANGED
@@ -1,4 +1,4 @@
1
- import ilha, { raw } from "ilha";
1
+ import { ilha, raw } from "ilha";
2
2
 
3
3
  //#region src/server.ts
4
4
  const ISLAND = Symbol.for("ilha.island");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ilha/astro",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "Astro integration for Ilha islands",
5
5
  "keywords": [
6
6
  "astro-component",
@@ -53,10 +53,10 @@
53
53
  },
54
54
  "devDependencies": {
55
55
  "astro": "^7.2.4",
56
- "ilha": "^0.10.3"
56
+ "ilha": "^0.11.1"
57
57
  },
58
58
  "peerDependencies": {
59
- "astro": "^7.2.0",
60
- "ilha": ">=0.10.3"
59
+ "astro": "^7.2.4",
60
+ "ilha": ">=0.11.1"
61
61
  }
62
62
  }