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

@retter/rio-generator

Package Overview
Dependencies
Maintainers
5
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@retter/rio-generator - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

2

dist/index.js

@@ -95,4 +95,4 @@ "use strict";

var getInstanceInputType = template.init && typeof template.init !== 'string' ? template.init.inputModel : 'any';
return ("\nexport class " + classId + " {\n private readonly rdk: RDK\n private readonly instanceId?: string\n private readonly lookupKey?: { name: string; value: string }\n\n public constructor(instanceId: string);\n public constructor(name: string, value: string);\n public constructor(...args: string[]) {\n this.rdk = new RDK()\n if (args.length === 0 || args.length > 2) {\n throw new Error('Invalid number of arguments.');\n }\n if (args.length === 2) this.lookupKey = { name: args[0], value: args[1] }\n else this.instanceId = args[0]\n }\n\n public static async getInstance(options?: RetterRequest<" + capitalizeFirstLetter(getInstanceInputType) + ">): Promise<" + classId + " | Error> {\n const rdk = new RDK()\n const result = await rdk.getInstance({\n ...options,\n classId: '" + classId + "',\n })\n if (200 <= result.statusCode && result.statusCode < 300) return new " + classId + "(result.body.instanceId)\n else return new Error(result.body?.message || 'failed')\n }\n\n " + methods.join('\n\n') + "\n}\n ").trim();
return ("\nexport class " + classId + " {\n private readonly rdk: RDK\n private readonly lookupKey?: { name: string; value: string }\n public readonly instanceId?: string\n\n public constructor(instanceId: string);\n public constructor(name: string, value: string);\n public constructor(...args: string[]) {\n this.rdk = new RDK()\n if (args.length === 0 || args.length > 2) {\n throw new Error('Invalid number of arguments.');\n }\n if (args.length === 2) this.lookupKey = { name: args[0], value: args[1] }\n else this.instanceId = args[0]\n }\n\n public static async getInstance(options?: RetterRequest<" + capitalizeFirstLetter(getInstanceInputType) + ">): Promise<" + classId + " | Error> {\n const rdk = new RDK()\n const result = await rdk.getInstance({\n ...options,\n classId: '" + classId + "',\n })\n if (200 <= result.statusCode && result.statusCode < 300) return new " + classId + "(result.body.instanceId)\n else return new Error(result.body?.message || 'failed')\n }\n\n " + methods.join('\n\n') + "\n}\n ").trim();
}
//# sourceMappingURL=index.js.map
{
"name": "@retter/rio-generator",
"version": "1.0.4",
"version": "1.0.5",
"description": "retter io proxy class helper generator",

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

@@ -69,4 +69,4 @@ import YAML from 'yaml'

private readonly rdk: RDK
private readonly instanceId?: string
private readonly lookupKey?: { name: string; value: string }
public readonly instanceId?: string

@@ -73,0 +73,0 @@ public constructor(instanceId: string);

Sorry, the diff of this file is not supported yet

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