Socket
Socket
Sign inDemoInstall

conjure-typescript

Package Overview
Dependencies
178
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.3.0 to 4.4.0

2

lib/commands/generate/serviceGenerator.js

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

};
var docs = utils_1.addDeprecatedToDocs(endpointDefinition);
var docs = utils_1.addIncubatingDocs(endpointDefinition, utils_1.addDeprecatedToDocs(endpointDefinition));
if (docs != null) {

@@ -81,0 +81,0 @@ signature.docs = docs;

@@ -29,2 +29,3 @@ /**

export declare function addDeprecatedToDocs<T extends DeprecatableDefinitions>(typeDefintion: T): string[] | undefined;
export declare function addIncubatingDocs(endpointDefinition: IEndpointDefinition, existingDocs: string[] | undefined): string[] | undefined;
export {};

@@ -91,2 +91,14 @@ "use strict";

exports.addDeprecatedToDocs = addDeprecatedToDocs;
function addIncubatingDocs(endpointDefinition, existingDocs) {
if (endpointDefinition.tags !== undefined && endpointDefinition.tags.indexOf("incubating") >= 0) {
if (existingDocs === undefined) {
return ["@incubating"];
}
else {
return [existingDocs + "\n@incubating"];
}
}
return existingDocs;
}
exports.addIncubatingDocs = addIncubatingDocs;
//# sourceMappingURL=utils.js.map
{
"name": "conjure-typescript",
"version": "4.3.0",
"version": "4.4.0",
"description": "A conjure generator for Typescript",

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

"commander": "^2.19.0",
"conjure-api": "^4.13.0",
"conjure-api": "^4.14.1",
"conjure-client": "^2.4.1",

@@ -32,0 +32,0 @@ "fs-extra": "^5.0.0",

@@ -44,3 +44,3 @@ /**

import { TsReturnTypeVisitor } from "./tsReturnTypeVisitor";
import { addDeprecatedToDocs, CONJURE_CLIENT } from "./utils";
import { addDeprecatedToDocs, addIncubatingDocs, CONJURE_CLIENT } from "./utils";

@@ -106,3 +106,3 @@ /** Type used in the generation of the service class. Expected to be provided by conjure-client */

};
const docs = addDeprecatedToDocs(endpointDefinition);
const docs = addIncubatingDocs(endpointDefinition, addDeprecatedToDocs(endpointDefinition));
if (docs != null) {

@@ -109,0 +109,0 @@ signature.docs = docs;

@@ -108,1 +108,15 @@ /**

}
export function addIncubatingDocs(
endpointDefinition: IEndpointDefinition,
existingDocs: string[] | undefined,
): string[] | undefined {
if (endpointDefinition.tags !== undefined && endpointDefinition.tags.indexOf("incubating") >= 0) {
if (existingDocs === undefined) {
return [`@incubating`];
} else {
return [existingDocs + `\n@incubating`];
}
}
return existingDocs;
}

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc