Skip to content
Closed

w #191

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/client/idb.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import EventEmitter from 'events';
import HookEvent from './hook.js';

/**
* @typedef {import('./index').default} Ultraviolet
* @typedef {import('./index').default} Mussab
*/

class IDBApi extends EventEmitter {
/**
*
* @param {Ultraviolet} ctx
* @param {Mussab} ctx
*/
constructor(ctx) {
super();
Expand Down
2 changes: 1 addition & 1 deletion src/client/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import EventEmitter from 'events';
import HookEvent from './hook.js';

/**
* @typedef {import('./index').default} Ultraviolet
* @typedef {import('./index').default} Mussab
*/

class MessageApi extends EventEmitter {
Expand Down
4 changes: 2 additions & 2 deletions src/rewrite/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import EventEmitter from 'events';
import { parse, parseFragment, serialize } from 'parse5';

/**
* @typedef {import('./index').default} Ultraviolet
* @typedef {import('./index').default} Mussab
*/

class HTML extends EventEmitter {
/**
*
* @param {Ultraviolet} ctx
* @param {Mussab} ctx
*/
constructor(ctx) {
super();
Expand Down
8 changes: 4 additions & 4 deletions src/rewrite/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import EventEmitter from 'events';
* @typedef {import('../uv.js').UVConfig} UVConfig
*/

class Ultraviolet {
class Mussab {
/**
*
* @param {UVConfig} [options]
Expand Down Expand Up @@ -69,7 +69,7 @@ class Ultraviolet {
'/uv.client.js';
this.configScript = options.config || '/uv.config.js';
this.meta.url ||= this.meta.base || '';
this.codec = Ultraviolet.codec;
this.codec = Mussab.codec;
this.html = new HTML(this);
this.css = new CSS(this);
this.js = new JS(this);
Expand Down Expand Up @@ -194,5 +194,5 @@ class Ultraviolet {
static EventEmitter = EventEmitter;
}

export default Ultraviolet;
if (typeof self === 'object') self.Ultraviolet = Ultraviolet;
export default Mussab;
if (typeof self === 'object') self.Mussab = Mussab;