@gammarers/aws-daily-cost-usage-report-stack 2.0.14 → 2.0.15
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
CHANGED
|
@@ -4139,6 +4139,6 @@
|
|
|
4139
4139
|
"symbolId": "src/index:DailyCostUsageReportStackProps"
|
|
4140
4140
|
}
|
|
4141
4141
|
},
|
|
4142
|
-
"version": "2.0.
|
|
4143
|
-
"fingerprint": "
|
|
4142
|
+
"version": "2.0.15",
|
|
4143
|
+
"fingerprint": "5AaLClNJduiQz2UblVY/yCvFq0xCp2XUVEoK4q1Mvy4="
|
|
4144
4144
|
}
|
|
@@ -10902,6 +10902,7 @@ var require_form_data = __commonJS({
|
|
|
10902
10902
|
var parseUrl = require("url").parse;
|
|
10903
10903
|
var fs = require("fs");
|
|
10904
10904
|
var Stream = require("stream").Stream;
|
|
10905
|
+
var crypto = require("crypto");
|
|
10905
10906
|
var mime = require_mime_types();
|
|
10906
10907
|
var asynckit = require_asynckit();
|
|
10907
10908
|
var setToStringTag = require_es_set_tostringtag();
|
|
@@ -11107,11 +11108,7 @@ var require_form_data = __commonJS({
|
|
|
11107
11108
|
return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]);
|
|
11108
11109
|
};
|
|
11109
11110
|
FormData2.prototype._generateBoundary = function() {
|
|
11110
|
-
|
|
11111
|
-
for (var i = 0; i < 24; i++) {
|
|
11112
|
-
boundary += Math.floor(Math.random() * 10).toString(16);
|
|
11113
|
-
}
|
|
11114
|
-
this._boundary = boundary;
|
|
11111
|
+
this._boundary = "--------------------------" + crypto.randomBytes(12).toString("hex");
|
|
11115
11112
|
};
|
|
11116
11113
|
FormData2.prototype.getLengthSync = function() {
|
|
11117
11114
|
var knownLength = this._overheadLength + this._valueLength;
|
|
@@ -12640,6 +12637,16 @@ var require_axios = __commonJS({
|
|
|
12640
12637
|
const prototype2 = getPrototypeOf(val);
|
|
12641
12638
|
return (prototype2 === null || prototype2 === Object.prototype || Object.getPrototypeOf(prototype2) === null) && !(toStringTag in val) && !(iterator in val);
|
|
12642
12639
|
};
|
|
12640
|
+
var isEmptyObject = (val) => {
|
|
12641
|
+
if (!isObject(val) || isBuffer(val)) {
|
|
12642
|
+
return false;
|
|
12643
|
+
}
|
|
12644
|
+
try {
|
|
12645
|
+
return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
|
|
12646
|
+
} catch (e) {
|
|
12647
|
+
return false;
|
|
12648
|
+
}
|
|
12649
|
+
};
|
|
12643
12650
|
var isDate = kindOfTest("Date");
|
|
12644
12651
|
var isFile = kindOfTest("File");
|
|
12645
12652
|
var isBlob = kindOfTest("Blob");
|
|
@@ -12667,6 +12674,9 @@ var require_axios = __commonJS({
|
|
|
12667
12674
|
fn.call(null, obj[i], i, obj);
|
|
12668
12675
|
}
|
|
12669
12676
|
} else {
|
|
12677
|
+
if (isBuffer(obj)) {
|
|
12678
|
+
return;
|
|
12679
|
+
}
|
|
12670
12680
|
const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
|
|
12671
12681
|
const len = keys.length;
|
|
12672
12682
|
let key;
|
|
@@ -12677,6 +12687,9 @@ var require_axios = __commonJS({
|
|
|
12677
12687
|
}
|
|
12678
12688
|
}
|
|
12679
12689
|
function findKey(obj, key) {
|
|
12690
|
+
if (isBuffer(obj)) {
|
|
12691
|
+
return null;
|
|
12692
|
+
}
|
|
12680
12693
|
key = key.toLowerCase();
|
|
12681
12694
|
const keys = Object.keys(obj);
|
|
12682
12695
|
let i = keys.length;
|
|
@@ -12867,6 +12880,9 @@ var require_axios = __commonJS({
|
|
|
12867
12880
|
if (stack.indexOf(source) >= 0) {
|
|
12868
12881
|
return;
|
|
12869
12882
|
}
|
|
12883
|
+
if (isBuffer(source)) {
|
|
12884
|
+
return source;
|
|
12885
|
+
}
|
|
12870
12886
|
if (!("toJSON" in source)) {
|
|
12871
12887
|
stack[i] = source;
|
|
12872
12888
|
const target = isArray(source) ? [] : {};
|
|
@@ -12916,6 +12932,7 @@ var require_axios = __commonJS({
|
|
|
12916
12932
|
isBoolean,
|
|
12917
12933
|
isObject,
|
|
12918
12934
|
isPlainObject,
|
|
12935
|
+
isEmptyObject,
|
|
12919
12936
|
isReadableStream,
|
|
12920
12937
|
isRequest,
|
|
12921
12938
|
isResponse,
|
|
@@ -13324,15 +13341,16 @@ var require_axios = __commonJS({
|
|
|
13324
13341
|
...platform$1
|
|
13325
13342
|
};
|
|
13326
13343
|
function toURLEncodedForm(data, options) {
|
|
13327
|
-
return toFormData(data, new platform.classes.URLSearchParams(),
|
|
13344
|
+
return toFormData(data, new platform.classes.URLSearchParams(), {
|
|
13328
13345
|
visitor: function(value, key, path, helpers) {
|
|
13329
13346
|
if (platform.isNode && utils$1.isBuffer(value)) {
|
|
13330
13347
|
this.append(key, value.toString("base64"));
|
|
13331
13348
|
return false;
|
|
13332
13349
|
}
|
|
13333
13350
|
return helpers.defaultVisitor.apply(this, arguments);
|
|
13334
|
-
}
|
|
13335
|
-
|
|
13351
|
+
},
|
|
13352
|
+
...options
|
|
13353
|
+
});
|
|
13336
13354
|
}
|
|
13337
13355
|
function parsePropPath(name) {
|
|
13338
13356
|
return utils$1.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
|
|
@@ -13809,7 +13827,7 @@ var require_axios = __commonJS({
|
|
|
13809
13827
|
}
|
|
13810
13828
|
return requestedURL;
|
|
13811
13829
|
}
|
|
13812
|
-
var VERSION = "1.
|
|
13830
|
+
var VERSION = "1.11.0";
|
|
13813
13831
|
function parseProtocol(url2) {
|
|
13814
13832
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
|
|
13815
13833
|
return match && match[1] || "";
|
|
@@ -14120,7 +14138,7 @@ var require_axios = __commonJS({
|
|
|
14120
14138
|
clearTimeout(timer);
|
|
14121
14139
|
timer = null;
|
|
14122
14140
|
}
|
|
14123
|
-
fn
|
|
14141
|
+
fn(...args);
|
|
14124
14142
|
};
|
|
14125
14143
|
const throttled = (...args) => {
|
|
14126
14144
|
const now = Date.now();
|
|
@@ -14781,7 +14799,7 @@ var require_axios = __commonJS({
|
|
|
14781
14799
|
validateStatus: mergeDirectKeys,
|
|
14782
14800
|
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
14783
14801
|
};
|
|
14784
|
-
utils$1.forEach(Object.keys(
|
|
14802
|
+
utils$1.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
|
|
14785
14803
|
const merge2 = mergeMap[prop] || mergeDeepProperties;
|
|
14786
14804
|
const configValue = merge2(config1[prop], config2[prop], prop);
|
|
14787
14805
|
utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
@@ -15477,8 +15495,8 @@ var require_axios = __commonJS({
|
|
|
15477
15495
|
let len;
|
|
15478
15496
|
if (!synchronousRequestInterceptors) {
|
|
15479
15497
|
const chain = [dispatchRequest.bind(this), void 0];
|
|
15480
|
-
chain.unshift
|
|
15481
|
-
chain.push
|
|
15498
|
+
chain.unshift(...requestInterceptorChain);
|
|
15499
|
+
chain.push(...responseInterceptorChain);
|
|
15482
15500
|
len = chain.length;
|
|
15483
15501
|
promise = Promise.resolve(config);
|
|
15484
15502
|
while (i < len) {
|
|
@@ -15833,13 +15851,13 @@ var require_form_data2 = __commonJS({
|
|
|
15833
15851
|
var https = require("https");
|
|
15834
15852
|
var parseUrl = require("url").parse;
|
|
15835
15853
|
var fs = require("fs");
|
|
15854
|
+
var crypto = require("crypto");
|
|
15836
15855
|
var mime = require_mime_types();
|
|
15837
15856
|
var asynckit = require_asynckit();
|
|
15857
|
+
var hasOwn = require_hasown();
|
|
15838
15858
|
var setToStringTag = require_es_set_tostringtag();
|
|
15839
15859
|
var populate = require_populate2();
|
|
15840
15860
|
var Buffer2 = require_safe_buffer().Buffer;
|
|
15841
|
-
module2.exports = FormData2;
|
|
15842
|
-
util.inherits(FormData2, CombinedStream);
|
|
15843
15861
|
function FormData2(options) {
|
|
15844
15862
|
if (!(this instanceof FormData2)) {
|
|
15845
15863
|
return new FormData2();
|
|
@@ -15853,16 +15871,17 @@ var require_form_data2 = __commonJS({
|
|
|
15853
15871
|
this[option] = options[option];
|
|
15854
15872
|
}
|
|
15855
15873
|
}
|
|
15874
|
+
util.inherits(FormData2, CombinedStream);
|
|
15856
15875
|
FormData2.LINE_BREAK = "\r\n";
|
|
15857
15876
|
FormData2.DEFAULT_CONTENT_TYPE = "application/octet-stream";
|
|
15858
15877
|
FormData2.prototype.append = function(field, value, options) {
|
|
15859
15878
|
options = options || {};
|
|
15860
|
-
if (typeof options
|
|
15879
|
+
if (typeof options === "string") {
|
|
15861
15880
|
options = { filename: options };
|
|
15862
15881
|
}
|
|
15863
15882
|
var append = CombinedStream.prototype.append.bind(this);
|
|
15864
|
-
if (typeof value
|
|
15865
|
-
value =
|
|
15883
|
+
if (typeof value === "number" || value == null) {
|
|
15884
|
+
value = String(value);
|
|
15866
15885
|
}
|
|
15867
15886
|
if (Array.isArray(value)) {
|
|
15868
15887
|
this._error(new Error("Arrays are not supported."));
|
|
@@ -15878,7 +15897,7 @@ var require_form_data2 = __commonJS({
|
|
|
15878
15897
|
FormData2.prototype._trackLength = function(header, value, options) {
|
|
15879
15898
|
var valueLength = 0;
|
|
15880
15899
|
if (options.knownLength != null) {
|
|
15881
|
-
valueLength +=
|
|
15900
|
+
valueLength += Number(options.knownLength);
|
|
15882
15901
|
} else if (Buffer2.isBuffer(value)) {
|
|
15883
15902
|
valueLength = value.length;
|
|
15884
15903
|
} else if (typeof value === "string") {
|
|
@@ -15886,7 +15905,7 @@ var require_form_data2 = __commonJS({
|
|
|
15886
15905
|
}
|
|
15887
15906
|
this._valueLength += valueLength;
|
|
15888
15907
|
this._overheadLength += Buffer2.byteLength(header) + FormData2.LINE_BREAK.length;
|
|
15889
|
-
if (!value || !value.path && !(value.readable &&
|
|
15908
|
+
if (!value || !value.path && !(value.readable && hasOwn(value, "httpVersion"))) {
|
|
15890
15909
|
return;
|
|
15891
15910
|
}
|
|
15892
15911
|
if (!options.knownLength) {
|
|
@@ -15894,8 +15913,8 @@ var require_form_data2 = __commonJS({
|
|
|
15894
15913
|
}
|
|
15895
15914
|
};
|
|
15896
15915
|
FormData2.prototype._lengthRetriever = function(value, callback) {
|
|
15897
|
-
if (
|
|
15898
|
-
if (value.end !=
|
|
15916
|
+
if (hasOwn(value, "fd")) {
|
|
15917
|
+
if (value.end != null && value.end !== Infinity && value.start != null) {
|
|
15899
15918
|
callback(null, value.end + 1 - (value.start ? value.start : 0));
|
|
15900
15919
|
} else {
|
|
15901
15920
|
fs.stat(value.path, function(err, stat) {
|
|
@@ -15908,12 +15927,12 @@ var require_form_data2 = __commonJS({
|
|
|
15908
15927
|
callback(null, fileSize);
|
|
15909
15928
|
});
|
|
15910
15929
|
}
|
|
15911
|
-
} else if (
|
|
15912
|
-
callback(null,
|
|
15913
|
-
} else if (
|
|
15930
|
+
} else if (hasOwn(value, "httpVersion")) {
|
|
15931
|
+
callback(null, Number(value.headers["content-length"]));
|
|
15932
|
+
} else if (hasOwn(value, "httpModule")) {
|
|
15914
15933
|
value.on("response", function(response) {
|
|
15915
15934
|
value.pause();
|
|
15916
|
-
callback(null,
|
|
15935
|
+
callback(null, Number(response.headers["content-length"]));
|
|
15917
15936
|
});
|
|
15918
15937
|
value.resume();
|
|
15919
15938
|
} else {
|
|
@@ -15921,7 +15940,7 @@ var require_form_data2 = __commonJS({
|
|
|
15921
15940
|
}
|
|
15922
15941
|
};
|
|
15923
15942
|
FormData2.prototype._multiPartHeader = function(field, value, options) {
|
|
15924
|
-
if (typeof options.header
|
|
15943
|
+
if (typeof options.header === "string") {
|
|
15925
15944
|
return options.header;
|
|
15926
15945
|
}
|
|
15927
15946
|
var contentDisposition = this._getContentDisposition(value, options);
|
|
@@ -15933,12 +15952,12 @@ var require_form_data2 = __commonJS({
|
|
|
15933
15952
|
// if no content type. allow it to be empty array
|
|
15934
15953
|
"Content-Type": [].concat(contentType || [])
|
|
15935
15954
|
};
|
|
15936
|
-
if (typeof options.header
|
|
15955
|
+
if (typeof options.header === "object") {
|
|
15937
15956
|
populate(headers, options.header);
|
|
15938
15957
|
}
|
|
15939
15958
|
var header;
|
|
15940
15959
|
for (var prop in headers) {
|
|
15941
|
-
if (
|
|
15960
|
+
if (hasOwn(headers, prop)) {
|
|
15942
15961
|
header = headers[prop];
|
|
15943
15962
|
if (header == null) {
|
|
15944
15963
|
continue;
|
|
@@ -15957,9 +15976,9 @@ var require_form_data2 = __commonJS({
|
|
|
15957
15976
|
var filename, contentDisposition;
|
|
15958
15977
|
if (typeof options.filepath === "string") {
|
|
15959
15978
|
filename = path.normalize(options.filepath).replace(/\\/g, "/");
|
|
15960
|
-
} else if (options.filename || value.name || value.path) {
|
|
15961
|
-
filename = path.basename(options.filename || value.name || value.path);
|
|
15962
|
-
} else if (value.readable &&
|
|
15979
|
+
} else if (options.filename || value && (value.name || value.path)) {
|
|
15980
|
+
filename = path.basename(options.filename || value && (value.name || value.path));
|
|
15981
|
+
} else if (value && value.readable && hasOwn(value, "httpVersion")) {
|
|
15963
15982
|
filename = path.basename(value.client._httpMessage.path || "");
|
|
15964
15983
|
}
|
|
15965
15984
|
if (filename) {
|
|
@@ -15969,19 +15988,19 @@ var require_form_data2 = __commonJS({
|
|
|
15969
15988
|
};
|
|
15970
15989
|
FormData2.prototype._getContentType = function(value, options) {
|
|
15971
15990
|
var contentType = options.contentType;
|
|
15972
|
-
if (!contentType && value.name) {
|
|
15991
|
+
if (!contentType && value && value.name) {
|
|
15973
15992
|
contentType = mime.lookup(value.name);
|
|
15974
15993
|
}
|
|
15975
|
-
if (!contentType && value.path) {
|
|
15994
|
+
if (!contentType && value && value.path) {
|
|
15976
15995
|
contentType = mime.lookup(value.path);
|
|
15977
15996
|
}
|
|
15978
|
-
if (!contentType && value.readable &&
|
|
15997
|
+
if (!contentType && value && value.readable && hasOwn(value, "httpVersion")) {
|
|
15979
15998
|
contentType = value.headers["content-type"];
|
|
15980
15999
|
}
|
|
15981
16000
|
if (!contentType && (options.filepath || options.filename)) {
|
|
15982
16001
|
contentType = mime.lookup(options.filepath || options.filename);
|
|
15983
16002
|
}
|
|
15984
|
-
if (!contentType && typeof value
|
|
16003
|
+
if (!contentType && value && typeof value === "object") {
|
|
15985
16004
|
contentType = FormData2.DEFAULT_CONTENT_TYPE;
|
|
15986
16005
|
}
|
|
15987
16006
|
return contentType;
|
|
@@ -16005,12 +16024,18 @@ var require_form_data2 = __commonJS({
|
|
|
16005
16024
|
"content-type": "multipart/form-data; boundary=" + this.getBoundary()
|
|
16006
16025
|
};
|
|
16007
16026
|
for (header in userHeaders) {
|
|
16008
|
-
if (
|
|
16027
|
+
if (hasOwn(userHeaders, header)) {
|
|
16009
16028
|
formHeaders[header.toLowerCase()] = userHeaders[header];
|
|
16010
16029
|
}
|
|
16011
16030
|
}
|
|
16012
16031
|
return formHeaders;
|
|
16013
16032
|
};
|
|
16033
|
+
FormData2.prototype.setBoundary = function(boundary) {
|
|
16034
|
+
if (typeof boundary !== "string") {
|
|
16035
|
+
throw new TypeError("FormData boundary must be a string");
|
|
16036
|
+
}
|
|
16037
|
+
this._boundary = boundary;
|
|
16038
|
+
};
|
|
16014
16039
|
FormData2.prototype.getBoundary = function() {
|
|
16015
16040
|
if (!this._boundary) {
|
|
16016
16041
|
this._generateBoundary();
|
|
@@ -16018,7 +16043,7 @@ var require_form_data2 = __commonJS({
|
|
|
16018
16043
|
return this._boundary;
|
|
16019
16044
|
};
|
|
16020
16045
|
FormData2.prototype.getBuffer = function() {
|
|
16021
|
-
var dataBuffer =
|
|
16046
|
+
var dataBuffer = Buffer2.alloc(0);
|
|
16022
16047
|
var boundary = this.getBoundary();
|
|
16023
16048
|
for (var i = 0, len = this._streams.length; i < len; i++) {
|
|
16024
16049
|
if (typeof this._streams[i] !== "function") {
|
|
@@ -16035,11 +16060,7 @@ var require_form_data2 = __commonJS({
|
|
|
16035
16060
|
return Buffer2.concat([dataBuffer, Buffer2.from(this._lastBoundary())]);
|
|
16036
16061
|
};
|
|
16037
16062
|
FormData2.prototype._generateBoundary = function() {
|
|
16038
|
-
|
|
16039
|
-
for (var i = 0; i < 24; i++) {
|
|
16040
|
-
boundary += Math.floor(Math.random() * 10).toString(16);
|
|
16041
|
-
}
|
|
16042
|
-
this._boundary = boundary;
|
|
16063
|
+
this._boundary = "--------------------------" + crypto.randomBytes(12).toString("hex");
|
|
16043
16064
|
};
|
|
16044
16065
|
FormData2.prototype.getLengthSync = function() {
|
|
16045
16066
|
var knownLength = this._overheadLength + this._valueLength;
|
|
@@ -16079,8 +16100,10 @@ var require_form_data2 = __commonJS({
|
|
|
16079
16100
|
});
|
|
16080
16101
|
};
|
|
16081
16102
|
FormData2.prototype.submit = function(params, cb) {
|
|
16082
|
-
var request
|
|
16083
|
-
|
|
16103
|
+
var request;
|
|
16104
|
+
var options;
|
|
16105
|
+
var defaults = { method: "post" };
|
|
16106
|
+
if (typeof params === "string") {
|
|
16084
16107
|
params = parseUrl(params);
|
|
16085
16108
|
options = populate({
|
|
16086
16109
|
port: params.port,
|
|
@@ -16091,11 +16114,11 @@ var require_form_data2 = __commonJS({
|
|
|
16091
16114
|
} else {
|
|
16092
16115
|
options = populate(params, defaults);
|
|
16093
16116
|
if (!options.port) {
|
|
16094
|
-
options.port = options.protocol
|
|
16117
|
+
options.port = options.protocol === "https:" ? 443 : 80;
|
|
16095
16118
|
}
|
|
16096
16119
|
}
|
|
16097
16120
|
options.headers = this.getHeaders(params.headers);
|
|
16098
|
-
if (options.protocol
|
|
16121
|
+
if (options.protocol === "https:") {
|
|
16099
16122
|
request = https.request(options);
|
|
16100
16123
|
} else {
|
|
16101
16124
|
request = http.request(options);
|
|
@@ -16125,6 +16148,7 @@ var require_form_data2 = __commonJS({
|
|
|
16125
16148
|
return "[object FormData]";
|
|
16126
16149
|
};
|
|
16127
16150
|
setToStringTag(FormData2, "FormData");
|
|
16151
|
+
module2.exports = FormData2;
|
|
16128
16152
|
}
|
|
16129
16153
|
});
|
|
16130
16154
|
|
|
@@ -18845,7 +18869,7 @@ mime-types/index.js:
|
|
|
18845
18869
|
*)
|
|
18846
18870
|
|
|
18847
18871
|
axios/dist/node/axios.cjs:
|
|
18848
|
-
(*! Axios v1.
|
|
18872
|
+
(*! Axios v1.11.0 Copyright (c) 2025 Matt Zabriskie and contributors *)
|
|
18849
18873
|
|
|
18850
18874
|
safe-buffer/index.js:
|
|
18851
18875
|
(*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|