projen 0.58.27 → 0.58.30
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 +4 -4
- 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.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 +1 -1
- package/lib/cdk8s/auto-discover.js +2 -2
- package/lib/cdk8s/cdk8s-app-ts.js +1 -1
- package/lib/cdk8s/cdk8s-construct.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.js +2 -2
- 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 +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 +1 -1
- package/lib/javascript/upgrade-dependencies.js +2 -2
- 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/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/launch-config.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/lib/async.js +1 -1
- package/node_modules/resolve/lib/core.json +1 -0
- package/node_modules/resolve/lib/sync.js +1 -1
- package/node_modules/resolve/package.json +14 -5
- package/node_modules/resolve/test/core.js +8 -1
- package/node_modules/resolve/test/resolver/false_main/index.js +0 -0
- package/node_modules/resolve/test/resolver/false_main/package.json +4 -0
- package/node_modules/resolve/test/resolver.js +49 -0
- package/node_modules/resolve/test/resolver_sync.js +82 -1
- package/node_modules/{lru-cache → semver/node_modules/lru-cache}/LICENSE +0 -0
- package/node_modules/{lru-cache → semver/node_modules/lru-cache}/README.md +0 -0
- package/node_modules/{lru-cache → semver/node_modules/lru-cache}/index.js +0 -0
- package/node_modules/{lru-cache → semver/node_modules/lru-cache}/package.json +0 -0
- package/node_modules/xmlbuilder2/node_modules/@types/node/README.md +1 -1
- package/node_modules/xmlbuilder2/node_modules/@types/node/crypto.d.ts +559 -5
- package/node_modules/xmlbuilder2/node_modules/@types/node/fs/promises.d.ts +1 -1
- package/node_modules/xmlbuilder2/node_modules/@types/node/fs.d.ts +3 -3
- package/node_modules/xmlbuilder2/node_modules/@types/node/http.d.ts +10 -0
- package/node_modules/xmlbuilder2/node_modules/@types/node/https.d.ts +10 -0
- package/node_modules/xmlbuilder2/node_modules/@types/node/package.json +2 -2
- package/node_modules/xmlbuilder2/node_modules/@types/node/perf_hooks.d.ts +6 -0
- package/package.json +7 -7
- package/node_modules/resolve/appveyor.yml +0 -76
|
@@ -6,7 +6,7 @@ var resolve = require('../');
|
|
|
6
6
|
var sync = require('../sync');
|
|
7
7
|
|
|
8
8
|
var requireResolveSupportsPaths = require.resolve.length > 1
|
|
9
|
-
&& (/^
|
|
9
|
+
&& !(/^v12\.[012]\./).test(process.version); // broken in v12.0-12.2, see https://github.com/nodejs/node/issues/27794
|
|
10
10
|
|
|
11
11
|
test('`./sync` entry point', function (t) {
|
|
12
12
|
t.equal(resolve.sync, sync, '`./sync` entry point is the same as `.sync` on `main`');
|
|
@@ -309,6 +309,87 @@ test('incorrect main', function (t) {
|
|
|
309
309
|
t.end();
|
|
310
310
|
});
|
|
311
311
|
|
|
312
|
+
test('missing index', function (t) {
|
|
313
|
+
t.plan(requireResolveSupportsPaths ? 2 : 1);
|
|
314
|
+
|
|
315
|
+
var resolverDir = path.join(__dirname, 'resolver');
|
|
316
|
+
try {
|
|
317
|
+
resolve.sync('./missing_index', { basedir: resolverDir });
|
|
318
|
+
t.fail('did not fail');
|
|
319
|
+
} catch (err) {
|
|
320
|
+
t.equal(err && err.code, 'MODULE_NOT_FOUND', 'error has correct error code');
|
|
321
|
+
}
|
|
322
|
+
if (requireResolveSupportsPaths) {
|
|
323
|
+
try {
|
|
324
|
+
require.resolve('./missing_index', { basedir: resolverDir });
|
|
325
|
+
t.fail('require.resolve did not fail');
|
|
326
|
+
} catch (err) {
|
|
327
|
+
t.equal(err && err.code, 'MODULE_NOT_FOUND', 'error has correct error code');
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
});
|
|
331
|
+
|
|
332
|
+
test('missing main', function (t) {
|
|
333
|
+
var resolverDir = path.join(__dirname, 'resolver');
|
|
334
|
+
|
|
335
|
+
try {
|
|
336
|
+
resolve.sync('./missing_main', { basedir: resolverDir });
|
|
337
|
+
t.fail('require.resolve did not fail');
|
|
338
|
+
} catch (err) {
|
|
339
|
+
t.equal(err && err.code, 'MODULE_NOT_FOUND', 'error has correct error code');
|
|
340
|
+
}
|
|
341
|
+
if (requireResolveSupportsPaths) {
|
|
342
|
+
try {
|
|
343
|
+
resolve.sync('./missing_main', { basedir: resolverDir });
|
|
344
|
+
t.fail('require.resolve did not fail');
|
|
345
|
+
} catch (err) {
|
|
346
|
+
t.equal(err && err.code, 'MODULE_NOT_FOUND', 'error has correct error code');
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
t.end();
|
|
351
|
+
});
|
|
352
|
+
|
|
353
|
+
test('null main', function (t) {
|
|
354
|
+
var resolverDir = path.join(__dirname, 'resolver');
|
|
355
|
+
|
|
356
|
+
try {
|
|
357
|
+
resolve.sync('./null_main', { basedir: resolverDir });
|
|
358
|
+
t.fail('require.resolve did not fail');
|
|
359
|
+
} catch (err) {
|
|
360
|
+
t.equal(err && err.code, 'MODULE_NOT_FOUND', 'error has correct error code');
|
|
361
|
+
}
|
|
362
|
+
if (requireResolveSupportsPaths) {
|
|
363
|
+
try {
|
|
364
|
+
resolve.sync('./null_main', { basedir: resolverDir });
|
|
365
|
+
t.fail('require.resolve did not fail');
|
|
366
|
+
} catch (err) {
|
|
367
|
+
t.equal(err && err.code, 'MODULE_NOT_FOUND', 'error has correct error code');
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
t.end();
|
|
372
|
+
});
|
|
373
|
+
|
|
374
|
+
test('main: false', function (t) {
|
|
375
|
+
var basedir = path.join(__dirname, 'resolver');
|
|
376
|
+
var dir = path.join(basedir, 'false_main');
|
|
377
|
+
t.equal(
|
|
378
|
+
resolve.sync('./false_main', { basedir: basedir }),
|
|
379
|
+
path.join(dir, 'index.js'),
|
|
380
|
+
'`"main": false`: resolves to `index.js`'
|
|
381
|
+
);
|
|
382
|
+
if (requireResolveSupportsPaths) {
|
|
383
|
+
t.equal(
|
|
384
|
+
resolve.sync('./false_main', { basedir: basedir }),
|
|
385
|
+
require.resolve('./false_main', { paths: [basedir] }),
|
|
386
|
+
'`"main": false`: resolve.sync === require.resolve'
|
|
387
|
+
);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
t.end();
|
|
391
|
+
});
|
|
392
|
+
|
|
312
393
|
var stubStatSync = function stubStatSync(fn) {
|
|
313
394
|
var statSync = fs.statSync;
|
|
314
395
|
try {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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: Wed,
|
|
11
|
+
* Last updated: Wed, 13 Jul 2022 21:02:28 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|