New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.3.0 to 1.3.1

2

dist/languages/client/typescript.js

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

}
return ("\nexport class " + classId + " {\n public readonly _obj: RetterCloudObject\n\n private constructor(obj: RetterCloudObject) {\n this._obj = obj\n }\n\n static async getInstance(rio: Retter, options?: Omit<RetterCloudObjectConfig, 'classId'>): Promise<" + classId + "> {\n return new " + classId + "(await rio.getCloudObject({ ...options, classId: '" + classId + "' }))\n }\n\n " + methods.join('\n\n') + "\n}\n ").trim();
return ("\nexport class " + classId + " {\n public readonly _obj: RetterCloudObject\n\n private constructor(obj: RetterCloudObject) {\n this._obj = obj\n }\n\n static async getInstance(rio: Retter, options?: Omit<RetterCloudObjectConfig, 'classId'>): Promise<" + classId + "> {\n const params = { ...options, classId: '" + classId + "' }\n if (params.instanceId) params['useLocal'] = true\n return new " + classId + "(await rio.getCloudObject(params))\n }\n\n " + methods.join('\n\n') + "\n}\n ").trim();
}

@@ -22,0 +22,0 @@ exports.renderClass = renderClass;

{
"name": "@retter/rio-generator",
"version": "1.3.0",
"version": "1.3.1",
"description": "retter io proxy class helper generator",

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

@@ -28,3 +28,5 @@ import YAML from 'yaml'

static async getInstance(rio: Retter, options?: Omit<RetterCloudObjectConfig, 'classId'>): Promise<${classId}> {
return new ${classId}(await rio.getCloudObject({ ...options, classId: '${classId}' }))
const params = { ...options, classId: '${classId}' }
if (params.instanceId) params['useLocal'] = true
return new ${classId}(await rio.getCloudObject(params))
}

@@ -31,0 +33,0 @@

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