Skip to content

Commit e7ee5e6

Browse files
js-base64 added.
1 parent bca1d38 commit e7ee5e6

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

package-lock.json

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"author": "Yasmin Seidel (JasminDreasond)",
1717
"license": "AGPL-3.0-only",
1818
"dependencies": {
19+
"js-base64": "^3.7.8",
1920
"jsonrepair": "^3.12.0",
2021
"object-hash": "^3.0.0",
2122
"tiny-essentials": "^1.20.0"
@@ -64,11 +65,11 @@
6465
"@types/events": "^3.0.3",
6566
"@types/node": "^24.0.0",
6667
"@types/object-hash": "^3.0.6",
67-
"node-polyfill-webpack-plugin": "^4.1.0",
6868
"babel-preset-es2015": "^6.24.1",
6969
"browser-resolve": "^2.0.0",
7070
"browserify": "^17.0.1",
7171
"esmify": "^2.1.1",
72+
"node-polyfill-webpack-plugin": "^4.1.0",
7273
"prettier": "3.5.3",
7374
"rollup": "^4.40.0",
7475
"rollup-preserve-directives": "^1.1.3",

src/TinyAiInstance.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import objHash from 'object-hash';
22
import { EventEmitter } from 'events';
33
import { isJsonObject, objType } from 'tiny-essentials';
4-
4+
import { Base64 } from 'js-base64';
55
/**
66
* Tiny AI Server Communication API
77
* -----------------------------
@@ -15,6 +15,8 @@ import { isJsonObject, objType } from 'tiny-essentials';
1515
* Documentation written with the assistance of OpenAI's ChatGPT.
1616
*/
1717
class TinyAiInstance {
18+
static Utils = { Base64 };
19+
1820
/**
1921
* Important instance used to make event emitter.
2022
* @type {EventEmitter}

src/old/TinyAiInstance.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
// @ts-nocheck
2+
import { Base64 } from 'js-base64';
3+
24
class TinyAiInstance {
35
#_apiKey;
46

0 commit comments

Comments
 (0)