projen 0.61.3 → 0.61.6

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 (141) hide show
  1. package/.jsii +4 -3
  2. package/lib/awscdk/auto-discover.js +5 -5
  3. package/lib/awscdk/awscdk-app-java.js +1 -1
  4. package/lib/awscdk/awscdk-app-py.js +1 -1
  5. package/lib/awscdk/awscdk-app-ts.js +1 -1
  6. package/lib/awscdk/awscdk-construct.js +2 -2
  7. package/lib/awscdk/awscdk-deps-java.js +1 -1
  8. package/lib/awscdk/awscdk-deps-js.js +1 -1
  9. package/lib/awscdk/awscdk-deps.js +1 -1
  10. package/lib/awscdk/cdk-config.js +1 -1
  11. package/lib/awscdk/cdk-tasks.js +1 -1
  12. package/lib/awscdk/integration-test.js +1 -1
  13. package/lib/awscdk/lambda-extension.js +1 -1
  14. package/lib/awscdk/lambda-function.js +2 -2
  15. package/lib/build/build-workflow.js +1 -1
  16. package/lib/cdk/auto-discover-base.js +2 -2
  17. package/lib/cdk/construct-lib.js +1 -1
  18. package/lib/cdk/integration-test-base.js +1 -1
  19. package/lib/cdk/jsii-docgen.js +1 -1
  20. package/lib/cdk/jsii-project.js +1 -1
  21. package/lib/cdk8s/auto-discover.js +2 -2
  22. package/lib/cdk8s/cdk8s-app-py.js +1 -1
  23. package/lib/cdk8s/cdk8s-app-ts.js +1 -1
  24. package/lib/cdk8s/cdk8s-construct.js +1 -1
  25. package/lib/cdk8s/cdk8s-deps-py.js +1 -1
  26. package/lib/cdk8s/cdk8s-deps.js +1 -1
  27. package/lib/cdk8s/integration-test.js +1 -1
  28. package/lib/cdktf/cdktf-construct.js +1 -1
  29. package/lib/circleci/circleci.js +1 -1
  30. package/lib/component.js +1 -1
  31. package/lib/dependencies.js +1 -1
  32. package/lib/dev-env.js +1 -1
  33. package/lib/docker-compose.js +2 -2
  34. package/lib/file.js +1 -1
  35. package/lib/gitattributes.js +1 -1
  36. package/lib/github/auto-approve.js +1 -1
  37. package/lib/github/auto-merge.js +1 -1
  38. package/lib/github/dependabot.js +1 -1
  39. package/lib/github/github-credentials.js +1 -1
  40. package/lib/github/github-project.js +1 -1
  41. package/lib/github/github.js +1 -1
  42. package/lib/github/mergify.js +1 -1
  43. package/lib/github/pr-template.js +1 -1
  44. package/lib/github/pull-request-lint.js +1 -1
  45. package/lib/github/stale.js +1 -1
  46. package/lib/github/task-workflow.js +1 -1
  47. package/lib/github/workflows.js +1 -1
  48. package/lib/gitlab/configuration.js +1 -1
  49. package/lib/gitlab/gitlab-configuration.js +1 -1
  50. package/lib/gitlab/nested-configuration.js +1 -1
  51. package/lib/gitpod.js +1 -1
  52. package/lib/ignore-file.js +1 -1
  53. package/lib/ini.js +1 -1
  54. package/lib/inventory.d.ts +1 -0
  55. package/lib/inventory.js +28 -6
  56. package/lib/java/java-project.js +1 -1
  57. package/lib/java/junit.js +1 -1
  58. package/lib/java/maven-compile.js +1 -1
  59. package/lib/java/maven-packaging.js +1 -1
  60. package/lib/java/maven-sample.js +1 -1
  61. package/lib/java/pom.js +1 -1
  62. package/lib/java/projenrc.js +1 -1
  63. package/lib/javascript/bundler.js +1 -1
  64. package/lib/javascript/eslint.js +1 -1
  65. package/lib/javascript/jest.js +1 -1
  66. package/lib/javascript/node-package.js +1 -1
  67. package/lib/javascript/node-project.js +1 -1
  68. package/lib/javascript/npm-config.js +1 -1
  69. package/lib/javascript/prettier.js +1 -1
  70. package/lib/javascript/projenrc.js +1 -1
  71. package/lib/javascript/typescript-config.js +1 -1
  72. package/lib/javascript/upgrade-dependencies.js +2 -2
  73. package/lib/json.js +1 -1
  74. package/lib/license.js +1 -1
  75. package/lib/logger.js +1 -1
  76. package/lib/makefile.js +1 -1
  77. package/lib/object-file.js +1 -1
  78. package/lib/project-build.js +1 -1
  79. package/lib/project.js +1 -1
  80. package/lib/projects.js +1 -1
  81. package/lib/projenrc-json.js +1 -1
  82. package/lib/python/pip.js +1 -1
  83. package/lib/python/poetry.js +2 -2
  84. package/lib/python/projenrc.js +1 -1
  85. package/lib/python/pytest-sample.js +1 -1
  86. package/lib/python/pytest.js +1 -1
  87. package/lib/python/python-project.js +1 -1
  88. package/lib/python/python-sample.js +1 -1
  89. package/lib/python/requirements-file.js +1 -1
  90. package/lib/python/setuppy.js +1 -1
  91. package/lib/python/setuptools.js +1 -1
  92. package/lib/python/venv.js +1 -1
  93. package/lib/readme.js +1 -1
  94. package/lib/release/publisher.js +1 -1
  95. package/lib/release/release-trigger.js +1 -1
  96. package/lib/release/release.js +1 -1
  97. package/lib/renovatebot.js +1 -1
  98. package/lib/sample-file.js +2 -2
  99. package/lib/semver.js +1 -1
  100. package/lib/source-code.js +1 -1
  101. package/lib/task-runtime.js +1 -1
  102. package/lib/task.js +1 -1
  103. package/lib/tasks.js +1 -1
  104. package/lib/testing.js +1 -1
  105. package/lib/textfile.js +1 -1
  106. package/lib/toml.js +1 -1
  107. package/lib/typescript/projenrc.js +1 -1
  108. package/lib/typescript/typescript-typedoc.js +1 -1
  109. package/lib/typescript/typescript.js +3 -3
  110. package/lib/version.js +1 -1
  111. package/lib/vscode/devcontainer.js +1 -1
  112. package/lib/vscode/launch-config.js +1 -1
  113. package/lib/vscode/vscode.js +1 -1
  114. package/lib/web/next.js +3 -3
  115. package/lib/web/postcss.js +1 -1
  116. package/lib/web/react.js +4 -4
  117. package/lib/web/tailwind.js +1 -1
  118. package/lib/xmlfile.js +1 -1
  119. package/lib/yaml.js +1 -1
  120. package/node_modules/xmlbuilder2/node_modules/@types/node/README.md +1 -1
  121. package/node_modules/xmlbuilder2/node_modules/@types/node/buffer.d.ts +1 -1
  122. package/node_modules/xmlbuilder2/node_modules/@types/node/events.d.ts +3 -3
  123. package/node_modules/xmlbuilder2/node_modules/@types/node/http2.d.ts +1 -1
  124. package/node_modules/xmlbuilder2/node_modules/@types/node/net.d.ts +2 -2
  125. package/node_modules/xmlbuilder2/node_modules/@types/node/package.json +2 -2
  126. package/node_modules/xmlbuilder2/node_modules/@types/node/process.d.ts +1 -1
  127. package/node_modules/xmlbuilder2/node_modules/@types/node/vm.d.ts +1 -1
  128. package/node_modules/xmlbuilder2/node_modules/@types/node/worker_threads.d.ts +2 -2
  129. package/node_modules/zlib/.gitignore +2 -0
  130. package/node_modules/zlib/LICENSE +24 -0
  131. package/node_modules/zlib/Makefile +15 -0
  132. package/node_modules/zlib/README.md +54 -0
  133. package/node_modules/zlib/configure +2 -0
  134. package/node_modules/zlib/index.js +1 -0
  135. package/node_modules/zlib/lib/zlib.js +1 -0
  136. package/node_modules/zlib/package.json +18 -0
  137. package/node_modules/zlib/src/node-zlib.cc +95 -0
  138. package/node_modules/zlib/test/deflate.test.js +23 -0
  139. package/node_modules/zlib/test/inflate.test.js +33 -0
  140. package/node_modules/zlib/wscript +38 -0
  141. package/package.json +6 -4
@@ -0,0 +1,33 @@
1
+ var assert = require('assert');
2
+ var Buffer = require('buffer').Buffer;
3
+ var zlib = require('../lib/zlib');
4
+
5
+ exports['test header inflate fail'] = function(beforeExit) {
6
+ var compressed = new Buffer('\x78\x80\x9c\xab\x56\x4a\x93\xaf\x46\x00\x1b\xa9\x02\x77\x92\x0f', 'binary');
7
+ assert.throws(function() { var output = zlib.inflate(compressed); },
8
+ "incorrect header check");
9
+
10
+ var compressed = new Buffer('\x78\x9c\xab\x56\x4a\x2f\xca\x4c\x51\xb2\x8a\x56\x52\xa0\x10\x28\xe9\x8c\x1a\x31\x6a\xc4\xa8\x11\xa3\x46\x8c\x1a\x31\x6a\xc4\xa8\x11\xa3\x46\x8c\x1a\x31\x6a\x04\x12\x50\x04\x02\x2a\x18\x01\x01\x64\x1b\x81\x64\x06\xdc\x10\xd2\x8c\x50\x44\x36\x02\x66\x06\x05\xae\x80\x99\x41\x72\x8c\x60\x9a\x41\x46\xa4\x0e\x0e\x23\x80\x81\xaa\x40\xa9\x11\x0a\x28\x46\x28\x52\xe6\x0a\x45\x0a\x8c\x40\x0e\x10\xf2\xb3\x19\x15\x8c\x80\x1b\x42\x69\x66\x57\x54\x54\xa6\xbc\xbc\xa0\x82\x11\x43\xb3\xe0\x1b\x42\x46\xa8\x50\xc1\x15\x2a\xa4\x1a\x42\xb9\x47\x54\x95\x62\x75\x94\xb2\x53\x2b\x8b\x41\x03\x19\x40\xe3\x7c\x23\x80\x84\x7b\x08\x90\xf0\x0e\x02\x12\xae\xce\x4a\xb1\xb5\x00\x83\x32\x27\xf3', 'binary');
11
+ var output = zlib.inflate(compressed);
12
+ assert.equal(output.toString(), '{"grid":[" "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," !!!! "," !!!!!!!!!! "," !!!!!!!!!!! "," ! !!!!!!!!!!!! "," !!!!!!!!!!!!! "," !!!!!!!!!!!!! "," !!!!!!!!!!! "," !!!!!!!!!!! "," ! !!!!!!! "," !!!!!!! !"," ! !!!!!!!! !"," ! !!!!!!!!!!!"," !!!!!!!!!"," !!!!!!!"," !!#"," #"," "," "," "," "," "," "," $ "," $$ "," %"],"keys":["","MX","GT","KR","EC"]}');
13
+ };
14
+
15
+ exports['test truncated inflate fail'] = function(beforeExit) {
16
+ var compressed = new Buffer('\x78\x9c\xab\x56\x4a\x2f\xca\x4c\x51\xb2\x8a\x56\x52\xa0\x10\x28\xe9\x8c\x1a\x31\x6a\xc4\xa8\x11\xa3\x46\x8c\x1a\x31\x6a\xc4\xa8\x11\xa3\x46\x8c\x1a\x31\x6a\x04\x12\x50\x04\x02\x2a\x18\x01\x01\x64\x1b\x81\x64\x06\xdc\x10\xd2\x8c\x50\x44\x36\x02\x66\x06\x05\xae\x80\x99\x41\x72\x8c\x60\x9a\x41\x46\xa4\x0e\x0e\x23\x80\x81\xaa\x40\xa9\x11\x0a\x28\x46\x28\x52\xe6\x0a\x45\x0a\x8c\x40\x0e\x10\xf2\xb3\x19\x15\x8c\x80\x1b\x42\x69\x66\x57\x54\x54\xa6', 'binary');
17
+ var output = zlib.inflate(compressed);
18
+ assert.equal(output.toString(), '{"grid":[" "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," !!!! "," !!!!!!!!!! "," !!!!!!!!!!! "," ! !!!!!!!!!!!! "," !!!!!!!!!!!!! "," !!!!!!!!!!!!! "," !!!!!!!!!!! "," !!!!!!!!!!! "," ! !!!!!!! "," !!!!!!! !"," ! !!!!!!!! !"," ! !!!!!!!!!!!"," !!!!!!!!!"," !!!!!!!"," !!#');
19
+
20
+ var compressed = new Buffer('\x78\x9c\xab\x56\x4a\x2f\xca\x4c\x51\xb2\x8a\x56\x52\xa0\x10\x28\xe9\x8c\x1a\x31\x6a\xc4\xa8\x11\xa3\x46\x8c\x1a\x31\x6a\xc4\xa8\x11\xa3\x46\x8c\x1a\x31\x6a\x04\x12\x50\x04\x02\x2a\x18\x01\x01\x64\x1b\x81\x64\x06\xdc\x10\xd2\x8c\x50\x44\x36\x02\x66\x06\x05\xae\x80\x99\x41\x72\x8c\x60\x9a\x41\x46\xa4\x0e\x0e\x23\x80\x81\xaa\x40\xa9\x11\x0a\x28\x46\x28\x52\xe6\x0a\x45\x0a\x8c\x40\x0e\x10\xf2\xb3\x19\x15\x8c\x80\x1b\x42\x69\x66\x57\x54\x54\xa6\xbc\xbc\xa0\x82\x11\x43\xb3\xe0\x1b\x42\x46\xa8\x50\xc1\x15\x2a\xa4\x1a\x42\xb9\x47\x54\x95\x62\x75\x94\xb2\x53\x2b\x8b\x41\x03\x19\x40\xe3\x7c\x23\x80\x84\x7b\x08\x90\xf0\x0e\x02\x12\xae\xce\x4a\xb1\xb5\x00\x83\x32\x27\xf3', 'binary');
21
+ var output = zlib.inflate(compressed);
22
+ assert.equal(output.toString(), '{"grid":[" "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," !!!! "," !!!!!!!!!! "," !!!!!!!!!!! "," ! !!!!!!!!!!!! "," !!!!!!!!!!!!! "," !!!!!!!!!!!!! "," !!!!!!!!!!! "," !!!!!!!!!!! "," ! !!!!!!! "," !!!!!!! !"," ! !!!!!!!! !"," ! !!!!!!!!!!!"," !!!!!!!!!"," !!!!!!!"," !!#"," #"," "," "," "," "," "," "," $ "," $$ "," %"],"keys":["","MX","GT","KR","EC"]}');
23
+ };
24
+
25
+ exports['test bogus inflate fail'] = function(beforeExit) {
26
+ var compressed = new Buffer('bahbahfoobar', 'binary');
27
+ assert.throws(function() { var output = zlib.inflate(compressed); },
28
+ "incorrect header check");
29
+
30
+ var compressed = new Buffer('\x78\x9c\xab\x56\x4a\x2f\xca\x4c\x51\xb2\x8a\x56\x52\xa0\x10\x28\xe9\x8c\x1a\x31\x6a\xc4\xa8\x11\xa3\x46\x8c\x1a\x31\x6a\xc4\xa8\x11\xa3\x46\x8c\x1a\x31\x6a\x04\x12\x50\x04\x02\x2a\x18\x01\x01\x64\x1b\x81\x64\x06\xdc\x10\xd2\x8c\x50\x44\x36\x02\x66\x06\x05\xae\x80\x99\x41\x72\x8c\x60\x9a\x41\x46\xa4\x0e\x0e\x23\x80\x81\xaa\x40\xa9\x11\x0a\x28\x46\x28\x52\xe6\x0a\x45\x0a\x8c\x40\x0e\x10\xf2\xb3\x19\x15\x8c\x80\x1b\x42\x69\x66\x57\x54\x54\xa6\xbc\xbc\xa0\x82\x11\x43\xb3\xe0\x1b\x42\x46\xa8\x50\xc1\x15\x2a\xa4\x1a\x42\xb9\x47\x54\x95\x62\x75\x94\xb2\x53\x2b\x8b\x41\x03\x19\x40\xe3\x7c\x23\x80\x84\x7b\x08\x90\xf0\x0e\x02\x12\xae\xce\x4a\xb1\xb5\x00\x83\x32\x27\xf3', 'binary');
31
+ var output = zlib.inflate(compressed);
32
+ assert.equal(output.toString(), '{"grid":[" "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," !!!! "," !!!!!!!!!! "," !!!!!!!!!!! "," ! !!!!!!!!!!!! "," !!!!!!!!!!!!! "," !!!!!!!!!!!!! "," !!!!!!!!!!! "," !!!!!!!!!!! "," ! !!!!!!! "," !!!!!!! !"," ! !!!!!!!! !"," ! !!!!!!!!!!!"," !!!!!!!!!"," !!!!!!!"," !!#"," #"," "," "," "," "," "," "," $ "," $$ "," %"],"keys":["","MX","GT","KR","EC"]}');
33
+ };
@@ -0,0 +1,38 @@
1
+ import os
2
+ import Options
3
+ from os.path import exists
4
+ from shutil import copy2 as copy
5
+
6
+ TARGET = 'zlib_bindings'
7
+ TARGET_FILE = '%s.node' % TARGET
8
+ built = 'build/default/%s' % TARGET_FILE
9
+ dest = 'lib/%s' % TARGET_FILE
10
+
11
+ def set_options(opt):
12
+ opt.tool_options("compiler_cxx")
13
+
14
+ def configure(conf):
15
+ conf.check_tool("compiler_cxx")
16
+ conf.check_tool("node_addon")
17
+ if not conf.check(lib="z", libpath=['/usr/local/lib'], uselib_store="ZLIB"):
18
+ conf.fatal('Missing zlib');
19
+
20
+ linkflags = []
21
+ if os.environ.has_key('LINKFLAGS'):
22
+ linkflags.extend(os.environ['LINKFLAGS'].split(' '))
23
+ conf.env.append_value("LINKFLAGS", linkflags)
24
+
25
+ def build(bld):
26
+ obj = bld.new_task_gen("cxx", "shlib", "node_addon")
27
+ obj.cxxflags = ["-g", "-D_FILE_OFFSET_BITS=64", "-D_LARGEFILE_SOURCE", "-Wall"]
28
+ obj.target = TARGET
29
+ obj.source = "src/node-zlib.cc"
30
+ obj.uselib = "ZLIB"
31
+
32
+ def shutdown():
33
+ if Options.commands['clean']:
34
+ if exists(TARGET_FILE):
35
+ unlink(TARGET_FILE)
36
+ else:
37
+ if exists(built):
38
+ copy(built, dest)
package/package.json CHANGED
@@ -59,7 +59,7 @@
59
59
  "@typescript-eslint/eslint-plugin": "^5",
60
60
  "@typescript-eslint/parser": "^5",
61
61
  "all-contributors-cli": "^6.20.0",
62
- "esbuild": "^0.14.53",
62
+ "esbuild": "^0.14.54",
63
63
  "eslint": "^8",
64
64
  "eslint-config-prettier": "^8.5.0",
65
65
  "eslint-import-resolver-node": "^0.3.6",
@@ -93,7 +93,8 @@
93
93
  "shx": "^0.3.4",
94
94
  "xmlbuilder2": "^2.4.1",
95
95
  "yaml": "2.0.0",
96
- "yargs": "^16.2.0"
96
+ "yargs": "^16.2.0",
97
+ "zlib": "^1.0.5"
97
98
  },
98
99
  "bundledDependencies": [
99
100
  "@iarna/toml",
@@ -107,7 +108,8 @@
107
108
  "shx",
108
109
  "xmlbuilder2",
109
110
  "yaml",
110
- "yargs"
111
+ "yargs",
112
+ "zlib"
111
113
  ],
112
114
  "keywords": [
113
115
  "cdk",
@@ -122,7 +124,7 @@
122
124
  },
123
125
  "main": "lib/index.js",
124
126
  "license": "Apache-2.0",
125
- "version": "0.61.3",
127
+ "version": "0.61.6",
126
128
  "jest": {
127
129
  "maxWorkers": "50%",
128
130
  "testMatch": [