This commit is contained in:
Will Hunt 2021-12-02 13:36:52 +00:00
parent 0a0f51ea75
commit da20ebc855
2 changed files with 6 additions and 4 deletions

View File

@ -25,7 +25,9 @@
"start:webhooks": "node --require source-map-support/register lib/App/GithubWebhookApp.js",
"start:matrixsender": "node --require source-map-support/register lib/App/MatrixSenderApp.js",
"test": "mocha -r ts-node/register tests/*.ts tests/**/*.ts",
"lint": "eslint -c .eslintrc.js src/**/*.ts",
"lint": "yarn run lint:js && yarn run lint:rs",
"lint:js": "eslint -c .eslintrc.js src/**/*.ts",
"lint:rs": "cargo fmt --all -- --check",
"generate-default-config": "node lib/Config/Defaults.js --config > config.sample.yml"
},
"dependencies": {

View File

@ -1,8 +1,8 @@
use crate::Jira;
use crate::Jira::types::{JiraIssue, JiraIssueLight};
use contrast;
use md5::{Md5, Digest};
use napi::{CallContext, Env, Error as NapiError, JsObject, JsUnknown, Status, JsString};
use md5::{Digest, Md5};
use napi::{CallContext, Env, Error as NapiError, JsObject, JsString, JsUnknown, Status};
use rgb::RGB;
use std::fmt::Write;
@ -167,4 +167,4 @@ pub fn hash_id(ctx: CallContext) -> Result<JsString, NapiError> {
hasher.input(id.into_utf8()?.as_str()?);
let result = hex::encode(hasher.result());
ctx.env.create_string_from_std(result)
}
}