@bool-ts/core 2.2.2 → 2.2.4

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/package.json CHANGED
@@ -43,5 +43,5 @@
43
43
  "test": "bun --hot run __test/index.ts"
44
44
  },
45
45
  "types": "./dist/index.d.ts",
46
- "version": "2.2.2"
46
+ "version": "2.2.4"
47
47
  }
@@ -1589,7 +1589,7 @@ export class Application<TRootClass extends Object = Object> {
1589
1589
  if (route) {
1590
1590
  context
1591
1591
  .set(paramsArgsKey, route.parameters, { isPassthrough: true })
1592
- .set(routeModelArgsKey, route.model);
1592
+ .set(routeModelArgsKey, route.model, { isPassthrough: true });
1593
1593
  }
1594
1594
 
1595
1595
  const httpServer =
@@ -18,7 +18,10 @@ export class Context implements IContext {
18
18
  }
19
19
 
20
20
  get<T = unknown>(key: symbol, options?: TContextOptions) {
21
- const temporaryOptions = options || this._options;
21
+ const temporaryOptions = {
22
+ ...this._options,
23
+ ...options
24
+ };
22
25
 
23
26
  return !temporaryOptions?.isStatic
24
27
  ? (this._dynamicMap.get(key) as T)
@@ -26,13 +29,19 @@ export class Context implements IContext {
26
29
  }
27
30
 
28
31
  has(key: symbol, options?: TContextOptions) {
29
- const temporaryOptions = options || this._options;
32
+ const temporaryOptions = {
33
+ ...this._options,
34
+ ...options
35
+ };
30
36
 
31
37
  return !temporaryOptions?.isStatic ? this._dynamicMap.has(key) : this._staticMap.has(key);
32
38
  }
33
39
 
34
40
  set(key: symbol, value: any, options?: TContextOptions) {
35
- const temporaryOptions = options || this._options;
41
+ const temporaryOptions = {
42
+ ...this._options,
43
+ ...options
44
+ };
36
45
 
37
46
  if (!temporaryOptions?.isStatic) {
38
47
  this._dynamicMap.set(key, value);