diff --git a/.gitignore b/.gitignore index dfe76f3..7deecfe 100644 --- a/.gitignore +++ b/.gitignore @@ -13,4 +13,5 @@ yarn-error.log* .DS_Store .env .env.* -!.env.example \ No newline at end of file +!.env.example +/dist \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..66163e6 --- /dev/null +++ b/README.md @@ -0,0 +1,6 @@ +# Chatenium SDK For TypeScript +A library for interacting with the Chatenium API. +## Quick Start +```aiignore +npm install @chatenium/chatenium-sdk +``` \ No newline at end of file diff --git a/package.json b/package.json index f7abdd7..e18d8d6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@chatenium/chatenium-sdk", - "version": "1.0.0", + "version": "1.0.1", "description": "A library for interacting with the Chatenium API", "main": "dist/index.js", "scripts": { diff --git a/src/core/environment.ts b/src/core/environment.ts index acaa9f1..be34554 100644 --- a/src/core/environment.ts +++ b/src/core/environment.ts @@ -4,6 +4,9 @@ export interface SDKConfig { wsUrl: string; } +declare const process: any; +declare const require: any; + const isNode = typeof process !== 'undefined' && typeof process.versions !== 'undefined' &&