Avatar

@valTownTrpc

15 likes10 public vals
Joined June 9, 2023
1
2
3
4
5
6
7
8
9
import { getValTownTrpc } from "https://esm.town/v/easrng/getValTownTrpc?v=5";
export const getValOutput = async ({ name, handle }) => {
const trpc = await getValTownTrpc();
return await trpc.getValOutput.query({
name,
handle,
});
};
1
2
3
4
5
6
7
8
import { getValTownTrpc } from "https://esm.town/v/easrng/getValTownTrpc?v=5";
export const autocompleteNpm = async ({ query }) => {
const trpc = await getValTownTrpc();
return await trpc.autocompleteNpm.query({
query,
});
};
1
2
3
4
5
6
7
8
import { getValTownTrpc } from "https://esm.town/v/easrng/getValTownTrpc?v=5";
export const search = async ({ query }) => {
const trpc = await getValTownTrpc();
return await trpc.search.query({
query,
});
};
1
2
3
4
5
6
7
8
9
import { getValTownTrpc } from "https://esm.town/v/easrng/getValTownTrpc?v=5";
export const getVal = async ({ author, name }) => {
const trpc = await getValTownTrpc();
return await trpc.getVal.query({
author,
name,
});
};
1
2
3
4
5
6
7
8
import { getValTownTrpc } from "https://esm.town/v/easrng/getValTownTrpc?v=5";
export const getUser = async ({ handle }) => {
const trpc = await getValTownTrpc();
return await trpc.getUser.query({
handle,
});
};
1
2
3
4
5
6
7
8
9
import { getValTownTrpc } from "https://esm.town/v/easrng/getValTownTrpc?v=5";
export const autocomplete = async ({ name, handle }) => {
const trpc = await getValTownTrpc();
return await trpc.autocomplete.query({
name,
handle,
});
};
1
2
3
4
5
6
7
8
9
import { getValTownTrpc } from "https://esm.town/v/easrng/getValTownTrpc?v=5";
export const getNpmVersions = async ({ name, versionString }) => {
const trpc = await getValTownTrpc();
return await trpc.getNpmVersions.query({
name,
versionString,
});
};
1
2
3
4
5
6
7
8
9
import { getValTownTrpc } from "https://esm.town/v/easrng/getValTownTrpc?v=5";
export const getScheduledInterval = async ({ author, name }) => {
const trpc = await getValTownTrpc();
return await trpc.getScheduledInterval.query({
author,
name,
});
};
1
2
3
4
5
6
7
8
9
import { getValTownTrpc } from "https://esm.town/v/easrng/getValTownTrpc?v=5";
export const getValReferenceTypes = async ({ userHandle, valName }) => {
const trpc = await getValTownTrpc();
return await trpc.getValReferenceTypes.query({
userHandle,
valName,
});
};
1
2
3
4
5
6
7
8
import { getValTownTrpc } from "https://esm.town/v/easrng/getValTownTrpc?v=5";
export const getValMetadata = async ({ id }) => {
const trpc = await getValTownTrpc();
return await trpc.getValMetadata.query({
id,
});
};
Next