@aws-cdk/cloud-assembly-schema 39.2.13 → 39.2.15

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.7.0"
12
+ "semver": "^7.7.1"
13
13
  },
14
14
  "description": "Cloud Assembly Schema",
15
15
  "docs": {
16
16
  "stability": "stable"
17
17
  },
18
18
  "homepage": "https://github.com/cdklabs/cloud-assembly-schema",
19
- "jsiiVersion": "5.7.4 (build fc2a28e)",
19
+ "jsiiVersion": "5.7.5 (build eb860fb)",
20
20
  "keywords": [
21
21
  "aws",
22
22
  "cdk"
@@ -5552,6 +5552,6 @@
5552
5552
  "symbolId": "lib/cloud-assembly/context-queries:VpcContextQuery"
5553
5553
  }
5554
5554
  },
5555
- "version": "39.2.13",
5556
- "fingerprint": "QiYKAydgDCsLRf3seSCbv1eDCzXR2gB5uWH1ZoOTqQE="
5555
+ "version": "39.2.15",
5556
+ "fingerprint": "uk9woSRbeomRvaxVDKT96WsdkT6ZkwuFhMbRjydg3DI="
5557
5557
  }
package/lib/manifest.js CHANGED
@@ -249,7 +249,7 @@ class Manifest {
249
249
  }
250
250
  exports.Manifest = Manifest;
251
251
  _a = JSII_RTTI_SYMBOL_1;
252
- Manifest[_a] = { fqn: "@aws-cdk/cloud-assembly-schema.Manifest", version: "39.2.13" };
252
+ Manifest[_a] = { fqn: "@aws-cdk/cloud-assembly-schema.Manifest", version: "39.2.15" };
253
253
  function mapValues(xs, fn) {
254
254
  if (!xs) {
255
255
  return undefined;
@@ -1,6 +1,6 @@
1
1
  const debug = require('../internal/debug')
2
2
  const { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')
3
- const { safeRe: re, t } = require('../internal/re')
3
+ const { safeRe: re, safeSrc: src, t } = require('../internal/re')
4
4
 
5
5
  const parseOptions = require('../internal/parse-options')
6
6
  const { compareIdentifiers } = require('../internal/identifiers')
@@ -182,7 +182,8 @@ class SemVer {
182
182
  }
183
183
  // Avoid an invalid semver results
184
184
  if (identifier) {
185
- const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE])
185
+ const r = new RegExp(`^${this.options.loose ? src[t.PRERELEASELOOSE] : src[t.PRERELEASE]}$`)
186
+ const match = `-${identifier}`.match(r)
186
187
  if (!match || match[1] !== identifier) {
187
188
  throw new Error(`invalid identifier: ${identifier}`)
188
189
  }
@@ -10,6 +10,7 @@ exports = module.exports = {}
10
10
  const re = exports.re = []
11
11
  const safeRe = exports.safeRe = []
12
12
  const src = exports.src = []
13
+ const safeSrc = exports.safeSrc = []
13
14
  const t = exports.t = {}
14
15
  let R = 0
15
16
 
@@ -42,6 +43,7 @@ const createToken = (name, value, isGlobal) => {
42
43
  debug(name, index, value)
43
44
  t[name] = index
44
45
  src[index] = value
46
+ safeSrc[index] = safe
45
47
  re[index] = new RegExp(value, isGlobal ? 'g' : undefined)
46
48
  safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined)
47
49
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "semver",
3
- "version": "7.7.0",
3
+ "version": "7.7.1",
4
4
  "description": "The semantic version parser used by npm.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/package.json CHANGED
@@ -52,13 +52,13 @@
52
52
  "eslint-plugin-prettier": "^5.2.3",
53
53
  "jest": "29",
54
54
  "jest-junit": "^16",
55
- "jsii": "~5.7.4",
55
+ "jsii": "~5.7.5",
56
56
  "jsii-diff": "^1.106.0",
57
57
  "jsii-pacmak": "^1.106.0",
58
58
  "jsii-rosetta": "~5.7.3",
59
59
  "mock-fs": "^5.4.1",
60
60
  "prettier": "^3.4.2",
61
- "projen": "^0.91.7",
61
+ "projen": "^0.91.8",
62
62
  "ts-jest": "29",
63
63
  "ts-node": "^10.9.2",
64
64
  "tsx": "^4.19.2",
@@ -67,7 +67,7 @@
67
67
  },
68
68
  "dependencies": {
69
69
  "jsonschema": "~1.4.1",
70
- "semver": "^7.7.0"
70
+ "semver": "^7.7.1"
71
71
  },
72
72
  "bundledDependencies": [
73
73
  "jsonschema",
@@ -80,7 +80,7 @@
80
80
  "main": "lib/index.js",
81
81
  "license": "Apache-2.0",
82
82
  "homepage": "https://github.com/cdklabs/cloud-assembly-schema",
83
- "version": "39.2.13",
83
+ "version": "39.2.15",
84
84
  "types": "lib/index.d.ts",
85
85
  "stability": "stable",
86
86
  "jsii": {