mapres 2.2.1__tar.gz → 2.2.2__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mapres
3
- Version: 2.2.1
3
+ Version: 2.2.2
4
4
  Summary: A powerfull mapping utility
5
5
  Author: iFamished
6
6
  License: MIT
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
7
7
 
8
8
  [project]
9
9
  name = "mapres"
10
- version = "2.2.1"
10
+ version = "2.2.2"
11
11
  description = "A powerfull mapping utility"
12
12
  readme = "README.md"
13
13
  requires-python = ">=3.9"
@@ -88,7 +88,12 @@ class MapResolver:
88
88
  continue
89
89
  if k in d:
90
90
  return str(d[k])
91
- raise MissingKeyError(f"Missing key '{k}' in any layer")
91
+
92
+ if k in ctx:
93
+ return str(ctx[k])
94
+
95
+ raise MissingKeyError(f"Missing key '{k}' in any layer or context")
96
+
92
97
  try:
93
98
  text = re.sub(pattern, repl, text)
94
99
  except re.error as exc:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mapres
3
- Version: 2.2.1
3
+ Version: 2.2.2
4
4
  Summary: A powerfull mapping utility
5
5
  Author: iFamished
6
6
  License: MIT
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes