mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-07 22:24:06 -05:00
fix(sdks): bump sdk versions (#2142)
This commit is contained in:
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "simstudio-sdk"
|
name = "simstudio-sdk"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
authors = [
|
authors = [
|
||||||
{name = "Sim", email = "support@sim.ai"},
|
{name = "Sim", email = "support@sim.ai"},
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="simstudio-sdk",
|
name="simstudio-sdk",
|
||||||
version="0.1.0",
|
version="0.1.1",
|
||||||
author="Sim",
|
author="Sim",
|
||||||
author_email="support@sim.ai",
|
author_email="support@sim.ai",
|
||||||
description="Sim SDK - Execute workflows programmatically",
|
description="Sim SDK - Execute workflows programmatically",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "simstudio-ts-sdk",
|
"name": "simstudio-ts-sdk",
|
||||||
"version": "0.1.0",
|
"version": "0.1.1",
|
||||||
"description": "Sim SDK - Execute workflows programmatically",
|
"description": "Sim SDK - Execute workflows programmatically",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ export class SimStudioClient {
|
|||||||
value: any,
|
value: any,
|
||||||
visited: WeakSet<object> = new WeakSet()
|
visited: WeakSet<object> = new WeakSet()
|
||||||
): Promise<any> {
|
): Promise<any> {
|
||||||
if (value instanceof File) {
|
if (typeof File !== 'undefined' && value instanceof File) {
|
||||||
const arrayBuffer = await value.arrayBuffer()
|
const arrayBuffer = await value.arrayBuffer()
|
||||||
const buffer = Buffer.from(arrayBuffer)
|
const buffer = Buffer.from(arrayBuffer)
|
||||||
const base64 = buffer.toString('base64')
|
const base64 = buffer.toString('base64')
|
||||||
|
|||||||
Reference in New Issue
Block a user