remove node_modules and .gitignore them
This commit is contained in:
-17
@@ -1,17 +0,0 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.emitWarningIfUnsupportedVersion = void 0;
|
||||
let warningEmitted = false;
|
||||
const emitWarningIfUnsupportedVersion = (version) => {
|
||||
if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 16) {
|
||||
warningEmitted = true;
|
||||
process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
|
||||
no longer support Node.js 14.x on May 1, 2024.
|
||||
|
||||
To continue receiving updates to AWS services, bug fixes, and security
|
||||
updates please upgrade to an active Node.js LTS version.
|
||||
|
||||
More information can be found at: https://a.co/dzr2AJd`);
|
||||
}
|
||||
};
|
||||
exports.emitWarningIfUnsupportedVersion = emitWarningIfUnsupportedVersion;
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const tslib_1 = require("tslib");
|
||||
tslib_1.__exportStar(require("./emitWarningIfUnsupportedVersion"), exports);
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const tslib_1 = require("tslib");
|
||||
tslib_1.__exportStar(require("./client/index"), exports);
|
||||
tslib_1.__exportStar(require("./protocols/index"), exports);
|
||||
-59
@@ -1,59 +0,0 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports._toNum = exports._toBool = exports._toStr = void 0;
|
||||
const _toStr = (val) => {
|
||||
if (val == null) {
|
||||
return val;
|
||||
}
|
||||
if (typeof val === "number" || typeof val === "bigint") {
|
||||
const warning = new Error(`Received number ${val} where a string was expected.`);
|
||||
warning.name = "Warning";
|
||||
console.warn(warning);
|
||||
return String(val);
|
||||
}
|
||||
if (typeof val === "boolean") {
|
||||
const warning = new Error(`Received boolean ${val} where a string was expected.`);
|
||||
warning.name = "Warning";
|
||||
console.warn(warning);
|
||||
return String(val);
|
||||
}
|
||||
return val;
|
||||
};
|
||||
exports._toStr = _toStr;
|
||||
const _toBool = (val) => {
|
||||
if (val == null) {
|
||||
return val;
|
||||
}
|
||||
if (typeof val === "number") {
|
||||
}
|
||||
if (typeof val === "string") {
|
||||
const lowercase = val.toLowerCase();
|
||||
if (val !== "" && lowercase !== "false" && lowercase !== "true") {
|
||||
const warning = new Error(`Received string "${val}" where a boolean was expected.`);
|
||||
warning.name = "Warning";
|
||||
console.warn(warning);
|
||||
}
|
||||
return val !== "" && lowercase !== "false";
|
||||
}
|
||||
return val;
|
||||
};
|
||||
exports._toBool = _toBool;
|
||||
const _toNum = (val) => {
|
||||
if (val == null) {
|
||||
return val;
|
||||
}
|
||||
if (typeof val === "boolean") {
|
||||
}
|
||||
if (typeof val === "string") {
|
||||
const num = Number(val);
|
||||
if (num.toString() !== val) {
|
||||
const warning = new Error(`Received string "${val}" where a number was expected.`);
|
||||
warning.name = "Warning";
|
||||
console.warn(warning);
|
||||
return val;
|
||||
}
|
||||
return num;
|
||||
}
|
||||
return val;
|
||||
};
|
||||
exports._toNum = _toNum;
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const tslib_1 = require("tslib");
|
||||
tslib_1.__exportStar(require("./coercing-serializers"), exports);
|
||||
tslib_1.__exportStar(require("./json/awsExpectUnion"), exports);
|
||||
-14
@@ -1,14 +0,0 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.awsExpectUnion = void 0;
|
||||
const smithy_client_1 = require("@smithy/smithy-client");
|
||||
const awsExpectUnion = (value) => {
|
||||
if (value == null) {
|
||||
return undefined;
|
||||
}
|
||||
if (typeof value === "object" && "__type" in value) {
|
||||
delete value.__type;
|
||||
}
|
||||
return (0, smithy_client_1.expectUnion)(value);
|
||||
};
|
||||
exports.awsExpectUnion = awsExpectUnion;
|
||||
Reference in New Issue
Block a user