Skip to content

Commit

Permalink
Merge pull request #28 from modos189/fix-custom-iitc
Browse files Browse the repository at this point in the history
  • Loading branch information
modos189 committed Sep 18, 2023
2 parents 1d053e4 + 1e07f5b commit 3e1671e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lib-iitc-manager",
"version": "1.8.0",
"version": "1.8.1",
"description": "Library for managing IITC plugins",
"main": "src/index.js",
"type": "module",
Expand Down
2 changes: 2 additions & 0 deletions src/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ export class Worker {
const iitc_code = await this._getUrl(this.network_host[this.channel] + '/total-conversion-build.user.js');
if (iitc_code) {
const iitc_core = parseMeta(iitc_code);
iitc_core['uid'] = getUID(iitc_core);
iitc_core['code'] = iitc_code;
await this._save({
iitc_core: iitc_core,
Expand Down Expand Up @@ -603,6 +604,7 @@ export class Worker {
if (plugin_uid in data) {
data[plugin_uid]['status'] = plugins_user[plugin_uid]['status'];
data[plugin_uid]['code'] = plugins_user[plugin_uid]['code'];
data[plugin_uid]['user'] = true;
data[plugin_uid]['override'] = true;
} else {
data[plugin_uid] = plugins_user[plugin_uid];
Expand Down
1 change: 1 addition & 0 deletions test/manager.2.external.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ describe('manage.js external plugins integration tests', function () {
it('Check getIITCCore() for standard IITC', async function () {
const script = await manager.getIITCCore();
expect(script, 'getIITCCore()').to.have.all.keys(
'uid',
'author',
'code',
'description',
Expand Down

0 comments on commit 3e1671e

Please sign in to comment.