projen 0.67.39 → 0.67.41
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 +2 -2
- 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 +1 -1
- 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 +3 -3
- 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 +1 -1
- 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 +1 -1
- package/lib/gitattributes.js +1 -1
- package/lib/github/auto-approve.js +1 -1
- package/lib/github/auto-merge.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/mergify.js +1 -1
- package/lib/github/pr-template.js +1 -1
- package/lib/github/pull-request-lint.js +1 -1
- package/lib/github/stale.js +1 -1
- package/lib/github/task-workflow.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 +1 -1
- package/lib/java/projenrc.js +1 -1
- package/lib/javascript/bundler.js +1 -1
- package/lib/javascript/eslint.js +1 -1
- package/lib/javascript/jest.js +1 -1
- package/lib/javascript/node-package.js +1 -1
- package/lib/javascript/node-project.js +3 -3
- 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 +1 -1
- package/lib/javascript/upgrade-dependencies.js +2 -2
- package/lib/json-patch.js +1 -1
- package/lib/json.js +1 -1
- package/lib/license.js +1 -1
- package/lib/logger.js +1 -1
- package/lib/makefile.js +1 -1
- package/lib/object-file.js +1 -1
- package/lib/project-build.js +1 -1
- package/lib/project.js +1 -1
- package/lib/projects.js +1 -1
- package/lib/projenrc-json.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/run-task.js +1882 -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.js +1 -1
- package/lib/typescript/typescript-typedoc.js +1 -1
- package/lib/typescript/typescript.js +3 -3
- package/lib/version.js +1 -1
- 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/{glob/node_modules/brace-expansion → brace-expansion}/.github/FUNDING.yml +0 -0
- package/node_modules/brace-expansion/README.md +6 -0
- package/node_modules/brace-expansion/index.js +86 -84
- package/node_modules/brace-expansion/package.json +3 -4
- package/node_modules/{glob → minimatch}/node_modules/brace-expansion/LICENSE +0 -0
- package/node_modules/{glob → minimatch}/node_modules/brace-expansion/README.md +0 -6
- package/node_modules/{glob → minimatch}/node_modules/brace-expansion/index.js +84 -86
- package/node_modules/{glob → minimatch}/node_modules/brace-expansion/package.json +4 -3
- package/node_modules/xmlbuilder2/node_modules/@types/node/README.md +1 -1
- package/node_modules/xmlbuilder2/node_modules/@types/node/async_hooks.d.ts +12 -0
- package/node_modules/xmlbuilder2/node_modules/@types/node/index.d.ts +1 -1
- package/node_modules/xmlbuilder2/node_modules/@types/node/net.d.ts +8 -0
- package/node_modules/xmlbuilder2/node_modules/@types/node/package.json +2 -2
- package/node_modules/xmlbuilder2/node_modules/@types/node/test.d.ts +9 -0
- package/node_modules/xmlbuilder2/node_modules/@types/node/tls.d.ts +86 -7
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/async_hooks.d.ts +12 -0
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/net.d.ts +9 -1
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/tls.d.ts +86 -7
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/util.d.ts +85 -0
- package/node_modules/xmlbuilder2/node_modules/@types/node/util.d.ts +85 -0
- package/package.json +1 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
var concatMap = require('concat-map');
|
|
2
1
|
var balanced = require('balanced-match');
|
|
3
2
|
|
|
4
3
|
module.exports = expandTop;
|
|
@@ -79,10 +78,6 @@ function expandTop(str) {
|
|
|
79
78
|
return expand(escapeBraces(str), true).map(unescapeBraces);
|
|
80
79
|
}
|
|
81
80
|
|
|
82
|
-
function identity(e) {
|
|
83
|
-
return e;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
81
|
function embrace(str) {
|
|
87
82
|
return '{' + str + '}';
|
|
88
83
|
}
|
|
@@ -101,42 +96,7 @@ function expand(str, isTop) {
|
|
|
101
96
|
var expansions = [];
|
|
102
97
|
|
|
103
98
|
var m = balanced('{', '}', str);
|
|
104
|
-
if (!m
|
|
105
|
-
|
|
106
|
-
var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
|
107
|
-
var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
|
108
|
-
var isSequence = isNumericSequence || isAlphaSequence;
|
|
109
|
-
var isOptions = m.body.indexOf(',') >= 0;
|
|
110
|
-
if (!isSequence && !isOptions) {
|
|
111
|
-
// {a},b}
|
|
112
|
-
if (m.post.match(/,.*\}/)) {
|
|
113
|
-
str = m.pre + '{' + m.body + escClose + m.post;
|
|
114
|
-
return expand(str);
|
|
115
|
-
}
|
|
116
|
-
return [str];
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
var n;
|
|
120
|
-
if (isSequence) {
|
|
121
|
-
n = m.body.split(/\.\./);
|
|
122
|
-
} else {
|
|
123
|
-
n = parseCommaParts(m.body);
|
|
124
|
-
if (n.length === 1) {
|
|
125
|
-
// x{{a,b}}y ==> x{a}y x{b}y
|
|
126
|
-
n = expand(n[0], false).map(embrace);
|
|
127
|
-
if (n.length === 1) {
|
|
128
|
-
var post = m.post.length
|
|
129
|
-
? expand(m.post, false)
|
|
130
|
-
: [''];
|
|
131
|
-
return post.map(function(p) {
|
|
132
|
-
return m.pre + n[0] + p;
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
// at this point, n is the parts, and we know it's not a comma set
|
|
139
|
-
// with a single entry.
|
|
99
|
+
if (!m) return [str];
|
|
140
100
|
|
|
141
101
|
// no need to expand pre, since it is guaranteed to be free of brace-sets
|
|
142
102
|
var pre = m.pre;
|
|
@@ -144,55 +104,97 @@ function expand(str, isTop) {
|
|
|
144
104
|
? expand(m.post, false)
|
|
145
105
|
: [''];
|
|
146
106
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
var
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
var
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
107
|
+
if (/\$$/.test(m.pre)) {
|
|
108
|
+
for (var k = 0; k < post.length; k++) {
|
|
109
|
+
var expansion = pre+ '{' + m.body + '}' + post[k];
|
|
110
|
+
expansions.push(expansion);
|
|
111
|
+
}
|
|
112
|
+
} else {
|
|
113
|
+
var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
|
114
|
+
var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
|
115
|
+
var isSequence = isNumericSequence || isAlphaSequence;
|
|
116
|
+
var isOptions = m.body.indexOf(',') >= 0;
|
|
117
|
+
if (!isSequence && !isOptions) {
|
|
118
|
+
// {a},b}
|
|
119
|
+
if (m.post.match(/,.*\}/)) {
|
|
120
|
+
str = m.pre + '{' + m.body + escClose + m.post;
|
|
121
|
+
return expand(str);
|
|
122
|
+
}
|
|
123
|
+
return [str];
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
var n;
|
|
127
|
+
if (isSequence) {
|
|
128
|
+
n = m.body.split(/\.\./);
|
|
129
|
+
} else {
|
|
130
|
+
n = parseCommaParts(m.body);
|
|
131
|
+
if (n.length === 1) {
|
|
132
|
+
// x{{a,b}}y ==> x{a}y x{b}y
|
|
133
|
+
n = expand(n[0], false).map(embrace);
|
|
134
|
+
if (n.length === 1) {
|
|
135
|
+
return post.map(function(p) {
|
|
136
|
+
return m.pre + n[0] + p;
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
}
|
|
161
140
|
}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
141
|
+
|
|
142
|
+
// at this point, n is the parts, and we know it's not a comma set
|
|
143
|
+
// with a single entry.
|
|
144
|
+
var N;
|
|
145
|
+
|
|
146
|
+
if (isSequence) {
|
|
147
|
+
var x = numeric(n[0]);
|
|
148
|
+
var y = numeric(n[1]);
|
|
149
|
+
var width = Math.max(n[0].length, n[1].length)
|
|
150
|
+
var incr = n.length == 3
|
|
151
|
+
? Math.abs(numeric(n[2]))
|
|
152
|
+
: 1;
|
|
153
|
+
var test = lte;
|
|
154
|
+
var reverse = y < x;
|
|
155
|
+
if (reverse) {
|
|
156
|
+
incr *= -1;
|
|
157
|
+
test = gte;
|
|
158
|
+
}
|
|
159
|
+
var pad = n.some(isPadded);
|
|
160
|
+
|
|
161
|
+
N = [];
|
|
162
|
+
|
|
163
|
+
for (var i = x; test(i, y); i += incr) {
|
|
164
|
+
var c;
|
|
165
|
+
if (isAlphaSequence) {
|
|
166
|
+
c = String.fromCharCode(i);
|
|
167
|
+
if (c === '\\')
|
|
168
|
+
c = '';
|
|
169
|
+
} else {
|
|
170
|
+
c = String(i);
|
|
171
|
+
if (pad) {
|
|
172
|
+
var need = width - c.length;
|
|
173
|
+
if (need > 0) {
|
|
174
|
+
var z = new Array(need + 1).join('0');
|
|
175
|
+
if (i < 0)
|
|
176
|
+
c = '-' + z + c.slice(1);
|
|
177
|
+
else
|
|
178
|
+
c = z + c;
|
|
179
|
+
}
|
|
182
180
|
}
|
|
183
181
|
}
|
|
182
|
+
N.push(c);
|
|
183
|
+
}
|
|
184
|
+
} else {
|
|
185
|
+
N = [];
|
|
186
|
+
|
|
187
|
+
for (var j = 0; j < n.length; j++) {
|
|
188
|
+
N.push.apply(N, expand(n[j], false));
|
|
184
189
|
}
|
|
185
|
-
N.push(c);
|
|
186
190
|
}
|
|
187
|
-
} else {
|
|
188
|
-
N = concatMap(n, function(el) { return expand(el, false) });
|
|
189
|
-
}
|
|
190
191
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
192
|
+
for (var j = 0; j < N.length; j++) {
|
|
193
|
+
for (var k = 0; k < post.length; k++) {
|
|
194
|
+
var expansion = pre + N[j] + post[k];
|
|
195
|
+
if (!isTop || isSequence || expansion)
|
|
196
|
+
expansions.push(expansion);
|
|
197
|
+
}
|
|
196
198
|
}
|
|
197
199
|
}
|
|
198
200
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brace-expansion",
|
|
3
3
|
"description": "Brace expansion as known from sh/bash",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.1",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git://github.com/juliangruber/brace-expansion.git"
|
|
@@ -14,11 +14,10 @@
|
|
|
14
14
|
"bench": "matcha test/perf/bench.js"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"balanced-match": "^1.0.0"
|
|
18
|
-
"concat-map": "0.0.1"
|
|
17
|
+
"balanced-match": "^1.0.0"
|
|
19
18
|
},
|
|
20
19
|
"devDependencies": {
|
|
21
|
-
"matcha": "^
|
|
20
|
+
"@c4312/matcha": "^1.3.1",
|
|
22
21
|
"tape": "^4.6.0"
|
|
23
22
|
},
|
|
24
23
|
"keywords": [],
|
|
File without changes
|
|
@@ -104,12 +104,6 @@ This module is proudly supported by my [Sponsors](https://github.com/juliangrube
|
|
|
104
104
|
|
|
105
105
|
Do you want to support modules like this to improve their quality, stability and weigh in on new features? Then please consider donating to my [Patreon](https://www.patreon.com/juliangruber). Not sure how much of my modules you're using? Try [feross/thanks](https://github.com/feross/thanks)!
|
|
106
106
|
|
|
107
|
-
## Security contact information
|
|
108
|
-
|
|
109
|
-
To report a security vulnerability, please use the
|
|
110
|
-
[Tidelift security contact](https://tidelift.com/security).
|
|
111
|
-
Tidelift will coordinate the fix and disclosure.
|
|
112
|
-
|
|
113
107
|
## License
|
|
114
108
|
|
|
115
109
|
(MIT)
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
var concatMap = require('concat-map');
|
|
1
2
|
var balanced = require('balanced-match');
|
|
2
3
|
|
|
3
4
|
module.exports = expandTop;
|
|
@@ -78,6 +79,10 @@ function expandTop(str) {
|
|
|
78
79
|
return expand(escapeBraces(str), true).map(unescapeBraces);
|
|
79
80
|
}
|
|
80
81
|
|
|
82
|
+
function identity(e) {
|
|
83
|
+
return e;
|
|
84
|
+
}
|
|
85
|
+
|
|
81
86
|
function embrace(str) {
|
|
82
87
|
return '{' + str + '}';
|
|
83
88
|
}
|
|
@@ -96,7 +101,42 @@ function expand(str, isTop) {
|
|
|
96
101
|
var expansions = [];
|
|
97
102
|
|
|
98
103
|
var m = balanced('{', '}', str);
|
|
99
|
-
if (!m) return [str];
|
|
104
|
+
if (!m || /\$$/.test(m.pre)) return [str];
|
|
105
|
+
|
|
106
|
+
var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
|
107
|
+
var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
|
108
|
+
var isSequence = isNumericSequence || isAlphaSequence;
|
|
109
|
+
var isOptions = m.body.indexOf(',') >= 0;
|
|
110
|
+
if (!isSequence && !isOptions) {
|
|
111
|
+
// {a},b}
|
|
112
|
+
if (m.post.match(/,.*\}/)) {
|
|
113
|
+
str = m.pre + '{' + m.body + escClose + m.post;
|
|
114
|
+
return expand(str);
|
|
115
|
+
}
|
|
116
|
+
return [str];
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
var n;
|
|
120
|
+
if (isSequence) {
|
|
121
|
+
n = m.body.split(/\.\./);
|
|
122
|
+
} else {
|
|
123
|
+
n = parseCommaParts(m.body);
|
|
124
|
+
if (n.length === 1) {
|
|
125
|
+
// x{{a,b}}y ==> x{a}y x{b}y
|
|
126
|
+
n = expand(n[0], false).map(embrace);
|
|
127
|
+
if (n.length === 1) {
|
|
128
|
+
var post = m.post.length
|
|
129
|
+
? expand(m.post, false)
|
|
130
|
+
: [''];
|
|
131
|
+
return post.map(function(p) {
|
|
132
|
+
return m.pre + n[0] + p;
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// at this point, n is the parts, and we know it's not a comma set
|
|
139
|
+
// with a single entry.
|
|
100
140
|
|
|
101
141
|
// no need to expand pre, since it is guaranteed to be free of brace-sets
|
|
102
142
|
var pre = m.pre;
|
|
@@ -104,97 +144,55 @@ function expand(str, isTop) {
|
|
|
104
144
|
? expand(m.post, false)
|
|
105
145
|
: [''];
|
|
106
146
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
var
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
var
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
return expand(str);
|
|
122
|
-
}
|
|
123
|
-
return [str];
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
var n;
|
|
127
|
-
if (isSequence) {
|
|
128
|
-
n = m.body.split(/\.\./);
|
|
129
|
-
} else {
|
|
130
|
-
n = parseCommaParts(m.body);
|
|
131
|
-
if (n.length === 1) {
|
|
132
|
-
// x{{a,b}}y ==> x{a}y x{b}y
|
|
133
|
-
n = expand(n[0], false).map(embrace);
|
|
134
|
-
if (n.length === 1) {
|
|
135
|
-
return post.map(function(p) {
|
|
136
|
-
return m.pre + n[0] + p;
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
}
|
|
147
|
+
var N;
|
|
148
|
+
|
|
149
|
+
if (isSequence) {
|
|
150
|
+
var x = numeric(n[0]);
|
|
151
|
+
var y = numeric(n[1]);
|
|
152
|
+
var width = Math.max(n[0].length, n[1].length)
|
|
153
|
+
var incr = n.length == 3
|
|
154
|
+
? Math.abs(numeric(n[2]))
|
|
155
|
+
: 1;
|
|
156
|
+
var test = lte;
|
|
157
|
+
var reverse = y < x;
|
|
158
|
+
if (reverse) {
|
|
159
|
+
incr *= -1;
|
|
160
|
+
test = gte;
|
|
140
161
|
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
N = [];
|
|
162
|
-
|
|
163
|
-
for (var i = x; test(i, y); i += incr) {
|
|
164
|
-
var c;
|
|
165
|
-
if (isAlphaSequence) {
|
|
166
|
-
c = String.fromCharCode(i);
|
|
167
|
-
if (c === '\\')
|
|
168
|
-
c = '';
|
|
169
|
-
} else {
|
|
170
|
-
c = String(i);
|
|
171
|
-
if (pad) {
|
|
172
|
-
var need = width - c.length;
|
|
173
|
-
if (need > 0) {
|
|
174
|
-
var z = new Array(need + 1).join('0');
|
|
175
|
-
if (i < 0)
|
|
176
|
-
c = '-' + z + c.slice(1);
|
|
177
|
-
else
|
|
178
|
-
c = z + c;
|
|
179
|
-
}
|
|
162
|
+
var pad = n.some(isPadded);
|
|
163
|
+
|
|
164
|
+
N = [];
|
|
165
|
+
|
|
166
|
+
for (var i = x; test(i, y); i += incr) {
|
|
167
|
+
var c;
|
|
168
|
+
if (isAlphaSequence) {
|
|
169
|
+
c = String.fromCharCode(i);
|
|
170
|
+
if (c === '\\')
|
|
171
|
+
c = '';
|
|
172
|
+
} else {
|
|
173
|
+
c = String(i);
|
|
174
|
+
if (pad) {
|
|
175
|
+
var need = width - c.length;
|
|
176
|
+
if (need > 0) {
|
|
177
|
+
var z = new Array(need + 1).join('0');
|
|
178
|
+
if (i < 0)
|
|
179
|
+
c = '-' + z + c.slice(1);
|
|
180
|
+
else
|
|
181
|
+
c = z + c;
|
|
180
182
|
}
|
|
181
183
|
}
|
|
182
|
-
N.push(c);
|
|
183
|
-
}
|
|
184
|
-
} else {
|
|
185
|
-
N = [];
|
|
186
|
-
|
|
187
|
-
for (var j = 0; j < n.length; j++) {
|
|
188
|
-
N.push.apply(N, expand(n[j], false));
|
|
189
184
|
}
|
|
185
|
+
N.push(c);
|
|
190
186
|
}
|
|
187
|
+
} else {
|
|
188
|
+
N = concatMap(n, function(el) { return expand(el, false) });
|
|
189
|
+
}
|
|
191
190
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
}
|
|
191
|
+
for (var j = 0; j < N.length; j++) {
|
|
192
|
+
for (var k = 0; k < post.length; k++) {
|
|
193
|
+
var expansion = pre + N[j] + post[k];
|
|
194
|
+
if (!isTop || isSequence || expansion)
|
|
195
|
+
expansions.push(expansion);
|
|
198
196
|
}
|
|
199
197
|
}
|
|
200
198
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brace-expansion",
|
|
3
3
|
"description": "Brace expansion as known from sh/bash",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "1.1.11",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git://github.com/juliangruber/brace-expansion.git"
|
|
@@ -14,10 +14,11 @@
|
|
|
14
14
|
"bench": "matcha test/perf/bench.js"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"balanced-match": "^1.0.0"
|
|
17
|
+
"balanced-match": "^1.0.0",
|
|
18
|
+
"concat-map": "0.0.1"
|
|
18
19
|
},
|
|
19
20
|
"devDependencies": {
|
|
20
|
-
"
|
|
21
|
+
"matcha": "^0.7.0",
|
|
21
22
|
"tape": "^4.6.0"
|
|
22
23
|
},
|
|
23
24
|
"keywords": [],
|
|
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Tue, 07 Feb 2023 08:32:36 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
|
@@ -319,6 +319,16 @@ declare module 'async_hooks' {
|
|
|
319
319
|
*/
|
|
320
320
|
triggerAsyncId(): number;
|
|
321
321
|
}
|
|
322
|
+
interface AsyncLocalStorageOptions<T> {
|
|
323
|
+
/**
|
|
324
|
+
* Optional callback invoked before a store is propagated to a new async resource.
|
|
325
|
+
* Returning `true` allows propagation, returning `false` avoids it. Default is to propagate always.
|
|
326
|
+
* @param type The type of async event.
|
|
327
|
+
* @param store The current store.
|
|
328
|
+
* @since v18.13.0
|
|
329
|
+
*/
|
|
330
|
+
onPropagate?: ((type: string, store: T) => boolean) | undefined;
|
|
331
|
+
}
|
|
322
332
|
/**
|
|
323
333
|
* This class creates stores that stay coherent through asynchronous operations.
|
|
324
334
|
*
|
|
@@ -368,6 +378,8 @@ declare module 'async_hooks' {
|
|
|
368
378
|
* @since v13.10.0, v12.17.0
|
|
369
379
|
*/
|
|
370
380
|
class AsyncLocalStorage<T> {
|
|
381
|
+
constructor(options?: AsyncLocalStorageOptions<T>);
|
|
382
|
+
|
|
371
383
|
/**
|
|
372
384
|
* Disables the instance of `AsyncLocalStorage`. All subsequent calls
|
|
373
385
|
* to `asyncLocalStorage.getStore()` will return `undefined` until`asyncLocalStorage.run()` or `asyncLocalStorage.enterWith()` is called again.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for non-npm package Node.js 18.
|
|
1
|
+
// Type definitions for non-npm package Node.js 18.13
|
|
2
2
|
// Project: https://nodejs.org/
|
|
3
3
|
// Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
|
|
4
4
|
// DefinitelyTyped <https://github.com/DefinitelyTyped>
|
|
@@ -57,6 +57,14 @@ declare module 'net' {
|
|
|
57
57
|
noDelay?: boolean | undefined;
|
|
58
58
|
keepAlive?: boolean | undefined;
|
|
59
59
|
keepAliveInitialDelay?: number | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* @since v18.13.0
|
|
62
|
+
*/
|
|
63
|
+
autoSelectFamily?: boolean | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* @since v18.13.0
|
|
66
|
+
*/
|
|
67
|
+
autoSelectFamilyAttemptTimeout?: number | undefined;
|
|
60
68
|
}
|
|
61
69
|
interface IpcSocketConnectOpts extends ConnectOpts {
|
|
62
70
|
path: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.13.0",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -232,6 +232,6 @@
|
|
|
232
232
|
},
|
|
233
233
|
"scripts": {},
|
|
234
234
|
"dependencies": {},
|
|
235
|
-
"typesPublisherContentHash": "
|
|
235
|
+
"typesPublisherContentHash": "6c5087993475c3d03552602e518e6747e3493f7e7dec65e81e1f206b013ad890",
|
|
236
236
|
"typeScriptVersion": "4.2"
|
|
237
237
|
}
|
|
@@ -264,6 +264,15 @@ declare module 'node:test' {
|
|
|
264
264
|
*/
|
|
265
265
|
beforeEach: typeof beforeEach;
|
|
266
266
|
|
|
267
|
+
/**
|
|
268
|
+
* This function is used to create a hook that runs after the current test finishes.
|
|
269
|
+
* @param fn The hook function. If the hook uses callbacks, the callback function is passed as
|
|
270
|
+
* the second argument. Default: A no-op function.
|
|
271
|
+
* @param options Configuration options for the hook.
|
|
272
|
+
* @since v18.13.0
|
|
273
|
+
*/
|
|
274
|
+
after: typeof after;
|
|
275
|
+
|
|
267
276
|
/**
|
|
268
277
|
* This function is used to create a hook running after each subtest of the current test.
|
|
269
278
|
* @param fn The hook function. If the hook uses callbacks, the callback function is passed as
|
|
@@ -41,21 +41,100 @@ declare module 'tls' {
|
|
|
41
41
|
CN: string;
|
|
42
42
|
}
|
|
43
43
|
interface PeerCertificate {
|
|
44
|
+
/**
|
|
45
|
+
* `true` if a Certificate Authority (CA), `false` otherwise.
|
|
46
|
+
* @since v18.13.0
|
|
47
|
+
*/
|
|
48
|
+
ca: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* The DER encoded X.509 certificate data.
|
|
51
|
+
*/
|
|
52
|
+
raw: Buffer;
|
|
53
|
+
/**
|
|
54
|
+
* The certificate subject.
|
|
55
|
+
*/
|
|
44
56
|
subject: Certificate;
|
|
57
|
+
/**
|
|
58
|
+
* The certificate issuer, described in the same terms as the `subject`.
|
|
59
|
+
*/
|
|
45
60
|
issuer: Certificate;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
exponent: string;
|
|
61
|
+
/**
|
|
62
|
+
* The date-time the certificate is valid from.
|
|
63
|
+
*/
|
|
50
64
|
valid_from: string;
|
|
65
|
+
/**
|
|
66
|
+
* The date-time the certificate is valid to.
|
|
67
|
+
*/
|
|
51
68
|
valid_to: string;
|
|
69
|
+
/**
|
|
70
|
+
* The certificate serial number, as a hex string.
|
|
71
|
+
*/
|
|
72
|
+
serialNumber: string;
|
|
73
|
+
/**
|
|
74
|
+
* The SHA-1 digest of the DER encoded certificate.
|
|
75
|
+
* It is returned as a `:` separated hexadecimal string.
|
|
76
|
+
*/
|
|
52
77
|
fingerprint: string;
|
|
78
|
+
/**
|
|
79
|
+
* The SHA-256 digest of the DER encoded certificate.
|
|
80
|
+
* It is returned as a `:` separated hexadecimal string.
|
|
81
|
+
*/
|
|
53
82
|
fingerprint256: string;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
83
|
+
/**
|
|
84
|
+
* The SHA-512 digest of the DER encoded certificate.
|
|
85
|
+
* It is returned as a `:` separated hexadecimal string.
|
|
86
|
+
*/
|
|
87
|
+
fingerprint512: string;
|
|
88
|
+
/**
|
|
89
|
+
* The extended key usage, a set of OIDs.
|
|
90
|
+
*/
|
|
91
|
+
ext_key_usage?: string[];
|
|
92
|
+
/**
|
|
93
|
+
* A string containing concatenated names for the subject,
|
|
94
|
+
* an alternative to the `subject` names.
|
|
95
|
+
*/
|
|
96
|
+
subjectaltname?: string;
|
|
97
|
+
/**
|
|
98
|
+
* An array describing the AuthorityInfoAccess, used with OCSP.
|
|
99
|
+
*/
|
|
100
|
+
infoAccess?: NodeJS.Dict<string[]>;
|
|
101
|
+
/**
|
|
102
|
+
* For RSA keys: The RSA bit size.
|
|
103
|
+
*
|
|
104
|
+
* For EC keys: The key size in bits.
|
|
105
|
+
*/
|
|
106
|
+
bits?: number;
|
|
107
|
+
/**
|
|
108
|
+
* The RSA exponent, as a string in hexadecimal number notation.
|
|
109
|
+
*/
|
|
110
|
+
exponent?: string;
|
|
111
|
+
/**
|
|
112
|
+
* The RSA modulus, as a hexadecimal string.
|
|
113
|
+
*/
|
|
114
|
+
modulus?: string;
|
|
115
|
+
/**
|
|
116
|
+
* The public key.
|
|
117
|
+
*/
|
|
118
|
+
pubkey?: Buffer;
|
|
119
|
+
/**
|
|
120
|
+
* The ASN.1 name of the OID of the elliptic curve.
|
|
121
|
+
* Well-known curves are identified by an OID.
|
|
122
|
+
* While it is unusual, it is possible that the curve
|
|
123
|
+
* is identified by its mathematical properties,
|
|
124
|
+
* in which case it will not have an OID.
|
|
125
|
+
*/
|
|
126
|
+
asn1Curve?: string;
|
|
127
|
+
/**
|
|
128
|
+
* The NIST name for the elliptic curve,if it has one
|
|
129
|
+
* (not all well-known curves have been assigned names by NIST).
|
|
130
|
+
*/
|
|
131
|
+
nistCurve?: string;
|
|
57
132
|
}
|
|
58
133
|
interface DetailedPeerCertificate extends PeerCertificate {
|
|
134
|
+
/**
|
|
135
|
+
* The issuer certificate object.
|
|
136
|
+
* For self-signed certificates, this may be a circular reference.
|
|
137
|
+
*/
|
|
59
138
|
issuerCertificate: DetailedPeerCertificate;
|
|
60
139
|
}
|
|
61
140
|
interface CipherNameAndProtocol {
|