@awsless/cli 0.0.46-next.22 → 0.0.46-next.24
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/dist/bin.js +65 -46
- package/package.json +13 -13
package/dist/bin.js
CHANGED
|
@@ -56328,7 +56328,7 @@ var require_client2 = __commonJS((exports) => {
|
|
|
56328
56328
|
var require_config = __commonJS((exports) => {
|
|
56329
56329
|
var { homedir: homedir2 } = __require("os");
|
|
56330
56330
|
var { sep: sep2, join: join30 } = __require("path");
|
|
56331
|
-
var { createHash:
|
|
56331
|
+
var { createHash: createHash18 } = __require("crypto");
|
|
56332
56332
|
var { readFile: readFile$1 } = __require("fs/promises");
|
|
56333
56333
|
var { IniSectionType: IniSectionType2 } = require_dist_cjs();
|
|
56334
56334
|
var { normalizeProvider } = require_client2();
|
|
@@ -56483,7 +56483,7 @@ var require_config = __commonJS((exports) => {
|
|
|
56483
56483
|
var DEFAULT_PROFILE = "default";
|
|
56484
56484
|
var getProfileName = (init) => init.profile || process.env[ENV_PROFILE] || DEFAULT_PROFILE;
|
|
56485
56485
|
var getSSOTokenFilepath = (id) => {
|
|
56486
|
-
const hasher =
|
|
56486
|
+
const hasher = createHash18("sha1");
|
|
56487
56487
|
const cacheName = hasher.update(id).digest("hex");
|
|
56488
56488
|
return join30(getHomeDir(), ".aws", "sso", "cache", `${cacheName}.json`);
|
|
56489
56489
|
};
|
|
@@ -56564,7 +56564,7 @@ var require_config = __commonJS((exports) => {
|
|
|
56564
56564
|
};
|
|
56565
56565
|
var filePromises = {};
|
|
56566
56566
|
var fileIntercept = {};
|
|
56567
|
-
var
|
|
56567
|
+
var readFile14 = (path2, options) => {
|
|
56568
56568
|
if (fileIntercept[path2] !== undefined) {
|
|
56569
56569
|
return fileIntercept[path2];
|
|
56570
56570
|
}
|
|
@@ -56587,10 +56587,10 @@ var require_config = __commonJS((exports) => {
|
|
|
56587
56587
|
resolvedConfigFilepath = join30(homeDir, configFilepath.slice(2));
|
|
56588
56588
|
}
|
|
56589
56589
|
const parsedFiles = await Promise.all([
|
|
56590
|
-
|
|
56590
|
+
readFile14(resolvedConfigFilepath, {
|
|
56591
56591
|
ignoreCache: init.ignoreCache
|
|
56592
56592
|
}).then(parseIni).then(getConfigData).catch(swallowError$1),
|
|
56593
|
-
|
|
56593
|
+
readFile14(resolvedFilepath, {
|
|
56594
56594
|
ignoreCache: init.ignoreCache
|
|
56595
56595
|
}).then(parseIni).catch(swallowError$1)
|
|
56596
56596
|
]);
|
|
@@ -56601,7 +56601,7 @@ var require_config = __commonJS((exports) => {
|
|
|
56601
56601
|
};
|
|
56602
56602
|
var getSsoSessionData = (data) => Object.entries(data).filter(([key]) => key.startsWith(IniSectionType2.SSO_SESSION + CONFIG_PREFIX_SEPARATOR)).reduce((acc, [key, value]) => ({ ...acc, [key.substring(key.indexOf(CONFIG_PREFIX_SEPARATOR) + 1)]: value }), {});
|
|
56603
56603
|
var swallowError = () => ({});
|
|
56604
|
-
var loadSsoSessionData = async (init = {}) =>
|
|
56604
|
+
var loadSsoSessionData = async (init = {}) => readFile14(init.configFilepath ?? getConfigFilepath()).then(parseIni).then(getSsoSessionData).catch(swallowError);
|
|
56605
56605
|
var mergeConfigFiles = (...files) => {
|
|
56606
56606
|
const merged = {};
|
|
56607
56607
|
for (const file2 of files) {
|
|
@@ -57012,7 +57012,7 @@ var require_config = __commonJS((exports) => {
|
|
|
57012
57012
|
exports.nodeFipsConfigSelectors = nodeFipsConfigSelectors;
|
|
57013
57013
|
exports.numberSelector = numberSelector;
|
|
57014
57014
|
exports.parseKnownFiles = parseKnownFiles;
|
|
57015
|
-
exports.readFile =
|
|
57015
|
+
exports.readFile = readFile14;
|
|
57016
57016
|
exports.resolveCustomEndpointsConfig = resolveCustomEndpointsConfig;
|
|
57017
57017
|
exports.resolveDefaultsModeConfig = resolveDefaultsModeConfig;
|
|
57018
57018
|
exports.resolveEndpointsConfig = resolveEndpointsConfig;
|
|
@@ -57833,7 +57833,7 @@ var require_endpoints = __commonJS((exports) => {
|
|
|
57833
57833
|
|
|
57834
57834
|
// ../../node_modules/.pnpm/@smithy+core@3.29.7/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js
|
|
57835
57835
|
var require_serde = __commonJS((exports) => {
|
|
57836
|
-
var { createHmac: createHmac3, createHash:
|
|
57836
|
+
var { createHmac: createHmac3, createHash: createHash18, getRandomValues } = __require("crypto");
|
|
57837
57837
|
var { ReadStream, lstatSync: lstatSync2, fstatSync } = __require("fs");
|
|
57838
57838
|
var { HttpResponse: HttpResponse2 } = require_transport2();
|
|
57839
57839
|
var { toEndpointV1 } = require_endpoints();
|
|
@@ -58735,7 +58735,7 @@ var require_serde = __commonJS((exports) => {
|
|
|
58735
58735
|
return Promise.resolve(this.hash.digest());
|
|
58736
58736
|
}
|
|
58737
58737
|
reset() {
|
|
58738
|
-
this.hash = this.secret ? createHmac3(this.algorithmIdentifier, castSourceData(this.secret)) :
|
|
58738
|
+
this.hash = this.secret ? createHmac3(this.algorithmIdentifier, castSourceData(this.secret)) : createHash18(this.algorithmIdentifier);
|
|
58739
58739
|
}
|
|
58740
58740
|
}
|
|
58741
58741
|
function castSourceData(toCast, encoding) {
|
|
@@ -59474,7 +59474,7 @@ var require_checksum = __commonJS((exports) => {
|
|
|
59474
59474
|
var { createReadStream: createReadStream2 } = __require("fs");
|
|
59475
59475
|
var { Writable } = __require("stream");
|
|
59476
59476
|
var { toUint8Array, concatBytes } = require_serde();
|
|
59477
|
-
var { createHash:
|
|
59477
|
+
var { createHash: createHash18, createHmac: createHmac3 } = __require("crypto");
|
|
59478
59478
|
var zlib = __require("zlib");
|
|
59479
59479
|
async function blobReader(blob, onChunk, chunkSize = 1024 * 1024) {
|
|
59480
59480
|
const size = blob.size;
|
|
@@ -59639,7 +59639,7 @@ var require_checksum = __commonJS((exports) => {
|
|
|
59639
59639
|
}
|
|
59640
59640
|
var hasNativeCrypto$1 = (() => {
|
|
59641
59641
|
try {
|
|
59642
|
-
|
|
59642
|
+
createHash18("md5");
|
|
59643
59643
|
return true;
|
|
59644
59644
|
} catch {
|
|
59645
59645
|
return false;
|
|
@@ -59649,7 +59649,7 @@ var require_checksum = __commonJS((exports) => {
|
|
|
59649
59649
|
function buildNativeClass$2() {
|
|
59650
59650
|
return class Md5Node2 {
|
|
59651
59651
|
digestLength = 16;
|
|
59652
|
-
hash =
|
|
59652
|
+
hash = createHash18("md5");
|
|
59653
59653
|
update(data) {
|
|
59654
59654
|
this.hash.update(toUint8Array(data));
|
|
59655
59655
|
}
|
|
@@ -59658,7 +59658,7 @@ var require_checksum = __commonJS((exports) => {
|
|
|
59658
59658
|
return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength);
|
|
59659
59659
|
}
|
|
59660
59660
|
reset() {
|
|
59661
|
-
this.hash =
|
|
59661
|
+
this.hash = createHash18("md5");
|
|
59662
59662
|
}
|
|
59663
59663
|
};
|
|
59664
59664
|
}
|
|
@@ -59948,7 +59948,7 @@ var require_checksum = __commonJS((exports) => {
|
|
|
59948
59948
|
]);
|
|
59949
59949
|
var hasNativeCrypto = (() => {
|
|
59950
59950
|
try {
|
|
59951
|
-
|
|
59951
|
+
createHash18("sha256");
|
|
59952
59952
|
return true;
|
|
59953
59953
|
} catch {
|
|
59954
59954
|
return false;
|
|
@@ -59988,7 +59988,7 @@ var require_checksum = __commonJS((exports) => {
|
|
|
59988
59988
|
this.finished = false;
|
|
59989
59989
|
}
|
|
59990
59990
|
createHash() {
|
|
59991
|
-
return this.secret ? createHmac3("sha256", toBuffer(this.secret)) :
|
|
59991
|
+
return this.secret ? createHmac3("sha256", toBuffer(this.secret)) : createHash18("sha256");
|
|
59992
59992
|
}
|
|
59993
59993
|
};
|
|
59994
59994
|
}
|
|
@@ -74174,7 +74174,7 @@ var require_signin = __commonJS((exports) => {
|
|
|
74174
74174
|
});
|
|
74175
74175
|
|
|
74176
74176
|
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-login@3.972.66/node_modules/@aws-sdk/credential-provider-login/dist-es/LoginCredentialsFetcher.js
|
|
74177
|
-
import { createHash as
|
|
74177
|
+
import { createHash as createHash18, createPrivateKey, createPublicKey, sign } from "crypto";
|
|
74178
74178
|
import { promises as fs3 } from "fs";
|
|
74179
74179
|
import { homedir as homedir3 } from "os";
|
|
74180
74180
|
import { dirname as dirname19, join as join33 } from "path";
|
|
@@ -74338,7 +74338,7 @@ var init_LoginCredentialsFetcher = __esm(() => {
|
|
|
74338
74338
|
getTokenFilePath() {
|
|
74339
74339
|
const directory = process.env.AWS_LOGIN_CACHE_DIRECTORY ?? join33(homedir3(), ".aws", "login", "cache");
|
|
74340
74340
|
const loginSessionBytes = Buffer.from(this.loginSession, "utf8");
|
|
74341
|
-
const loginSessionSha256 =
|
|
74341
|
+
const loginSessionSha256 = createHash18("sha256").update(loginSessionBytes).digest("hex");
|
|
74342
74342
|
return join33(directory, `${loginSessionSha256}.json`);
|
|
74343
74343
|
}
|
|
74344
74344
|
derToRawSignature(derSignature) {
|
|
@@ -104766,12 +104766,14 @@ var createLambdaFunction = (ctx, id, local) => {
|
|
|
104766
104766
|
for (const [key, value] of Object.entries(props.environment ?? {})) {
|
|
104767
104767
|
variables[key] = value;
|
|
104768
104768
|
}
|
|
104769
|
-
|
|
104770
|
-
|
|
104771
|
-
|
|
104772
|
-
|
|
104773
|
-
|
|
104774
|
-
|
|
104769
|
+
if (!sandboxed) {
|
|
104770
|
+
ctx.onEnv((name2, value) => {
|
|
104771
|
+
variables[name2] = value;
|
|
104772
|
+
});
|
|
104773
|
+
ctx.onBind((name2, value) => {
|
|
104774
|
+
variables[name2] = value;
|
|
104775
|
+
});
|
|
104776
|
+
}
|
|
104775
104777
|
if (Array.isArray(local.sandbox) && local.sandbox.length > 0) {
|
|
104776
104778
|
const bundle = ctx.shared.get("bundle", "main");
|
|
104777
104779
|
const distDir = dirname7(fileURLToPath4(import.meta.url));
|
|
@@ -107502,7 +107504,7 @@ var layerFeature = defineFeature({
|
|
|
107502
107504
|
skipDestroy: true
|
|
107503
107505
|
}, {
|
|
107504
107506
|
dependsOn: [zip],
|
|
107505
|
-
replaceOnChanges: ["sourceCodeHash"]
|
|
107507
|
+
replaceOnChanges: ["sourceCodeHash", "s3ObjectVersion"]
|
|
107506
107508
|
});
|
|
107507
107509
|
ctx.shared.add("layer", "arn", id, layer.arn);
|
|
107508
107510
|
ctx.shared.add("layer", "packages", id, props.packages ?? [id]);
|
|
@@ -107513,6 +107515,8 @@ var layerFeature = defineFeature({
|
|
|
107513
107515
|
// src/feature/image/index.ts
|
|
107514
107516
|
import { toDays as toDays9 } from "@awsless/duration";
|
|
107515
107517
|
import { formatRouteEnvName as formatRouteEnvName5 } from "awsless";
|
|
107518
|
+
import { createHash as createHash14 } from "crypto";
|
|
107519
|
+
import { readFile as readFile11 } from "fs/promises";
|
|
107516
107520
|
import { dirname as dirname15, join as join23 } from "path";
|
|
107517
107521
|
import { fileURLToPath as fileURLToPath10 } from "url";
|
|
107518
107522
|
var imageFeature = defineFeature({
|
|
@@ -107534,12 +107538,27 @@ var imageFeature = defineFeature({
|
|
|
107534
107538
|
resourceType: "layer",
|
|
107535
107539
|
resourceName: "sharp"
|
|
107536
107540
|
});
|
|
107541
|
+
ctx.registerBuild("image", layerId, async (build2) => {
|
|
107542
|
+
const file2 = await readFile11(path2);
|
|
107543
|
+
const fingerprint = createHash14("sha1").update(file2).digest("hex");
|
|
107544
|
+
return build2(fingerprint, async (write) => {
|
|
107545
|
+
await Promise.all([
|
|
107546
|
+
write("HASH", fingerprint),
|
|
107547
|
+
write("layer.zip", file2)
|
|
107548
|
+
]);
|
|
107549
|
+
return {
|
|
107550
|
+
size: formatByteSize(file2.byteLength)
|
|
107551
|
+
};
|
|
107552
|
+
});
|
|
107553
|
+
});
|
|
107554
|
+
const source = relativePath(getBuildPath("image", layerId, "layer.zip"));
|
|
107555
|
+
const sourceHash = $file(getBuildPath("image", layerId, "HASH"));
|
|
107537
107556
|
const zipFile = new aws.s3.BucketObject(group, "layer", {
|
|
107538
107557
|
bucket: ctx.shared.get("asset", "bucket").name,
|
|
107539
107558
|
key: `layer/${layerId}.zip`,
|
|
107540
107559
|
contentType: "application/zip",
|
|
107541
|
-
source
|
|
107542
|
-
sourceHash
|
|
107560
|
+
source,
|
|
107561
|
+
sourceHash
|
|
107543
107562
|
}, {
|
|
107544
107563
|
replaceOnChanges: ["bucket", "key"]
|
|
107545
107564
|
});
|
|
@@ -107555,11 +107574,11 @@ var imageFeature = defineFeature({
|
|
|
107555
107574
|
}
|
|
107556
107575
|
return name;
|
|
107557
107576
|
}),
|
|
107558
|
-
sourceCodeHash:
|
|
107577
|
+
sourceCodeHash: sourceHash,
|
|
107559
107578
|
skipDestroy: true
|
|
107560
107579
|
}, {
|
|
107561
107580
|
dependsOn: [zipFile],
|
|
107562
|
-
replaceOnChanges: ["sourceCodeHash"]
|
|
107581
|
+
replaceOnChanges: ["sourceCodeHash", "s3ObjectVersion"]
|
|
107563
107582
|
});
|
|
107564
107583
|
ctx.shared.add("layer", "arn", layerId, layer.arn);
|
|
107565
107584
|
const bundle = ctx.shared.get("bundle", "main");
|
|
@@ -107739,15 +107758,15 @@ var import_deepmerge5 = __toESM(require_cjs2(), 1);
|
|
|
107739
107758
|
import { relative as relative7 } from "path";
|
|
107740
107759
|
|
|
107741
107760
|
// src/feature/job/util.ts
|
|
107742
|
-
import { createHash as
|
|
107761
|
+
import { createHash as createHash16 } from "crypto";
|
|
107743
107762
|
import { toDays as toDays11, toSeconds as toSeconds9 } from "@awsless/duration";
|
|
107744
107763
|
import { stringify as stringify2 } from "@awsless/json";
|
|
107745
107764
|
import { generateFileHash as generateFileHash3 } from "@awsless/ts-file-cache";
|
|
107746
107765
|
var import_deepmerge4 = __toESM(require_cjs2(), 1);
|
|
107747
107766
|
|
|
107748
107767
|
// src/feature/job/build/executable.ts
|
|
107749
|
-
import { createHash as
|
|
107750
|
-
import { readFile as
|
|
107768
|
+
import { createHash as createHash15 } from "crypto";
|
|
107769
|
+
import { readFile as readFile12, writeFile as writeFile7 } from "fs/promises";
|
|
107751
107770
|
import { join as join25, resolve as resolve3 } from "path";
|
|
107752
107771
|
var buildJobExecutable = async (input, outputPath, architecture) => {
|
|
107753
107772
|
const filePath = join25(outputPath, "program");
|
|
@@ -107802,9 +107821,9 @@ await handler(payload)
|
|
|
107802
107821
|
${result.logs?.map((log) => log.message).join(`
|
|
107803
107822
|
`)}`);
|
|
107804
107823
|
}
|
|
107805
|
-
const file2 = await
|
|
107824
|
+
const file2 = await readFile12(filePath);
|
|
107806
107825
|
return {
|
|
107807
|
-
hash:
|
|
107826
|
+
hash: createHash15("sha1").update(file2).update(target2).digest("hex"),
|
|
107808
107827
|
file: file2
|
|
107809
107828
|
};
|
|
107810
107829
|
};
|
|
@@ -108067,7 +108086,7 @@ var createFargateJob = (parentGroup, ctx, ns, id, local) => {
|
|
|
108067
108086
|
variables.AWS_ACCOUNT_ID = ctx.accountId;
|
|
108068
108087
|
variables.STACK = ctx.stackConfig.name;
|
|
108069
108088
|
variables.CODE_HASH = code.sourceHash;
|
|
108070
|
-
variables.JOB_CONFIG_HASH =
|
|
108089
|
+
variables.JOB_CONFIG_HASH = createHash16("sha1").update(stringify2(props)).digest("hex");
|
|
108071
108090
|
if (props.environment) {
|
|
108072
108091
|
for (const [key, value] of Object.entries(props.environment)) {
|
|
108073
108092
|
variables[key] = value;
|
|
@@ -108262,7 +108281,7 @@ import { toDays as toDays12, toSeconds as toSeconds10 } from "@awsless/duration"
|
|
|
108262
108281
|
import { stringify as stringify3 } from "@awsless/json";
|
|
108263
108282
|
import { generateFileHash as generateFileHash4 } from "@awsless/ts-file-cache";
|
|
108264
108283
|
var import_deepmerge6 = __toESM(require_cjs2(), 1);
|
|
108265
|
-
import { createHash as
|
|
108284
|
+
import { createHash as createHash17 } from "crypto";
|
|
108266
108285
|
import { join as join26 } from "path";
|
|
108267
108286
|
var createFargateTask = (parentGroup, ctx, ns, id, local) => {
|
|
108268
108287
|
const group = new Group(parentGroup, "instance", ns);
|
|
@@ -108555,7 +108574,7 @@ var createFargateTask = (parentGroup, ctx, ns, id, local) => {
|
|
|
108555
108574
|
variables.AWS_ACCOUNT_ID = ctx.accountId;
|
|
108556
108575
|
variables.STACK = ctx.stackConfig.name;
|
|
108557
108576
|
variables.CODE_HASH = code.sourceHash;
|
|
108558
|
-
variables.INSTANCE_CONFIG_HASH =
|
|
108577
|
+
variables.INSTANCE_CONFIG_HASH = createHash17("sha1").update(stringify3(props)).digest("hex");
|
|
108559
108578
|
if (props.environment) {
|
|
108560
108579
|
for (const [key, value] of Object.entries(props.environment)) {
|
|
108561
108580
|
variables[key] = value;
|
|
@@ -111167,7 +111186,7 @@ import { DynamoDBClient as DynamoDBClient3 } from "@awsless/dynamodb";
|
|
|
111167
111186
|
|
|
111168
111187
|
// src/cli/ui/complex/run-tests.ts
|
|
111169
111188
|
var import_wildstring3 = __toESM(require_wildstring(), 1);
|
|
111170
|
-
import { mkdir as mkdir6, readFile as
|
|
111189
|
+
import { mkdir as mkdir6, readFile as readFile13, writeFile as writeFile8 } from "fs/promises";
|
|
111171
111190
|
import { join as join28 } from "path";
|
|
111172
111191
|
import { parse as parse5, stringify as stringify4 } from "@awsless/json";
|
|
111173
111192
|
import { generateFolderHash, loadWorkspace as loadWorkspace2 } from "@awsless/ts-file-cache";
|
|
@@ -111354,7 +111373,7 @@ var runTest = async (stack, dir, filters, workspace, opts) => {
|
|
|
111354
111373
|
if (!process.env.NO_CACHE) {
|
|
111355
111374
|
const exists2 = await fileExist(file2);
|
|
111356
111375
|
if (exists2) {
|
|
111357
|
-
const raw = await
|
|
111376
|
+
const raw = await readFile13(file2, { encoding: "utf8" });
|
|
111358
111377
|
const data = parse5(raw);
|
|
111359
111378
|
if (data.fingerprint === fingerprint) {
|
|
111360
111379
|
logs_exports.step(formatResult({
|
|
@@ -114919,7 +114938,7 @@ var parseIni = (iniData) => {
|
|
|
114919
114938
|
import { readFile as fsReadFile } from "fs/promises";
|
|
114920
114939
|
var filePromises = {};
|
|
114921
114940
|
var fileIntercept = {};
|
|
114922
|
-
var
|
|
114941
|
+
var readFile14 = (path2, options) => {
|
|
114923
114942
|
if (fileIntercept[path2] !== undefined) {
|
|
114924
114943
|
return fileIntercept[path2];
|
|
114925
114944
|
}
|
|
@@ -114944,10 +114963,10 @@ var loadSharedConfigFiles = async (init = {}) => {
|
|
|
114944
114963
|
resolvedConfigFilepath = join32(homeDir, configFilepath.slice(2));
|
|
114945
114964
|
}
|
|
114946
114965
|
const parsedFiles = await Promise.all([
|
|
114947
|
-
|
|
114966
|
+
readFile14(resolvedConfigFilepath, {
|
|
114948
114967
|
ignoreCache: init.ignoreCache
|
|
114949
114968
|
}).then(parseIni).then(getConfigData).catch(swallowError),
|
|
114950
|
-
|
|
114969
|
+
readFile14(resolvedFilepath, {
|
|
114951
114970
|
ignoreCache: init.ignoreCache
|
|
114952
114971
|
}).then(parseIni).catch(swallowError)
|
|
114953
114972
|
]);
|
|
@@ -116033,7 +116052,7 @@ var getRuntimeUserAgentPair = () => {
|
|
|
116033
116052
|
};
|
|
116034
116053
|
|
|
116035
116054
|
// ../../node_modules/.pnpm/@aws-sdk+util-user-agent-node@3.973.14_aws-crt@1.30.0_supports-color@8.1.1_/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptUserAgentPair.js
|
|
116036
|
-
import { readFile as
|
|
116055
|
+
import { readFile as readFile16 } from "fs/promises";
|
|
116037
116056
|
import { join as join34 } from "path";
|
|
116038
116057
|
|
|
116039
116058
|
// ../../node_modules/.pnpm/@aws-sdk+util-user-agent-node@3.973.14_aws-crt@1.30.0_supports-color@8.1.1_/node_modules/@aws-sdk/util-user-agent-node/dist-es/getNodeModulesParentDirs.js
|
|
@@ -116103,7 +116122,7 @@ var getTypeScriptUserAgentPair = async () => {
|
|
|
116103
116122
|
for (const nodeModulesParentDir of nodeModulesParentDirs) {
|
|
116104
116123
|
try {
|
|
116105
116124
|
const appPackageJsonPath = join34(nodeModulesParentDir, "package.json");
|
|
116106
|
-
const packageJson = await
|
|
116125
|
+
const packageJson = await readFile16(appPackageJsonPath, "utf-8");
|
|
116107
116126
|
const { dependencies, devDependencies } = JSON.parse(packageJson);
|
|
116108
116127
|
const version2 = devDependencies?.typescript ?? dependencies?.typescript;
|
|
116109
116128
|
if (typeof version2 !== "string") {
|
|
@@ -116121,7 +116140,7 @@ var getTypeScriptUserAgentPair = async () => {
|
|
|
116121
116140
|
for (const nodeModulesParentDir of nodeModulesParentDirs) {
|
|
116122
116141
|
try {
|
|
116123
116142
|
const tsPackageJsonPath = join34(nodeModulesParentDir, TS_PACKAGE_JSON);
|
|
116124
|
-
const packageJson = await
|
|
116143
|
+
const packageJson = await readFile16(tsPackageJsonPath, "utf-8");
|
|
116125
116144
|
const { version: version2 } = JSON.parse(packageJson);
|
|
116126
116145
|
const sanitizedVersion2 = getSanitizedTypeScriptVersion(version2);
|
|
116127
116146
|
if (typeof sanitizedVersion2 !== "string") {
|
|
@@ -116246,7 +116265,7 @@ var toUtf82 = (input) => {
|
|
|
116246
116265
|
|
|
116247
116266
|
// ../../node_modules/.pnpm/@smithy+hash-node@4.2.12/node_modules/@smithy/hash-node/dist-es/index.js
|
|
116248
116267
|
import { Buffer as Buffer3 } from "buffer";
|
|
116249
|
-
import { createHash as
|
|
116268
|
+
import { createHash as createHash19, createHmac as createHmac3 } from "crypto";
|
|
116250
116269
|
|
|
116251
116270
|
class Hash {
|
|
116252
116271
|
algorithmIdentifier;
|
|
@@ -116264,7 +116283,7 @@ class Hash {
|
|
|
116264
116283
|
return Promise.resolve(this.hash.digest());
|
|
116265
116284
|
}
|
|
116266
116285
|
reset() {
|
|
116267
|
-
this.hash = this.secret ? createHmac3(this.algorithmIdentifier, castSourceData(this.secret)) :
|
|
116286
|
+
this.hash = this.secret ? createHmac3(this.algorithmIdentifier, castSourceData(this.secret)) : createHash19(this.algorithmIdentifier);
|
|
116268
116287
|
}
|
|
116269
116288
|
}
|
|
116270
116289
|
function castSourceData(toCast, encoding) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awsless/cli",
|
|
3
|
-
"version": "0.0.46-next.
|
|
3
|
+
"version": "0.0.46-next.24",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
"@awsless/ts-file-cache": "^0.0.16"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@awsless/big-float": "^0.1.7",
|
|
42
|
-
"@awsless/duration": "^0.0.4",
|
|
43
|
-
"@awsless/dynamodb": "^0.3.22",
|
|
44
41
|
"@awsless/json": "^0.0.11",
|
|
45
42
|
"@awsless/lambda": "^0.0.47",
|
|
46
|
-
"@awsless/
|
|
43
|
+
"@awsless/dynamodb": "^0.3.22",
|
|
47
44
|
"@awsless/validate": "^0.1.7",
|
|
45
|
+
"@awsless/s3": "^0.0.22",
|
|
48
46
|
"@awsless/weak-cache": "^0.0.1",
|
|
49
|
-
"awsless": "^0.0.15-next.8"
|
|
47
|
+
"awsless": "^0.0.15-next.8",
|
|
48
|
+
"@awsless/big-float": "^0.1.7",
|
|
49
|
+
"@awsless/duration": "^0.0.4"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@clack/prompts": "^0.7.0",
|
|
@@ -101,25 +101,25 @@
|
|
|
101
101
|
"zip-a-folder": "^3.1.6",
|
|
102
102
|
"zod": "^3.24.2",
|
|
103
103
|
"zod-to-json-schema": "^3.24.3",
|
|
104
|
-
"@awsless/big-float": "^0.1.7",
|
|
105
|
-
"@awsless/duration": "^0.0.4",
|
|
106
104
|
"@awsless/cloudwatch": "^0.0.1",
|
|
105
|
+
"@awsless/duration": "^0.0.4",
|
|
106
|
+
"@awsless/big-float": "^0.1.7",
|
|
107
107
|
"@awsless/clui": "^0.0.9",
|
|
108
108
|
"@awsless/dynamodb": "^0.3.22",
|
|
109
109
|
"@awsless/json": "^0.0.11",
|
|
110
110
|
"@awsless/iot": "^0.0.5",
|
|
111
111
|
"@awsless/lambda": "^0.0.47",
|
|
112
|
-
"@awsless/
|
|
113
|
-
"@awsless/redis": "^0.1.13",
|
|
112
|
+
"@awsless/scheduler": "^0.0.5",
|
|
114
113
|
"@awsless/s3": "^0.0.22",
|
|
115
114
|
"@awsless/size": "^0.0.2",
|
|
116
115
|
"@awsless/sns": "^0.0.11",
|
|
117
116
|
"@awsless/sqs": "^0.0.24",
|
|
118
|
-
"@awsless/
|
|
117
|
+
"@awsless/ssm": "^0.0.8",
|
|
119
118
|
"@awsless/validate": "^0.1.7",
|
|
120
119
|
"@awsless/weak-cache": "^0.0.1",
|
|
121
|
-
"
|
|
122
|
-
"awsless": "^0.
|
|
120
|
+
"awsless": "^0.0.15-next.8",
|
|
121
|
+
"@awsless/redis": "^0.1.13",
|
|
122
|
+
"@awsless/open-search": "^0.0.24"
|
|
123
123
|
},
|
|
124
124
|
"scripts": {
|
|
125
125
|
"test": "bun cli/build-handlers.ts && pnpm vitest",
|