File: /var/www/web.enelar.com.co/node_modules/nx/src/hasher/file-hasher.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.hashObject = exports.hashArray = void 0;
function hashArray(content) {
// Import as needed. There is also an issue running unit tests in Nx repo if this is a top-level import.
const { hashArray } = require('../native');
return hashArray(content);
}
exports.hashArray = hashArray;
function hashObject(obj) {
const { hashArray } = require('../native');
const parts = [];
for (const key of Object.keys(obj).sort()) {
parts.push(key);
parts.push(JSON.stringify(obj[key]));
}
return hashArray(parts);
}
exports.hashObject = hashObject;