Files
agent-claw/cdk/node_modules/aws-cdk-lib/aws-appconfig/lib/private/hash.js
2026-05-06 18:55:16 -05:00

2 lines
462 B
JavaScript

"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getHash=getHash,exports.stringifyObjects=stringifyObjects;var crypto=()=>{var tmp=require("crypto");return crypto=()=>tmp,tmp};function getHash(stringToHash){return crypto().createHash("sha256").update(stringToHash).digest("hex").substring(0,5).toUpperCase()}function stringifyObjects(...objects){const combinedObject=Object.assign({},...objects);return JSON.stringify(combinedObject)}