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

@vonage/audit

Package Overview
Dependencies
Maintainers
0
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vonage/audit - npm Package Compare versions

Comparing version 1.12.1 to 1.13.0

16

dist/lib/audit.js

@@ -1,2 +0,5 @@

import { AuthenticationType, Client } from '@vonage/server-client';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Audit = void 0;
const server_client_1 = require("@vonage/server-client");
/**

@@ -21,7 +24,7 @@ * Represents an SDK client for interacting with audit-related functionality.

*/
export class Audit extends Client {
class Audit extends server_client_1.Client {
// The base path for audit-related API endpoints
BASE_PATH = 'beta';
// Authentication type for the client
authType = AuthenticationType.BASIC;
authType = server_client_1.AuthenticationType.BASIC;
/**

@@ -65,4 +68,4 @@ * Retrieves a list of audit events based on specified parameters.

params.page = page;
const resp = await this.sendGetRequest(`${this.config.apiHost}/${this.BASE_PATH}/audit/events`, Client.transformers.snakeCaseObjectKeys(params));
const events = (resp.data?._embedded?.events || []).map((event) => Client.transformers.camelCaseObjectKeys(event, true));
const resp = await this.sendGetRequest(`${this.config.apiHost}/${this.BASE_PATH}/audit/events`, server_client_1.Client.transformers.snakeCaseObjectKeys(params));
const events = (resp.data?._embedded?.events || []).map((event) => server_client_1.Client.transformers.camelCaseObjectKeys(event, true));
totalPages = resp.data?.page?.totalPages || 0;

@@ -89,5 +92,6 @@ yield* events;

const resp = await this.sendGetRequest(`${this.config.apiHost}/${this.BASE_PATH}/audit/events/${eventId}`);
return Client.transformers.camelCaseObjectKeys(resp.data, true);
return server_client_1.Client.transformers.camelCaseObjectKeys(resp.data, true);
}
}
exports.Audit = Audit;
//# sourceMappingURL=audit.js.map

@@ -0,1 +1,4 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AuditEventTypes = void 0;
/**

@@ -14,3 +17,3 @@ * Audit Events are generated automatically by Vonage as the user interacts with

*/
export var AuditEventTypes;
var AuditEventTypes;
(function (AuditEventTypes) {

@@ -125,3 +128,3 @@ /**

AuditEventTypes["AUTORELOAD_DISABLE"] = "AUTORELOAD_DISABLE";
})(AuditEventTypes || (AuditEventTypes = {}));
})(AuditEventTypes || (exports.AuditEventTypes = AuditEventTypes = {}));
//# sourceMappingURL=enums.js.map

@@ -1,4 +0,20 @@

export * from './audit';
export * from './enums';
export * from './types';
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./audit"), exports);
__exportStar(require("./enums"), exports);
__exportStar(require("./types"), exports);
//# sourceMappingURL=index.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=auditEvent.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=auditEventListResponse.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=auditEventPage.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=auditEventResponse.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=auditParams.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=auditResponse.js.map

@@ -1,7 +0,23 @@

export * from './auditEvent';
export * from './auditEventListResponse';
export * from './auditEventPage';
export * from './auditParams';
export * from './auditResponse';
export * from './auditEventResponse';
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./auditEvent"), exports);
__exportStar(require("./auditEventListResponse"), exports);
__exportStar(require("./auditEventPage"), exports);
__exportStar(require("./auditParams"), exports);
__exportStar(require("./auditResponse"), exports);
__exportStar(require("./auditEventResponse"), exports);
//# sourceMappingURL=index.js.map
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@vonage/audit",
"version": "1.12.1",
"version": "1.13.0",
"description": "Vonage Audit SDK Package",

@@ -21,3 +21,2 @@ "homepage": "https://github.com/vonage/vonage-node-sdk/tree/master/packages/audit#readme",

],
"type": "module",
"main": "dist/lib/index.js",

@@ -39,5 +38,5 @@ "types": "dist/lib/index.d.ts",

"dependencies": {
"@vonage/auth": "^1.10.1",
"@vonage/server-client": "^1.12.1",
"@vonage/vetch": "^1.7.2"
"@vonage/auth": "^1.11.0",
"@vonage/server-client": "^1.13.0",
"@vonage/vetch": "^1.8.0"
},

@@ -44,0 +43,0 @@ "devDependencies": {

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