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.
Files changed (50) hide show
  1. package/.jsii +2 -2
  2. package/changelog.md +1 -1
  3. package/lib/main.js +1 -1
  4. package/node_modules/@types/concat-stream/node_modules/@types/node/README.md +2 -2
  5. package/node_modules/@types/concat-stream/node_modules/@types/node/index.d.ts +0 -1
  6. package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +2 -7
  7. package/node_modules/@types/form-data/node_modules/@types/node/README.md +2 -2
  8. package/node_modules/@types/form-data/node_modules/@types/node/index.d.ts +0 -1
  9. package/node_modules/@types/form-data/node_modules/@types/node/package.json +2 -7
  10. package/node_modules/table/node_modules/ajv/README.md +1 -0
  11. package/node_modules/table/node_modules/ajv/dist/compile/index.js +8 -9
  12. package/node_modules/table/node_modules/ajv/dist/compile/index.js.map +1 -1
  13. package/node_modules/table/node_modules/ajv/dist/compile/jtd/parse.js +1 -1
  14. package/node_modules/table/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -1
  15. package/node_modules/table/node_modules/ajv/dist/compile/jtd/serialize.js +1 -1
  16. package/node_modules/table/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -1
  17. package/node_modules/table/node_modules/ajv/dist/compile/ref_error.d.ts +2 -1
  18. package/node_modules/table/node_modules/ajv/dist/compile/ref_error.js +3 -3
  19. package/node_modules/table/node_modules/ajv/dist/compile/ref_error.js.map +1 -1
  20. package/node_modules/table/node_modules/ajv/dist/compile/resolve.d.ts +5 -5
  21. package/node_modules/table/node_modules/ajv/dist/compile/resolve.js +13 -11
  22. package/node_modules/table/node_modules/ajv/dist/compile/resolve.js.map +1 -1
  23. package/node_modules/table/node_modules/ajv/dist/compile/validate/index.js +1 -1
  24. package/node_modules/table/node_modules/ajv/dist/compile/validate/index.js.map +1 -1
  25. package/node_modules/table/node_modules/ajv/dist/core.d.ts +3 -2
  26. package/node_modules/table/node_modules/ajv/dist/core.js +20 -17
  27. package/node_modules/table/node_modules/ajv/dist/core.js.map +1 -1
  28. package/node_modules/table/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
  29. package/node_modules/table/node_modules/ajv/dist/runtime/uri.js +6 -0
  30. package/node_modules/table/node_modules/ajv/dist/runtime/uri.js.map +1 -0
  31. package/node_modules/table/node_modules/ajv/dist/types/index.d.ts +6 -0
  32. package/node_modules/table/node_modules/ajv/dist/vocabularies/core/ref.js +1 -1
  33. package/node_modules/table/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -1
  34. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/ref.js +3 -2
  35. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -1
  36. package/node_modules/table/node_modules/ajv/lib/compile/index.ts +8 -8
  37. package/node_modules/table/node_modules/ajv/lib/compile/jtd/parse.ts +1 -1
  38. package/node_modules/table/node_modules/ajv/lib/compile/jtd/serialize.ts +1 -1
  39. package/node_modules/table/node_modules/ajv/lib/compile/ref_error.ts +4 -3
  40. package/node_modules/table/node_modules/ajv/lib/compile/resolve.ts +15 -12
  41. package/node_modules/table/node_modules/ajv/lib/compile/validate/index.ts +1 -1
  42. package/node_modules/table/node_modules/ajv/lib/core.ts +8 -2
  43. package/node_modules/table/node_modules/ajv/lib/runtime/uri.ts +6 -0
  44. package/node_modules/table/node_modules/ajv/lib/types/index.ts +7 -0
  45. package/node_modules/table/node_modules/ajv/lib/vocabularies/core/ref.ts +1 -1
  46. package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/ref.ts +3 -1
  47. package/node_modules/table/node_modules/ajv/package.json +2 -1
  48. package/package.json +2 -2
  49. package/releasetag.txt +1 -1
  50. package/version.txt +1 -1
@@ -0,0 +1,6 @@
1
+ import * as uri from "uri-js"
2
+
3
+ type URI = typeof uri & {code: string}
4
+ ;(uri as URI).code = 'require("ajv/dist/runtime/uri").default'
5
+
6
+ export default uri as URI
@@ -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) throw new MissingRefError("", ref, `No definition ${ref}`)
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.9.0",
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.4.7",
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.56",
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.56
1
+ v2.0.60
package/version.txt CHANGED
@@ -1 +1 @@
1
- 2.0.56
1
+ 2.0.60