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

@lucidtech/las-sdk-core

Package Overview
Dependencies
Maintainers
2
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lucidtech/las-sdk-core - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

2

lib/client.d.ts

@@ -10,3 +10,3 @@ import { Credentials } from './credentials';

getProcesses(search?: {
[key: string]: string;
[key: string]: string | Array<string>;
}): Promise<any>;

@@ -13,0 +13,0 @@ postProcesses(stateMachineArn: string, inputData: any): Promise<any>;

export declare function buildURL(url: string, params?: {
[key: string]: string;
[key: string]: string | Array<string>;
}): string;

@@ -7,5 +7,12 @@ "use strict";

}
var queryString = new URLSearchParams(params);
return url + "?" + queryString;
var queryString = Object.entries(params).map(function (param) {
var key = param[0], value = param[1];
if (typeof value === 'string') {
return key + "=" + value;
}
return key + "=" + value.join(',');
}).join('&');
var searchParams = new URLSearchParams(queryString);
return url + "?" + searchParams;
}
exports.buildURL = buildURL;
{
"name": "@lucidtech/las-sdk-core",
"version": "1.1.3",
"version": "1.1.4",
"author": "Lucidtech AS <hello@lucidtech.ai>",

@@ -22,4 +22,3 @@ "maintainers": [

"axios": "^0.19.0"
},
"gitHead": "010fe6de6318379747a90176e376d94261130d22"
}
}

@@ -38,3 +38,3 @@ import axios, { AxiosRequestConfig } from 'axios';

getProcesses(search?: { [key: string]: string }) {
getProcesses(search?: { [key: string]: string|Array<string> }) {
const url = buildURL('/processes', search);

@@ -41,0 +41,0 @@ return this.makeGetRequest(url);

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

export function buildURL(url: string, params?: { [ key: string ]: string }) {
export function buildURL(url: string, params?: { [ key: string ]: string|Array<string> }) {
if (!params) {

@@ -6,4 +6,14 @@ return url;

const queryString = new URLSearchParams(params);
return `${url}?${queryString}`;
const queryString = Object.entries(params).map((param) => {
const [ key, value ] = param;
if (typeof value === 'string') {
return `${key}=${value}`;
}
return `${key}=${value.join(',')}`;
}).join('&');
const searchParams = new URLSearchParams(queryString);
return `${url}?${searchParams}`;
}
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