@axiomhq/js
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -6,2 +6,4 @@ "use strict"; | ||
var AxiomURL = 'https://api.axiom.co'; | ||
// The browsers don't have process.env, fake it | ||
var process = typeof window === 'undefined' ? global.process : { env: {} }; | ||
var HTTPClient = /** @class */ (function () { | ||
@@ -8,0 +10,0 @@ function HTTPClient(options) { |
import { FetchClient } from './fetchClient'; | ||
const Version = '0.1.0'; | ||
const AxiomURL = 'https://api.axiom.co'; | ||
// The browsers don't have process.env, fake it | ||
const process = typeof window === 'undefined' ? global.process : { env: {} }; | ||
export default class HTTPClient { | ||
@@ -5,0 +7,0 @@ client; |
{ | ||
"name": "@axiomhq/js", | ||
"description": "The official javascript bindings for the Axiom API", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"author": "Axiom, Inc.", | ||
@@ -44,3 +44,4 @@ "license": "MIT", | ||
"require": "./dist/cjs/index.js", | ||
"default": "./dist/cjs/index.js" | ||
"default": "./dist/cjs/index.js", | ||
"types": "./dist/types/index.d.ts" | ||
}, | ||
@@ -47,0 +48,0 @@ "scripts": { |
@@ -30,3 +30,3 @@ ## Javascript SDK for Axiom | ||
axiom.ingest('my-dataset', [{ foo: 'bar' }]); | ||
await client.flush(); | ||
await axiom.flush(); | ||
``` | ||
@@ -33,0 +33,0 @@ |
@@ -12,2 +12,6 @@ import { FetchClient } from './fetchClient'; | ||
// The browsers don't have process.env, fake it | ||
const process: { env: Record<string, string | undefined> } = | ||
typeof window === 'undefined' ? global.process : { env: {} }; | ||
export default abstract class HTTPClient { | ||
@@ -14,0 +18,0 @@ protected readonly client: FetchClient; |
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
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
192384
73
2461
58249