@takeshape/schema 11.2.6 → 11.3.1

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/validate.js CHANGED
@@ -160,7 +160,9 @@ function validateResolver(projectSchema, basePath, baseResolver) {
160
160
  if (!shapeName) {
161
161
  return false;
162
162
  }
163
- const shape = (0, _schemaUtil.getShape)(projectSchema, shapeName);
163
+ const shape = (0, _schemaUtil.getShape)(projectSchema, shapeName) ?? (0, _schemaUtil.getShape)({
164
+ shapes: _builtinSchema.builtInShapes
165
+ }, shapeName);
164
166
  if (shape?.model) {
165
167
  return true;
166
168
  }
package/es/validate.js CHANGED
@@ -145,7 +145,9 @@ function validateResolver(projectSchema, basePath, baseResolver) {
145
145
  if (!shapeName) {
146
146
  return false;
147
147
  }
148
- const shape = getShape(projectSchema, shapeName);
148
+ const shape = getShape(projectSchema, shapeName) ?? getShape({
149
+ shapes: builtInShapes
150
+ }, shapeName);
149
151
  if (shape?.model) {
150
152
  return true;
151
153
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takeshape/schema",
3
- "version": "11.2.6",
3
+ "version": "11.3.1",
4
4
  "description": "TakeShape Schema",
5
5
  "homepage": "https://www.takeshape.io",
6
6
  "repository": {
@@ -28,9 +28,9 @@
28
28
  "p-reduce": "^2.1.0",
29
29
  "semver": "^7.3.2",
30
30
  "tiny-invariant": "^1.2.0",
31
- "@takeshape/json-schema": "11.2.6",
32
- "@takeshape/errors": "11.2.6",
33
- "@takeshape/util": "11.2.6"
31
+ "@takeshape/errors": "11.3.1",
32
+ "@takeshape/json-schema": "11.3.1",
33
+ "@takeshape/util": "11.3.1"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@takeshape/json-schema-to-typescript": "^11.0.0",
@@ -46,7 +46,7 @@
46
46
  "meow": "^9.0.0",
47
47
  "p-map": "^5.0.0",
48
48
  "shortid": "^2.2.15",
49
- "@takeshape/infra": "11.2.6"
49
+ "@takeshape/infra": "11.3.1"
50
50
  },
51
51
  "engines": {
52
52
  "node": ">=20"