@gammarers/aws-daily-cost-usage-report-stack 2.0.8 → 2.0.9
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
|
@@ -3951,7 +3951,7 @@
|
|
|
3951
3951
|
"stability": "stable"
|
|
3952
3952
|
},
|
|
3953
3953
|
"homepage": "https://github.com/gammarers/aws-daily-cost-usage-report-stack.git",
|
|
3954
|
-
"jsiiVersion": "5.7.
|
|
3954
|
+
"jsiiVersion": "5.7.18 (build 7d9997b)",
|
|
3955
3955
|
"keywords": [
|
|
3956
3956
|
"aws",
|
|
3957
3957
|
"aws-cdk",
|
|
@@ -4139,6 +4139,6 @@
|
|
|
4139
4139
|
"symbolId": "src/index:DailyCostUsageReportStackProps"
|
|
4140
4140
|
}
|
|
4141
4141
|
},
|
|
4142
|
-
"version": "2.0.
|
|
4143
|
-
"fingerprint": "
|
|
4142
|
+
"version": "2.0.9",
|
|
4143
|
+
"fingerprint": "gtjku8s2R83/o3+TcdVA30teJ8lKC/UAqv/hLLIefLA="
|
|
4144
4144
|
}
|
|
@@ -10905,9 +10905,8 @@ var require_form_data = __commonJS({
|
|
|
10905
10905
|
var mime = require_mime_types();
|
|
10906
10906
|
var asynckit = require_asynckit();
|
|
10907
10907
|
var setToStringTag = require_es_set_tostringtag();
|
|
10908
|
+
var hasOwn = require_hasown();
|
|
10908
10909
|
var populate = require_populate();
|
|
10909
|
-
module2.exports = FormData2;
|
|
10910
|
-
util.inherits(FormData2, CombinedStream);
|
|
10911
10910
|
function FormData2(options) {
|
|
10912
10911
|
if (!(this instanceof FormData2)) {
|
|
10913
10912
|
return new FormData2(options);
|
|
@@ -10921,16 +10920,17 @@ var require_form_data = __commonJS({
|
|
|
10921
10920
|
this[option] = options[option];
|
|
10922
10921
|
}
|
|
10923
10922
|
}
|
|
10923
|
+
util.inherits(FormData2, CombinedStream);
|
|
10924
10924
|
FormData2.LINE_BREAK = "\r\n";
|
|
10925
10925
|
FormData2.DEFAULT_CONTENT_TYPE = "application/octet-stream";
|
|
10926
10926
|
FormData2.prototype.append = function(field, value, options) {
|
|
10927
10927
|
options = options || {};
|
|
10928
|
-
if (typeof options
|
|
10928
|
+
if (typeof options === "string") {
|
|
10929
10929
|
options = { filename: options };
|
|
10930
10930
|
}
|
|
10931
10931
|
var append = CombinedStream.prototype.append.bind(this);
|
|
10932
|
-
if (typeof value
|
|
10933
|
-
value =
|
|
10932
|
+
if (typeof value === "number" || value == null) {
|
|
10933
|
+
value = String(value);
|
|
10934
10934
|
}
|
|
10935
10935
|
if (Array.isArray(value)) {
|
|
10936
10936
|
this._error(new Error("Arrays are not supported."));
|
|
@@ -10946,7 +10946,7 @@ var require_form_data = __commonJS({
|
|
|
10946
10946
|
FormData2.prototype._trackLength = function(header, value, options) {
|
|
10947
10947
|
var valueLength = 0;
|
|
10948
10948
|
if (options.knownLength != null) {
|
|
10949
|
-
valueLength +=
|
|
10949
|
+
valueLength += Number(options.knownLength);
|
|
10950
10950
|
} else if (Buffer.isBuffer(value)) {
|
|
10951
10951
|
valueLength = value.length;
|
|
10952
10952
|
} else if (typeof value === "string") {
|
|
@@ -10954,7 +10954,7 @@ var require_form_data = __commonJS({
|
|
|
10954
10954
|
}
|
|
10955
10955
|
this._valueLength += valueLength;
|
|
10956
10956
|
this._overheadLength += Buffer.byteLength(header) + FormData2.LINE_BREAK.length;
|
|
10957
|
-
if (!value || !value.path && !(value.readable &&
|
|
10957
|
+
if (!value || !value.path && !(value.readable && hasOwn(value, "httpVersion")) && !(value instanceof Stream)) {
|
|
10958
10958
|
return;
|
|
10959
10959
|
}
|
|
10960
10960
|
if (!options.knownLength) {
|
|
@@ -10962,26 +10962,25 @@ var require_form_data = __commonJS({
|
|
|
10962
10962
|
}
|
|
10963
10963
|
};
|
|
10964
10964
|
FormData2.prototype._lengthRetriever = function(value, callback) {
|
|
10965
|
-
if (
|
|
10965
|
+
if (hasOwn(value, "fd")) {
|
|
10966
10966
|
if (value.end != void 0 && value.end != Infinity && value.start != void 0) {
|
|
10967
10967
|
callback(null, value.end + 1 - (value.start ? value.start : 0));
|
|
10968
10968
|
} else {
|
|
10969
10969
|
fs.stat(value.path, function(err, stat) {
|
|
10970
|
-
var fileSize;
|
|
10971
10970
|
if (err) {
|
|
10972
10971
|
callback(err);
|
|
10973
10972
|
return;
|
|
10974
10973
|
}
|
|
10975
|
-
fileSize = stat.size - (value.start ? value.start : 0);
|
|
10974
|
+
var fileSize = stat.size - (value.start ? value.start : 0);
|
|
10976
10975
|
callback(null, fileSize);
|
|
10977
10976
|
});
|
|
10978
10977
|
}
|
|
10979
|
-
} else if (
|
|
10980
|
-
callback(null,
|
|
10981
|
-
} else if (
|
|
10978
|
+
} else if (hasOwn(value, "httpVersion")) {
|
|
10979
|
+
callback(null, Number(value.headers["content-length"]));
|
|
10980
|
+
} else if (hasOwn(value, "httpModule")) {
|
|
10982
10981
|
value.on("response", function(response) {
|
|
10983
10982
|
value.pause();
|
|
10984
|
-
callback(null,
|
|
10983
|
+
callback(null, Number(response.headers["content-length"]));
|
|
10985
10984
|
});
|
|
10986
10985
|
value.resume();
|
|
10987
10986
|
} else {
|
|
@@ -10989,7 +10988,7 @@ var require_form_data = __commonJS({
|
|
|
10989
10988
|
}
|
|
10990
10989
|
};
|
|
10991
10990
|
FormData2.prototype._multiPartHeader = function(field, value, options) {
|
|
10992
|
-
if (typeof options.header
|
|
10991
|
+
if (typeof options.header === "string") {
|
|
10993
10992
|
return options.header;
|
|
10994
10993
|
}
|
|
10995
10994
|
var contentDisposition = this._getContentDisposition(value, options);
|
|
@@ -11001,12 +11000,12 @@ var require_form_data = __commonJS({
|
|
|
11001
11000
|
// if no content type. allow it to be empty array
|
|
11002
11001
|
"Content-Type": [].concat(contentType || [])
|
|
11003
11002
|
};
|
|
11004
|
-
if (typeof options.header
|
|
11003
|
+
if (typeof options.header === "object") {
|
|
11005
11004
|
populate(headers, options.header);
|
|
11006
11005
|
}
|
|
11007
11006
|
var header;
|
|
11008
11007
|
for (var prop in headers) {
|
|
11009
|
-
if (
|
|
11008
|
+
if (hasOwn(headers, prop)) {
|
|
11010
11009
|
header = headers[prop];
|
|
11011
11010
|
if (header == null) {
|
|
11012
11011
|
continue;
|
|
@@ -11022,34 +11021,33 @@ var require_form_data = __commonJS({
|
|
|
11022
11021
|
return "--" + this.getBoundary() + FormData2.LINE_BREAK + contents + FormData2.LINE_BREAK;
|
|
11023
11022
|
};
|
|
11024
11023
|
FormData2.prototype._getContentDisposition = function(value, options) {
|
|
11025
|
-
var filename
|
|
11024
|
+
var filename;
|
|
11026
11025
|
if (typeof options.filepath === "string") {
|
|
11027
11026
|
filename = path.normalize(options.filepath).replace(/\\/g, "/");
|
|
11028
|
-
} else if (options.filename || value.name || value.path) {
|
|
11029
|
-
filename = path.basename(options.filename || value.name || value.path);
|
|
11030
|
-
} else if (value.readable &&
|
|
11027
|
+
} else if (options.filename || value && (value.name || value.path)) {
|
|
11028
|
+
filename = path.basename(options.filename || value && (value.name || value.path));
|
|
11029
|
+
} else if (value && value.readable && hasOwn(value, "httpVersion")) {
|
|
11031
11030
|
filename = path.basename(value.client._httpMessage.path || "");
|
|
11032
11031
|
}
|
|
11033
11032
|
if (filename) {
|
|
11034
|
-
|
|
11033
|
+
return 'filename="' + filename + '"';
|
|
11035
11034
|
}
|
|
11036
|
-
return contentDisposition;
|
|
11037
11035
|
};
|
|
11038
11036
|
FormData2.prototype._getContentType = function(value, options) {
|
|
11039
11037
|
var contentType = options.contentType;
|
|
11040
|
-
if (!contentType && value.name) {
|
|
11038
|
+
if (!contentType && value && value.name) {
|
|
11041
11039
|
contentType = mime.lookup(value.name);
|
|
11042
11040
|
}
|
|
11043
|
-
if (!contentType && value.path) {
|
|
11041
|
+
if (!contentType && value && value.path) {
|
|
11044
11042
|
contentType = mime.lookup(value.path);
|
|
11045
11043
|
}
|
|
11046
|
-
if (!contentType && value.readable &&
|
|
11044
|
+
if (!contentType && value && value.readable && hasOwn(value, "httpVersion")) {
|
|
11047
11045
|
contentType = value.headers["content-type"];
|
|
11048
11046
|
}
|
|
11049
11047
|
if (!contentType && (options.filepath || options.filename)) {
|
|
11050
11048
|
contentType = mime.lookup(options.filepath || options.filename);
|
|
11051
11049
|
}
|
|
11052
|
-
if (!contentType && typeof value
|
|
11050
|
+
if (!contentType && value && typeof value === "object") {
|
|
11053
11051
|
contentType = FormData2.DEFAULT_CONTENT_TYPE;
|
|
11054
11052
|
}
|
|
11055
11053
|
return contentType;
|
|
@@ -11073,13 +11071,16 @@ var require_form_data = __commonJS({
|
|
|
11073
11071
|
"content-type": "multipart/form-data; boundary=" + this.getBoundary()
|
|
11074
11072
|
};
|
|
11075
11073
|
for (header in userHeaders) {
|
|
11076
|
-
if (
|
|
11074
|
+
if (hasOwn(userHeaders, header)) {
|
|
11077
11075
|
formHeaders[header.toLowerCase()] = userHeaders[header];
|
|
11078
11076
|
}
|
|
11079
11077
|
}
|
|
11080
11078
|
return formHeaders;
|
|
11081
11079
|
};
|
|
11082
11080
|
FormData2.prototype.setBoundary = function(boundary) {
|
|
11081
|
+
if (typeof boundary !== "string") {
|
|
11082
|
+
throw new TypeError("FormData boundary must be a string");
|
|
11083
|
+
}
|
|
11083
11084
|
this._boundary = boundary;
|
|
11084
11085
|
};
|
|
11085
11086
|
FormData2.prototype.getBoundary = function() {
|
|
@@ -11150,8 +11151,10 @@ var require_form_data = __commonJS({
|
|
|
11150
11151
|
});
|
|
11151
11152
|
};
|
|
11152
11153
|
FormData2.prototype.submit = function(params, cb) {
|
|
11153
|
-
var request
|
|
11154
|
-
|
|
11154
|
+
var request;
|
|
11155
|
+
var options;
|
|
11156
|
+
var defaults = { method: "post" };
|
|
11157
|
+
if (typeof params === "string") {
|
|
11155
11158
|
params = parseUrl(params);
|
|
11156
11159
|
options = populate({
|
|
11157
11160
|
port: params.port,
|
|
@@ -11162,11 +11165,11 @@ var require_form_data = __commonJS({
|
|
|
11162
11165
|
} else {
|
|
11163
11166
|
options = populate(params, defaults);
|
|
11164
11167
|
if (!options.port) {
|
|
11165
|
-
options.port = options.protocol
|
|
11168
|
+
options.port = options.protocol === "https:" ? 443 : 80;
|
|
11166
11169
|
}
|
|
11167
11170
|
}
|
|
11168
11171
|
options.headers = this.getHeaders(params.headers);
|
|
11169
|
-
if (options.protocol
|
|
11172
|
+
if (options.protocol === "https:") {
|
|
11170
11173
|
request = https.request(options);
|
|
11171
11174
|
} else {
|
|
11172
11175
|
request = http.request(options);
|
|
@@ -11205,6 +11208,7 @@ var require_form_data = __commonJS({
|
|
|
11205
11208
|
return "[object FormData]";
|
|
11206
11209
|
};
|
|
11207
11210
|
setToStringTag(FormData2, "FormData");
|
|
11211
|
+
module2.exports = FormData2;
|
|
11208
11212
|
}
|
|
11209
11213
|
});
|
|
11210
11214
|
|