Files
bella/node_modules/onnxruntime-web/lib/onnxjs/attribute-with-cache-key.js
你的名字 4c2f5c69a1 chore: update node_modules with new binary files and dependencies
- Add new binary files for nodemon, onnxruntime-web, and xenova/transformers
- Update various JavaScript and TypeScript files in node_modules
- Remove unused files and dependencies
- Add new test fixtures and documentation files
2025-07-18 08:41:48 +08:00

20 lines
766 B
JavaScript

"use strict";
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
exports.createAttributeWithCacheKey = void 0;
class AttributeWithCacheKeyImpl {
constructor(attribute) {
Object.assign(this, attribute);
}
get cacheKey() {
if (!this._cacheKey) {
this._cacheKey =
Object.getOwnPropertyNames(this).sort().map(name => `${this[name]}`).join(';');
}
return this._cacheKey;
}
}
const createAttributeWithCacheKey = (attribute) => new AttributeWithCacheKeyImpl(attribute);
exports.createAttributeWithCacheKey = createAttributeWithCacheKey;
//# sourceMappingURL=attribute-with-cache-key.js.map