Comparing version 1.0.7 to 1.0.8
@@ -8,3 +8,3 @@ class Executor { | ||
} catch (error) { | ||
throw new Error("Execution Error:", error); | ||
throw new Error("Execution Error:" + error); | ||
} | ||
@@ -19,3 +19,3 @@ } | ||
} catch (error) { | ||
throw new Error("Execution Error:", error); | ||
throw new Error("Execution Error:" + error); | ||
} | ||
@@ -22,0 +22,0 @@ } |
@@ -5,3 +5,3 @@ async function Import(module) { | ||
} catch (err) { | ||
throw new Error("Import error: ", err); | ||
throw new Error("Import Error:" + error); | ||
} | ||
@@ -8,0 +8,0 @@ } |
@@ -37,3 +37,3 @@ class NextChat { | ||
} catch (err) { | ||
throw new Error("NextChat error: ", err); | ||
throw new Error("NextChat error: " + err); | ||
} | ||
@@ -46,3 +46,3 @@ } | ||
} catch (err) { | ||
throw new Error("NextChat error: ", err); | ||
throw new Error("NextChat error: " + err); | ||
} | ||
@@ -55,3 +55,3 @@ } | ||
} catch (err) { | ||
throw new Error("NextChat error: ", err); | ||
throw new Error("NextChat error: " + err); | ||
} | ||
@@ -84,3 +84,3 @@ } | ||
if (model === "animagen") { | ||
return await (await fetch(`${api}api/animagen?prompt=${prompt}`)).json(); | ||
return await (await fetch(`${api}api/animagen?prompt=${prompt}`)).blob(); | ||
} | ||
@@ -91,6 +91,6 @@ if (model === "prodia") { | ||
if (model === "mageai") { | ||
return await (await fetch(`${api}api/mageai?prompt=${prompt}`)).json(); | ||
return await (await fetch(`${api}api/mageai?prompt=${prompt}`)).blob(); | ||
} | ||
if (model === "xl3") { | ||
return await (await fetch(`${api}/xl3?prompt=${prompt}`)).json(); | ||
return await (await fetch(`${api}/xl3?prompt=${prompt}`)).blob(); | ||
} | ||
@@ -97,0 +97,0 @@ } else if (model === "upscale") { |
{ | ||
"name": "enplex.js", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Enplex is a versatile JavaScript library. providing a unified interface for multiple APIs and services, Enplex empowers developers to build innovative solutions efficiently.", | ||
@@ -71,3 +71,6 @@ "main": "compiler.js", | ||
"@types/node": "^22.9.0" | ||
}, | ||
"dependencies": { | ||
"enplex.js": "^1.0.7" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
28293
19
1
+ Addedenplex.js@^1.0.7