Socket
Socket
Sign inDemoInstall

@basketry/sorbet

Package Overview
Dependencies
72
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.2 to 0.0.3

10

lib/interface-factory.js

@@ -54,2 +54,3 @@ "use strict";

}
const methods = [...int.methods].sort((a, b) => a.name.value.localeCompare(b.name.value));
yield* this.comment(int.description);

@@ -61,3 +62,3 @@ yield* block(`module ${(0, name_factory_1.buildInterfaceNamespace)(this.service, this.options)}`, block(`module ${(0, name_factory_1.buildInterfaceName)(int)}`, function* () {

yield 'interface!';
for (const method of int.methods) {
for (const method of methods) {
yield '';

@@ -79,5 +80,2 @@ yield* self.comment(method.description);

});
const returnType = (0, basketry_1.isRequired)(method.returnType)
? typeName
: `T.nilable(${typeName})`;
if (method.parameters.length) {

@@ -88,3 +86,3 @@ yield* block('sig do', function* () {

yield `).returns(`;
yield* indent(returnType);
yield* indent(typeName);
yield `)`;

@@ -94,3 +92,3 @@ });

else {
yield `sig { abstract.returns(${returnType}) }`;
yield `sig { abstract.returns(${typeName}) }`;
}

@@ -97,0 +95,0 @@ }

2

package.json
{
"name": "@basketry/sorbet",
"version": "0.0.2",
"version": "0.0.3",
"description": "Basketry generator for generating Sorbet types and interfaces",

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

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