Files
NapCatQQ/.pnpm-store/v3/files/ed/92ad6ae27d7817e32322ef72afde437d3121537b5ab486fe0f39b20b785965270e5812c0296abb08d72f303fe5ddd40f7852d3802c73418ff7417ddd5c2a82
T
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

22 lines
1.2 KiB
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildFilteredServiceBindings = buildFilteredServiceBindings;
const buildInstanceBinding_1 = require("../../binding/calculations/buildInstanceBinding");
function buildFilteredServiceBindings(params, bindingConstraints, options) {
const serviceIdentifier = options?.customServiceIdentifier ?? bindingConstraints.serviceIdentifier;
const serviceBindings = options?.chained === true
? [...params.operations.getBindingsChained(serviceIdentifier)]
: [...(params.operations.getBindings(serviceIdentifier) ?? [])];
const filteredBindings = serviceBindings.filter((binding) => binding.isSatisfiedBy(bindingConstraints));
if (filteredBindings.length === 0 &&
params.autobindOptions !== undefined &&
typeof serviceIdentifier === 'function') {
const binding = (0, buildInstanceBinding_1.buildInstanceBinding)(params.autobindOptions, serviceIdentifier);
params.operations.setBinding(binding);
if (binding.isSatisfiedBy(bindingConstraints)) {
filteredBindings.push(binding);
}
}
return filteredBindings;
}
//# sourceMappingURL=buildFilteredServiceBindings.js.map