@awsless/awsless 0.0.350 → 0.0.351

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 (2) hide show
  1. package/dist/bin.js +3 -5
  2. package/package.json +8 -8
package/dist/bin.js CHANGED
@@ -10520,7 +10520,7 @@ var generateRecursiveFileHashes = async (workspace, file, source, allowedExtensi
10520
10520
  if (dependency.type === "package") {
10521
10521
  hashes.set(file, Buffer.from(`${file}:${dependency.version}`, "utf8"));
10522
10522
  } else {
10523
- const localPackage = workspace.packages.find((p2) => p2.name === file);
10523
+ const localPackage = workspace.packages[file];
10524
10524
  if (!localPackage) {
10525
10525
  throw new Error(`Can't find the local workspace package for: ${file}`);
10526
10526
  }
@@ -10540,16 +10540,14 @@ var generateRecursiveFileHashes = async (workspace, file, source, allowedExtensi
10540
10540
  if (builtinModules.includes(file.replace(/^node\:/, ""))) {
10541
10541
  return;
10542
10542
  }
10543
- throw new Error(`Can't find the dependency version for: ${file}`);
10543
+ throw new Error(`Can't find the dependency version for: ${file} inside the source: ${source}`);
10544
10544
  };
10545
10545
  var mergeHashes = (hashes) => {
10546
10546
  const merge2 = Buffer.concat(Array.from(hashes.values()).sort());
10547
10547
  return createHash("sha1").update(merge2).digest("hex");
10548
10548
  };
10549
10549
  var findDependency = (workspace, module, source) => {
10550
- const pkg = workspace.packages.find((pkg2) => {
10551
- return source.startsWith(pkg2.path);
10552
- });
10550
+ const pkg = Object.values(workspace.packages).filter((p2) => source.startsWith(p2.path)).sort((a, b) => b.path.split("/").length - a.path.split("/").length).find((p2) => p2.dependencies[module]);
10553
10551
  if (!pkg) {
10554
10552
  return;
10555
10553
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.350",
3
+ "version": "0.0.351",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -30,13 +30,13 @@
30
30
  "peerDependencies": {
31
31
  "@awsless/iot": "^0.0.2",
32
32
  "@awsless/lambda": "^0.0.26",
33
- "@awsless/open-search": "^0.0.15",
34
- "@awsless/sns": "^0.0.7",
35
- "@awsless/s3": "^0.0.18",
36
33
  "@awsless/redis": "^0.0.12",
37
- "@awsless/ssm": "^0.0.7",
34
+ "@awsless/s3": "^0.0.18",
38
35
  "@awsless/sqs": "^0.0.7",
36
+ "@awsless/sns": "^0.0.7",
39
37
  "@awsless/validate": "^0.0.15",
38
+ "@awsless/open-search": "^0.0.15",
39
+ "@awsless/ssm": "^0.0.7",
40
40
  "@awsless/weak-cache": "^0.0.1"
41
41
  },
42
42
  "dependencies": {
@@ -110,10 +110,10 @@
110
110
  "@awsless/code": "^0.0.10",
111
111
  "@awsless/duration": "^0.0.1",
112
112
  "@awsless/formation": "^0.0.53",
113
- "@awsless/size": "^0.0.1",
114
113
  "@awsless/graphql": "^0.0.9",
115
- "@awsless/ts-file-cache": "^0.0.8",
116
- "@awsless/validate": "^0.0.15"
114
+ "@awsless/size": "^0.0.1",
115
+ "@awsless/validate": "^0.0.15",
116
+ "@awsless/ts-file-cache": "^0.0.9"
117
117
  },
118
118
  "scripts": {
119
119
  "test": "pnpm code test",