elysia 2.0.0-exp.53 → 2.0.0-exp.54
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/base.js +1 -1
- package/dist/base.mjs +1 -1
- package/dist/compile/lexer.d.ts +1 -1
- package/dist/package.js +1 -1
- package/dist/package.mjs +1 -1
- package/dist/type/constants.d.ts +1 -1
- package/package.json +1 -1
package/dist/base.js
CHANGED
|
@@ -210,7 +210,7 @@ var Elysia = class Elysia {
|
|
|
210
210
|
return this;
|
|
211
211
|
}
|
|
212
212
|
#on(type, fn, scope = this["~config"]?.as) {
|
|
213
|
-
this.#assertMutable("on" + (type[0].toUpperCase() + type.slice(1)));
|
|
213
|
+
if (this["~generation"] !== void 0) this.#assertMutable("on" + (type[0].toUpperCase() + type.slice(1)));
|
|
214
214
|
const added = require_utils.nullObject();
|
|
215
215
|
added[type] = fn;
|
|
216
216
|
if (type === "trace") this["~hasTrace"] = true;
|
package/dist/base.mjs
CHANGED
|
@@ -207,7 +207,7 @@ var Elysia = class Elysia {
|
|
|
207
207
|
return this;
|
|
208
208
|
}
|
|
209
209
|
#on(type, fn, scope = this["~config"]?.as) {
|
|
210
|
-
this.#assertMutable("on" + (type[0].toUpperCase() + type.slice(1)));
|
|
210
|
+
if (this["~generation"] !== void 0) this.#assertMutable("on" + (type[0].toUpperCase() + type.slice(1)));
|
|
211
211
|
const added = nullObject();
|
|
212
212
|
added[type] = fn;
|
|
213
213
|
if (type === "trace") this["~hasTrace"] = true;
|
package/dist/compile/lexer.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/compile/lexer.d.ts
|
|
2
|
-
declare const isSpace: (ch: string) => ch is "
|
|
2
|
+
declare const isSpace: (ch: string) => ch is "\n" | " " | "\t" | "\r";
|
|
3
3
|
declare const isIdentChar: (ch: string) => boolean;
|
|
4
4
|
declare const isIdentCharCode: (code: number) => boolean;
|
|
5
5
|
declare function skipString(src: string, start: number): number;
|
package/dist/package.js
CHANGED
package/dist/package.mjs
CHANGED
package/dist/type/constants.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ declare const ELYSIA_TYPES: {
|
|
|
17
17
|
readonly NoValidate: 15;
|
|
18
18
|
};
|
|
19
19
|
type ELYSIA_TYPES = typeof ELYSIA_TYPES;
|
|
20
|
-
declare const primitiveElysiaTypes: Set<1 | 2 |
|
|
20
|
+
declare const primitiveElysiaTypes: Set<1 | 2 | 3 | 6 | 10 | 11 | 13 | 14>;
|
|
21
21
|
declare const noEnumerable: {
|
|
22
22
|
readonly enumerable: false;
|
|
23
23
|
};
|