jsii-release 0.2.326 → 0.2.329

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/README.md CHANGED
@@ -74,6 +74,7 @@ npx publib-npm [DIR]
74
74
  |`AWS_ACCESS_KEY_ID`|Optional|If AWS CodeArtifact is used as registry, an AWS access key can be spedified.|
75
75
  |`AWS_SECRET_ACCESS_KEY`|Optional|Secret access key that belongs to the AWS access key.|
76
76
  |`AWS_ROLE_TO_ASSUME`|Optional|If AWS CodeArtifact is used as registry, an AWS role ARN to assume before authorizing.|
77
+ |`DISABLE_HTTPS`|Optional|Connect to the registry with HTTP instead of HTTPS (defaults to false).|
77
78
 
78
79
  ## Maven
79
80
 
package/bin/publib-npm CHANGED
@@ -14,6 +14,7 @@ set -eu
14
14
  # AWS_ACCESS_KEY_ID (optional): If AWS CodeArtifact is used as registry, an AWS access key can be spedified.
15
15
  # AWS_SECRET_ACCESS_KEY (optional): Secret access key that belongs to the AWS access key.
16
16
  # AWS_ROLE_TO_ASSUME (optional): If AWS CodeArtifact is used as registry and need to assume role.
17
+ # DISABLE_HTTPS (optional): connect to the registry with HTTP instead of HTTPS (defaults to false)
17
18
  #
18
19
  ###
19
20
 
@@ -43,7 +44,11 @@ echo "//${NPM_REGISTRY%%/}/:_authToken=${NPM_TOKEN}" > ~/.npmrc
43
44
 
44
45
  # this overrides any registry configuration defined externally. For example, yarn sets the registry to the yarn proxy
45
46
  # which requires `yarn login`. but since we are logging in through ~/.npmrc, we must make sure we publish directly to npm.
46
- export NPM_CONFIG_REGISTRY="https://${NPM_REGISTRY}"
47
+ if ! [ -z "${DISABLE_HTTPS:-}" ]; then
48
+ export NPM_CONFIG_REGISTRY="http://${NPM_REGISTRY}"
49
+ else
50
+ export NPM_CONFIG_REGISTRY="https://${NPM_REGISTRY}"
51
+ fi
47
52
 
48
53
  # dist-tags
49
54
  tag=""
package/package.json CHANGED
@@ -74,7 +74,7 @@
74
74
  "main": "lib/index.js",
75
75
  "license": "Apache-2.0",
76
76
  "homepage": "https://github.com/cdklabs/publib",
77
- "version": "0.2.326",
77
+ "version": "0.2.329",
78
78
  "jest": {
79
79
  "testMatch": [
80
80
  "<rootDir>/src/**/__tests__/**/*.ts?(x)",
package/package.json.bak CHANGED
@@ -74,7 +74,7 @@
74
74
  "main": "lib/index.js",
75
75
  "license": "Apache-2.0",
76
76
  "homepage": "https://github.com/cdklabs/publib",
77
- "version": "0.2.326",
77
+ "version": "0.2.329",
78
78
  "jest": {
79
79
  "testMatch": [
80
80
  "<rootDir>/src/**/__tests__/**/*.ts?(x)",