aws-delivlib 14.15.96 → 14.15.98

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 (72) hide show
  1. package/lib/build-spec.d.ts +12 -12
  2. package/lib/build-spec.js +1 -1
  3. package/lib/custom-resource-handlers/src/certificate-signing-request.tsbuildinfo +1 -1
  4. package/lib/custom-resource-handlers/src/pgp-secret.tsbuildinfo +1 -1
  5. package/lib/custom-resource-handlers/src/private-key.tsbuildinfo +1 -1
  6. package/lib/open-pgp-key-pair.js +1 -1
  7. package/lib/package-integrity/handler/validate.bundle.js +158 -112
  8. package/lib/pipeline.js +1 -1
  9. package/lib/publishing/github/node_modules/.yarn-integrity +4 -4
  10. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/README.md +1 -1
  11. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/cluster.d.ts +1 -1
  12. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/diagnostics_channel.d.ts +20 -1
  13. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/fs/promises.d.ts +13 -0
  14. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/fs.d.ts +86 -2
  15. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/http.d.ts +2 -1
  16. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/net.d.ts +12 -6
  17. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/package.json +2 -2
  18. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/vm.d.ts +20 -5
  19. package/lib/publishing/github/node_modules/jwa/index.js +16 -2
  20. package/lib/publishing/github/node_modules/jwa/package.json +2 -2
  21. package/lib/publishing/github/node_modules/semver/bin/semver.js +2 -0
  22. package/lib/publishing/github/node_modules/semver/classes/comparator.js +2 -0
  23. package/lib/publishing/github/node_modules/semver/classes/index.js +2 -0
  24. package/lib/publishing/github/node_modules/semver/classes/range.js +2 -0
  25. package/lib/publishing/github/node_modules/semver/classes/semver.js +4 -3
  26. package/lib/publishing/github/node_modules/semver/functions/clean.js +2 -0
  27. package/lib/publishing/github/node_modules/semver/functions/cmp.js +2 -0
  28. package/lib/publishing/github/node_modules/semver/functions/coerce.js +2 -0
  29. package/lib/publishing/github/node_modules/semver/functions/compare-build.js +2 -0
  30. package/lib/publishing/github/node_modules/semver/functions/compare-loose.js +2 -0
  31. package/lib/publishing/github/node_modules/semver/functions/compare.js +2 -0
  32. package/lib/publishing/github/node_modules/semver/functions/diff.js +2 -0
  33. package/lib/publishing/github/node_modules/semver/functions/eq.js +2 -0
  34. package/lib/publishing/github/node_modules/semver/functions/gt.js +2 -0
  35. package/lib/publishing/github/node_modules/semver/functions/gte.js +2 -0
  36. package/lib/publishing/github/node_modules/semver/functions/inc.js +2 -0
  37. package/lib/publishing/github/node_modules/semver/functions/lt.js +2 -0
  38. package/lib/publishing/github/node_modules/semver/functions/lte.js +2 -0
  39. package/lib/publishing/github/node_modules/semver/functions/major.js +2 -0
  40. package/lib/publishing/github/node_modules/semver/functions/minor.js +2 -0
  41. package/lib/publishing/github/node_modules/semver/functions/neq.js +2 -0
  42. package/lib/publishing/github/node_modules/semver/functions/parse.js +2 -0
  43. package/lib/publishing/github/node_modules/semver/functions/patch.js +2 -0
  44. package/lib/publishing/github/node_modules/semver/functions/prerelease.js +2 -0
  45. package/lib/publishing/github/node_modules/semver/functions/rcompare.js +2 -0
  46. package/lib/publishing/github/node_modules/semver/functions/rsort.js +2 -0
  47. package/lib/publishing/github/node_modules/semver/functions/satisfies.js +2 -0
  48. package/lib/publishing/github/node_modules/semver/functions/sort.js +2 -0
  49. package/lib/publishing/github/node_modules/semver/functions/valid.js +2 -0
  50. package/lib/publishing/github/node_modules/semver/index.js +2 -0
  51. package/lib/publishing/github/node_modules/semver/internal/constants.js +2 -0
  52. package/lib/publishing/github/node_modules/semver/internal/debug.js +2 -0
  53. package/lib/publishing/github/node_modules/semver/internal/identifiers.js +2 -0
  54. package/lib/publishing/github/node_modules/semver/internal/lrucache.js +2 -0
  55. package/lib/publishing/github/node_modules/semver/internal/parse-options.js +2 -0
  56. package/lib/publishing/github/node_modules/semver/internal/re.js +8 -4
  57. package/lib/publishing/github/node_modules/semver/package.json +3 -3
  58. package/lib/publishing/github/node_modules/semver/preload.js +2 -0
  59. package/lib/publishing/github/node_modules/semver/ranges/gtr.js +2 -0
  60. package/lib/publishing/github/node_modules/semver/ranges/intersects.js +2 -0
  61. package/lib/publishing/github/node_modules/semver/ranges/ltr.js +2 -0
  62. package/lib/publishing/github/node_modules/semver/ranges/max-satisfying.js +2 -0
  63. package/lib/publishing/github/node_modules/semver/ranges/min-satisfying.js +2 -0
  64. package/lib/publishing/github/node_modules/semver/ranges/min-version.js +2 -0
  65. package/lib/publishing/github/node_modules/semver/ranges/outside.js +2 -0
  66. package/lib/publishing/github/node_modules/semver/ranges/simplify.js +2 -0
  67. package/lib/publishing/github/node_modules/semver/ranges/subset.js +2 -0
  68. package/lib/publishing/github/node_modules/semver/ranges/to-comparators.js +2 -0
  69. package/lib/publishing/github/node_modules/semver/ranges/valid.js +2 -0
  70. package/lib/shellable.js +1 -1
  71. package/lib/util.js +1 -1
  72. package/package.json +9 -9
@@ -1,4 +1,3 @@
1
- var bufferEqual = require('buffer-equal-constant-time');
2
1
  var Buffer = require('safe-buffer').Buffer;
3
2
  var crypto = require('crypto');
4
3
  var formatEcdsa = require('ecdsa-sig-formatter');
@@ -135,10 +134,25 @@ function createHmacSigner(bits) {
135
134
  }
136
135
  }
137
136
 
137
+ var bufferEqual;
138
+ var timingSafeEqual = 'timingSafeEqual' in crypto ? function timingSafeEqual(a, b) {
139
+ if (a.byteLength !== b.byteLength) {
140
+ return false;
141
+ }
142
+
143
+ return crypto.timingSafeEqual(a, b)
144
+ } : function timingSafeEqual(a, b) {
145
+ if (!bufferEqual) {
146
+ bufferEqual = require('buffer-equal-constant-time');
147
+ }
148
+
149
+ return bufferEqual(a, b)
150
+ }
151
+
138
152
  function createHmacVerifier(bits) {
139
153
  return function verify(thing, signature, secret) {
140
154
  var computedSig = createHmacSigner(bits)(thing, secret);
141
- return bufferEqual(Buffer.from(signature), Buffer.from(computedSig));
155
+ return timingSafeEqual(Buffer.from(signature), Buffer.from(computedSig));
142
156
  }
143
157
  }
144
158
 
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "jwa",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "JWA implementation (supports all JWS algorithms)",
5
5
  "main": "index.js",
6
6
  "directories": {
7
7
  "test": "test"
8
8
  },
9
9
  "dependencies": {
10
- "buffer-equal-constant-time": "1.0.1",
10
+ "buffer-equal-constant-time": "^1.0.1",
11
11
  "ecdsa-sig-formatter": "1.0.11",
12
12
  "safe-buffer": "^5.0.1"
13
13
  },
@@ -3,6 +3,8 @@
3
3
  // Exits successfully and prints matching version(s) if
4
4
  // any supplied version is valid and passes all tests.
5
5
 
6
+ 'use strict'
7
+
6
8
  const argv = process.argv.slice(2)
7
9
 
8
10
  let versions = []
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const ANY = Symbol('SemVer ANY')
2
4
  // hoisted class for cyclic dependency
3
5
  class Comparator {
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  module.exports = {
2
4
  SemVer: require('./semver.js'),
3
5
  Range: require('./range.js'),
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const SPACE_CHARACTERS = /\s+/g
2
4
 
3
5
  // hoisted class for cyclic dependency
@@ -1,6 +1,8 @@
1
+ 'use strict'
2
+
1
3
  const debug = require('../internal/debug')
2
4
  const { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')
3
- const { safeRe: re, safeSrc: src, t } = require('../internal/re')
5
+ const { safeRe: re, t } = require('../internal/re')
4
6
 
5
7
  const parseOptions = require('../internal/parse-options')
6
8
  const { compareIdentifiers } = require('../internal/identifiers')
@@ -182,8 +184,7 @@ class SemVer {
182
184
  }
183
185
  // Avoid an invalid semver results
184
186
  if (identifier) {
185
- const r = new RegExp(`^${this.options.loose ? src[t.PRERELEASELOOSE] : src[t.PRERELEASE]}$`)
186
- const match = `-${identifier}`.match(r)
187
+ const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE])
187
188
  if (!match || match[1] !== identifier) {
188
189
  throw new Error(`invalid identifier: ${identifier}`)
189
190
  }
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const parse = require('./parse')
2
4
  const clean = (version, options) => {
3
5
  const s = parse(version.trim().replace(/^[=v]+/, ''), options)
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const eq = require('./eq')
2
4
  const neq = require('./neq')
3
5
  const gt = require('./gt')
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const SemVer = require('../classes/semver')
2
4
  const parse = require('./parse')
3
5
  const { safeRe: re, t } = require('../internal/re')
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const SemVer = require('../classes/semver')
2
4
  const compareBuild = (a, b, loose) => {
3
5
  const versionA = new SemVer(a, loose)
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const compare = require('./compare')
2
4
  const compareLoose = (a, b) => compare(a, b, true)
3
5
  module.exports = compareLoose
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const SemVer = require('../classes/semver')
2
4
  const compare = (a, b, loose) =>
3
5
  new SemVer(a, loose).compare(new SemVer(b, loose))
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const parse = require('./parse.js')
2
4
 
3
5
  const diff = (version1, version2) => {
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const compare = require('./compare')
2
4
  const eq = (a, b, loose) => compare(a, b, loose) === 0
3
5
  module.exports = eq
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const compare = require('./compare')
2
4
  const gt = (a, b, loose) => compare(a, b, loose) > 0
3
5
  module.exports = gt
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const compare = require('./compare')
2
4
  const gte = (a, b, loose) => compare(a, b, loose) >= 0
3
5
  module.exports = gte
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const SemVer = require('../classes/semver')
2
4
 
3
5
  const inc = (version, release, options, identifier, identifierBase) => {
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const compare = require('./compare')
2
4
  const lt = (a, b, loose) => compare(a, b, loose) < 0
3
5
  module.exports = lt
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const compare = require('./compare')
2
4
  const lte = (a, b, loose) => compare(a, b, loose) <= 0
3
5
  module.exports = lte
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const SemVer = require('../classes/semver')
2
4
  const major = (a, loose) => new SemVer(a, loose).major
3
5
  module.exports = major
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const SemVer = require('../classes/semver')
2
4
  const minor = (a, loose) => new SemVer(a, loose).minor
3
5
  module.exports = minor
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const compare = require('./compare')
2
4
  const neq = (a, b, loose) => compare(a, b, loose) !== 0
3
5
  module.exports = neq
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const SemVer = require('../classes/semver')
2
4
  const parse = (version, options, throwErrors = false) => {
3
5
  if (version instanceof SemVer) {
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const SemVer = require('../classes/semver')
2
4
  const patch = (a, loose) => new SemVer(a, loose).patch
3
5
  module.exports = patch
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const parse = require('./parse')
2
4
  const prerelease = (version, options) => {
3
5
  const parsed = parse(version, options)
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const compare = require('./compare')
2
4
  const rcompare = (a, b, loose) => compare(b, a, loose)
3
5
  module.exports = rcompare
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const compareBuild = require('./compare-build')
2
4
  const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose))
3
5
  module.exports = rsort
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const Range = require('../classes/range')
2
4
  const satisfies = (version, range, options) => {
3
5
  try {
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const compareBuild = require('./compare-build')
2
4
  const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose))
3
5
  module.exports = sort
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const parse = require('./parse')
2
4
  const valid = (version, options) => {
3
5
  const v = parse(version, options)
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  // just pre-load all the stuff that index.js lazily exports
2
4
  const internalRe = require('./internal/re')
3
5
  const constants = require('./internal/constants')
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  // Note: this is the semver.org version of the spec that it implements
2
4
  // Not necessarily the package version of this code.
3
5
  const SEMVER_SPEC_VERSION = '2.0.0'
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const debug = (
2
4
  typeof process === 'object' &&
3
5
  process.env &&
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const numeric = /^[0-9]+$/
2
4
  const compareIdentifiers = (a, b) => {
3
5
  const anum = numeric.test(a)
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  class LRUCache {
2
4
  constructor () {
3
5
  this.max = 1000
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  // parse out just the options we care about
2
4
  const looseOption = Object.freeze({ loose: true })
3
5
  const emptyOpts = Object.freeze({ })
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const {
2
4
  MAX_SAFE_COMPONENT_LENGTH,
3
5
  MAX_SAFE_BUILD_LENGTH,
@@ -76,12 +78,14 @@ createToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` +
76
78
 
77
79
  // ## Pre-release Version Identifier
78
80
  // A numeric identifier, or a non-numeric identifier.
81
+ // Non-numberic identifiers include numberic identifiers but can be longer.
82
+ // Therefore non-numberic identifiers must go first.
79
83
 
80
- createToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER]
81
- }|${src[t.NONNUMERICIDENTIFIER]})`)
84
+ createToken('PRERELEASEIDENTIFIER', `(?:${src[t.NONNUMERICIDENTIFIER]
85
+ }|${src[t.NUMERICIDENTIFIER]})`)
82
86
 
83
- createToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NUMERICIDENTIFIERLOOSE]
84
- }|${src[t.NONNUMERICIDENTIFIER]})`)
87
+ createToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NONNUMERICIDENTIFIER]
88
+ }|${src[t.NUMERICIDENTIFIERLOOSE]})`)
85
89
 
86
90
  // ## Pre-release Version
87
91
  // Hyphen, followed by one or more dot-separated pre-release version
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "semver",
3
- "version": "7.7.1",
3
+ "version": "7.7.2",
4
4
  "description": "The semantic version parser used by npm.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "devDependencies": {
17
17
  "@npmcli/eslint-config": "^5.0.0",
18
- "@npmcli/template-oss": "4.23.4",
18
+ "@npmcli/template-oss": "4.24.3",
19
19
  "benchmark": "^2.1.4",
20
20
  "tap": "^16.0.0"
21
21
  },
@@ -52,7 +52,7 @@
52
52
  "author": "GitHub Inc.",
53
53
  "templateOSS": {
54
54
  "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
55
- "version": "4.23.4",
55
+ "version": "4.24.3",
56
56
  "engines": ">=10",
57
57
  "distPaths": [
58
58
  "classes/",
@@ -1,2 +1,4 @@
1
+ 'use strict'
2
+
1
3
  // XXX remove in v8 or beyond
2
4
  module.exports = require('./index.js')
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  // Determine if version is greater than all the versions possible in the range.
2
4
  const outside = require('./outside')
3
5
  const gtr = (version, range, options) => outside(version, range, '>', options)
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const Range = require('../classes/range')
2
4
  const intersects = (r1, r2, options) => {
3
5
  r1 = new Range(r1, options)
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const outside = require('./outside')
2
4
  // Determine if version is less than all the versions possible in the range
3
5
  const ltr = (version, range, options) => outside(version, range, '<', options)
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const SemVer = require('../classes/semver')
2
4
  const Range = require('../classes/range')
3
5
 
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const SemVer = require('../classes/semver')
2
4
  const Range = require('../classes/range')
3
5
  const minSatisfying = (versions, range, options) => {
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const SemVer = require('../classes/semver')
2
4
  const Range = require('../classes/range')
3
5
  const gt = require('../functions/gt')
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const SemVer = require('../classes/semver')
2
4
  const Comparator = require('../classes/comparator')
3
5
  const { ANY } = Comparator
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  // given a set of versions and a range, create a "simplified" range
2
4
  // that includes the same versions that the original range does
3
5
  // If the original range is shorter than the simplified one, return that.
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const Range = require('../classes/range.js')
2
4
  const Comparator = require('../classes/comparator.js')
3
5
  const { ANY } = Comparator
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const Range = require('../classes/range')
2
4
 
3
5
  // Mostly just for testing and legacy API reasons
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const Range = require('../classes/range')
2
4
  const validRange = (range, options) => {
3
5
  try {