@absolutejs/absolute 0.19.0-beta.1107 → 0.19.0-beta.1109

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.
@@ -0,0 +1,32 @@
1
+ export type PackageIdentity = {
2
+ consumer: string;
3
+ packageName: string;
4
+ packagePath: string;
5
+ version: string;
6
+ };
7
+ export type TypeGraphReport = {
8
+ identities: PackageIdentity[];
9
+ installRoot: string;
10
+ unresolved: {
11
+ consumer: string;
12
+ packageName: string;
13
+ }[];
14
+ };
15
+ declare const findInstallRoot: (cwd: string) => string;
16
+ declare const inspectTypeGraph: (cwd: string) => TypeGraphReport;
17
+ declare const duplicateTypeGraphPackages: (report: TypeGraphReport) => {
18
+ identities: PackageIdentity[];
19
+ name: "elysia" | "@sinclair/typebox";
20
+ paths: string[];
21
+ }[];
22
+ declare const alignTypeGraphOverrides: (report: TypeGraphReport) => string[];
23
+ declare const removeDuplicateTypeGraphPackages: (report: TypeGraphReport) => string[];
24
+ type TypeGraphCoherence = {
25
+ alignTypeGraphOverrides: typeof alignTypeGraphOverrides;
26
+ duplicateTypeGraphPackages: typeof duplicateTypeGraphPackages;
27
+ findInstallRoot: typeof findInstallRoot;
28
+ inspectTypeGraph: typeof inspectTypeGraph;
29
+ removeDuplicateTypeGraphPackages: typeof removeDuplicateTypeGraphPackages;
30
+ };
31
+ export declare const typeGraphCoherence: TypeGraphCoherence;
32
+ export {};
@@ -233,10 +233,10 @@ export declare const prepare: (configOrPath?: string) => Promise<{
233
233
  } & {
234
234
  hmr: {
235
235
  subscribe: {
236
- body: unknown;
236
+ body: {};
237
237
  params: {};
238
- query: unknown;
239
- headers: unknown;
238
+ query: {};
239
+ headers: {};
240
240
  response: {
241
241
  200: Response;
242
242
  };
@@ -118,10 +118,10 @@ export declare const hmr: (hmrState: HMRState, manifest: Record<string, string>,
118
118
  } & {
119
119
  hmr: {
120
120
  subscribe: {
121
- body: unknown;
121
+ body: {};
122
122
  params: {};
123
- query: unknown;
124
- headers: unknown;
123
+ query: {};
124
+ headers: {};
125
125
  response: {
126
126
  200: Response;
127
127
  };
@@ -3165,6 +3165,9 @@ var SENTINEL, RISKY_STRING_CONTENT, isIdentChar = (c) => /[A-Za-z0-9_$]/.test(c)
3165
3165
  const endOfInterp = (start) => {
3166
3166
  let j = start;
3167
3167
  let depth = 1;
3168
+ let ipChar = "";
3169
+ let ipWord = "";
3170
+ let ipSpace = false;
3168
3171
  while (j < n && depth > 0) {
3169
3172
  const c = src[j];
3170
3173
  if (c === "\\") {
@@ -3173,10 +3176,16 @@ var SENTINEL, RISKY_STRING_CONTENT, isIdentChar = (c) => /[A-Za-z0-9_$]/.test(c)
3173
3176
  }
3174
3177
  if (c === "`") {
3175
3178
  j = endOfTemplate(j);
3179
+ ipChar = ")";
3180
+ ipWord = "";
3181
+ ipSpace = false;
3176
3182
  continue;
3177
3183
  }
3178
3184
  if (c === '"' || c === "'") {
3179
3185
  j = endOfString(j);
3186
+ ipChar = '"';
3187
+ ipWord = "";
3188
+ ipSpace = false;
3180
3189
  continue;
3181
3190
  }
3182
3191
  if (c === "/" && src[j + 1] === "/") {
@@ -3190,11 +3199,33 @@ var SENTINEL, RISKY_STRING_CONTENT, isIdentChar = (c) => /[A-Za-z0-9_$]/.test(c)
3190
3199
  j = e < 0 ? n : e + 2;
3191
3200
  continue;
3192
3201
  }
3202
+ if (c === "/" && (ipChar === "" || REGEX_OK_AFTER_CHAR.has(ipChar) || REGEX_OK_AFTER_WORD.has(ipWord))) {
3203
+ const e = endOfRegex(j);
3204
+ if (e > 0) {
3205
+ j = e;
3206
+ ipChar = ")";
3207
+ ipWord = "";
3208
+ ipSpace = false;
3209
+ continue;
3210
+ }
3211
+ }
3193
3212
  if (c === "{")
3194
3213
  depth++;
3195
3214
  else if (c === "}")
3196
3215
  depth--;
3197
3216
  j++;
3217
+ if (c === " " || c === "\t" || c === "\r" || c === `
3218
+ `) {
3219
+ ipSpace = true;
3220
+ continue;
3221
+ }
3222
+ if (isIdentChar(c)) {
3223
+ ipWord = isIdentChar(ipChar) && !ipSpace ? ipWord + c : c;
3224
+ } else {
3225
+ ipWord = "";
3226
+ }
3227
+ ipChar = c;
3228
+ ipSpace = false;
3198
3229
  }
3199
3230
  return j;
3200
3231
  };
@@ -4698,5 +4729,5 @@ export {
4698
4729
  createTypedIsland
4699
4730
  };
4700
4731
 
4701
- //# debugId=5A09E6361E2C596964756E2164756E21
4732
+ //# debugId=5D94AABCDE111FBA64756E2164756E21
4702
4733
  //# sourceMappingURL=index.js.map