
Product
Socket Now Supports pylock.toml Files
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
@geprog/use-feathers
Advanced tools
Provides get
and find
compositions that let you query your feathers API.
Queries and responses are fully reactive allowing you to:
Define a wrapper that passes your feathers app.
Passing your Application
type including your ServiceTypes
allows typechecking of the serviceName
parameter.
// useFindWrapper.ts
import { useFind } from '@geprog/use-feathers';
import { Application as FeathersApplication } from '@feathersjs/feathers';
import { AdapterService } from '@feathersjs/adapter-commons';
import { Car } from './model';
type ServiceTypes = {
cars: AdapterService<Car>;
};
type Application = FeathersApplication<ServiceTypes>;
export const useFindWrapper = useFind<Application>(yourFeathersApp);
Inside a Vue component call the wrapper with a serviceName
and a Params ref containing your query.
import { computed, defineComponent } from 'vue';
import { useFindWrapper } from './useFindWrapper';
export default defineComponent({
setup() {
const seats = ref(4);
const { data: cars, isLoading } = useFindWrapper(
'cars',
computed(() => ({ paginate: false, query: { seats: seats.value } })),
);
return { seats, cars, isLoading };
},
});
FAQs
Vue.js compositions for Feathers
The npm package @geprog/use-feathers receives a total of 17 weekly downloads. As such, @geprog/use-feathers popularity was classified as not popular.
We found that @geprog/use-feathers demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
Research
Security News
Malicious Ruby gems typosquat Fastlane plugins to steal Telegram bot tokens, messages, and files, exploiting demand after Vietnam’s Telegram ban.