Skip to content

Commit

Permalink
Merge pull request #77 from Polymarket/fix/dist-fix
Browse files Browse the repository at this point in the history
Fix: hardcode user agent due to packaging errors from using package.json
  • Loading branch information
JonathanAmenechi authored Feb 17, 2023
2 parents e692b0d + 3ed4314 commit 0136784
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@polymarket/clob-client",
"description": "Typescript client for Polymarket's CLOB",
"version": "1.2.2",
"version": "1.2.3",
"contributors": [
{
"name": "Jonathan Amenechi",
Expand Down
3 changes: 1 addition & 2 deletions src/http-helpers/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import axios, { Method } from "axios";
import { FilterParams, TradeNotificationParams, TradeParams } from "src/types";
import { OpenOrderParams } from "../types";
import { name, version } from "./../../package.json";

export const GET = "GET";
export const POST = "POST";
Expand All @@ -12,7 +11,7 @@ const overloadHeaders = (method: Method, headers?: Record<string, string | numbe
if (!headers || typeof headers === undefined) {
headers = {};
}
headers!["User-Agent"] = `${name}@${version}`;
headers!["User-Agent"] = `@polymarket/clob-client`;
headers!["Accept"] = "*/*";
headers!["Connection"] = "keep-alive";
headers!["Content-Type"] = "application/json";
Expand Down

0 comments on commit 0136784

Please sign in to comment.