Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@axiomhq/js

Package Overview
Dependencies
Maintainers
7
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@axiomhq/js - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

CHANGELOG.md

2

dist/cjs/httpClient.js

@@ -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;

5

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc