New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@plattar/sdk-core

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@plattar/sdk-core - npm Package Compare versions

Comparing version

to
1.166.2

5

dist/generator/generators/schemas/dynamic-query-generator.js

@@ -48,3 +48,4 @@ "use strict";

const outputAttributesName = map.mount.meta.output ? util_1.Util.getClassAttributesName(map.mount.meta.output.type) : (isFile ? fileInterfaceName : interfaceName);
if (meta.outputType === 'single') {
const outputType = meta.outputType || 'single';
if (outputType === 'single') {
output += `\tpublic async ${meta.identifier}(${(isSet ? `params:${dataType}` : '')}): Promise<${outputClassName} | null> {\n`;

@@ -56,3 +57,3 @@ output += `\t\tconst url:string = \`${endpoint}${mountEndpoint}\`${isSet ? additionalQuery : ''};\n`;

}
else if (meta.outputType === 'void') {
else if (outputType === 'void') {
output += `\tpublic async ${meta.identifier}(${(isSet ? `params:${dataType}` : '')}): Promise<void> {\n`;

@@ -59,0 +60,0 @@ output += `\t\tconst url:string = \`${endpoint}${mountEndpoint}\`${isSet ? additionalQuery : ''};\n`;

7

dist/generator/generators/schemas/static-query-generator.js

@@ -48,3 +48,4 @@ "use strict";

const outputAttributesName = map.mount.meta.output ? util_1.Util.getClassAttributesName(map.mount.meta.output.type) : (isFile ? fileInterfaceName : interfaceName);
if (meta.outputType === 'single') {
const outputType = meta.outputType || 'single';
if (outputType === 'single') {
output += `\tpublic async ${meta.identifier}(${(isSet ? `params:${dataType}` : '')}): Promise<${outputClassName} | null> {\n`;

@@ -56,3 +57,3 @@ output += `\t\tconst url:string = \`${endpoint}${mountEndpoint}\`${isSet ? additionalQuery : ''};\n`;

}
else if (meta.outputType === 'array') {
else if (outputType === 'array') {
output += `\tpublic async ${meta.identifier}(${(isSet ? `params:${dataType}` : '')}): Promise<Array<${outputClassName}>> {\n`;

@@ -63,3 +64,3 @@ output += `\t\tconst url:string = \`${endpoint}${mountEndpoint}\`${isSet ? additionalQuery : ''};\n`;

}
else if (meta.outputType === 'void') {
else if (outputType === 'void') {
output += `\tpublic async ${meta.identifier}(${(isSet ? `params:${dataType}` : '')}): Promise<void> {\n`;

@@ -66,0 +67,0 @@ output += `\t\tconst url:string = \`${endpoint}${mountEndpoint}\`${isSet ? additionalQuery : ''};\n`;

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

declare const _default: "1.166.1";
declare const _default: "1.166.2";
export default _default;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = "1.166.1";
exports.default = "1.166.2";
{
"name": "@plattar/sdk-core",
"version": "1.166.1",
"version": "1.166.2",
"description": "Core SDK Module for Generative SDK using API Core",

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