@polymarket/embeds
Advanced tools
Comparing version 1.1.3 to 1.1.4
# @polymarket/embeds | ||
## 1.1.4 | ||
### Patch Changes | ||
- 1f8afc1: rumble embeds | ||
## 1.1.3 | ||
@@ -4,0 +10,0 @@ |
@@ -1,2 +0,2 @@ | ||
var n="https://gamma-api.polymarket.com";var u=async s=>{let t=s.slug?`markets/slug/${s.slug}`:`markets/${s.id}`,e=await(await fetch(`${n}/${t}`)).json();return {...e,outcomes:JSON.parse(e.outcomes),outcomePrices:JSON.parse(e.outcomePrices),clobTokenIds:e.clobTokenIds?JSON.parse(e.clobTokenIds):null}},m=async s=>{let t=s.slug?`events/slug/${s.slug}`:`events/${s.id}`,e=await(await fetch(`${n}/${t}`)).json();return {...e,markets:e.markets?.map(o=>({...o,outcomes:JSON.parse(o.outcomes),outcomePrices:JSON.parse(o.outcomePrices),clobTokenIds:o.clobTokenIds?JSON.parse(o.clobTokenIds):null}))??[]}}; | ||
var n="https://gamma-cache.polymarket.com";var u=async s=>{let t=s.slug?`markets/slug/${s.slug}`:`markets/${s.id}`,e=await(await fetch(`${n}/${t}`)).json();return {...e,outcomes:JSON.parse(e.outcomes),outcomePrices:JSON.parse(e.outcomePrices),clobTokenIds:e.clobTokenIds?JSON.parse(e.clobTokenIds):null}},m=async s=>{let t=s.slug?`events/slug/${s.slug}`:`events/${s.id}`,e=await(await fetch(`${n}/${t}`)).json();return {...e,markets:e.markets?.map(o=>({...o,outcomes:JSON.parse(o.outcomes),outcomePrices:JSON.parse(o.outcomePrices),clobTokenIds:o.clobTokenIds?JSON.parse(o.clobTokenIds):null}))??[]}}; | ||
@@ -3,0 +3,0 @@ export { m as getEvent, u as getMarket }; |
@@ -1,3 +0,3 @@ | ||
declare const GAMMA_API_URL = "https://gamma-api.polymarket.com"; | ||
declare const GAMMA_API_URL = "https://gamma-cache.polymarket.com"; | ||
export { GAMMA_API_URL }; |
@@ -1,2 +0,2 @@ | ||
var t="https://gamma-api.polymarket.com"; | ||
var t="https://gamma-cache.polymarket.com"; | ||
@@ -3,0 +3,0 @@ export { t as GAMMA_API_URL }; |
@@ -1,2 +0,2 @@ | ||
var n="https://gamma-api.polymarket.com";var c=async s=>{let t=s.slug?`markets/slug/${s.slug}`:`markets/${s.id}`,e=await(await fetch(`${n}/${t}`)).json();return {...e,outcomes:JSON.parse(e.outcomes),outcomePrices:JSON.parse(e.outcomePrices),clobTokenIds:e.clobTokenIds?JSON.parse(e.clobTokenIds):null}},a=async s=>{let t=s.slug?`events/slug/${s.slug}`:`events/${s.id}`,e=await(await fetch(`${n}/${t}`)).json();return {...e,markets:e.markets?.map(o=>({...o,outcomes:JSON.parse(o.outcomes),outcomePrices:JSON.parse(o.outcomePrices),clobTokenIds:o.clobTokenIds?JSON.parse(o.clobTokenIds):null}))??[]}}; | ||
var n="https://gamma-cache.polymarket.com";var c=async s=>{let t=s.slug?`markets/slug/${s.slug}`:`markets/${s.id}`,e=await(await fetch(`${n}/${t}`)).json();return {...e,outcomes:JSON.parse(e.outcomes),outcomePrices:JSON.parse(e.outcomePrices),clobTokenIds:e.clobTokenIds?JSON.parse(e.clobTokenIds):null}},a=async s=>{let t=s.slug?`events/slug/${s.slug}`:`events/${s.id}`,e=await(await fetch(`${n}/${t}`)).json();return {...e,markets:e.markets?.map(o=>({...o,outcomes:JSON.parse(o.outcomes),outcomePrices:JSON.parse(o.outcomePrices),clobTokenIds:o.clobTokenIds?JSON.parse(o.clobTokenIds):null}))??[]}}; | ||
@@ -3,0 +3,0 @@ export { a as getEvent, c as getMarket }; |
export { MarketEmbed } from './embeds/market/index.js'; | ||
export { ElectionEmbed } from './embeds/election/index.js'; | ||
export { RumbleJoinEmbed } from './embeds/rumble/join-button/index.js'; | ||
export { RumblePresidentialElectionEmbed } from './embeds/rumble/presidential-election/index.js'; | ||
import 'lit-html'; | ||
import 'lit'; | ||
import './embeds/election/constants.js'; |
{ | ||
"name": "@polymarket/embeds", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Web Components for Polymarket", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -1,1 +0,1 @@ | ||
export const GAMMA_API_URL = "https://gamma-api.polymarket.com"; | ||
export const GAMMA_API_URL = "https://gamma-cache.polymarket.com"; |
export { MarketEmbed } from "./embeds/market/index.js"; | ||
export { ElectionEmbed } from "./embeds/election/index.js"; | ||
export { RumbleJoinEmbed } from "./embeds/rumble/join-button/index.js"; | ||
export { RumblePresidentialElectionEmbed } from "./embeds/rumble/presidential-election/index.js"; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5666336
113
13761
28