@segment/analytics-node
Advanced tools
Comparing version 0.0.1-beta.12 to 0.0.1-beta.13
@@ -5,3 +5,3 @@ "use strict"; | ||
// This file is generated. | ||
exports.version = '0.0.1-beta.12'; | ||
exports.version = '0.0.1-beta.13'; | ||
//# sourceMappingURL=version.js.map |
@@ -10,2 +10,3 @@ "use strict"; | ||
const context_batch_1 = require("./context-batch"); | ||
const base_64_encode_1 = require("../../lib/base-64-encode"); | ||
function sleep(timeoutInMs) { | ||
@@ -24,3 +25,3 @@ return new Promise((resolve) => setTimeout(resolve, timeoutInMs)); | ||
this._flushInterval = flushInterval; | ||
this._auth = Buffer.from(`${writeKey}:`).toString('base64'); | ||
this._auth = (0, base_64_encode_1.b64encode)(`${writeKey}:`); | ||
this._url = (0, create_url_1.tryCreateFormattedUrl)(host ?? 'https://api.segment.io', path ?? '/v1/batch'); | ||
@@ -27,0 +28,0 @@ this._httpRequestTimeout = httpRequestTimeout ?? 10000; |
// This file is generated. | ||
export const version = '0.0.1-beta.12'; | ||
export const version = '0.0.1-beta.13'; | ||
//# sourceMappingURL=version.js.map |
@@ -7,2 +7,3 @@ import { backoff } from '@segment/analytics-core'; | ||
import { ContextBatch } from './context-batch'; | ||
import { b64encode } from '../../lib/base-64-encode'; | ||
function sleep(timeoutInMs) { | ||
@@ -21,3 +22,3 @@ return new Promise((resolve) => setTimeout(resolve, timeoutInMs)); | ||
this._flushInterval = flushInterval; | ||
this._auth = Buffer.from(`${writeKey}:`).toString('base64'); | ||
this._auth = b64encode(`${writeKey}:`); | ||
this._url = tryCreateFormattedUrl(host ?? 'https://api.segment.io', path ?? '/v1/batch'); | ||
@@ -24,0 +25,0 @@ this._httpRequestTimeout = httpRequestTimeout ?? 10000; |
@@ -1,2 +0,2 @@ | ||
export declare const version = "0.0.1-beta.12"; | ||
export declare const version = "0.0.1-beta.13"; | ||
//# sourceMappingURL=version.d.ts.map |
{ | ||
"name": "@segment/analytics-node", | ||
"version": "0.0.1-beta.12", | ||
"version": "0.0.1-beta.13", | ||
"main": "./dist/cjs/index.js", | ||
@@ -5,0 +5,0 @@ "module": "./dist/esm/index.js", |
// This file is generated. | ||
export const version = '0.0.1-beta.12' | ||
export const version = '0.0.1-beta.13' |
@@ -9,2 +9,3 @@ import { backoff } from '@segment/analytics-core' | ||
import { NodeEmitter } from '../../app/emitter' | ||
import { b64encode } from '../../lib/base-64-encode' | ||
@@ -63,3 +64,3 @@ function sleep(timeoutInMs: number): Promise<void> { | ||
this._flushInterval = flushInterval | ||
this._auth = Buffer.from(`${writeKey}:`).toString('base64') | ||
this._auth = b64encode(`${writeKey}:`) | ||
this._url = tryCreateFormattedUrl( | ||
@@ -66,0 +67,0 @@ host ?? 'https://api.segment.io', |
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
169798
165
2725