@launchdarkly/js-sdk-common
Advanced tools
Comparing version 1.1.0 to 1.2.0-alpha
@@ -6,3 +6,4 @@ import EventProcessor from './EventProcessor'; | ||
import InputIdentifyEvent from './InputIdentifyEvent'; | ||
export { InputCustomEvent, InputEvalEvent, InputEvent, InputIdentifyEvent, EventProcessor }; | ||
import type { LDInternalOptions } from './LDInternalOptions'; | ||
export { EventProcessor, InputCustomEvent, InputEvalEvent, InputEvent, InputIdentifyEvent, LDInternalOptions, }; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.EventProcessor = exports.InputIdentifyEvent = exports.InputEvalEvent = exports.InputCustomEvent = void 0; | ||
exports.InputIdentifyEvent = exports.InputEvalEvent = exports.InputCustomEvent = exports.EventProcessor = void 0; | ||
const EventProcessor_1 = require("./EventProcessor"); | ||
@@ -5,0 +5,0 @@ exports.EventProcessor = EventProcessor_1.default; |
@@ -8,4 +8,17 @@ /** | ||
readonly events: string; | ||
constructor(streaming: string, polling: string, events: string); | ||
/** Valid paths are: | ||
* /bulk | ||
* /events/bulk/envId | ||
* /mobile | ||
*/ | ||
readonly analyticsEventPath: string; | ||
/** Valid paths are: | ||
* /diagnostic | ||
* /events/diagnostic/envId | ||
* /mobile/events/diagnostic | ||
*/ | ||
readonly diagnosticEventPath: string; | ||
readonly includeAuthorizationHeader: boolean; | ||
constructor(streaming: string, polling: string, events: string, analyticsEventPath?: string, diagnosticEventPath?: string, includeAuthorizationHeader?: boolean); | ||
} | ||
//# sourceMappingURL=ServiceEndpoints.d.ts.map |
@@ -10,6 +10,9 @@ "use strict"; | ||
class ServiceEndpoints { | ||
constructor(streaming, polling, events) { | ||
constructor(streaming, polling, events, analyticsEventPath = '/bulk', diagnosticEventPath = '/diagnostic', includeAuthorizationHeader = true) { | ||
this.streaming = canonicalizeUri(streaming); | ||
this.polling = canonicalizeUri(polling); | ||
this.events = canonicalizeUri(events); | ||
this.analyticsEventPath = analyticsEventPath; | ||
this.diagnosticEventPath = diagnosticEventPath; | ||
this.includeAuthorizationHeader = includeAuthorizationHeader; | ||
} | ||
@@ -16,0 +19,0 @@ } |
{ | ||
"name": "@launchdarkly/js-sdk-common", | ||
"version": "1.1.0", | ||
"version": "1.2.0-alpha", | ||
"type": "commonjs", | ||
@@ -22,3 +22,2 @@ "main": "./dist/index.js", | ||
"scripts": { | ||
"doc": "../../../scripts/build-doc.sh .", | ||
"test": "npx jest --ci", | ||
@@ -46,5 +45,5 @@ "build": "npx tsc", | ||
"ts-jest": "^29.0.5", | ||
"typedoc": "0.23.26", | ||
"typescript": "^5.1.6" | ||
"typedoc": "0.25.0", | ||
"typescript": "5.1.6" | ||
} | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
202592
240
3172
1