Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
fz.score('Maybe', 'me', { allowErrors: true })
fz.score('Application: Install Update', 'install')
fz.score('Application: Install Update', 'install', { preparedQuery })
fz.match('Maybe', 'me')
fz.match('Application: Install Update', 'install')
fz.match('Application: Install Update', 'install', { preparedQuery })
fz.wrap('Maybe', 'me')
//
// Complex filter cases, using all the options
// ----------------------------------------------------------------------
fz.filter(['Maybe', 'Me'], 'me')
fz.filter(['Maybe', 'Me'], 'me', undefined)
fz.filter(['Maybe', 'Me'], 'me', null)
fz.filter(['Maybe', 'Me'], 'me', {})
fz.filter(['Maybe', 'Me'], 'me', { allowErrors: true })
fz.filter(['Maybe', 'Me'], 'me', { key: 'key' })
fz.filter(['Maybe', 'Me'], 'me', {
preparedQuery: fz.prepareQuery('me')
})
fz.filter(['Maybe', 'Me'], 'me', {
allowErrors: true,
usePathScoring: true
})
fz.filter(['Maybe', 'Me'], 'me', {
allowErrors: true,
usePathScoring: true,
useExtensionBonus: true
})
fz.score('Application: Install Update', 'install')
fz.score('Application: Install Update', 'install', { preparedQuery })
fz.match('Maybe', 'me')
fz.match('Application: Install Update', 'install')
fz.match('Application: Install Update', 'install', { preparedQuery })
fz.wrap('Maybe', 'me')
//
// Complex filter cases, using all the options
// ----------------------------------------------------------------------
fz.filter(['Maybe', 'Me'], 'me')
fz.filter(['Maybe', 'Me'], 'me', undefined)
fz.filter(['Maybe', 'Me'], 'me', null)
fz.filter(['Maybe', 'Me'], 'me', {})
fz.filter(['Maybe', 'Me'], 'me', { allowErrors: true })
fz.filter(['Maybe', 'Me'], 'me', { key: 'key' })
fz.filter(['Maybe', 'Me'], 'me', {
preparedQuery: fz.prepareQuery('me')
})
fz.filter(['Maybe', 'Me'], 'me', {
allowErrors: true,
usePathScoring: true
})
fz.filter(['Maybe', 'Me'], 'me', {
allowErrors: true,
usePathScoring: true,
useExtensionBonus: true
})
fz.filter(['Maybe', 'Me'], 'me', {
return sessions.filter(session => {
// Use the filter from fuzzaldrin-plus to filter by name.
const result = filter([session.name], searchQuery)
return result.length === 1;
})
}
return targets.filter(target => {
// Use the filter from fuzzaldrin-plus to filter by name.
const result = filter([target.target_url], searchQuery);
return result.length === 1;
});
};
return profiles.filter(profile => {
// Use the filter from fuzzaldrin-plus to filter by name.
const result = filter([profile.name], searchQuery)
return result.length === 1
})
}
return profiles.filter(profile => {
// Use the filter from fuzzaldrin-plus to filter by name.
const result = filter([profile.name], searchQuery)
return result.length === 1
})
}
return projects.filter(p => {
// Use the filter from fuzzaldrin-plus to filter by name.
const result = filter([p.name], searchQuery)
return result.length === 1
})
}
'Find And Replace: Select All',
'Settings View: Uninstall Packages',
'Settings View: View Installed Themes',
'Application: Install Update',
'Install'
]
const objectCandidates = candidates.map(s => ({ foo: s }))
const options: fz.IOptions = { allowErrors: true }
const filterOptions: fz.IFilterOptions = {
allowErrors: true,
key: 'foo'
}
fz.filter(candidates, 'install')
fz.filter(candidates, 'install', options)
fz.filter(candidates, 'install', filterOptions)
fz.filter(objectCandidates, 'install', { key: 'foo' })
const preparedQuery: fz.Query = fz.prepareQuery('install')
fz.score('Maybe', 'me')
fz.score('Maybe', 'me', undefined)
fz.score('Maybe', 'me', null)
fz.score('Maybe', 'me', {})
fz.score('Maybe', 'me', { allowErrors: true })
fz.score('Application: Install Update', 'install')
fz.score('Application: Install Update', 'install', { preparedQuery })
fz.match('Maybe', 'me')
fz.match('Application: Install Update', 'install')
fz.match('Application: Install Update', 'install', { preparedQuery })
const candidates = [
'Find And Replace: Select All',
'Settings View: Uninstall Packages',
'Settings View: View Installed Themes',
'Application: Install Update',
'Install'
]
const objectCandidates = candidates.map(s => ({ foo: s }))
const options: fz.IOptions = { allowErrors: true }
const filterOptions: fz.IFilterOptions = {
allowErrors: true,
key: 'foo'
}
fz.filter(candidates, 'install')
fz.filter(candidates, 'install', options)
fz.filter(candidates, 'install', filterOptions)
fz.filter(objectCandidates, 'install', { key: 'foo' })
const preparedQuery: fz.Query = fz.prepareQuery('install')
fz.score('Maybe', 'me')
fz.score('Maybe', 'me', undefined)
fz.score('Maybe', 'me', null)
fz.score('Maybe', 'me', {})
fz.score('Maybe', 'me', { allowErrors: true })
fz.score('Application: Install Update', 'install')
fz.score('Application: Install Update', 'install', { preparedQuery })
fz.match('Maybe', 'me')
fz.match('Application: Install Update', 'install')
fz.match('Application: Install Update', 'install', { preparedQuery })
const candidates = [
'Find And Replace: Select All',
'Settings View: Uninstall Packages',
'Settings View: View Installed Themes',
'Application: Install Update',
'Install'
]
const objectCandidates = candidates.map(s => ({ foo: s }))
const options: fz.IOptions = { allowErrors: true }
const filterOptions: fz.IFilterOptions = {
allowErrors: true,
key: 'foo'
}
fz.filter(candidates, 'install')
fz.filter(candidates, 'install', options)
fz.filter(candidates, 'install', filterOptions)
fz.filter(objectCandidates, 'install', { key: 'foo' })
const preparedQuery: fz.Query = fz.prepareQuery('install')
fz.score('Maybe', 'me')
fz.score('Maybe', 'me', undefined)
fz.score('Maybe', 'me', null)
fz.score('Maybe', 'me', {})
fz.score('Maybe', 'me', { allowErrors: true })
fz.score('Application: Install Update', 'install')
fz.score('Application: Install Update', 'install', { preparedQuery })
fz.match('Maybe', 'me')
fz.match('Application: Install Update', 'install')