Socket
Socket
Sign inDemoInstall

bitmovin-javascript

Package Overview
Dependencies
10
Maintainers
1
Versions
110
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.28.0 to 2.29.0

18

dist/analytics/impressions.d.ts
import { HttpClient } from '../utils/types';
export declare const impressions: (configuration: any, httpClient: HttpClient) => (impressionId: any, licenseKey: any) => Promise<{}>;
declare const _default: (configuration: any) => (impressionId: any, licenseKey: any) => Promise<{}>;
export interface ImpressionsQuery {
licenseKey: string;
start: number;
end: number;
filters?: Array<{
name: string;
operator: string;
value: any;
}>;
}
export declare const impressions: (configuration: any, httpClient: HttpClient) => ((query: ImpressionsQuery) => Promise<{}>) & {
details: (impressionId: string, licenseKey: string) => Promise<{}>;
};
declare const _default: (configuration: any) => ((query: ImpressionsQuery) => Promise<{}>) & {
details: (impressionId: string, licenseKey: string) => Promise<{}>;
};
export default _default;

13

dist/analytics/impressions.js

@@ -7,8 +7,13 @@ "use strict";

var post = httpClient.post;
var impressionBaseUrl = urljoin(configuration.apiBaseUrl, 'analytics', 'impressions');
var fn = function (impressionId, licenseKey) {
var url = urljoin(impressionBaseUrl, impressionId);
var impressionsBaseUrl = urljoin(configuration.apiBaseUrl, 'analytics', 'impressions');
var details = function (impressionId, licenseKey) {
var url = urljoin(impressionsBaseUrl, impressionId);
return post(configuration, url, { licenseKey: licenseKey });
};
return fn;
var list = function (query) {
var url = impressionsBaseUrl;
return post(configuration, url, query);
};
var resource = Object.assign(list, { details: details });
return resource;
};

@@ -15,0 +20,0 @@ exports.default = (function (configuration) {

@@ -49,3 +49,3 @@ "use strict";

internalConfig.apiBaseUrl = urljoin(internalConfig.protocol + '://' + internalConfig.host, internalConfig.basePath);
internalConfig.httpHeaders = __assign({ 'Content-Type': 'application/json', 'X-Api-Key': internalConfig.apiKey, 'X-Api-Client': internalConfig.xApiClient, 'X-Api-Client-Version': "" + '2.28.0' }, internalConfig.additionalHeaders);
internalConfig.httpHeaders = __assign({ 'Content-Type': 'application/json', 'X-Api-Key': internalConfig.apiKey, 'X-Api-Client': internalConfig.xApiClient, 'X-Api-Client-Version': "" + '2.29.0' }, internalConfig.additionalHeaders);
if (internalConfig.tenantOrgId !== undefined) {

@@ -52,0 +52,0 @@ internalConfig.httpHeaders['X-Tenant-Org-Id'] = internalConfig.tenantOrgId;

{
"name": "bitmovin-javascript",
"version": "2.28.0",
"version": "2.29.0",
"main": "./dist/index.js",

@@ -5,0 +5,0 @@ "browser": "./dist/bitmovin.browser.js",

@@ -1,2 +0,12 @@

# Bitmovin Javascript API Client
# [![bitmovin](http://bitmovin-a.akamaihd.net/webpages/bitmovin-logo-github.png)](http://www.bitmovin.com)
# New API Client (Recommended)
`bitmovin-javascript` is the legacy Bitmovin API client for JavaScript.
We recommend using the new client, which you can find at [bitmovin-api-sdk-javascript](https://github.com/bitmovin/bitmovin-api-sdk-javascript). Using the new client guarantees 100% specification conformity at any given time and access to all features of the API as soon as they are released.
---
## Bitmovin Javascript API Client
[![bitmovin](http://bitmovin-a.akamaihd.net/webpages/bitmovin-logo-github.png)](http://www.bitmovin.com)

@@ -3,0 +13,0 @@ [![codecov](https://codecov.io/gh/bitmovin/bitmovin-javascript/branch/develop/graph/badge.svg?token=XNzQalljOE)](https://codecov.io/gh/bitmovin/bitmovin-javascript)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc