@pdtf/schemas 3.5.1-9 → 3.6.0-10

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.
@@ -30,7 +30,12 @@
30
30
  "Bash(while read file)",
31
31
  "Bash(for:*)",
32
32
  "Bash(do echo \"=== $file ===\")",
33
- "Bash(do echo \"$file:\")"
33
+ "Bash(do echo \"$file:\")",
34
+ "Bash(npm run proposal:pdf:*)",
35
+ "Bash(base64:*)",
36
+ "Bash(gh issue view:*)",
37
+ "Read(//Users/ed/.claude/**)",
38
+ "Bash(npm init:*)"
34
39
  ],
35
40
  "deny": []
36
41
  }
package/index.js CHANGED
@@ -246,6 +246,18 @@ const getCachedSchemaData = (path, schemaId, overlays) => {
246
246
  matchingProperty = aOneOf.items;
247
247
  } else if (aOneOf.properties?.[pathElement]) {
248
248
  matchingProperty = aOneOf.properties?.[pathElement];
249
+ } else if (aOneOf.patternProperties) {
250
+ for (const pattern in aOneOf.patternProperties) {
251
+ try {
252
+ const regex = new RegExp(pattern);
253
+ if (regex.test(pathElement)) {
254
+ matchingProperty = aOneOf.patternProperties[pattern];
255
+ break;
256
+ }
257
+ } catch (e) {
258
+ // Invalid regex pattern - skip
259
+ }
260
+ }
249
261
  }
250
262
  });
251
263
  if (matchingProperty) return matchingProperty;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdtf/schemas",
3
- "version": "3.5.1-9",
3
+ "version": "3.6.0-10",
4
4
  "description": "Property Data Trust Framework Schemas and Utilities",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -8,7 +8,8 @@
8
8
  },
9
9
  "scripts": {
10
10
  "test": "jest",
11
- "test:watch": "jest --watch"
11
+ "test:watch": "jest --watch",
12
+ "extract-overlays": "cd src/utils && node extractOverlay.js"
12
13
  },
13
14
  "repository": {
14
15
  "type": "git",