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 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;
@@ -1,5 +1,5 @@
1
1
  //#region src/compile/lexer.d.ts
2
- declare const isSpace: (ch: string) => ch is " " | "\n" | "\t" | "\r";
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
@@ -1,6 +1,6 @@
1
1
 
2
2
  //#region package.json
3
- var version = "2.0.0-exp.53";
3
+ var version = "2.0.0-exp.54";
4
4
 
5
5
  //#endregion
6
6
  Object.defineProperty(exports, 'version', {
package/dist/package.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "2.0.0-exp.53";
2
+ var version = "2.0.0-exp.54";
3
3
 
4
4
  //#endregion
5
5
  export { version };
@@ -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 | 6 | 3 | 10 | 11 | 13 | 14>;
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
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "elysia",
3
3
  "description": "Ergonomic Framework for Human",
4
- "version": "2.0.0-exp.53",
4
+ "version": "2.0.0-exp.54",
5
5
  "author": {
6
6
  "name": "saltyAom",
7
7
  "url": "https://github.com/SaltyAom",