Versions
- Open: VersionChanges from v4 to v5+1-1⦚ 7 unchanged lines ⦚const data = await response.json();if (data) {
return { data: data };}else {⦚ 8 unchanged lines ⦚⦚ 7 unchanged lines ⦚const data = await response.json();if (data) {return { data: data.spellRuns };}else {⦚ 8 unchanged lines ⦚ - Open: VersionChanges from v3 to v4+1-2const glifJson = async (id: string) => {
const url =`https://alpha.glif.xyz/api/trpc/spell.byId,spellRun.paginatedListCompleted?batch=1&input=%7B%220%22%3A%7B%22json%22%3A%7B%22id%22%3A%22cliljdfzj0004ml0874f5758i%22%7D%7D%2C%221%22%3A%7B%22json%22%3A%7B%22limit%22%3A20%2C%22spellId%22%3A%22cliljdfzj0004ml0874f5758i%22%2C%22cursor%22%3Anull%7D%2C%22meta%22%3A%7B%22values%22%3A%7B%22cursor%22%3A%5B%22undefined%22%5D%7D%7D%7D%7D`;try {const response = await fetch(url);⦚ 16 unchanged lines ⦚const glifJson = async (id: string) => {const url = `https://alpha.glif.xyz/api/glifs?id=${id}`;try {const response = await fetch(url);⦚ 16 unchanged lines ⦚ - Open: VersionChanges from v2 to v3+2-1const glifJson = async (id: string) => {
const url = `https://alpha.glif.xyz/api/glifs?id=${id}`;try {const response = await fetch(url);⦚ 16 unchanged lines ⦚const glifJson = async (id: string) => {const url =`https://alpha.glif.xyz/api/trpc/spell.byId,spellRun.paginatedListCompleted?batch=1&input=%7B%220%22%3A%7B%22json%22%3A%7B%22id%22%3A%22cliljdfzj0004ml0874f5758i%22%7D%7D%2C%221%22%3A%7B%22json%22%3A%7B%22limit%22%3A20%2C%22spellId%22%3A%22cliljdfzj0004ml0874f5758i%22%2C%22cursor%22%3Anull%7D%2C%22meta%22%3A%7B%22values%22%3A%7B%22cursor%22%3A%5B%22undefined%22%5D%7D%7D%7D%7D`;try {const response = await fetch(url);⦚ 16 unchanged lines ⦚ - Open: VersionChanges from v1 to v2+2-2⦚ 6 unchanged lines ⦚}const data = await response.json();
if (data && data.length > 0 && data[0]) {return { data: data[0] };}else {⦚ 8 unchanged lines ⦚⦚ 6 unchanged lines ⦚}const data = await response.json();if (data) {return { data: data };}else {⦚ 8 unchanged lines ⦚ - Open: VersionChanges from v0 to v1+2-2⦚ 6 unchanged lines ⦚}const data = await response.json();
if (data && data.length > 0 && data[0].data) {return { data: data[0].data };}else {⦚ 8 unchanged lines ⦚⦚ 6 unchanged lines ⦚}const data = await response.json();if (data && data.length > 0 && data[0]) {return { data: data[0] };}else {⦚ 8 unchanged lines ⦚ - Open: Version+20-0const glifJson = async (id: string) => {const url = `https://alpha.glif.xyz/api/glifs?id=${id}`;try {const response = await fetch(url);if (!response.ok) {throw new Error(`HTTP error! status: ${response.status}`);}const data = await response.json();if (data && data.length > 0 && data[0].data) {return { data: data[0].data };}else {throw new Error("Invalid data structure");}}catch (error) {return { error: error.message };}};// Forked from @jamiedubs.glifJson
Updated: February 9, 2024