projen 0.98.2 → 0.98.4
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 +139 -121
- package/lib/awscdk/auto-discover.js +5 -5
- package/lib/awscdk/awscdk-app-java.js +1 -1
- package/lib/awscdk/awscdk-app-py.js +1 -1
- package/lib/awscdk/awscdk-app-ts.js +1 -1
- package/lib/awscdk/awscdk-construct.js +2 -2
- package/lib/awscdk/awscdk-deps-java.js +1 -1
- package/lib/awscdk/awscdk-deps-js.js +1 -1
- package/lib/awscdk/awscdk-deps-py.js +1 -1
- package/lib/awscdk/awscdk-deps.js +1 -1
- package/lib/awscdk/cdk-config.js +4 -4
- package/lib/awscdk/cdk-tasks.js +1 -1
- package/lib/awscdk/integration-test.js +1 -1
- package/lib/awscdk/lambda-extension.js +1 -1
- package/lib/awscdk/lambda-function.js +2 -2
- package/lib/build/build-workflow.js +1 -1
- package/lib/cdk/auto-discover-base.js +2 -2
- package/lib/cdk/construct-lib.js +1 -1
- package/lib/cdk/integration-test-base.js +1 -1
- package/lib/cdk/jsii-docgen.js +1 -1
- package/lib/cdk/jsii-project.js +1 -1
- package/lib/cdk8s/auto-discover.js +2 -2
- package/lib/cdk8s/cdk8s-app-py.js +1 -1
- package/lib/cdk8s/cdk8s-app-ts.js +1 -1
- package/lib/cdk8s/cdk8s-construct.js +1 -1
- package/lib/cdk8s/cdk8s-deps-py.js +1 -1
- package/lib/cdk8s/cdk8s-deps.js +1 -1
- package/lib/cdk8s/integration-test.js +1 -1
- package/lib/cdktf/cdktf-construct.js +1 -1
- package/lib/circleci/circleci.js +1 -1
- package/lib/component.js +3 -3
- package/lib/dependencies.js +1 -1
- package/lib/dev-env.js +1 -1
- package/lib/docker-compose/docker-compose-service.js +1 -1
- package/lib/docker-compose/docker-compose.js +1 -1
- package/lib/file.js +3 -3
- package/lib/gitattributes.js +1 -1
- package/lib/github/actions-provider.js +1 -1
- package/lib/github/auto-approve.js +1 -1
- package/lib/github/auto-merge.js +1 -1
- package/lib/github/auto-queue.js +1 -1
- package/lib/github/dependabot.js +1 -1
- package/lib/github/github-credentials.js +1 -1
- package/lib/github/github-project.js +1 -1
- package/lib/github/github.js +1 -1
- package/lib/github/merge-queue.js +1 -1
- package/lib/github/mergify.js +1 -1
- package/lib/github/pr-template.js +1 -1
- package/lib/github/pull-request-backport.js +1 -1
- package/lib/github/pull-request-lint.js +1 -1
- package/lib/github/stale.js +1 -1
- package/lib/github/task-workflow-job.js +1 -1
- package/lib/github/task-workflow.js +1 -1
- package/lib/github/workflow-actions.js +1 -1
- package/lib/github/workflow-jobs.js +1 -1
- package/lib/github/workflow-steps.js +1 -1
- package/lib/github/workflows.js +1 -1
- package/lib/gitlab/configuration.js +1 -1
- package/lib/gitlab/gitlab-configuration.js +1 -1
- package/lib/gitlab/nested-configuration.js +1 -1
- package/lib/gitpod.js +1 -1
- package/lib/ignore-file.js +1 -1
- package/lib/ini.js +1 -1
- package/lib/java/java-project.js +1 -1
- package/lib/java/junit.js +1 -1
- package/lib/java/maven-compile.js +1 -1
- package/lib/java/maven-packaging.js +1 -1
- package/lib/java/maven-sample.js +1 -1
- package/lib/java/pom.js +2 -2
- package/lib/java/projenrc.js +1 -1
- package/lib/javascript/biome/biome.js +1 -1
- package/lib/javascript/bundler.js +1 -1
- package/lib/javascript/eslint.js +1 -1
- package/lib/javascript/jest.d.ts +3 -1
- package/lib/javascript/jest.js +20 -17
- package/lib/javascript/license-checker.js +1 -1
- package/lib/javascript/node-package.js +1 -1
- package/lib/javascript/node-project.js +1 -1
- package/lib/javascript/npm-config.js +1 -1
- package/lib/javascript/prettier.js +1 -1
- package/lib/javascript/projenrc.js +1 -1
- package/lib/javascript/typescript-config.js +2 -2
- package/lib/javascript/upgrade-dependencies.js +2 -2
- package/lib/javascript/yarnrc.js +1 -1
- package/lib/json-patch.js +1 -1
- package/lib/json.js +1 -1
- package/lib/license.js +1 -1
- package/lib/logger.js +3 -3
- package/lib/makefile.js +1 -1
- package/lib/object-file.js +1 -1
- package/lib/project-build.js +1 -1
- package/lib/project-tree.js +1 -1
- package/lib/project.js +3 -3
- package/lib/projects.js +1 -1
- package/lib/projenrc-json.js +2 -2
- package/lib/projenrc.js +1 -1
- package/lib/python/pip.js +1 -1
- package/lib/python/poetry.js +2 -2
- package/lib/python/projenrc.js +1 -1
- package/lib/python/pytest-sample.js +1 -1
- package/lib/python/pytest.js +1 -1
- package/lib/python/python-project.js +1 -1
- package/lib/python/python-sample.js +1 -1
- package/lib/python/requirements-file.js +1 -1
- package/lib/python/setuppy.js +1 -1
- package/lib/python/setuptools.js +1 -1
- package/lib/python/venv.js +1 -1
- package/lib/readme.js +1 -1
- package/lib/release/publisher.js +1 -1
- package/lib/release/release-trigger.js +1 -1
- package/lib/release/release.js +1 -1
- package/lib/renovatebot.js +1 -1
- package/lib/sample-file.js +2 -2
- package/lib/semver.js +1 -1
- package/lib/source-code.js +1 -1
- package/lib/task-runtime.js +1 -1
- package/lib/task.js +1 -1
- package/lib/tasks.js +1 -1
- package/lib/testing.js +1 -1
- package/lib/textfile.js +1 -1
- package/lib/toml.js +1 -1
- package/lib/typescript/projenrc-ts.js +1 -1
- package/lib/typescript/projenrc.js +1 -1
- package/lib/typescript/typescript-typedoc.js +1 -1
- package/lib/typescript/typescript.js +6 -6
- package/lib/util/constructs.d.ts +17 -4
- package/lib/util/constructs.js +30 -6
- package/lib/version.js +2 -2
- package/lib/vscode/devcontainer.js +1 -1
- package/lib/vscode/extensions.js +1 -1
- package/lib/vscode/launch-config.js +1 -1
- package/lib/vscode/settings.js +1 -1
- package/lib/vscode/vscode.js +1 -1
- package/lib/web/next.js +3 -3
- package/lib/web/postcss.js +1 -1
- package/lib/web/react.js +4 -4
- package/lib/web/tailwind.js +1 -1
- package/lib/xmlfile.js +1 -1
- package/lib/yaml.js +1 -1
- package/node_modules/resolve/.eslintrc +1 -1
- package/node_modules/resolve/.github/INCIDENT_RESPONSE_PROCESS.md +119 -0
- package/node_modules/resolve/.github/THREAT_MODEL.md +74 -0
- package/node_modules/resolve/SECURITY.md +9 -1
- package/node_modules/resolve/lib/async.js +8 -4
- package/node_modules/resolve/lib/core.json +1 -1
- package/node_modules/resolve/lib/node-modules-paths.js +5 -2
- package/node_modules/resolve/lib/sync.js +7 -3
- package/node_modules/resolve/package.json +5 -5
- package/package.json +4 -4
|
@@ -8,6 +8,10 @@ var isCore = require('is-core-module');
|
|
|
8
8
|
|
|
9
9
|
var realpathFS = process.platform !== 'win32' && fs.realpath && typeof fs.realpath.native === 'function' ? fs.realpath.native : fs.realpath;
|
|
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 [
|
|
@@ -124,10 +128,10 @@ module.exports = function resolve(x, options, callback) {
|
|
|
124
128
|
|
|
125
129
|
var res;
|
|
126
130
|
function init(basedir) {
|
|
127
|
-
if (
|
|
131
|
+
if (relativePathRegex.test(x)) {
|
|
128
132
|
res = path.resolve(basedir, x);
|
|
129
133
|
if (x === '.' || x === '..' || x.slice(-1) === '/') res += '/';
|
|
130
|
-
if (
|
|
134
|
+
if (x.slice(-1) === '/' && res === basedir) {
|
|
131
135
|
loadAsDirectory(res, opts.package, onfile);
|
|
132
136
|
} else loadAsFile(res, opts.package, onfile);
|
|
133
137
|
} else if (includeCoreModules && isCore(x)) {
|
|
@@ -215,10 +219,10 @@ module.exports = function resolve(x, options, callback) {
|
|
|
215
219
|
|
|
216
220
|
function loadpkg(dir, cb) {
|
|
217
221
|
if (dir === '' || dir === '/') return cb(null);
|
|
218
|
-
if (process.platform === 'win32' &&
|
|
222
|
+
if (process.platform === 'win32' && windowsDriveRegex.test(dir)) {
|
|
219
223
|
return cb(null);
|
|
220
224
|
}
|
|
221
|
-
if (
|
|
225
|
+
if (nodeModulesRegex.test(dir)) return cb(null);
|
|
222
226
|
|
|
223
227
|
maybeRealpath(realpath, dir, opts, function (unwrapErr, pkgdir) {
|
|
224
228
|
if (unwrapErr) return loadpkg(path.dirname(dir), cb);
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"node:repl": [">= 14.18 && < 15", ">= 16"],
|
|
92
92
|
"node:sea": [">= 20.12 && < 21", ">= 21.7"],
|
|
93
93
|
"smalloc": ">= 0.11.5 && < 3",
|
|
94
|
-
"node:sqlite": ">= 23.4",
|
|
94
|
+
"node:sqlite": [">= 22.13 && < 23", ">= 23.4"],
|
|
95
95
|
"_stream_duplex": ">= 0.9.4",
|
|
96
96
|
"node:_stream_duplex": [">= 14.18 && < 15", ">= 16"],
|
|
97
97
|
"_stream_transform": ">= 0.9.4",
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
var path = require('path');
|
|
2
2
|
var parse = path.parse || require('path-parse'); // eslint-disable-line global-require
|
|
3
3
|
|
|
4
|
+
var driveLetterRegex = /^([A-Za-z]:)/;
|
|
5
|
+
var uncPathRegex = /^\\\\/;
|
|
6
|
+
|
|
4
7
|
var getNodeModulesDirs = function getNodeModulesDirs(absoluteStart, modules) {
|
|
5
8
|
var prefix = '/';
|
|
6
|
-
if (
|
|
9
|
+
if (driveLetterRegex.test(absoluteStart)) {
|
|
7
10
|
prefix = '';
|
|
8
|
-
} else if (
|
|
11
|
+
} else if (uncPathRegex.test(absoluteStart)) {
|
|
9
12
|
prefix = '\\\\';
|
|
10
13
|
}
|
|
11
14
|
|
|
@@ -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 (
|
|
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' &&
|
|
144
|
+
if (process.platform === 'win32' && windowsDriveRegex.test(dir)) {
|
|
141
145
|
return;
|
|
142
146
|
}
|
|
143
|
-
if (
|
|
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.
|
|
4
|
+
"version": "1.22.11",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "
|
|
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.
|
|
34
|
-
"array.prototype.map": "^1.0.
|
|
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.
|
|
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
|
},
|
package/package.json
CHANGED
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@biomejs/biome": "^2",
|
|
53
|
-
"@jsii/check-node": "^1.
|
|
53
|
+
"@jsii/check-node": "^1.117.0",
|
|
54
54
|
"@types/conventional-changelog-config-spec": "^2.1.5",
|
|
55
55
|
"@types/ini": "^1.3.34",
|
|
56
56
|
"@types/jest": "^27",
|
|
@@ -72,9 +72,9 @@
|
|
|
72
72
|
"jest": "^29",
|
|
73
73
|
"jest-junit": "^16",
|
|
74
74
|
"jsii": "5.9.x",
|
|
75
|
-
"jsii-diff": "^1.
|
|
75
|
+
"jsii-diff": "^1.117.0",
|
|
76
76
|
"jsii-docgen": "^10.5.0",
|
|
77
|
-
"jsii-pacmak": "^1.
|
|
77
|
+
"jsii-pacmak": "^1.117.0",
|
|
78
78
|
"jsii-rosetta": "5.9.x",
|
|
79
79
|
"json2jsii": "^0.5.12",
|
|
80
80
|
"license-checker": "^25.0.1",
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"publishConfig": {
|
|
137
137
|
"access": "public"
|
|
138
138
|
},
|
|
139
|
-
"version": "0.98.
|
|
139
|
+
"version": "0.98.4",
|
|
140
140
|
"jest": {
|
|
141
141
|
"coverageProvider": "v8",
|
|
142
142
|
"coverageReporters": [
|