Skip to content

Commit

Permalink
sdk: remove chalk
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Jan 3, 2025
1 parent 6ce538b commit 0f02f96
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 11 deletions.
6 changes: 2 additions & 4 deletions sdk/bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ const axios = require('axios').create({
const process = require('process');
const path = require('path');
const fs = require('fs');
const chalk = require('chalk');


function getUserHome() {
const ret = process.env[(process.platform == 'win32') ? 'USERPROFILE' : 'HOME'];
Expand Down Expand Up @@ -127,7 +125,7 @@ exports.deploy = function (debugHost, noRebind) {
.catch((err) => {
console.error(err.message);
if (err.response && err.response.data) {
console.log(chalk.red(err.response.data));
console.log('\x1b[31m%s\x1b[0m', err.response.data);
}
reject(err);
});
Expand Down Expand Up @@ -160,7 +158,7 @@ exports.debug = function (debugHost, entryPoint) {
.catch((err) => {
console.error(err.message);
if (err.response && err.response.data) {
console.log(chalk.red(err.response.data));
console.log('\x1b[31m%s\x1b[0m', err.response.data);
}
reject(err);
});
Expand Down
4 changes: 2 additions & 2 deletions sdk/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@scrypted/sdk",
"version": "0.3.102",
"version": "0.3.103",
"description": "",
"main": "dist/src/index.js",
"exports": {
Expand Down
4 changes: 2 additions & 2 deletions sdk/types/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@scrypted/types",
"version": "0.3.94",
"version": "0.3.95",
"description": "",
"main": "dist/index.js",
"author": "",
Expand Down
2 changes: 1 addition & 1 deletion sdk/types/scrypted_python/scrypted_sdk/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ class TamperState(TypedDict):
pass


TYPES_VERSION = "0.3.94"
TYPES_VERSION = "0.3.95"


class AirPurifier:
Expand Down

0 comments on commit 0f02f96

Please sign in to comment.