You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP

celitech-sdk

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

celitech-sdk - npm Package Compare versions

Comparing version

to
1.1.74

{
"liblabVersion": "2.1.23",
"date": "2024-07-24T18:30:15.612Z",
"date": "2024-07-24T18:58:13.956Z",
"config": {
"apiId": 952,
"apiId": 953,
"sdkName": "Celitech",
"sdkVersion": "1.1.73",
"sdkVersion": "1.1.74",
"liblabVersion": "2",
"deliveryMethods": ["zip"],
"languages": ["typescript"],
"apiVersion": "1.1.73",
"apiVersion": "1.1.74",
"specFilePath": "swagger.yaml",

@@ -29,3 +29,3 @@ "languageOptions": {

"liblabVersion": "2",
"sdkVersion": "1.1.73"
"sdkVersion": "1.1.74"
},

@@ -46,3 +46,3 @@ "php": {

"liblabVersion": "2",
"sdkVersion": "1.1.73"
"sdkVersion": "1.1.74"
},

@@ -66,3 +66,3 @@ "typescript": {

"liblabVersion": "2",
"sdkVersion": "1.1.73"
"sdkVersion": "1.1.74"
}

@@ -107,6 +107,6 @@ },

"hooksLocation": {
"bucketKey": "6371/hooks.zip",
"bucketKey": "6373/hooks.zip",
"bucketName": "prod-liblab-api-stack-hooks"
},
"specUrl": "https://prod-liblab-api-stack-specs.s3.us-east-1.amazonaws.com/952/open-api-spec.yaml?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA5P3QKKDKGVNIJ2H7%2F20240724%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240724T183009Z&X-Amz-Expires=43200&X-Amz-Signature=cb6b6d37a7a0163ff607819608459289681c6107b59c0c440a503e35664fd492&X-Amz-SignedHeaders=host&x-id=GetObject",
"specUrl": "https://prod-liblab-api-stack-specs.s3.us-east-1.amazonaws.com/953/open-api-spec.yaml?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA5P3QKKDKGVNIJ2H7%2F20240724%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240724T185812Z&X-Amz-Expires=43200&X-Amz-Signature=e5da297c34ebc4b2f79e1ce5c93790f6b58d03ce7704486456d6ebe739af1c21&X-Amz-SignedHeaders=host&x-id=GetObject",
"includeWatermark": false,

@@ -113,0 +113,0 @@ "language": "typescript",

@@ -18,2 +18,4 @@ "use strict";

return __awaiter(this, void 0, void 0, function* () {
console.log('request', request);
console.log('params', params);
if (request.path.endsWith('/oauth/token'))

@@ -23,2 +25,4 @@ return request;

const clientSecret = params.get('clientSecret') || '';
console.log('clientId', clientId);
console.log('clientSecret', clientSecret);
if (!clientId || !clientSecret) {

@@ -37,2 +41,4 @@ throw new Error('Missing clientId and/or clientSecret constructor parameters');

const tokenResponse = yield this.getToken(input);
console.log('tokenResponse', tokenResponse);
console.log('tokenResponse.data', tokenResponse.data);
const { expires_in, access_token } = tokenResponse.data;

@@ -47,2 +53,3 @@ if (!expires_in || !access_token) {

const authorization = `Bearer ${CURRENT_TOKEN}`;
console.log('authorization', authorization);
if (!request.headers) {

@@ -49,0 +56,0 @@ request.headers = new Map();

{
"name": "Celitech",
"version": "1.1.73",
"version": "1.1.74",
"private": true,

@@ -5,0 +5,0 @@ "dependencies": {

{
"name": "celitech-sdk",
"version": "1.1.73",
"version": "1.1.74",
"description": "Welcome to the CELITECH API documentation! Useful links: [Homepage](https://www.celitech.com) | [Support email](mailto:support@celitech.com) | [Blog](https://www.celitech.com/blog/) ",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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

# Celitech TypeScript SDK 1.1.73
# Celitech TypeScript SDK 1.1.74

@@ -8,3 +8,3 @@ Welcome to the Celitech SDK documentation. This guide will help you get started with integrating and using the Celitech SDK in your project.

- API version: `1.1.0`
- SDK version: `1.1.73`
- SDK version: `1.1.74`

@@ -11,0 +11,0 @@ ## About the API

@@ -10,2 +10,5 @@ import { HttpMetadata } from '../types';

public async beforeRequest(request: HttpRequest, params: Map<string, string>): Promise<HttpRequest> {
console.log('request', request);
console.log('params', params);
if (request.path.endsWith('/oauth/token')) return request;

@@ -15,2 +18,6 @@

const clientSecret = params.get('clientSecret') || '';
console.log('clientId', clientId);
console.log('clientSecret', clientSecret);
if (!clientId || !clientSecret) {

@@ -31,2 +38,6 @@ throw new Error('Missing clientId and/or clientSecret constructor parameters');

const tokenResponse = await this.getToken(input);
console.log('tokenResponse', tokenResponse);
console.log('tokenResponse.data', tokenResponse.data);
const { expires_in, access_token } = tokenResponse.data;

@@ -44,2 +55,4 @@

console.log('authorization', authorization);
if (!request.headers) {

@@ -46,0 +59,0 @@ request.headers = new Map();

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet