Files
BeijingMediaOfficialWebsite…/web/node_modules/superjson/dist/custom-transformer-registry.js
database-mysql 615d671da1
All checks were successful
BeijingMediaOfficialWebsite-ZhaoJian/BeijingMediaOfficialWebsite-ZhaoJian/pipeline/head This commit looks good
New Project
2025-12-27 07:57:30 +08:00

16 lines
462 B
JavaScript

import { find } from './util.js';
export class CustomTransformerRegistry {
constructor() {
this.transfomers = {};
}
register(transformer) {
this.transfomers[transformer.name] = transformer;
}
findApplicable(v) {
return find(this.transfomers, transformer => transformer.isApplicable(v));
}
findByName(name) {
return this.transfomers[name];
}
}
//# sourceMappingURL=custom-transformer-registry.js.map