mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-08 05:59:14 +08:00
20 lines
573 B
Text
20 lines
573 B
Text
'use strict';
|
|
|
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
|
const customisations_index = require('./index.cjs');
|
|
|
|
const allKeys = Object.keys(customisations_index.defaults);
|
|
const filteredKeys = allKeys.filter((key) => key !== "width" && key !== "height");
|
|
function compare(item1, item2, compareDimensions = true) {
|
|
const keys = compareDimensions ? allKeys : filteredKeys;
|
|
for (let i = 0; i < keys.length; i++) {
|
|
const key = keys[i];
|
|
if (item1[key] !== item2[key]) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
exports.compare = compare;
|