cdk-comprehend-s3olap 2.0.103 → 2.0.104

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 (55) hide show
  1. package/.jsii +5 -5
  2. package/lib/cdk-comprehend-s3olap.js +2 -2
  3. package/lib/comprehend-lambdas.js +2 -2
  4. package/lib/iam-roles.js +4 -4
  5. package/node_modules/aws-sdk/CHANGELOG.md +7 -1
  6. package/node_modules/aws-sdk/README.md +1 -1
  7. package/node_modules/aws-sdk/apis/backup-gateway-2021-01-01.min.json +59 -8
  8. package/node_modules/aws-sdk/apis/devicefarm-2015-06-23.min.json +166 -132
  9. package/node_modules/aws-sdk/apis/ec2-2016-11-15.min.json +3 -1
  10. package/node_modules/aws-sdk/apis/glue-2017-03-31.min.json +3 -1
  11. package/node_modules/aws-sdk/clients/backupgateway.d.ts +72 -0
  12. package/node_modules/aws-sdk/clients/devicefarm.d.ts +38 -0
  13. package/node_modules/aws-sdk/clients/ec2.d.ts +70 -67
  14. package/node_modules/aws-sdk/clients/glue.d.ts +8 -0
  15. package/node_modules/aws-sdk/clients/identitystore.d.ts +8 -8
  16. package/node_modules/aws-sdk/dist/aws-sdk-core-react-native.js +1 -1
  17. package/node_modules/aws-sdk/dist/aws-sdk-react-native.js +5 -5
  18. package/node_modules/aws-sdk/dist/aws-sdk.js +172 -136
  19. package/node_modules/aws-sdk/dist/aws-sdk.min.js +73 -73
  20. package/node_modules/aws-sdk/lib/core.js +1 -1
  21. package/node_modules/aws-sdk/package.json +1 -1
  22. package/node_modules/es-abstract/2015/GetSubstitution.js +1 -1
  23. package/node_modules/es-abstract/2015/ToNumber.js +1 -1
  24. package/node_modules/es-abstract/2016/GetSubstitution.js +1 -1
  25. package/node_modules/es-abstract/2016/ToNumber.js +1 -1
  26. package/node_modules/es-abstract/2017/GetSubstitution.js +1 -1
  27. package/node_modules/es-abstract/2017/ToNumber.js +1 -1
  28. package/node_modules/es-abstract/2018/GetSubstitution.js +1 -1
  29. package/node_modules/es-abstract/2018/ToNumber.js +1 -1
  30. package/node_modules/es-abstract/2019/GetSubstitution.js +1 -1
  31. package/node_modules/es-abstract/2019/ToNumber.js +1 -1
  32. package/node_modules/es-abstract/2020/GetSubstitution.js +1 -1
  33. package/node_modules/es-abstract/2020/ToNumber.js +1 -1
  34. package/node_modules/es-abstract/2021/GetSubstitution.js +1 -1
  35. package/node_modules/es-abstract/2021/ToNumber.js +1 -1
  36. package/node_modules/es-abstract/2022/GetSubstitution.js +1 -1
  37. package/node_modules/es-abstract/2022/StringToNumber.js +1 -1
  38. package/node_modules/es-abstract/CHANGELOG.md +6 -0
  39. package/node_modules/es-abstract/helpers/regexTester.js +2 -6
  40. package/node_modules/es-abstract/package.json +6 -5
  41. package/node_modules/esbuild/bin/esbuild +34 -9
  42. package/node_modules/esbuild/install.js +4 -4
  43. package/node_modules/esbuild/lib/main.js +41 -16
  44. package/node_modules/esbuild/package.json +23 -23
  45. package/node_modules/esbuild-linux-64/bin/esbuild +0 -0
  46. package/node_modules/esbuild-linux-64/package.json +1 -1
  47. package/node_modules/safe-regex-test/.eslintrc +9 -0
  48. package/node_modules/safe-regex-test/.github/FUNDING.yml +12 -0
  49. package/node_modules/safe-regex-test/CHANGELOG.md +15 -0
  50. package/node_modules/safe-regex-test/LICENSE +21 -0
  51. package/node_modules/safe-regex-test/README.md +42 -0
  52. package/node_modules/safe-regex-test/index.js +17 -0
  53. package/node_modules/safe-regex-test/package.json +75 -0
  54. package/node_modules/safe-regex-test/test/index.js +37 -0
  55. package/package.json +8 -8
@@ -20,7 +20,7 @@ AWS.util.update(AWS, {
20
20
  /**
21
21
  * @constant
22
22
  */
23
- VERSION: '2.1221.0',
23
+ VERSION: '2.1222.0',
24
24
 
25
25
  /**
26
26
  * @api private
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aws-sdk",
3
3
  "description": "AWS SDK for JavaScript",
4
- "version": "2.1221.0",
4
+ "version": "2.1222.0",
5
5
  "author": {
6
6
  "name": "Amazon Web Services",
7
7
  "email": "",
@@ -8,7 +8,7 @@ var $parseInt = GetIntrinsic('%parseInt%');
8
8
 
9
9
  var inspect = require('object-inspect');
10
10
 
11
- var regexTester = require('../helpers/regexTester');
11
+ var regexTester = require('safe-regex-test');
12
12
  var callBound = require('call-bind/callBound');
13
13
  var every = require('../helpers/every');
14
14
 
@@ -8,7 +8,7 @@ var $RegExp = GetIntrinsic('%RegExp%');
8
8
  var $parseInteger = GetIntrinsic('%parseInt%');
9
9
 
10
10
  var callBound = require('call-bind/callBound');
11
- var regexTester = require('../helpers/regexTester');
11
+ var regexTester = require('safe-regex-test');
12
12
  var isPrimitive = require('../helpers/isPrimitive');
13
13
 
14
14
  var $strSlice = callBound('String.prototype.slice');
@@ -8,7 +8,7 @@ var $parseInt = GetIntrinsic('%parseInt%');
8
8
 
9
9
  var inspect = require('object-inspect');
10
10
 
11
- var regexTester = require('../helpers/regexTester');
11
+ var regexTester = require('safe-regex-test');
12
12
  var callBound = require('call-bind/callBound');
13
13
  var every = require('../helpers/every');
14
14
 
@@ -8,7 +8,7 @@ var $RegExp = GetIntrinsic('%RegExp%');
8
8
  var $parseInteger = GetIntrinsic('%parseInt%');
9
9
 
10
10
  var callBound = require('call-bind/callBound');
11
- var regexTester = require('../helpers/regexTester');
11
+ var regexTester = require('safe-regex-test');
12
12
  var isPrimitive = require('../helpers/isPrimitive');
13
13
 
14
14
  var $strSlice = callBound('String.prototype.slice');
@@ -8,7 +8,7 @@ var $parseInt = GetIntrinsic('%parseInt%');
8
8
 
9
9
  var inspect = require('object-inspect');
10
10
 
11
- var regexTester = require('../helpers/regexTester');
11
+ var regexTester = require('safe-regex-test');
12
12
  var callBound = require('call-bind/callBound');
13
13
  var every = require('../helpers/every');
14
14
 
@@ -8,7 +8,7 @@ var $RegExp = GetIntrinsic('%RegExp%');
8
8
  var $parseInteger = GetIntrinsic('%parseInt%');
9
9
 
10
10
  var callBound = require('call-bind/callBound');
11
- var regexTester = require('../helpers/regexTester');
11
+ var regexTester = require('safe-regex-test');
12
12
  var isPrimitive = require('../helpers/isPrimitive');
13
13
 
14
14
  var $strSlice = callBound('String.prototype.slice');
@@ -5,7 +5,7 @@ var GetIntrinsic = require('get-intrinsic');
5
5
  var $TypeError = GetIntrinsic('%TypeError%');
6
6
 
7
7
  var callBound = require('call-bind/callBound');
8
- var regexTester = require('../helpers/regexTester');
8
+ var regexTester = require('safe-regex-test');
9
9
  var every = require('../helpers/every');
10
10
 
11
11
  var $charAt = callBound('String.prototype.charAt');
@@ -8,7 +8,7 @@ var $RegExp = GetIntrinsic('%RegExp%');
8
8
  var $parseInteger = GetIntrinsic('%parseInt%');
9
9
 
10
10
  var callBound = require('call-bind/callBound');
11
- var regexTester = require('../helpers/regexTester');
11
+ var regexTester = require('safe-regex-test');
12
12
  var isPrimitive = require('../helpers/isPrimitive');
13
13
 
14
14
  var $strSlice = callBound('String.prototype.slice');
@@ -5,7 +5,7 @@ var GetIntrinsic = require('get-intrinsic');
5
5
  var $TypeError = GetIntrinsic('%TypeError%');
6
6
 
7
7
  var callBound = require('call-bind/callBound');
8
- var regexTester = require('../helpers/regexTester');
8
+ var regexTester = require('safe-regex-test');
9
9
  var every = require('../helpers/every');
10
10
 
11
11
  var $charAt = callBound('String.prototype.charAt');
@@ -8,7 +8,7 @@ var $RegExp = GetIntrinsic('%RegExp%');
8
8
  var $parseInteger = GetIntrinsic('%parseInt%');
9
9
 
10
10
  var callBound = require('call-bind/callBound');
11
- var regexTester = require('../helpers/regexTester');
11
+ var regexTester = require('safe-regex-test');
12
12
  var isPrimitive = require('../helpers/isPrimitive');
13
13
 
14
14
  var $strSlice = callBound('String.prototype.slice');
@@ -5,7 +5,7 @@ var GetIntrinsic = require('get-intrinsic');
5
5
  var $TypeError = GetIntrinsic('%TypeError%');
6
6
 
7
7
  var callBound = require('call-bind/callBound');
8
- var regexTester = require('../helpers/regexTester');
8
+ var regexTester = require('safe-regex-test');
9
9
  var every = require('../helpers/every');
10
10
 
11
11
  var $charAt = callBound('String.prototype.charAt');
@@ -8,7 +8,7 @@ var $RegExp = GetIntrinsic('%RegExp%');
8
8
  var $parseInteger = GetIntrinsic('%parseInt%');
9
9
 
10
10
  var callBound = require('call-bind/callBound');
11
- var regexTester = require('../helpers/regexTester');
11
+ var regexTester = require('safe-regex-test');
12
12
  var isPrimitive = require('../helpers/isPrimitive');
13
13
 
14
14
  var $strSlice = callBound('String.prototype.slice');
@@ -5,7 +5,7 @@ var GetIntrinsic = require('get-intrinsic');
5
5
  var $TypeError = GetIntrinsic('%TypeError%');
6
6
 
7
7
  var callBound = require('call-bind/callBound');
8
- var regexTester = require('../helpers/regexTester');
8
+ var regexTester = require('safe-regex-test');
9
9
  var every = require('../helpers/every');
10
10
 
11
11
  var $charAt = callBound('String.prototype.charAt');
@@ -8,7 +8,7 @@ var $RegExp = GetIntrinsic('%RegExp%');
8
8
  var $parseInteger = GetIntrinsic('%parseInt%');
9
9
 
10
10
  var callBound = require('call-bind/callBound');
11
- var regexTester = require('../helpers/regexTester');
11
+ var regexTester = require('safe-regex-test');
12
12
  var isPrimitive = require('../helpers/isPrimitive');
13
13
 
14
14
  var $strSlice = callBound('String.prototype.slice');
@@ -5,7 +5,7 @@ var GetIntrinsic = require('get-intrinsic');
5
5
  var $TypeError = GetIntrinsic('%TypeError%');
6
6
 
7
7
  var callBound = require('call-bind/callBound');
8
- var regexTester = require('../helpers/regexTester');
8
+ var regexTester = require('safe-regex-test');
9
9
  var every = require('../helpers/every');
10
10
 
11
11
  var $charAt = callBound('String.prototype.charAt');
@@ -8,7 +8,7 @@ var $TypeError = GetIntrinsic('%TypeError%');
8
8
  var $parseInteger = GetIntrinsic('%parseInt%');
9
9
 
10
10
  var callBound = require('call-bind/callBound');
11
- var regexTester = require('../helpers/regexTester');
11
+ var regexTester = require('safe-regex-test');
12
12
 
13
13
  var $strSlice = callBound('String.prototype.slice');
14
14
  var isBinary = regexTester(/^0b[01]+$/i);
@@ -1,3 +1,9 @@
1
+ 1.20.3 / 2022-09-22
2
+ =================
3
+ * [Refactor] extract regex tester to `safe-regex-test` package
4
+ * [Deps] update `get-intrinsic`, `is-callable`
5
+ * [Dev Deps] update `aud`, `tape`
6
+
1
7
  1.20.2 / 2022-09-01
2
8
  =================
3
9
  * [Fix] `ES2020+`: `SameValueNonNumeric`: properly throw on BigInt values
@@ -1,9 +1,5 @@
1
1
  'use strict';
2
2
 
3
- var callBound = require('call-bind/callBound');
3
+ // TODO: remove, semver-major
4
4
 
5
- var $exec = callBound('RegExp.prototype.exec');
6
-
7
- module.exports = function regexTester(regex) {
8
- return function test(s) { return $exec(regex, s) !== null; };
9
- };
5
+ module.exports = require('safe-regex-test');
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "es-abstract",
3
- "version": "1.20.2",
3
+ "version": "1.20.3",
4
4
  "author": {
5
5
  "name": "Jordan Harband",
6
6
  "email": "ljharb@gmail.com",
@@ -56,13 +56,13 @@
56
56
  "es-to-primitive": "^1.2.1",
57
57
  "function-bind": "^1.1.1",
58
58
  "function.prototype.name": "^1.1.5",
59
- "get-intrinsic": "^1.1.2",
59
+ "get-intrinsic": "^1.1.3",
60
60
  "get-symbol-description": "^1.0.0",
61
61
  "has": "^1.0.3",
62
62
  "has-property-descriptors": "^1.0.0",
63
63
  "has-symbols": "^1.0.3",
64
64
  "internal-slot": "^1.0.3",
65
- "is-callable": "^1.2.4",
65
+ "is-callable": "^1.2.6",
66
66
  "is-negative-zero": "^2.0.2",
67
67
  "is-regex": "^1.1.4",
68
68
  "is-shared-array-buffer": "^1.0.2",
@@ -72,6 +72,7 @@
72
72
  "object-keys": "^1.1.1",
73
73
  "object.assign": "^4.1.4",
74
74
  "regexp.prototype.flags": "^1.4.3",
75
+ "safe-regex-test": "^1.0.0",
75
76
  "string.prototype.trimend": "^1.0.5",
76
77
  "string.prototype.trimstart": "^1.0.5",
77
78
  "unbox-primitive": "^1.0.2"
@@ -81,7 +82,7 @@
81
82
  "array.prototype.filter": "^1.0.1",
82
83
  "array.prototype.flatmap": "^1.3.0",
83
84
  "array.prototype.indexof": "^1.0.4",
84
- "aud": "^2.0.0",
85
+ "aud": "^2.0.1",
85
86
  "available-regexp-flags": "^1.0.0",
86
87
  "cheerio": "=1.0.0-rc.3",
87
88
  "diff": "^5.1.0",
@@ -103,7 +104,7 @@
103
104
  "object.fromentries": "^2.0.5",
104
105
  "safe-publish-latest": "^2.0.0",
105
106
  "ses": "^0.10.4",
106
- "tape": "^5.6.0"
107
+ "tape": "^5.6.1"
107
108
  },
108
109
  "testling": {
109
110
  "files": "test/index.js",
@@ -24,6 +24,8 @@ var fs = require("fs");
24
24
  var os = require("os");
25
25
  var path = require("path");
26
26
  var ESBUILD_BINARY_PATH = process.env.ESBUILD_BINARY_PATH || ESBUILD_BINARY_PATH;
27
+ var packageDarwin_arm64 = "esbuild-darwin-arm64";
28
+ var packageDarwin_x64 = "esbuild-darwin-64";
27
29
  var knownWindowsPackages = {
28
30
  "win32 arm64 LE": "esbuild-windows-arm64",
29
31
  "win32 ia32 LE": "esbuild-windows-32",
@@ -115,11 +117,7 @@ function generateBinPath() {
115
117
  } catch {
116
118
  const otherPkg = pkgForSomeOtherPlatform();
117
119
  if (otherPkg) {
118
- throw new Error(`
119
- You installed esbuild on another platform than the one you're currently using.
120
- This won't work because esbuild is written with native code and needs to
121
- install a platform-specific binary executable.
122
-
120
+ let suggestions = `
123
121
  Specifically the "${otherPkg}" package is present but this platform
124
122
  needs the "${pkg}" package instead. People often get into this
125
123
  situation by installing esbuild on Windows or macOS and copying "node_modules"
@@ -129,14 +127,40 @@ Windows and WSL environments.
129
127
  If you are installing with npm, you can try not copying the "node_modules"
130
128
  directory when you copy the files over, and running "npm ci" or "npm install"
131
129
  on the destination platform after the copy. Or you could consider using yarn
132
- instead which has built-in support for installing a package on multiple
130
+ instead of npm which has built-in support for installing a package on multiple
133
131
  platforms simultaneously.
134
132
 
135
133
  If you are installing with yarn, you can try listing both this platform and the
136
134
  other platform in your ".yarnrc.yml" file using the "supportedArchitectures"
137
135
  feature: https://yarnpkg.com/configuration/yarnrc/#supportedArchitectures
138
136
  Keep in mind that this means multiple copies of esbuild will be present.
137
+ `;
138
+ if (pkg === packageDarwin_x64 && otherPkg === packageDarwin_arm64 || pkg === packageDarwin_arm64 && otherPkg === packageDarwin_x64) {
139
+ suggestions = `
140
+ Specifically the "${otherPkg}" package is present but this platform
141
+ needs the "${pkg}" package instead. People often get into this
142
+ situation by installing esbuild with npm running inside of Rosetta 2 and then
143
+ trying to use it with node running outside of Rosetta 2, or vice versa (Rosetta
144
+ 2 is Apple's on-the-fly x86_64-to-arm64 translation service).
139
145
 
146
+ If you are installing with npm, you can try ensuring that both npm and node are
147
+ not running under Rosetta 2 and then reinstalling esbuild. This likely involves
148
+ changing how you installed npm and/or node. For example, installing node with
149
+ the universal installer here should work: https://nodejs.org/en/download/. Or
150
+ you could consider using yarn instead of npm which has built-in support for
151
+ installing a package on multiple platforms simultaneously.
152
+
153
+ If you are installing with yarn, you can try listing both "arm64" and "x64"
154
+ in your ".yarnrc.yml" file using the "supportedArchitectures" feature:
155
+ https://yarnpkg.com/configuration/yarnrc/#supportedArchitectures
156
+ Keep in mind that this means multiple copies of esbuild will be present.
157
+ `;
158
+ }
159
+ throw new Error(`
160
+ You installed esbuild for another platform than the one you're currently using.
161
+ This won't work because esbuild is written with native code and needs to
162
+ install a platform-specific binary executable.
163
+ ${suggestions}
140
164
  Another alternative is to use the "esbuild-wasm" package instead, which works
141
165
  the same way on all platforms. But it comes with a heavy performance cost and
142
166
  can sometimes be 10x slower than the "esbuild" package, so you may also not
@@ -146,8 +170,9 @@ want to do that.
146
170
  throw new Error(`The package "${pkg}" could not be found, and is needed by esbuild.
147
171
 
148
172
  If you are installing esbuild with npm, make sure that you don't specify the
149
- "--no-optional" flag. The "optionalDependencies" package.json feature is used
150
- by esbuild to install the correct binary executable for your current platform.`);
173
+ "--no-optional" or "--omit=optional" flags. The "optionalDependencies" feature
174
+ of "package.json" is used by esbuild to install the correct binary executable
175
+ for your current platform.`);
151
176
  }
152
177
  throw e;
153
178
  }
@@ -164,7 +189,7 @@ by esbuild to install the correct binary executable for your current platform.`)
164
189
  "node_modules",
165
190
  ".cache",
166
191
  "esbuild",
167
- `pnpapi-${pkg}-${"0.15.8"}-${path.basename(subpath)}`
192
+ `pnpapi-${pkg}-${"0.15.9"}-${path.basename(subpath)}`
168
193
  );
169
194
  if (!fs.existsSync(binTargetPath)) {
170
195
  fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
@@ -90,8 +90,8 @@ function validateBinaryVersion(...command) {
90
90
  const stdout = child_process.execFileSync(command.shift(), command, {
91
91
  stdio: "pipe"
92
92
  }).toString().trim();
93
- if (stdout !== "0.15.8") {
94
- throw new Error(`Expected ${JSON.stringify("0.15.8")} but got ${JSON.stringify(stdout)}`);
93
+ if (stdout !== "0.15.9") {
94
+ throw new Error(`Expected ${JSON.stringify("0.15.9")} but got ${JSON.stringify(stdout)}`);
95
95
  }
96
96
  }
97
97
  function isYarn() {
@@ -143,7 +143,7 @@ function installUsingNPM(pkg, subpath, binPath) {
143
143
  try {
144
144
  fs2.writeFileSync(path2.join(installDir, "package.json"), "{}");
145
145
  child_process.execSync(
146
- `npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.15.8"}`,
146
+ `npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.15.9"}`,
147
147
  { cwd: installDir, stdio: "pipe", env }
148
148
  );
149
149
  const installedBinPath = path2.join(installDir, "node_modules", pkg, subpath);
@@ -194,7 +194,7 @@ function maybeOptimizePackage(binPath) {
194
194
  }
195
195
  }
196
196
  async function downloadDirectlyFromNPM(pkg, subpath, binPath) {
197
- const url = `https://registry.npmjs.org/${pkg}/-/${pkg}-${"0.15.8"}.tgz`;
197
+ const url = `https://registry.npmjs.org/${pkg}/-/${pkg}-${"0.15.9"}.tgz`;
198
198
  console.error(`[esbuild] Trying to download ${JSON.stringify(url)}`);
199
199
  try {
200
200
  fs2.writeFileSync(binPath, extractFileFromTarGzip(await fetch(url), subpath));
@@ -709,8 +709,8 @@ function createChannel(streamIn) {
709
709
  if (isFirstPacket) {
710
710
  isFirstPacket = false;
711
711
  let binaryVersion = String.fromCharCode(...bytes);
712
- if (binaryVersion !== "0.15.8") {
713
- throw new Error(`Cannot start service: Host version "${"0.15.8"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
712
+ if (binaryVersion !== "0.15.9") {
713
+ throw new Error(`Cannot start service: Host version "${"0.15.9"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
714
714
  }
715
715
  return;
716
716
  }
@@ -1664,6 +1664,8 @@ var fs = require("fs");
1664
1664
  var os = require("os");
1665
1665
  var path = require("path");
1666
1666
  var ESBUILD_BINARY_PATH = process.env.ESBUILD_BINARY_PATH || ESBUILD_BINARY_PATH;
1667
+ var packageDarwin_arm64 = "esbuild-darwin-arm64";
1668
+ var packageDarwin_x64 = "esbuild-darwin-64";
1667
1669
  var knownWindowsPackages = {
1668
1670
  "win32 arm64 LE": "esbuild-windows-arm64",
1669
1671
  "win32 ia32 LE": "esbuild-windows-32",
@@ -1755,11 +1757,7 @@ function generateBinPath() {
1755
1757
  } catch {
1756
1758
  const otherPkg = pkgForSomeOtherPlatform();
1757
1759
  if (otherPkg) {
1758
- throw new Error(`
1759
- You installed esbuild on another platform than the one you're currently using.
1760
- This won't work because esbuild is written with native code and needs to
1761
- install a platform-specific binary executable.
1762
-
1760
+ let suggestions = `
1763
1761
  Specifically the "${otherPkg}" package is present but this platform
1764
1762
  needs the "${pkg}" package instead. People often get into this
1765
1763
  situation by installing esbuild on Windows or macOS and copying "node_modules"
@@ -1769,14 +1767,40 @@ Windows and WSL environments.
1769
1767
  If you are installing with npm, you can try not copying the "node_modules"
1770
1768
  directory when you copy the files over, and running "npm ci" or "npm install"
1771
1769
  on the destination platform after the copy. Or you could consider using yarn
1772
- instead which has built-in support for installing a package on multiple
1770
+ instead of npm which has built-in support for installing a package on multiple
1773
1771
  platforms simultaneously.
1774
1772
 
1775
1773
  If you are installing with yarn, you can try listing both this platform and the
1776
1774
  other platform in your ".yarnrc.yml" file using the "supportedArchitectures"
1777
1775
  feature: https://yarnpkg.com/configuration/yarnrc/#supportedArchitectures
1778
1776
  Keep in mind that this means multiple copies of esbuild will be present.
1777
+ `;
1778
+ if (pkg === packageDarwin_x64 && otherPkg === packageDarwin_arm64 || pkg === packageDarwin_arm64 && otherPkg === packageDarwin_x64) {
1779
+ suggestions = `
1780
+ Specifically the "${otherPkg}" package is present but this platform
1781
+ needs the "${pkg}" package instead. People often get into this
1782
+ situation by installing esbuild with npm running inside of Rosetta 2 and then
1783
+ trying to use it with node running outside of Rosetta 2, or vice versa (Rosetta
1784
+ 2 is Apple's on-the-fly x86_64-to-arm64 translation service).
1779
1785
 
1786
+ If you are installing with npm, you can try ensuring that both npm and node are
1787
+ not running under Rosetta 2 and then reinstalling esbuild. This likely involves
1788
+ changing how you installed npm and/or node. For example, installing node with
1789
+ the universal installer here should work: https://nodejs.org/en/download/. Or
1790
+ you could consider using yarn instead of npm which has built-in support for
1791
+ installing a package on multiple platforms simultaneously.
1792
+
1793
+ If you are installing with yarn, you can try listing both "arm64" and "x64"
1794
+ in your ".yarnrc.yml" file using the "supportedArchitectures" feature:
1795
+ https://yarnpkg.com/configuration/yarnrc/#supportedArchitectures
1796
+ Keep in mind that this means multiple copies of esbuild will be present.
1797
+ `;
1798
+ }
1799
+ throw new Error(`
1800
+ You installed esbuild for another platform than the one you're currently using.
1801
+ This won't work because esbuild is written with native code and needs to
1802
+ install a platform-specific binary executable.
1803
+ ${suggestions}
1780
1804
  Another alternative is to use the "esbuild-wasm" package instead, which works
1781
1805
  the same way on all platforms. But it comes with a heavy performance cost and
1782
1806
  can sometimes be 10x slower than the "esbuild" package, so you may also not
@@ -1786,8 +1810,9 @@ want to do that.
1786
1810
  throw new Error(`The package "${pkg}" could not be found, and is needed by esbuild.
1787
1811
 
1788
1812
  If you are installing esbuild with npm, make sure that you don't specify the
1789
- "--no-optional" flag. The "optionalDependencies" package.json feature is used
1790
- by esbuild to install the correct binary executable for your current platform.`);
1813
+ "--no-optional" or "--omit=optional" flags. The "optionalDependencies" feature
1814
+ of "package.json" is used by esbuild to install the correct binary executable
1815
+ for your current platform.`);
1791
1816
  }
1792
1817
  throw e;
1793
1818
  }
@@ -1804,7 +1829,7 @@ by esbuild to install the correct binary executable for your current platform.`)
1804
1829
  "node_modules",
1805
1830
  ".cache",
1806
1831
  "esbuild",
1807
- `pnpapi-${pkg}-${"0.15.8"}-${path.basename(subpath)}`
1832
+ `pnpapi-${pkg}-${"0.15.9"}-${path.basename(subpath)}`
1808
1833
  );
1809
1834
  if (!fs.existsSync(binTargetPath)) {
1810
1835
  fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
@@ -1835,7 +1860,7 @@ if (process.env.ESBUILD_WORKER_THREADS !== "0") {
1835
1860
  }
1836
1861
  }
1837
1862
  var _a;
1838
- var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.15.8";
1863
+ var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.15.9";
1839
1864
  var esbuildCommandAndArgs = () => {
1840
1865
  if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
1841
1866
  throw new Error(
@@ -1902,7 +1927,7 @@ var fsAsync = {
1902
1927
  }
1903
1928
  }
1904
1929
  };
1905
- var version = "0.15.8";
1930
+ var version = "0.15.9";
1906
1931
  var build = (options) => ensureServiceIsRunning().build(options);
1907
1932
  var serve = (serveOptions, buildOptions) => ensureServiceIsRunning().serve(serveOptions, buildOptions);
1908
1933
  var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
@@ -2013,7 +2038,7 @@ var ensureServiceIsRunning = () => {
2013
2038
  if (longLivedService)
2014
2039
  return longLivedService;
2015
2040
  let [command, args] = esbuildCommandAndArgs();
2016
- let child = child_process.spawn(command, args.concat(`--service=${"0.15.8"}`, "--ping"), {
2041
+ let child = child_process.spawn(command, args.concat(`--service=${"0.15.9"}`, "--ping"), {
2017
2042
  windowsHide: true,
2018
2043
  stdio: ["pipe", "pipe", "inherit"],
2019
2044
  cwd: defaultWD
@@ -2127,7 +2152,7 @@ var runServiceSync = (callback) => {
2127
2152
  esbuild: node_exports
2128
2153
  });
2129
2154
  callback(service);
2130
- let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.15.8"}`), {
2155
+ let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.15.9"}`), {
2131
2156
  cwd: defaultWD,
2132
2157
  windowsHide: true,
2133
2158
  input: stdin,
@@ -2143,7 +2168,7 @@ var workerThreadService = null;
2143
2168
  var startWorkerThreadService = (worker_threads2) => {
2144
2169
  let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
2145
2170
  let worker = new worker_threads2.Worker(__filename, {
2146
- workerData: { workerPort, defaultWD, esbuildVersion: "0.15.8" },
2171
+ workerData: { workerPort, defaultWD, esbuildVersion: "0.15.9" },
2147
2172
  transferList: [workerPort],
2148
2173
  execArgv: []
2149
2174
  });
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esbuild",
3
- "version": "0.15.8",
3
+ "version": "0.15.9",
4
4
  "description": "An extremely fast JavaScript and CSS bundler and minifier.",
5
5
  "repository": "https://github.com/evanw/esbuild",
6
6
  "scripts": {
@@ -15,28 +15,28 @@
15
15
  "esbuild": "bin/esbuild"
16
16
  },
17
17
  "optionalDependencies": {
18
- "@esbuild/android-arm": "0.15.8",
19
- "@esbuild/linux-loong64": "0.15.8",
20
- "esbuild-android-64": "0.15.8",
21
- "esbuild-android-arm64": "0.15.8",
22
- "esbuild-darwin-64": "0.15.8",
23
- "esbuild-darwin-arm64": "0.15.8",
24
- "esbuild-freebsd-64": "0.15.8",
25
- "esbuild-freebsd-arm64": "0.15.8",
26
- "esbuild-linux-32": "0.15.8",
27
- "esbuild-linux-64": "0.15.8",
28
- "esbuild-linux-arm": "0.15.8",
29
- "esbuild-linux-arm64": "0.15.8",
30
- "esbuild-linux-mips64le": "0.15.8",
31
- "esbuild-linux-ppc64le": "0.15.8",
32
- "esbuild-linux-riscv64": "0.15.8",
33
- "esbuild-linux-s390x": "0.15.8",
34
- "esbuild-netbsd-64": "0.15.8",
35
- "esbuild-openbsd-64": "0.15.8",
36
- "esbuild-sunos-64": "0.15.8",
37
- "esbuild-windows-32": "0.15.8",
38
- "esbuild-windows-64": "0.15.8",
39
- "esbuild-windows-arm64": "0.15.8"
18
+ "@esbuild/android-arm": "0.15.9",
19
+ "@esbuild/linux-loong64": "0.15.9",
20
+ "esbuild-android-64": "0.15.9",
21
+ "esbuild-android-arm64": "0.15.9",
22
+ "esbuild-darwin-64": "0.15.9",
23
+ "esbuild-darwin-arm64": "0.15.9",
24
+ "esbuild-freebsd-64": "0.15.9",
25
+ "esbuild-freebsd-arm64": "0.15.9",
26
+ "esbuild-linux-32": "0.15.9",
27
+ "esbuild-linux-64": "0.15.9",
28
+ "esbuild-linux-arm": "0.15.9",
29
+ "esbuild-linux-arm64": "0.15.9",
30
+ "esbuild-linux-mips64le": "0.15.9",
31
+ "esbuild-linux-ppc64le": "0.15.9",
32
+ "esbuild-linux-riscv64": "0.15.9",
33
+ "esbuild-linux-s390x": "0.15.9",
34
+ "esbuild-netbsd-64": "0.15.9",
35
+ "esbuild-openbsd-64": "0.15.9",
36
+ "esbuild-sunos-64": "0.15.9",
37
+ "esbuild-windows-32": "0.15.9",
38
+ "esbuild-windows-64": "0.15.9",
39
+ "esbuild-windows-arm64": "0.15.9"
40
40
  },
41
41
  "license": "MIT"
42
42
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esbuild-linux-64",
3
- "version": "0.15.8",
3
+ "version": "0.15.9",
4
4
  "description": "The Linux 64-bit binary for esbuild, a JavaScript bundler.",
5
5
  "repository": "https://github.com/evanw/esbuild",
6
6
  "license": "MIT",
@@ -0,0 +1,9 @@
1
+ {
2
+ "root": true,
3
+
4
+ "extends": "@ljharb",
5
+
6
+ "rules": {
7
+ "new-cap": [2, { "capIsNewExceptions": ["GetIntrinsic"] }],
8
+ },
9
+ }
@@ -0,0 +1,12 @@
1
+ # These are supported funding model platforms
2
+
3
+ github: [ljharb]
4
+ patreon: # Replace with a single Patreon username
5
+ open_collective: # Replace with a single Open Collective username
6
+ ko_fi: # Replace with a single Ko-fi username
7
+ tidelift: npm/safe-regex-test
8
+ community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9
+ liberapay: # Replace with a single Liberapay username
10
+ issuehunt: # Replace with a single IssueHunt username
11
+ otechie: # Replace with a single Otechie username
12
+ custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
@@ -0,0 +1,15 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## v1.0.0 - 2022-09-22
9
+
10
+ ### Commits
11
+
12
+ - Initial implementation, tests, readme [`0273e9f`](https://github.com/ljharb/safe-regex-test/commit/0273e9f96f4b09df413523f4faacc8ae9ac5e6cb)
13
+ - Initial commit [`b6c1edf`](https://github.com/ljharb/safe-regex-test/commit/b6c1edf740e6105fb71c34c1c69fadd837e8f7ab)
14
+ - npm init [`c7f5765`](https://github.com/ljharb/safe-regex-test/commit/c7f576580607b16458b5a16e6bfa3b639e49c6bd)
15
+ - Only apps should have lockfiles [`1162bf0`](https://github.com/ljharb/safe-regex-test/commit/1162bf011835040f7e2c9936734294b2d98536bf)