Comparing version 0.2.0-rc.1 to 0.2.0
@@ -239,4 +239,6 @@ import { Router } from './router'; | ||
state(name, value) { | ||
; | ||
this.store[name] = value; | ||
if (!(name in this.store)) { | ||
; | ||
this.store[name] = value; | ||
} | ||
return this; | ||
@@ -247,3 +249,4 @@ } | ||
this.decorators = {}; | ||
this.decorators[name] = value; | ||
if (!(name in this.decorators)) | ||
this.decorators[name] = value; | ||
return this; | ||
@@ -462,3 +465,6 @@ } | ||
setModel(record) { | ||
Object.assign(this.store[DEFS], record); | ||
Object.entries(record).forEach(([key, value]) => { | ||
if (!(key in this.store[DEFS])) | ||
this.store[DEFS][key] = value; | ||
}); | ||
return this; | ||
@@ -465,0 +471,0 @@ } |
{ | ||
"name": "elysia", | ||
"description": "Fast, and friendly Bun web framework", | ||
"version": "0.2.0-rc.1", | ||
"version": "0.2.0", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "saltyAom", |
@@ -24,3 +24,3 @@ <br> | ||
- Flexibility | ||
- You shall be able to customize most of the library to fits your need | ||
- You shall be able to customize most of the library to fit your needs | ||
@@ -27,0 +27,0 @@ Designed with TypeScript in mind, you don't need to understand TypeScript to gain the benefit of TypeScript with Elysia. The library understands what you want and automatically infers the type from your code. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72904
1527