@aws-cdk/cloud-assembly-schema 2.45.0 → 2.46.0

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 CHANGED
@@ -9,14 +9,14 @@
9
9
  },
10
10
  "bundled": {
11
11
  "jsonschema": "^1.4.1",
12
- "semver": "^7.3.7"
12
+ "semver": "^7.3.8"
13
13
  },
14
14
  "description": "Cloud Assembly Schema",
15
15
  "docs": {
16
16
  "stability": "stable"
17
17
  },
18
18
  "homepage": "https://github.com/aws/aws-cdk",
19
- "jsiiVersion": "1.68.0 (build b45f2f6)",
19
+ "jsiiVersion": "1.69.0 (build f656c31)",
20
20
  "keywords": [
21
21
  "aws",
22
22
  "cdk"
@@ -5509,6 +5509,6 @@
5509
5509
  "symbolId": "lib/cloud-assembly/context-queries:VpcContextQuery"
5510
5510
  }
5511
5511
  },
5512
- "version": "2.45.0",
5512
+ "version": "2.46.0",
5513
5513
  "fingerprint": "**********"
5514
5514
  }
Binary file
package/.warnings.jsii.js CHANGED
@@ -35,10 +35,14 @@ function _aws_cdk_cloud_assembly_schema_AssemblyManifest(p) {
35
35
  return;
36
36
  visitedObjects.add(p);
37
37
  try {
38
- if (!visitedObjects.has(p.artifacts))
39
- _aws_cdk_cloud_assembly_schema_ArtifactManifest(p.artifacts);
40
- if (!visitedObjects.has(p.missing))
41
- _aws_cdk_cloud_assembly_schema_MissingContext(p.missing);
38
+ if (p.artifacts != null)
39
+ for (const o of Object.values(p.artifacts))
40
+ if (!visitedObjects.has(o))
41
+ _aws_cdk_cloud_assembly_schema_ArtifactManifest(o);
42
+ if (p.missing != null)
43
+ for (const o of p.missing)
44
+ if (!visitedObjects.has(o))
45
+ _aws_cdk_cloud_assembly_schema_MissingContext(o);
42
46
  if (!visitedObjects.has(p.runtime))
43
47
  _aws_cdk_cloud_assembly_schema_RuntimeInfo(p.runtime);
44
48
  }
@@ -111,8 +115,10 @@ function _aws_cdk_cloud_assembly_schema_LoadBalancerFilter(p) {
111
115
  try {
112
116
  if (!visitedObjects.has(p.loadBalancerType))
113
117
  _aws_cdk_cloud_assembly_schema_LoadBalancerType(p.loadBalancerType);
114
- if (!visitedObjects.has(p.loadBalancerTags))
115
- _aws_cdk_cloud_assembly_schema_Tag(p.loadBalancerTags);
118
+ if (p.loadBalancerTags != null)
119
+ for (const o of p.loadBalancerTags)
120
+ if (!visitedObjects.has(o))
121
+ _aws_cdk_cloud_assembly_schema_Tag(o);
116
122
  }
117
123
  finally {
118
124
  visitedObjects.delete(p);
@@ -125,8 +131,10 @@ function _aws_cdk_cloud_assembly_schema_LoadBalancerContextQuery(p) {
125
131
  try {
126
132
  if (!visitedObjects.has(p.loadBalancerType))
127
133
  _aws_cdk_cloud_assembly_schema_LoadBalancerType(p.loadBalancerType);
128
- if (!visitedObjects.has(p.loadBalancerTags))
129
- _aws_cdk_cloud_assembly_schema_Tag(p.loadBalancerTags);
134
+ if (p.loadBalancerTags != null)
135
+ for (const o of p.loadBalancerTags)
136
+ if (!visitedObjects.has(o))
137
+ _aws_cdk_cloud_assembly_schema_Tag(o);
130
138
  }
131
139
  finally {
132
140
  visitedObjects.delete(p);
@@ -143,8 +151,10 @@ function _aws_cdk_cloud_assembly_schema_LoadBalancerListenerContextQuery(p) {
143
151
  _aws_cdk_cloud_assembly_schema_LoadBalancerListenerProtocol(p.listenerProtocol);
144
152
  if (!visitedObjects.has(p.loadBalancerType))
145
153
  _aws_cdk_cloud_assembly_schema_LoadBalancerType(p.loadBalancerType);
146
- if (!visitedObjects.has(p.loadBalancerTags))
147
- _aws_cdk_cloud_assembly_schema_Tag(p.loadBalancerTags);
154
+ if (p.loadBalancerTags != null)
155
+ for (const o of p.loadBalancerTags)
156
+ if (!visitedObjects.has(o))
157
+ _aws_cdk_cloud_assembly_schema_Tag(o);
148
158
  }
149
159
  finally {
150
160
  visitedObjects.delete(p);
@@ -161,10 +171,14 @@ function _aws_cdk_cloud_assembly_schema_AssetManifest(p) {
161
171
  return;
162
172
  visitedObjects.add(p);
163
173
  try {
164
- if (!visitedObjects.has(p.dockerImages))
165
- _aws_cdk_cloud_assembly_schema_DockerImageAsset(p.dockerImages);
166
- if (!visitedObjects.has(p.files))
167
- _aws_cdk_cloud_assembly_schema_FileAsset(p.files);
174
+ if (p.dockerImages != null)
175
+ for (const o of Object.values(p.dockerImages))
176
+ if (!visitedObjects.has(o))
177
+ _aws_cdk_cloud_assembly_schema_DockerImageAsset(o);
178
+ if (p.files != null)
179
+ for (const o of Object.values(p.files))
180
+ if (!visitedObjects.has(o))
181
+ _aws_cdk_cloud_assembly_schema_FileAsset(o);
168
182
  }
169
183
  finally {
170
184
  visitedObjects.delete(p);
@@ -175,8 +189,10 @@ function _aws_cdk_cloud_assembly_schema_DockerImageAsset(p) {
175
189
  return;
176
190
  visitedObjects.add(p);
177
191
  try {
178
- if (!visitedObjects.has(p.destinations))
179
- _aws_cdk_cloud_assembly_schema_DockerImageDestination(p.destinations);
192
+ if (p.destinations != null)
193
+ for (const o of Object.values(p.destinations))
194
+ if (!visitedObjects.has(o))
195
+ _aws_cdk_cloud_assembly_schema_DockerImageDestination(o);
180
196
  if (!visitedObjects.has(p.source))
181
197
  _aws_cdk_cloud_assembly_schema_DockerImageSource(p.source);
182
198
  }
@@ -193,8 +209,10 @@ function _aws_cdk_cloud_assembly_schema_FileAsset(p) {
193
209
  return;
194
210
  visitedObjects.add(p);
195
211
  try {
196
- if (!visitedObjects.has(p.destinations))
197
- _aws_cdk_cloud_assembly_schema_FileDestination(p.destinations);
212
+ if (p.destinations != null)
213
+ for (const o of Object.values(p.destinations))
214
+ if (!visitedObjects.has(o))
215
+ _aws_cdk_cloud_assembly_schema_FileDestination(o);
198
216
  if (!visitedObjects.has(p.source))
199
217
  _aws_cdk_cloud_assembly_schema_FileSource(p.source);
200
218
  }
@@ -229,8 +247,10 @@ function _aws_cdk_cloud_assembly_schema_IntegManifest(p) {
229
247
  return;
230
248
  visitedObjects.add(p);
231
249
  try {
232
- if (!visitedObjects.has(p.testCases))
233
- _aws_cdk_cloud_assembly_schema_TestCase(p.testCases);
250
+ if (p.testCases != null)
251
+ for (const o of Object.values(p.testCases))
252
+ if (!visitedObjects.has(o))
253
+ _aws_cdk_cloud_assembly_schema_TestCase(o);
234
254
  }
235
255
  finally {
236
256
  visitedObjects.delete(p);
package/lib/manifest.js CHANGED
@@ -255,7 +255,7 @@ class Manifest {
255
255
  }
256
256
  exports.Manifest = Manifest;
257
257
  _a = JSII_RTTI_SYMBOL_1;
258
- Manifest[_a] = { fqn: "@aws-cdk/cloud-assembly-schema.Manifest", version: "2.45.0" };
258
+ Manifest[_a] = { fqn: "@aws-cdk/cloud-assembly-schema.Manifest", version: "2.46.0" };
259
259
  function mapValues(xs, fn) {
260
260
  if (!xs) {
261
261
  return undefined;
@@ -252,6 +252,7 @@ const isX = id => !id || id.toLowerCase() === 'x' || id === '*'
252
252
  // ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0
253
253
  // ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0
254
254
  // ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0
255
+ // ~0.0.1 --> >=0.0.1 <0.1.0-0
255
256
  const replaceTildes = (comp, options) =>
256
257
  comp.trim().split(/\s+/).map((c) => {
257
258
  return replaceTilde(c, options)
@@ -291,6 +292,8 @@ const replaceTilde = (comp, options) => {
291
292
  // ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0
292
293
  // ^1.2.3 --> >=1.2.3 <2.0.0-0
293
294
  // ^1.2.0 --> >=1.2.0 <2.0.0-0
295
+ // ^0.0.1 --> >=0.0.1 <0.0.2-0
296
+ // ^0.1.0 --> >=0.1.0 <0.2.0-0
294
297
  const replaceCarets = (comp, options) =>
295
298
  comp.trim().split(/\s+/).map((c) => {
296
299
  return replaceCaret(c, options)
@@ -1,48 +1,88 @@
1
1
  // just pre-load all the stuff that index.js lazily exports
2
2
  const internalRe = require('./internal/re')
3
+ const constants = require('./internal/constants')
4
+ const SemVer = require('./classes/semver')
5
+ const identifiers = require('./internal/identifiers')
6
+ const parse = require('./functions/parse')
7
+ const valid = require('./functions/valid')
8
+ const clean = require('./functions/clean')
9
+ const inc = require('./functions/inc')
10
+ const diff = require('./functions/diff')
11
+ const major = require('./functions/major')
12
+ const minor = require('./functions/minor')
13
+ const patch = require('./functions/patch')
14
+ const prerelease = require('./functions/prerelease')
15
+ const compare = require('./functions/compare')
16
+ const rcompare = require('./functions/rcompare')
17
+ const compareLoose = require('./functions/compare-loose')
18
+ const compareBuild = require('./functions/compare-build')
19
+ const sort = require('./functions/sort')
20
+ const rsort = require('./functions/rsort')
21
+ const gt = require('./functions/gt')
22
+ const lt = require('./functions/lt')
23
+ const eq = require('./functions/eq')
24
+ const neq = require('./functions/neq')
25
+ const gte = require('./functions/gte')
26
+ const lte = require('./functions/lte')
27
+ const cmp = require('./functions/cmp')
28
+ const coerce = require('./functions/coerce')
29
+ const Comparator = require('./classes/comparator')
30
+ const Range = require('./classes/range')
31
+ const satisfies = require('./functions/satisfies')
32
+ const toComparators = require('./ranges/to-comparators')
33
+ const maxSatisfying = require('./ranges/max-satisfying')
34
+ const minSatisfying = require('./ranges/min-satisfying')
35
+ const minVersion = require('./ranges/min-version')
36
+ const validRange = require('./ranges/valid')
37
+ const outside = require('./ranges/outside')
38
+ const gtr = require('./ranges/gtr')
39
+ const ltr = require('./ranges/ltr')
40
+ const intersects = require('./ranges/intersects')
41
+ const simplifyRange = require('./ranges/simplify')
42
+ const subset = require('./ranges/subset')
3
43
  module.exports = {
44
+ parse,
45
+ valid,
46
+ clean,
47
+ inc,
48
+ diff,
49
+ major,
50
+ minor,
51
+ patch,
52
+ prerelease,
53
+ compare,
54
+ rcompare,
55
+ compareLoose,
56
+ compareBuild,
57
+ sort,
58
+ rsort,
59
+ gt,
60
+ lt,
61
+ eq,
62
+ neq,
63
+ gte,
64
+ lte,
65
+ cmp,
66
+ coerce,
67
+ Comparator,
68
+ Range,
69
+ satisfies,
70
+ toComparators,
71
+ maxSatisfying,
72
+ minSatisfying,
73
+ minVersion,
74
+ validRange,
75
+ outside,
76
+ gtr,
77
+ ltr,
78
+ intersects,
79
+ simplifyRange,
80
+ subset,
81
+ SemVer,
4
82
  re: internalRe.re,
5
83
  src: internalRe.src,
6
84
  tokens: internalRe.t,
7
- SEMVER_SPEC_VERSION: require('./internal/constants').SEMVER_SPEC_VERSION,
8
- SemVer: require('./classes/semver'),
9
- compareIdentifiers: require('./internal/identifiers').compareIdentifiers,
10
- rcompareIdentifiers: require('./internal/identifiers').rcompareIdentifiers,
11
- parse: require('./functions/parse'),
12
- valid: require('./functions/valid'),
13
- clean: require('./functions/clean'),
14
- inc: require('./functions/inc'),
15
- diff: require('./functions/diff'),
16
- major: require('./functions/major'),
17
- minor: require('./functions/minor'),
18
- patch: require('./functions/patch'),
19
- prerelease: require('./functions/prerelease'),
20
- compare: require('./functions/compare'),
21
- rcompare: require('./functions/rcompare'),
22
- compareLoose: require('./functions/compare-loose'),
23
- compareBuild: require('./functions/compare-build'),
24
- sort: require('./functions/sort'),
25
- rsort: require('./functions/rsort'),
26
- gt: require('./functions/gt'),
27
- lt: require('./functions/lt'),
28
- eq: require('./functions/eq'),
29
- neq: require('./functions/neq'),
30
- gte: require('./functions/gte'),
31
- lte: require('./functions/lte'),
32
- cmp: require('./functions/cmp'),
33
- coerce: require('./functions/coerce'),
34
- Comparator: require('./classes/comparator'),
35
- Range: require('./classes/range'),
36
- satisfies: require('./functions/satisfies'),
37
- toComparators: require('./ranges/to-comparators'),
38
- maxSatisfying: require('./ranges/max-satisfying'),
39
- minSatisfying: require('./ranges/min-satisfying'),
40
- minVersion: require('./ranges/min-version'),
41
- validRange: require('./ranges/valid'),
42
- outside: require('./ranges/outside'),
43
- gtr: require('./ranges/gtr'),
44
- ltr: require('./ranges/ltr'),
45
- intersects: require('./ranges/intersects'),
46
- simplifyRange: require('./ranges/simplify'),
47
- subset: require('./ranges/subset'),
85
+ SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
86
+ compareIdentifiers: identifiers.compareIdentifiers,
87
+ rcompareIdentifiers: identifiers.rcompareIdentifiers,
48
88
  }
@@ -1,24 +1,20 @@
1
1
  {
2
2
  "name": "semver",
3
- "version": "7.3.7",
3
+ "version": "7.3.8",
4
4
  "description": "The semantic version parser used by npm.",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "tap",
8
8
  "snap": "tap",
9
- "preversion": "npm test",
10
- "postversion": "npm publish",
11
- "postpublish": "git push origin --follow-tags",
12
9
  "lint": "eslint \"**/*.js\"",
13
10
  "postlint": "template-oss-check",
14
11
  "lintfix": "npm run lint -- --fix",
15
- "prepublishOnly": "git push origin --follow-tags",
16
12
  "posttest": "npm run lint",
17
13
  "template-oss-apply": "template-oss-apply --force"
18
14
  },
19
15
  "devDependencies": {
20
16
  "@npmcli/eslint-config": "^3.0.1",
21
- "@npmcli/template-oss": "3.3.2",
17
+ "@npmcli/template-oss": "4.4.4",
22
18
  "tap": "^16.0.0"
23
19
  },
24
20
  "license": "ISC",
@@ -31,6 +27,7 @@
31
27
  },
32
28
  "files": [
33
29
  "bin/",
30
+ "lib/",
34
31
  "classes/",
35
32
  "functions/",
36
33
  "internal/",
@@ -41,7 +38,11 @@
41
38
  ],
42
39
  "tap": {
43
40
  "check-coverage": true,
44
- "coverage-map": "map.js"
41
+ "coverage-map": "map.js",
42
+ "nyc-arg": [
43
+ "--exclude",
44
+ "tap-snapshots/**"
45
+ ]
45
46
  },
46
47
  "engines": {
47
48
  "node": ">=10"
@@ -52,17 +53,18 @@
52
53
  "author": "GitHub Inc.",
53
54
  "templateOSS": {
54
55
  "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
55
- "version": "3.3.2",
56
+ "version": "4.4.4",
56
57
  "engines": ">=10",
58
+ "content": "./scripts",
57
59
  "ciVersions": [
58
60
  "10.0.0",
59
61
  "10.x",
60
62
  "12.x",
61
63
  "14.x",
62
- "16.x"
64
+ "16.x",
65
+ "18.x"
63
66
  ],
64
67
  "distPaths": [
65
- "bin/",
66
68
  "classes/",
67
69
  "functions/",
68
70
  "internal/",
@@ -70,6 +72,15 @@
70
72
  "index.js",
71
73
  "preload.js",
72
74
  "range.bnf"
75
+ ],
76
+ "allowPaths": [
77
+ "/classes/",
78
+ "/functions/",
79
+ "/internal/",
80
+ "/ranges/",
81
+ "/index.js",
82
+ "/preload.js",
83
+ "/range.bnf"
73
84
  ]
74
85
  }
75
86
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-cdk/cloud-assembly-schema",
3
- "version": "2.45.0",
3
+ "version": "2.46.0",
4
4
  "description": "Cloud Assembly Schema",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -60,8 +60,8 @@
60
60
  },
61
61
  "license": "Apache-2.0",
62
62
  "devDependencies": {
63
- "@aws-cdk/cdk-build-tools": "2.45.0",
64
- "@aws-cdk/pkglint": "2.45.0",
63
+ "@aws-cdk/cdk-build-tools": "2.46.0",
64
+ "@aws-cdk/pkglint": "2.46.0",
65
65
  "@types/jest": "^27.5.2",
66
66
  "@types/mock-fs": "^4.13.1",
67
67
  "@types/semver": "^7.3.12",
@@ -92,7 +92,7 @@
92
92
  },
93
93
  "dependencies": {
94
94
  "jsonschema": "^1.4.1",
95
- "semver": "^7.3.7"
95
+ "semver": "^7.3.8"
96
96
  },
97
97
  "awscdkio": {
98
98
  "announce": false