projen-pipelines 0.3.0 → 0.3.2

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 (71) hide show
  1. package/.jsii +140 -82
  2. package/API.md +54 -0
  3. package/lib/assign-approver/base.js +1 -1
  4. package/lib/assign-approver/github.js +1 -1
  5. package/lib/awscdk/base.d.ts +7 -0
  6. package/lib/awscdk/base.js +8 -2
  7. package/lib/awscdk/bash.js +1 -1
  8. package/lib/awscdk/github.js +3 -2
  9. package/lib/awscdk/gitlab.js +1 -1
  10. package/lib/drift/base.d.ts +4 -0
  11. package/lib/drift/base.js +2 -2
  12. package/lib/drift/bash.js +1 -1
  13. package/lib/drift/github.js +1 -1
  14. package/lib/drift/gitlab.js +1 -1
  15. package/lib/drift/step.js +3 -2
  16. package/lib/steps/amplify-deploy.step.js +1 -1
  17. package/lib/steps/artifact-steps.js +2 -2
  18. package/lib/steps/aws-assume-role.step.d.ts +4 -0
  19. package/lib/steps/aws-assume-role.step.js +37 -13
  20. package/lib/steps/registries.js +3 -3
  21. package/lib/steps/step.js +4 -4
  22. package/lib/versioning/computation.js +3 -3
  23. package/lib/versioning/config.js +2 -2
  24. package/lib/versioning/outputs.js +5 -5
  25. package/lib/versioning/setup.js +1 -1
  26. package/lib/versioning/strategy.js +1 -1
  27. package/lib/versioning/version-info.js +2 -2
  28. package/node_modules/@babel/code-frame/lib/index.js +37 -36
  29. package/node_modules/@babel/code-frame/lib/index.js.map +1 -1
  30. package/node_modules/@babel/code-frame/package.json +4 -3
  31. package/node_modules/@babel/helper-validator-identifier/lib/identifier.js +4 -4
  32. package/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +1 -1
  33. package/node_modules/@babel/helper-validator-identifier/package.json +2 -2
  34. package/node_modules/dotgitignore/node_modules/brace-expansion/index.js +1 -1
  35. package/node_modules/dotgitignore/node_modules/brace-expansion/package.json +4 -1
  36. package/node_modules/error-ex/README.md +1 -1
  37. package/node_modules/error-ex/package.json +1 -1
  38. package/node_modules/lodash/README.md +2 -2
  39. package/node_modules/lodash/_baseUnset.js +47 -2
  40. package/node_modules/lodash/core.js +1 -1
  41. package/node_modules/lodash/core.min.js +1 -1
  42. package/node_modules/lodash/lodash.js +43 -4
  43. package/node_modules/lodash/lodash.min.js +57 -57
  44. package/node_modules/lodash/package.json +1 -1
  45. package/node_modules/resolve/.eslintrc +1 -1
  46. package/node_modules/resolve/.github/INCIDENT_RESPONSE_PROCESS.md +119 -0
  47. package/node_modules/resolve/.github/THREAT_MODEL.md +74 -0
  48. package/node_modules/resolve/SECURITY.md +9 -1
  49. package/node_modules/resolve/lib/async.js +8 -4
  50. package/node_modules/resolve/lib/core.json +1 -1
  51. package/node_modules/resolve/lib/node-modules-paths.js +5 -2
  52. package/node_modules/resolve/lib/sync.js +7 -3
  53. package/node_modules/resolve/package.json +5 -5
  54. package/node_modules/semver/classes/range.js +1 -0
  55. package/node_modules/semver/classes/semver.js +19 -5
  56. package/node_modules/semver/internal/identifiers.js +4 -0
  57. package/node_modules/semver/package.json +3 -3
  58. package/node_modules/spdx-license-ids/index.json +19 -0
  59. package/node_modules/spdx-license-ids/package.json +1 -1
  60. package/package.json +11 -11
  61. package/node_modules/lodash/flake.lock +0 -40
  62. package/node_modules/lodash/flake.nix +0 -20
  63. package/node_modules/lodash/release.md +0 -48
  64. /package/node_modules/{read-pkg/node_modules/path-type → path-type}/index.js +0 -0
  65. /package/node_modules/{read-pkg/node_modules/path-type → path-type}/license +0 -0
  66. /package/node_modules/{read-pkg → path-type}/node_modules/pify/index.js +0 -0
  67. /package/node_modules/{read-pkg → path-type}/node_modules/pify/license +0 -0
  68. /package/node_modules/{read-pkg → path-type}/node_modules/pify/package.json +0 -0
  69. /package/node_modules/{read-pkg → path-type}/node_modules/pify/readme.md +0 -0
  70. /package/node_modules/{read-pkg/node_modules/path-type → path-type}/package.json +0 -0
  71. /package/node_modules/{read-pkg/node_modules/path-type → path-type}/readme.md +0 -0
@@ -8,6 +8,10 @@ var normalizeOptions = require('./normalize-options');
8
8
 
9
9
  var realpathFS = process.platform !== 'win32' && fs.realpathSync && typeof fs.realpathSync.native === 'function' ? fs.realpathSync.native : fs.realpathSync;
10
10
 
11
+ var relativePathRegex = /^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/;
12
+ var windowsDriveRegex = /^\w:[/\\]*$/;
13
+ var nodeModulesRegex = /[/\\]node_modules[/\\]*$/;
14
+
11
15
  var homedir = getHomedir();
12
16
  var defaultPaths = function () {
13
17
  return [
@@ -96,7 +100,7 @@ module.exports = function resolveSync(x, options) {
96
100
  // ensure that `basedir` is an absolute path at this point, resolving against the process' current working directory
97
101
  var absoluteStart = maybeRealpathSync(realpathSync, path.resolve(basedir), opts);
98
102
 
99
- if ((/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/).test(x)) {
103
+ if (relativePathRegex.test(x)) {
100
104
  var res = path.resolve(absoluteStart, x);
101
105
  if (x === '.' || x === '..' || x.slice(-1) === '/') res += '/';
102
106
  var m = loadAsFileSync(res) || loadAsDirectorySync(res);
@@ -137,10 +141,10 @@ module.exports = function resolveSync(x, options) {
137
141
 
138
142
  function loadpkg(dir) {
139
143
  if (dir === '' || dir === '/') return;
140
- if (process.platform === 'win32' && (/^\w:[/\\]*$/).test(dir)) {
144
+ if (process.platform === 'win32' && windowsDriveRegex.test(dir)) {
141
145
  return;
142
146
  }
143
- if ((/[/\\]node_modules[/\\]*$/).test(dir)) return;
147
+ if (nodeModulesRegex.test(dir)) return;
144
148
 
145
149
  var pkgfile = path.join(maybeRealpathSync(realpathSync, dir, opts), 'package.json');
146
150
 
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "resolve",
3
3
  "description": "resolve like require.resolve() on behalf of files asynchronously and synchronously",
4
- "version": "1.22.10",
4
+ "version": "1.22.11",
5
5
  "repository": {
6
6
  "type": "git",
7
- "url": "git://github.com/browserify/resolve.git"
7
+ "url": "ssh://github.com/browserify/resolve.git"
8
8
  },
9
9
  "bin": {
10
10
  "resolve": "./bin/resolve"
@@ -30,8 +30,8 @@
30
30
  "test:multirepo": "cd ./test/resolver/multirepo && npm install && npm test"
31
31
  },
32
32
  "devDependencies": {
33
- "@ljharb/eslint-config": "^21.1.1",
34
- "array.prototype.map": "^1.0.7",
33
+ "@ljharb/eslint-config": "^21.2.0",
34
+ "array.prototype.map": "^1.0.8",
35
35
  "copy-dir": "^1.3.0",
36
36
  "eclint": "^2.8.1",
37
37
  "eslint": "=8.8.0",
@@ -57,7 +57,7 @@
57
57
  "url": "https://github.com/sponsors/ljharb"
58
58
  },
59
59
  "dependencies": {
60
- "is-core-module": "^2.16.0",
60
+ "is-core-module": "^2.16.1",
61
61
  "path-parse": "^1.0.7",
62
62
  "supports-preserve-symlinks-flag": "^1.0.0"
63
63
  },
@@ -255,6 +255,7 @@ const isSatisfiable = (comparators, options) => {
255
255
  // already replaced the hyphen ranges
256
256
  // turn into a set of JUST comparators.
257
257
  const parseComparator = (comp, options) => {
258
+ comp = comp.replace(re[t.BUILD], '')
258
259
  debug('comp', comp, options)
259
260
  comp = replaceCarets(comp, options)
260
261
  debug('caret', comp)
@@ -111,11 +111,25 @@ class SemVer {
111
111
  other = new SemVer(other, this.options)
112
112
  }
113
113
 
114
- return (
115
- compareIdentifiers(this.major, other.major) ||
116
- compareIdentifiers(this.minor, other.minor) ||
117
- compareIdentifiers(this.patch, other.patch)
118
- )
114
+ if (this.major < other.major) {
115
+ return -1
116
+ }
117
+ if (this.major > other.major) {
118
+ return 1
119
+ }
120
+ if (this.minor < other.minor) {
121
+ return -1
122
+ }
123
+ if (this.minor > other.minor) {
124
+ return 1
125
+ }
126
+ if (this.patch < other.patch) {
127
+ return -1
128
+ }
129
+ if (this.patch > other.patch) {
130
+ return 1
131
+ }
132
+ return 0
119
133
  }
120
134
 
121
135
  comparePre (other) {
@@ -2,6 +2,10 @@
2
2
 
3
3
  const numeric = /^[0-9]+$/
4
4
  const compareIdentifiers = (a, b) => {
5
+ if (typeof a === 'number' && typeof b === 'number') {
6
+ return a === b ? 0 : a < b ? -1 : 1
7
+ }
8
+
5
9
  const anum = numeric.test(a)
6
10
  const bnum = numeric.test(b)
7
11
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "semver",
3
- "version": "7.7.2",
3
+ "version": "7.7.3",
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.24.3",
18
+ "@npmcli/template-oss": "4.25.1",
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.24.3",
55
+ "version": "4.25.1",
56
56
  "engines": ">=10",
57
57
  "distPaths": [
58
58
  "classes/",
@@ -44,12 +44,15 @@
44
44
  "Artistic-1.0-Perl",
45
45
  "Artistic-1.0-cl8",
46
46
  "Artistic-2.0",
47
+ "Artistic-dist",
48
+ "Aspell-RU",
47
49
  "BSD-1-Clause",
48
50
  "BSD-2-Clause",
49
51
  "BSD-2-Clause-Darwin",
50
52
  "BSD-2-Clause-Patent",
51
53
  "BSD-2-Clause-Views",
52
54
  "BSD-2-Clause-first-lines",
55
+ "BSD-2-Clause-pkgconf-disclaimer",
53
56
  "BSD-3-Clause",
54
57
  "BSD-3-Clause-Attribution",
55
58
  "BSD-3-Clause-Clear",
@@ -190,6 +193,7 @@
190
193
  "Cornell-Lossless-JPEG",
191
194
  "Cronyx",
192
195
  "Crossword",
196
+ "CryptoSwift",
193
197
  "CrystalStacker",
194
198
  "Cube",
195
199
  "D-FSL-1.0",
@@ -200,6 +204,7 @@
200
204
  "DRL-1.0",
201
205
  "DRL-1.1",
202
206
  "DSDP",
207
+ "DocBook-DTD",
203
208
  "DocBook-Schema",
204
209
  "DocBook-Stylesheet",
205
210
  "DocBook-XML",
@@ -225,7 +230,10 @@
225
230
  "FSFAP-no-warranty-disclaimer",
226
231
  "FSFUL",
227
232
  "FSFULLR",
233
+ "FSFULLRSD",
228
234
  "FSFULLRWD",
235
+ "FSL-1.1-ALv2",
236
+ "FSL-1.1-MIT",
229
237
  "FTL",
230
238
  "Fair",
231
239
  "Ferguson-Twofish",
@@ -261,11 +269,13 @@
261
269
  "GPL-2.0-or-later",
262
270
  "GPL-3.0-only",
263
271
  "GPL-3.0-or-later",
272
+ "Game-Programming-Gems",
264
273
  "Giftware",
265
274
  "Glide",
266
275
  "Glulxe",
267
276
  "Graphics-Gems",
268
277
  "Gutmann",
278
+ "HDF5",
269
279
  "HIDAPI",
270
280
  "HP-1986",
271
281
  "HP-1989",
@@ -411,6 +421,7 @@
411
421
  "NPL-1.1",
412
422
  "NPOSL-3.0",
413
423
  "NRL",
424
+ "NTIA-PD",
414
425
  "NTP",
415
426
  "NTP-0",
416
427
  "Naumen",
@@ -513,11 +524,13 @@
513
524
  "SMLNJ",
514
525
  "SMPPL",
515
526
  "SNIA",
527
+ "SOFA",
516
528
  "SPL-1.0",
517
529
  "SSH-OpenSSH",
518
530
  "SSH-short",
519
531
  "SSLeay-standalone",
520
532
  "SSPL-1.0",
533
+ "SUL-1.0",
521
534
  "SWL",
522
535
  "Saxpath",
523
536
  "SchemeReport",
@@ -563,6 +576,8 @@
563
576
  "Unicode-TOU",
564
577
  "UnixCrypt",
565
578
  "Unlicense",
579
+ "Unlicense-libtelnet",
580
+ "Unlicense-libwhirlpool",
566
581
  "VOSTROM",
567
582
  "VSL-1.0",
568
583
  "Vim",
@@ -616,6 +631,8 @@
616
631
  "gtkbook",
617
632
  "hdparm",
618
633
  "iMatix",
634
+ "jove",
635
+ "libpng-1.6.35",
619
636
  "libpng-2.0",
620
637
  "libselinux-1.0",
621
638
  "libtiff",
@@ -623,10 +640,12 @@
623
640
  "lsof",
624
641
  "magaz",
625
642
  "mailprio",
643
+ "man2html",
626
644
  "metamail",
627
645
  "mpi-permissive",
628
646
  "mpich2",
629
647
  "mplus",
648
+ "ngrep",
630
649
  "pkgconf",
631
650
  "pnmstitch",
632
651
  "psfrag",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spdx-license-ids",
3
- "version": "3.0.21",
3
+ "version": "3.0.22",
4
4
  "description": "A list of SPDX license identifiers",
5
5
  "repository": "jslicense/spdx-license-ids",
6
6
  "author": "Shinnosuke Watanabe (https://github.com/shinnn)",
package/package.json CHANGED
@@ -50,23 +50,23 @@
50
50
  "constructs": "10.4.2",
51
51
  "eslint": "^9",
52
52
  "eslint-import-resolver-typescript": "^3.10.1",
53
- "eslint-plugin-import": "^2.31.0",
54
- "fs-extra": "^11.3.0",
53
+ "eslint-plugin-import": "^2.32.0",
54
+ "fs-extra": "^11.3.3",
55
55
  "jest": "^29.7.0",
56
56
  "jest-junit": "^16",
57
- "jsii": "~5.8",
58
- "jsii-diff": "^1.112.0",
57
+ "jsii": "~5.9",
58
+ "jsii-diff": "^1.126.0",
59
59
  "jsii-docgen": "^10.5.0",
60
- "jsii-pacmak": "^1.112.0",
61
- "jsii-rosetta": "~5.8",
62
- "projen": "0.96.3",
63
- "ts-jest": "^29.3.4",
60
+ "jsii-pacmak": "^1.126.0",
61
+ "jsii-rosetta": "~5.9",
62
+ "projen": "0.99.9",
63
+ "ts-jest": "^29.4.6",
64
64
  "ts-node": "^10.9.2",
65
- "typescript": "^5.8.3"
65
+ "typescript": "^5.9.3"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "constructs": "^10.4.2",
69
- "projen": ">=0.96.3 <1.0.0"
69
+ "projen": ">=0.99.9 <1.0.0"
70
70
  },
71
71
  "dependencies": {
72
72
  "standard-version": "^9.5.0"
@@ -84,7 +84,7 @@
84
84
  "publishConfig": {
85
85
  "access": "public"
86
86
  },
87
- "version": "0.3.0",
87
+ "version": "0.3.2",
88
88
  "jest": {
89
89
  "coverageProvider": "v8",
90
90
  "testMatch": [
@@ -1,40 +0,0 @@
1
- {
2
- "nodes": {
3
- "nixpkgs": {
4
- "locked": {
5
- "lastModified": 1613582597,
6
- "narHash": "sha256-6LvipIvFuhyorHpUqK3HjySC5Y6gshXHFBhU9EJ4DoM=",
7
- "path": "/nix/store/srvplqq673sqd9vyfhyc5w1p88y1gfm4-source",
8
- "rev": "6b1057b452c55bb3b463f0d7055bc4ec3fd1f381",
9
- "type": "path"
10
- },
11
- "original": {
12
- "id": "nixpkgs",
13
- "type": "indirect"
14
- }
15
- },
16
- "root": {
17
- "inputs": {
18
- "nixpkgs": "nixpkgs",
19
- "utils": "utils"
20
- }
21
- },
22
- "utils": {
23
- "locked": {
24
- "lastModified": 1610051610,
25
- "narHash": "sha256-U9rPz/usA1/Aohhk7Cmc2gBrEEKRzcW4nwPWMPwja4Y=",
26
- "owner": "numtide",
27
- "repo": "flake-utils",
28
- "rev": "3982c9903e93927c2164caa727cd3f6a0e6d14cc",
29
- "type": "github"
30
- },
31
- "original": {
32
- "owner": "numtide",
33
- "repo": "flake-utils",
34
- "type": "github"
35
- }
36
- }
37
- },
38
- "root": "root",
39
- "version": 7
40
- }
@@ -1,20 +0,0 @@
1
- {
2
- inputs = {
3
- utils.url = "github:numtide/flake-utils";
4
- };
5
-
6
- outputs = { self, nixpkgs, utils }:
7
- utils.lib.eachDefaultSystem (system:
8
- let
9
- pkgs = nixpkgs.legacyPackages."${system}";
10
- in rec {
11
- devShell = pkgs.mkShell {
12
- nativeBuildInputs = with pkgs; [
13
- yarn
14
- nodejs-14_x
15
- nodePackages.typescript-language-server
16
- nodePackages.eslint
17
- ];
18
- };
19
- });
20
- }
@@ -1,48 +0,0 @@
1
- npm run build
2
- npm run doc
3
- npm i
4
- git clone --depth=10 --branch=master git@github.com:lodash-archive/lodash-cli.git ./node_modules/lodash-cli
5
- mkdir -p ./node_modules/lodash-cli/node_modules/lodash; cd $_; cp ../../../../lodash.js ./lodash.js; cp ../../../../package.json ./package.json
6
- cd ../../; npm i --production; cd ../../
7
- node ./node_modules/lodash-cli/bin/lodash core exports=node -o ./npm-package/core.js
8
- node ./node_modules/lodash-cli/bin/lodash modularize exports=node -o ./npm-package
9
- cp lodash.js npm-package/lodash.js
10
- cp dist/lodash.min.js npm-package/lodash.min.js
11
- cp LICENSE npm-package/LICENSE
12
-
13
- 1. Clone two repos
14
- Bump lodash version in package.json, readme, package=locak, lodash.js
15
- npm run build
16
- npm run doc
17
-
18
- 2. update mappings in ldoash-cli
19
- 3. copy ldoash into lodash-cli node modules and package json.
20
-
21
- node ./node_modules/lodash-cli/bin/lodash core exports=node -o ./npm-package/core.js
22
- node ./node_modules/lodash-cli/bin/lodash modularize exports=node -o ./npm-package
23
-
24
-
25
-
26
- 1. Clone the two repositories:
27
- ```sh
28
- $ git clone https://github.com/lodash/lodash.git
29
- $ git clone https://github.com/bnjmnt4n/lodash-cli.git
30
- ```
31
- 2. Update lodash-cli to accomdate changes in lodash source. This can typically involve adding new function dependency mappings in lib/mappings.js. Sometimes, additional changes might be needed for more involved functions.
32
- 3. In the lodash repository, update references to the lodash version in README.md, lodash.js, package.jsona nd package-lock.json
33
- 4. Run:
34
- ```sh
35
- npm run build
36
- npm run doc
37
- node ../lodash-cli/bin/lodash core -o ./dist/lodash.core.js
38
- ```
39
- 5. Add a commit and tag the release
40
- mkdir ../lodash-temp
41
- cp lodash.js dist/lodash.min.js dist/lodash.core.js dist/lodash.core.min.js ../lodash-temp/
42
- node ../lodash-cli/bin/lodash modularize exports=node -o .
43
- cp ../lodash-temp/lodash.core.js core.js
44
- cp ../lodash-temp/lodash.core.min.js core.min.js
45
- cp ../lodash-temp/lodash.js lodash.js
46
- cp ../lodash-temp/lodash.min.js lodash.min.js
47
-
48
- ❯ node ../lodash-cli/bin/lodash modularize exports=es -o .