construct-hub 0.2.60 → 0.2.61
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/backend/transliterator/transliterator.bundle/index.js +52 -24
- package/lib/backend/transliterator/transliterator.bundle/index.js.map +2 -2
- package/lib/construct-hub.js +1 -1
- package/lib/package-sources/code-artifact.js +1 -1
- package/lib/package-sources/npmjs.js +1 -1
- package/lib/package-tag/index.js +2 -2
- package/lib/spdx-license.js +1 -1
- package/package.json +3 -3
    
        package/.jsii
    CHANGED
    
    | @@ -13054,6 +13054,6 @@ | |
| 13054 13054 | 
             
                  "symbolId": "src/package-sources/npmjs:NpmJsProps"
         | 
| 13055 13055 | 
             
                }
         | 
| 13056 13056 | 
             
              },
         | 
| 13057 | 
            -
              "version": "0.2. | 
| 13058 | 
            -
              "fingerprint": " | 
| 13057 | 
            +
              "version": "0.2.61",
         | 
| 13058 | 
            +
              "fingerprint": "1fTKH9APbIeHdD0wIwO2aMpnPD2VE2fqNBjao500nMs="
         | 
| 13059 13059 | 
             
            }
         | 
| @@ -150922,6 +150922,7 @@ var require_npm = __commonJS({ | |
| 150922 150922 | 
             
                      "--no-bin-links",
         | 
| 150923 150923 | 
             
                      "--no-save",
         | 
| 150924 150924 | 
             
                      "--include=dev",
         | 
| 150925 | 
            +
                      "--no-package-lock",
         | 
| 150925 150926 | 
             
                      target
         | 
| 150926 150927 | 
             
                    ], {
         | 
| 150927 150928 | 
             
                      cwd: this.workingDirectory,
         | 
| @@ -150932,16 +150933,18 @@ var require_npm = __commonJS({ | |
| 150932 150933 | 
             
                    if (__classPrivateFieldGet(this, _Npm_npmCommand, "f")) {
         | 
| 150933 150934 | 
             
                      return __classPrivateFieldGet(this, _Npm_npmCommand, "f");
         | 
| 150934 150935 | 
             
                    }
         | 
| 150935 | 
            -
                    this.logger("Installing  | 
| 150936 | 
            -
                    await this.runCommand("npm", ["install", "npm@ | 
| 150936 | 
            +
                    this.logger("Installing npm@8...");
         | 
| 150937 | 
            +
                    await this.runCommand("npm", ["install", "npm@8", "--no-package-lock", "--no-save"], {
         | 
| 150937 150938 | 
             
                      cwd: this.workingDirectory,
         | 
| 150938 150939 | 
             
                      shell: true
         | 
| 150939 150940 | 
             
                    });
         | 
| 150940 | 
            -
                     | 
| 150941 | 
            +
                    __classPrivateFieldSet(this, _Npm_npmCommand, (0, path_1.join)(this.workingDirectory, "node_modules", ".bin", "npm"), "f");
         | 
| 150942 | 
            +
                    this.logger(`Done installing npm@8 at ${__classPrivateFieldGet(this, _Npm_npmCommand, "f")}`);
         | 
| 150943 | 
            +
                    return __classPrivateFieldGet(this, _Npm_npmCommand, "f");
         | 
| 150941 150944 | 
             
                  }
         | 
| 150942 150945 | 
             
                  async runCommand(command, args, options) {
         | 
| 150946 | 
            +
                    const child = (0, child_process_1.spawn)(command, args, __spreadProps(__spreadValues({}, options), { stdio: ["inherit", "pipe", "pipe"] }));
         | 
| 150943 150947 | 
             
                    return new Promise((ok, ko) => {
         | 
| 150944 | 
            -
                      const child = (0, child_process_1.spawn)(command, args, __spreadProps(__spreadValues({}, options), { stdio: ["inherit", "pipe", "pipe"] }));
         | 
| 150945 150948 | 
             
                      const stdout = new Array();
         | 
| 150946 150949 | 
             
                      child.stdout.on("data", (chunk) => {
         | 
| 150947 150950 | 
             
                        process.stdout.write(chunk);
         | 
| @@ -150955,23 +150958,22 @@ var require_npm = __commonJS({ | |
| 150955 150958 | 
             
                      child.once("error", ko);
         | 
| 150956 150959 | 
             
                      child.once("close", (code, signal) => {
         | 
| 150957 150960 | 
             
                        if (code === 0) {
         | 
| 150958 | 
            -
                          ok();
         | 
| 150959 | 
            -
                        } | 
| 150960 | 
            -
             | 
| 150961 | 
            -
             | 
| 150962 | 
            -
             | 
| 150963 | 
            -
             | 
| 150964 | 
            -
             | 
| 150965 | 
            -
             | 
| 150966 | 
            -
             | 
| 150967 | 
            -
             | 
| 150968 | 
            -
             | 
| 150969 | 
            -
             | 
| 150970 | 
            -
             | 
| 150971 | 
            -
                            }
         | 
| 150961 | 
            +
                          return ok();
         | 
| 150962 | 
            +
                        }
         | 
| 150963 | 
            +
                        const fullCommand = [command, ...args].join(" ");
         | 
| 150964 | 
            +
                        if (signal != null) {
         | 
| 150965 | 
            +
                          return ko(new __1.NpmError(`Command "${fullCommand}" was killed by signal ${signal}`, { stdout, stderr }));
         | 
| 150966 | 
            +
                        }
         | 
| 150967 | 
            +
                        if (code === 228) {
         | 
| 150968 | 
            +
                          return ko(new __1.NoSpaceLeftOnDevice(`No space left on device when running "${fullCommand}"`));
         | 
| 150969 | 
            +
                        }
         | 
| 150970 | 
            +
                        const maybeerrno = 256 - code;
         | 
| 150971 | 
            +
                        for (const [errname, errno] of Object.entries(os2.constants.errno)) {
         | 
| 150972 | 
            +
                          if (maybeerrno === errno) {
         | 
| 150973 | 
            +
                            return ko(new __1.NpmError(`Command "${fullCommand}' command exited with code ${code} (possibly ${errname})`, { stdout, stderr }));
         | 
| 150972 150974 | 
             
                          }
         | 
| 150973 | 
            -
                          ko(new __1.NpmError(`Command "${fullCommand}' command exited with code ${code}`, { stdout, stderr }));
         | 
| 150974 150975 | 
             
                        }
         | 
| 150976 | 
            +
                        return ko(new __1.NpmError(`Command "${fullCommand}' command exited with code ${code}`, { stdout, stderr }));
         | 
| 150975 150977 | 
             
                      });
         | 
| 150976 150978 | 
             
                    });
         | 
| 150977 150979 | 
             
                  }
         | 
| @@ -152004,7 +152006,7 @@ var require_package2 = __commonJS({ | |
| 152004 152006 | 
             
                    "jest-junit": "^12",
         | 
| 152005 152007 | 
             
                    "json-schema": "^0.3.0",
         | 
| 152006 152008 | 
             
                    "npm-check-updates": "^11",
         | 
| 152007 | 
            -
                    projen: "^0.31. | 
| 152009 | 
            +
                    projen: "^0.31.6",
         | 
| 152008 152010 | 
             
                    "standard-version": "^9",
         | 
| 152009 152011 | 
             
                    "ts-jest": "^26.5.6",
         | 
| 152010 152012 | 
             
                    typescript: "~4.4.4"
         | 
| @@ -152025,7 +152027,7 @@ var require_package2 = __commonJS({ | |
| 152025 152027 | 
             
                  },
         | 
| 152026 152028 | 
             
                  main: "lib/index.js",
         | 
| 152027 152029 | 
             
                  license: "Apache-2.0",
         | 
| 152028 | 
            -
                  version: "3.8. | 
| 152030 | 
            +
                  version: "3.8.3",
         | 
| 152029 152031 | 
             
                  jest: {
         | 
| 152030 152032 | 
             
                    testMatch: [
         | 
| 152031 152033 | 
             
                      "**/__tests__/**/*.ts?(x)",
         | 
| @@ -152095,11 +152097,11 @@ var require_errors = __commonJS({ | |
| 152095 152097 | 
             
                    var _a;
         | 
| 152096 152098 | 
             
                    super(message);
         | 
| 152097 152099 | 
             
                    Error.captureStackTrace(this, this.constructor);
         | 
| 152098 | 
            -
                    this.stdout = Buffer.concat(stdio.stdout) | 
| 152099 | 
            -
                    this.stderr = Buffer.concat(stdio.stderr) | 
| 152100 | 
            +
                    this.stdout = Buffer.concat(stdio.stdout);
         | 
| 152101 | 
            +
                    this.stderr = Buffer.concat(stdio.stderr);
         | 
| 152100 152102 | 
             
                    this.name = `${name}.${this.constructor.name}`;
         | 
| 152101 152103 | 
             
                    const ERROR_CODE_REGEX = /^npm\s+ERR!\s+(?:code|errno)\s+(E[^\s]+|\d+)$/gm;
         | 
| 152102 | 
            -
                    for (const output of [this.stderr, this.stdout]) {
         | 
| 152104 | 
            +
                    for (const output of [...linesFrom(this.stderr), ...linesFrom(this.stdout)]) {
         | 
| 152103 152105 | 
             
                      const [, match] = (_a = ERROR_CODE_REGEX.exec(output)) !== null && _a !== void 0 ? _a : [];
         | 
| 152104 152106 | 
             
                      if (match) {
         | 
| 152105 152107 | 
             
                        this.npmErrorCode = match;
         | 
| @@ -152118,6 +152120,32 @@ var require_errors = __commonJS({ | |
| 152118 152120 | 
             
                  }
         | 
| 152119 152121 | 
             
                };
         | 
| 152120 152122 | 
             
                exports.NpmError = NpmError;
         | 
| 152123 | 
            +
                function linesFrom(buffer) {
         | 
| 152124 | 
            +
                  const lines = new Array();
         | 
| 152125 | 
            +
                  while (buffer.length > 0) {
         | 
| 152126 | 
            +
                    const { pos, len } = firstLineBreak(buffer);
         | 
| 152127 | 
            +
                    if (pos < 0) {
         | 
| 152128 | 
            +
                      lines.push(buffer.toString("utf8"));
         | 
| 152129 | 
            +
                      buffer = buffer.slice(buffer.length);
         | 
| 152130 | 
            +
                    } else {
         | 
| 152131 | 
            +
                      lines.push(buffer.slice(0, pos).toString("utf-8"));
         | 
| 152132 | 
            +
                      buffer = buffer.slice(pos + len);
         | 
| 152133 | 
            +
                    }
         | 
| 152134 | 
            +
                  }
         | 
| 152135 | 
            +
                  return lines;
         | 
| 152136 | 
            +
                }
         | 
| 152137 | 
            +
                function firstLineBreak(buffer) {
         | 
| 152138 | 
            +
                  const crlf = buffer.indexOf("\r\n");
         | 
| 152139 | 
            +
                  if (crlf >= 0) {
         | 
| 152140 | 
            +
                    return { pos: crlf, len: 2 };
         | 
| 152141 | 
            +
                  }
         | 
| 152142 | 
            +
                  const cr = buffer.indexOf("\r");
         | 
| 152143 | 
            +
                  if (cr >= 0) {
         | 
| 152144 | 
            +
                    return { pos: cr, len: 1 };
         | 
| 152145 | 
            +
                  }
         | 
| 152146 | 
            +
                  const lf = buffer.indexOf("\n");
         | 
| 152147 | 
            +
                  return { pos: lf, len: lf < 0 ? 0 : 1 };
         | 
| 152148 | 
            +
                }
         | 
| 152121 152149 | 
             
              }
         | 
| 152122 152150 | 
             
            });
         | 
| 152123 152151 |  |