Skip to content

Commit ecff905

Browse files
committed
chore: format node folder with biomejs
1 parent 16f0d1b commit ecff905

68 files changed

Lines changed: 171 additions & 171 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/node/db/API.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'use strict';
1+
22
/**
33
* This module provides all API functions
44
*/
@@ -22,7 +22,7 @@
2222
import {deserializeOps} from '../../static/js/Changeset';
2323
import ChatMessage from '../../static/js/ChatMessage';
2424
import {Builder} from "../../static/js/Builder";
25-
import {Attribute} from "../../static/js/types/Attribute";
25+
import type {Attribute} from "../../static/js/types/Attribute";
2626
const CustomError = require('../utils/customError');
2727
const padManager = require('./PadManager');
2828
const padMessageHandler = require('../handler/PadMessageHandler');

src/node/db/AuthorManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'use strict';
1+
22
/**
33
* The AuthorManager controlls all information about the Pad authors
44
*/

src/node/db/DB.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'use strict';
1+
22

33
/**
44
* The DB Module provides a database initialized with the settings
@@ -21,7 +21,7 @@
2121
* limitations under the License.
2222
*/
2323

24-
import {Database, DatabaseType} from 'ueberdb2';
24+
import {Database, type DatabaseType} from 'ueberdb2';
2525
import settings from '../utils/Settings';
2626
import log4js from 'log4js';
2727
const stats = require('../stats')

src/node/db/GroupManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'use strict';
1+
22
/**
33
* The Group Manager provides functions to manage groups in the database
44
*/

src/node/db/Pad.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
'use strict';
2-
import {Database} from "ueberdb2";
3-
import {AChangeSet, APool, AText} from "../types/PadType";
4-
import {MapArrayType} from "../types/MapType";
1+
2+
import type {Database} from "ueberdb2";
3+
import {AChangeSet, APool, type AText} from "../types/PadType";
4+
import type {MapArrayType} from "../types/MapType";
55

66
/**
77
* The pad object, defined with joose

src/node/db/PadManager.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'use strict';
1+
22
/**
33
* The Pad Manager is a Factory for pad Objects
44
*/
@@ -19,8 +19,8 @@
1919
* limitations under the License.
2020
*/
2121

22-
import {MapArrayType} from "../types/MapType";
23-
import {PadType} from "../types/PadType";
22+
import type {MapArrayType} from "../types/MapType";
23+
import type {PadType} from "../types/PadType";
2424

2525
const CustomError = require('../utils/customError');
2626
const Pad = require('../db/Pad');

src/node/db/ReadOnlyManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'use strict';
1+
22
/**
33
* The ReadOnlyManager manages the database and rendering releated to read only pads
44
*/

src/node/db/SecurityManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'use strict';
1+
22
/**
33
* Controls the security of pad access
44
*/
@@ -19,7 +19,7 @@
1919
* limitations under the License.
2020
*/
2121

22-
import {UserSettingsObject} from "../types/UserSettingsObject";
22+
import type {UserSettingsObject} from "../types/UserSettingsObject";
2323

2424
const authorManager = require('./AuthorManager');
2525
const hooks = require('../../static/js/pluginfw/hooks');

src/node/db/SessionManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'use strict';
1+
22
/**
33
* The Session Manager provides functions to manage session in the database,
44
* it only provides session management for sessions created by the API

src/node/eejs/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'use strict';
1+
22
/*
33
* Copyright (c) 2011 RedHog (Egil Möller) <egil.moller@freecode.no>
44
*

0 commit comments

Comments
 (0)