Initial
This commit is contained in:
24
resources/app/node_modules/@aws-crypto/util/build/convertToBuffer.js
generated
vendored
Normal file
24
resources/app/node_modules/@aws-crypto/util/build/convertToBuffer.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
"use strict";
|
||||
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.convertToBuffer = void 0;
|
||||
var util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
||||
// Quick polyfill
|
||||
var fromUtf8 = typeof Buffer !== "undefined" && Buffer.from
|
||||
? function (input) { return Buffer.from(input, "utf8"); }
|
||||
: util_utf8_browser_1.fromUtf8;
|
||||
function convertToBuffer(data) {
|
||||
// Already a Uint8, do nothing
|
||||
if (data instanceof Uint8Array)
|
||||
return data;
|
||||
if (typeof data === "string") {
|
||||
return fromUtf8(data);
|
||||
}
|
||||
if (ArrayBuffer.isView(data)) {
|
||||
return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);
|
||||
}
|
||||
return new Uint8Array(data);
|
||||
}
|
||||
exports.convertToBuffer = convertToBuffer;
|
||||
//# sourceMappingURL=convertToBuffer.js.map
|
||||
1
resources/app/node_modules/@aws-crypto/util/build/convertToBuffer.js.map
generated
vendored
Normal file
1
resources/app/node_modules/@aws-crypto/util/build/convertToBuffer.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"convertToBuffer.js","sourceRoot":"","sources":["../src/convertToBuffer.ts"],"names":[],"mappings":";AAAA,oEAAoE;AACpE,sCAAsC;;;AAGtC,gEAAyE;AAEzE,iBAAiB;AACjB,IAAM,QAAQ,GACZ,OAAO,MAAM,KAAK,WAAW,IAAI,MAAM,CAAC,IAAI;IAC1C,CAAC,CAAC,UAAC,KAAa,IAAK,OAAA,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,EAA1B,CAA0B;IAC/C,CAAC,CAAC,4BAAe,CAAC;AAEtB,SAAgB,eAAe,CAAC,IAAgB;IAC9C,8BAA8B;IAC9B,IAAI,IAAI,YAAY,UAAU;QAAE,OAAO,IAAI,CAAC;IAE5C,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC5B,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC;KACvB;IAED,IAAI,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;QAC5B,OAAO,IAAI,UAAU,CACnB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,iBAAiB,CAC/C,CAAC;KACH;IAED,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC;AAC9B,CAAC;AAjBD,0CAiBC"}
|
||||
14
resources/app/node_modules/@aws-crypto/util/build/index.js
generated
vendored
Normal file
14
resources/app/node_modules/@aws-crypto/util/build/index.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.uint32ArrayFrom = exports.numToUint8 = exports.isEmptyData = exports.convertToBuffer = void 0;
|
||||
var convertToBuffer_1 = require("./convertToBuffer");
|
||||
Object.defineProperty(exports, "convertToBuffer", { enumerable: true, get: function () { return convertToBuffer_1.convertToBuffer; } });
|
||||
var isEmptyData_1 = require("./isEmptyData");
|
||||
Object.defineProperty(exports, "isEmptyData", { enumerable: true, get: function () { return isEmptyData_1.isEmptyData; } });
|
||||
var numToUint8_1 = require("./numToUint8");
|
||||
Object.defineProperty(exports, "numToUint8", { enumerable: true, get: function () { return numToUint8_1.numToUint8; } });
|
||||
var uint32ArrayFrom_1 = require("./uint32ArrayFrom");
|
||||
Object.defineProperty(exports, "uint32ArrayFrom", { enumerable: true, get: function () { return uint32ArrayFrom_1.uint32ArrayFrom; } });
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
resources/app/node_modules/@aws-crypto/util/build/index.js.map
generated
vendored
Normal file
1
resources/app/node_modules/@aws-crypto/util/build/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,oEAAoE;AACpE,sCAAsC;;;AAEtC,qDAAoD;AAA3C,kHAAA,eAAe,OAAA;AACxB,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,qDAAkD;AAA1C,kHAAA,eAAe,OAAA"}
|
||||
13
resources/app/node_modules/@aws-crypto/util/build/isEmptyData.js
generated
vendored
Normal file
13
resources/app/node_modules/@aws-crypto/util/build/isEmptyData.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isEmptyData = void 0;
|
||||
function isEmptyData(data) {
|
||||
if (typeof data === "string") {
|
||||
return data.length === 0;
|
||||
}
|
||||
return data.byteLength === 0;
|
||||
}
|
||||
exports.isEmptyData = isEmptyData;
|
||||
//# sourceMappingURL=isEmptyData.js.map
|
||||
1
resources/app/node_modules/@aws-crypto/util/build/isEmptyData.js.map
generated
vendored
Normal file
1
resources/app/node_modules/@aws-crypto/util/build/isEmptyData.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"isEmptyData.js","sourceRoot":"","sources":["../src/isEmptyData.ts"],"names":[],"mappings":";AAAA,oEAAoE;AACpE,sCAAsC;;;AAItC,SAAgB,WAAW,CAAC,IAAgB;IAC1C,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC5B,OAAO,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC;KAC1B;IAED,OAAO,IAAI,CAAC,UAAU,KAAK,CAAC,CAAC;AAC/B,CAAC;AAND,kCAMC"}
|
||||
15
resources/app/node_modules/@aws-crypto/util/build/numToUint8.js
generated
vendored
Normal file
15
resources/app/node_modules/@aws-crypto/util/build/numToUint8.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.numToUint8 = void 0;
|
||||
function numToUint8(num) {
|
||||
return new Uint8Array([
|
||||
(num & 0xff000000) >> 24,
|
||||
(num & 0x00ff0000) >> 16,
|
||||
(num & 0x0000ff00) >> 8,
|
||||
num & 0x000000ff,
|
||||
]);
|
||||
}
|
||||
exports.numToUint8 = numToUint8;
|
||||
//# sourceMappingURL=numToUint8.js.map
|
||||
1
resources/app/node_modules/@aws-crypto/util/build/numToUint8.js.map
generated
vendored
Normal file
1
resources/app/node_modules/@aws-crypto/util/build/numToUint8.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"numToUint8.js","sourceRoot":"","sources":["../src/numToUint8.ts"],"names":[],"mappings":";AAAA,oEAAoE;AACpE,sCAAsC;;;AAEtC,SAAgB,UAAU,CAAC,GAAW;IACpC,OAAO,IAAI,UAAU,CAAC;QACpB,CAAC,GAAG,GAAG,UAAU,CAAC,IAAI,EAAE;QACxB,CAAC,GAAG,GAAG,UAAU,CAAC,IAAI,EAAE;QACxB,CAAC,GAAG,GAAG,UAAU,CAAC,IAAI,CAAC;QACvB,GAAG,GAAG,UAAU;KACjB,CAAC,CAAC;AACL,CAAC;AAPD,gCAOC"}
|
||||
20
resources/app/node_modules/@aws-crypto/util/build/uint32ArrayFrom.js
generated
vendored
Normal file
20
resources/app/node_modules/@aws-crypto/util/build/uint32ArrayFrom.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.uint32ArrayFrom = void 0;
|
||||
// IE 11 does not support Array.from, so we do it manually
|
||||
function uint32ArrayFrom(a_lookUpTable) {
|
||||
if (!Uint32Array.from) {
|
||||
var return_array = new Uint32Array(a_lookUpTable.length);
|
||||
var a_index = 0;
|
||||
while (a_index < a_lookUpTable.length) {
|
||||
return_array[a_index] = a_lookUpTable[a_index];
|
||||
a_index += 1;
|
||||
}
|
||||
return return_array;
|
||||
}
|
||||
return Uint32Array.from(a_lookUpTable);
|
||||
}
|
||||
exports.uint32ArrayFrom = uint32ArrayFrom;
|
||||
//# sourceMappingURL=uint32ArrayFrom.js.map
|
||||
1
resources/app/node_modules/@aws-crypto/util/build/uint32ArrayFrom.js.map
generated
vendored
Normal file
1
resources/app/node_modules/@aws-crypto/util/build/uint32ArrayFrom.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"uint32ArrayFrom.js","sourceRoot":"","sources":["../src/uint32ArrayFrom.ts"],"names":[],"mappings":";AAAA,oEAAoE;AACpE,sCAAsC;;;AAEtC,0DAA0D;AAC1D,SAAgB,eAAe,CAAC,aAA4B;IAC1D,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE;QACrB,IAAM,YAAY,GAAG,IAAI,WAAW,CAAC,aAAa,CAAC,MAAM,CAAC,CAAA;QAC1D,IAAI,OAAO,GAAG,CAAC,CAAA;QACf,OAAO,OAAO,GAAG,aAAa,CAAC,MAAM,EAAE;YACrC,YAAY,CAAC,OAAO,CAAC,GAAG,aAAa,CAAC,OAAO,CAAC,CAAA;YAC9C,OAAO,IAAI,CAAC,CAAA;SACb;QACD,OAAO,YAAY,CAAA;KACpB;IACD,OAAO,WAAW,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;AACxC,CAAC;AAXD,0CAWC"}
|
||||
Reference in New Issue
Block a user