cdk-common 2.0.56 → 2.0.60
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/.jsii +2 -2
- package/changelog.md +1 -1
- package/lib/main.js +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/index.d.ts +0 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +2 -7
- package/node_modules/@types/form-data/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/form-data/node_modules/@types/node/index.d.ts +0 -1
- package/node_modules/@types/form-data/node_modules/@types/node/package.json +2 -7
- package/node_modules/table/node_modules/ajv/README.md +1 -0
- package/node_modules/table/node_modules/ajv/dist/compile/index.js +8 -9
- package/node_modules/table/node_modules/ajv/dist/compile/index.js.map +1 -1
- package/node_modules/table/node_modules/ajv/dist/compile/jtd/parse.js +1 -1
- package/node_modules/table/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -1
- package/node_modules/table/node_modules/ajv/dist/compile/jtd/serialize.js +1 -1
- package/node_modules/table/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -1
- package/node_modules/table/node_modules/ajv/dist/compile/ref_error.d.ts +2 -1
- package/node_modules/table/node_modules/ajv/dist/compile/ref_error.js +3 -3
- package/node_modules/table/node_modules/ajv/dist/compile/ref_error.js.map +1 -1
- package/node_modules/table/node_modules/ajv/dist/compile/resolve.d.ts +5 -5
- package/node_modules/table/node_modules/ajv/dist/compile/resolve.js +13 -11
- package/node_modules/table/node_modules/ajv/dist/compile/resolve.js.map +1 -1
- package/node_modules/table/node_modules/ajv/dist/compile/validate/index.js +1 -1
- package/node_modules/table/node_modules/ajv/dist/compile/validate/index.js.map +1 -1
- package/node_modules/table/node_modules/ajv/dist/core.d.ts +3 -2
- package/node_modules/table/node_modules/ajv/dist/core.js +20 -17
- package/node_modules/table/node_modules/ajv/dist/core.js.map +1 -1
- package/node_modules/table/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
- package/node_modules/table/node_modules/ajv/dist/runtime/uri.js +6 -0
- package/node_modules/table/node_modules/ajv/dist/runtime/uri.js.map +1 -0
- package/node_modules/table/node_modules/ajv/dist/types/index.d.ts +6 -0
- package/node_modules/table/node_modules/ajv/dist/vocabularies/core/ref.js +1 -1
- package/node_modules/table/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -1
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/ref.js +3 -2
- package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -1
- package/node_modules/table/node_modules/ajv/lib/compile/index.ts +8 -8
- package/node_modules/table/node_modules/ajv/lib/compile/jtd/parse.ts +1 -1
- package/node_modules/table/node_modules/ajv/lib/compile/jtd/serialize.ts +1 -1
- package/node_modules/table/node_modules/ajv/lib/compile/ref_error.ts +4 -3
- package/node_modules/table/node_modules/ajv/lib/compile/resolve.ts +15 -12
- package/node_modules/table/node_modules/ajv/lib/compile/validate/index.ts +1 -1
- package/node_modules/table/node_modules/ajv/lib/core.ts +8 -2
- package/node_modules/table/node_modules/ajv/lib/runtime/uri.ts +6 -0
- package/node_modules/table/node_modules/ajv/lib/types/index.ts +7 -0
- package/node_modules/table/node_modules/ajv/lib/vocabularies/core/ref.ts +1 -1
- package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/ref.ts +3 -1
- package/node_modules/table/node_modules/ajv/package.json +2 -1
- package/package.json +2 -2
- package/releasetag.txt +1 -1
- package/version.txt +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as URI from "uri-js"
|
|
1
2
|
import type {CodeGen, Code, Name, ScopeValueSets, ValueScopeName} from "../compile/codegen"
|
|
2
3
|
import type {SchemaEnv, SchemaCxt, SchemaObjCxt} from "../compile"
|
|
3
4
|
import type {JSONType} from "../compile/rules"
|
|
@@ -231,3 +232,9 @@ export interface RegExpEngine {
|
|
|
231
232
|
export interface RegExpLike {
|
|
232
233
|
test: (s: string) => boolean
|
|
233
234
|
}
|
|
235
|
+
|
|
236
|
+
export interface UriResolver {
|
|
237
|
+
parse(uri: string): URI.URIComponents
|
|
238
|
+
resolve(base: string, path: string): string
|
|
239
|
+
serialize(component: URI.URIComponents): string
|
|
240
|
+
}
|
|
@@ -16,7 +16,7 @@ const def: CodeKeywordDefinition = {
|
|
|
16
16
|
const {root} = env
|
|
17
17
|
if (($ref === "#" || $ref === "#/") && baseId === root.baseId) return callRootRef()
|
|
18
18
|
const schOrEnv = resolveRef.call(self, root, baseId, $ref)
|
|
19
|
-
if (schOrEnv === undefined) throw new MissingRefError(baseId, $ref)
|
|
19
|
+
if (schOrEnv === undefined) throw new MissingRefError(it.opts.uriResolver, baseId, $ref)
|
|
20
20
|
if (schOrEnv instanceof SchemaEnv) return callValidate(schOrEnv)
|
|
21
21
|
return inlineRefSchema(schOrEnv)
|
|
22
22
|
|
|
@@ -28,7 +28,9 @@ const def: CodeKeywordDefinition = {
|
|
|
28
28
|
|
|
29
29
|
function validateJtdRef(): void {
|
|
30
30
|
const refSchema = (root.schema as AnySchemaObject).definitions?.[ref]
|
|
31
|
-
if (!refSchema)
|
|
31
|
+
if (!refSchema) {
|
|
32
|
+
throw new MissingRefError(it.opts.uriResolver, "", ref, `No definition ${ref}`)
|
|
33
|
+
}
|
|
32
34
|
if (hasRef(refSchema) || !it.opts.inlineRefs) callValidate(refSchema)
|
|
33
35
|
else inlineRefSchema(refSchema)
|
|
34
36
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ajv",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.10.0",
|
|
4
4
|
"description": "Another JSON Schema Validator",
|
|
5
5
|
"main": "dist/ajv.js",
|
|
6
6
|
"types": "dist/ajv.d.ts",
|
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
"dayjs-plugin-utc": "^0.1.2",
|
|
84
84
|
"eslint": "^7.8.1",
|
|
85
85
|
"eslint-config-prettier": "^7.0.0",
|
|
86
|
+
"fast-uri": "^1.0.0",
|
|
86
87
|
"glob": "^7.0.0",
|
|
87
88
|
"husky": "^7.0.1",
|
|
88
89
|
"if-node-version": "^1.0.0",
|
package/package.json
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"eslint-import-resolver-node": "^0.3.6",
|
|
49
49
|
"eslint-import-resolver-typescript": "^2.5.0",
|
|
50
50
|
"eslint-plugin-import": "^2.25.4",
|
|
51
|
-
"jest": "^27.
|
|
51
|
+
"jest": "^27.5.0",
|
|
52
52
|
"jest-junit": "^13",
|
|
53
53
|
"jsii": "^1.52.1",
|
|
54
54
|
"jsii-diff": "^1.52.1",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
],
|
|
84
84
|
"main": "lib/index.js",
|
|
85
85
|
"license": "Apache-2.0",
|
|
86
|
-
"version": "2.0.
|
|
86
|
+
"version": "2.0.60",
|
|
87
87
|
"jest": {
|
|
88
88
|
"testMatch": [
|
|
89
89
|
"<rootDir>/src/**/__tests__/**/*.ts?(x)",
|
package/releasetag.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
v2.0.
|
|
1
|
+
v2.0.60
|
package/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.0.
|
|
1
|
+
2.0.60
|