main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
526 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | import resolveGenericStrategy from './resolve.js';
|
---|
| 2 | import normalize from './normalize.js';
|
---|
| 3 | import { plugins } from '../../../specmap/index.js';
|
---|
| 4 | export function clearCache() {
|
---|
| 5 | plugins.refs.clearCache();
|
---|
| 6 | }
|
---|
| 7 | const genericStrategy = {
|
---|
| 8 | name: 'generic',
|
---|
| 9 | match() {
|
---|
| 10 | return true;
|
---|
| 11 | },
|
---|
| 12 | normalize({
|
---|
| 13 | spec
|
---|
| 14 | }) {
|
---|
| 15 | const {
|
---|
| 16 | spec: normalized
|
---|
| 17 | } = normalize({
|
---|
| 18 | spec
|
---|
| 19 | });
|
---|
| 20 | return normalized;
|
---|
| 21 | },
|
---|
| 22 | async resolve(options) {
|
---|
| 23 | return resolveGenericStrategy(options);
|
---|
| 24 | }
|
---|
| 25 | };
|
---|
| 26 | export default genericStrategy; |
---|
Note:
See
TracBrowser
for help on using the repository browser.