omegga 1.0.0 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/plugin.js +2 -0
- package/dist/cli/plugin.js.map +1 -1
- package/dist/omegga/player.d.ts +6 -6
- package/dist/omegga/player.js.map +1 -1
- package/dist/omegga/plugin/plugin_node_safe/worker.js +2 -1
- package/dist/omegga/plugin/plugin_node_safe/worker.js.map +1 -1
- package/dist/omegga/plugin.js.map +1 -1
- package/dist/omegga/server.js +13 -13
- package/dist/omegga/server.js.map +1 -1
- package/dist/plugin.d.ts +28 -14
- package/dist/plugin.js +1 -7
- package/dist/plugin.js.map +1 -1
- package/dist/util/brick/rotate.d.ts +10 -11
- package/dist/util/brick/rotate.js +19 -10
- package/dist/util/brick/rotate.js.map +1 -1
- package/dist/util/index.d.ts +35 -19
- package/dist/util/index.js +22 -11
- package/dist/util/index.js.map +1 -1
- package/package.json +3 -10
- package/public/app.bundle.js.map +1 -1
- package/public/auth.bundle.js.map +1 -1
- package/templates/safe-ts/.gitignore.rename +3 -0
- package/templates/safe-ts/omegga.d.ts +1310 -0
- package/.babelrc.json +0 -5
- package/.github/workflows/lint.yml +0 -26
- package/.vscode/extensions.json +0 -5
- package/.vscode/settings.json +0 -20
- package/dist/brickadia/config.d.ts.map +0 -1
- package/dist/brickadia/server.d.ts.map +0 -1
- package/dist/brickadia/types.d.ts.map +0 -1
- package/dist/cli/auth.d.ts.map +0 -1
- package/dist/cli/config.d.ts.map +0 -1
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/installer.d.ts.map +0 -1
- package/dist/cli/plugin.d.ts.map +0 -1
- package/dist/cli/terminal.d.ts.map +0 -1
- package/dist/config/authorizer.d.ts.map +0 -1
- package/dist/config/formats/format_js.d.ts.map +0 -1
- package/dist/config/formats/format_yml.d.ts.map +0 -1
- package/dist/config/index.d.ts.map +0 -1
- package/dist/config/reader.d.ts.map +0 -1
- package/dist/config/types.d.ts.map +0 -1
- package/dist/config/validator.d.ts.map +0 -1
- package/dist/config/writer.d.ts.map +0 -1
- package/dist/lib.d.ts +0 -21
- package/dist/lib.d.ts.map +0 -1
- package/dist/lib.js +0 -54
- package/dist/lib.js.map +0 -1
- package/dist/main.d.ts.map +0 -1
- package/dist/omegga/auth.d.ts.map +0 -1
- package/dist/omegga/commandInjector.d.ts.map +0 -1
- package/dist/omegga/index.d.ts.map +0 -1
- package/dist/omegga/logWrangler.d.ts.map +0 -1
- package/dist/omegga/matchers/auth.d.ts.map +0 -1
- package/dist/omegga/matchers/chat.d.ts.map +0 -1
- package/dist/omegga/matchers/command.d.ts.map +0 -1
- package/dist/omegga/matchers/exit.d.ts.map +0 -1
- package/dist/omegga/matchers/index.d.ts.map +0 -1
- package/dist/omegga/matchers/init.d.ts.map +0 -1
- package/dist/omegga/matchers/join.d.ts.map +0 -1
- package/dist/omegga/matchers/leave.d.ts.map +0 -1
- package/dist/omegga/matchers/mapChange.d.ts.map +0 -1
- package/dist/omegga/matchers/types.d.ts.map +0 -1
- package/dist/omegga/matchers/version.d.ts.map +0 -1
- package/dist/omegga/player.d.ts.map +0 -1
- package/dist/omegga/plugin/plugin_jsonrpc_stdio.d.ts.map +0 -1
- package/dist/omegga/plugin/plugin_node_safe/proxyOmegga.d.ts.map +0 -1
- package/dist/omegga/plugin/plugin_node_safe/worker.d.ts.map +0 -1
- package/dist/omegga/plugin/plugin_node_safe.d.ts.map +0 -1
- package/dist/omegga/plugin/plugin_node_unsafe.d.ts.map +0 -1
- package/dist/omegga/plugin.d.ts.map +0 -1
- package/dist/omegga/server.d.ts.map +0 -1
- package/dist/omegga/types.d.ts.map +0 -1
- package/dist/omegga/wrapper.d.ts.map +0 -1
- package/dist/omeggaplugin.d.ts +0 -1
- package/dist/omeggaplugin.js +0 -4
- package/dist/omeggaplugin.js.map +0 -1
- package/dist/softconfig.d.ts.map +0 -1
- package/dist/util/brick/checkBounds.d.ts.map +0 -1
- package/dist/util/brick/constants.d.ts.map +0 -1
- package/dist/util/brick/getBounds.d.ts.map +0 -1
- package/dist/util/brick/getBrickSize.d.ts.map +0 -1
- package/dist/util/brick/getScaleAxis.d.ts.map +0 -1
- package/dist/util/brick/index.d.ts.map +0 -1
- package/dist/util/brick/rotate.d.ts.map +0 -1
- package/dist/util/brick/setOwnership.d.ts.map +0 -1
- package/dist/util/chat.d.ts.map +0 -1
- package/dist/util/color.d.ts.map +0 -1
- package/dist/util/file.d.ts.map +0 -1
- package/dist/util/index.d.ts.map +0 -1
- package/dist/util/map.d.ts.map +0 -1
- package/dist/util/pattern.d.ts.map +0 -1
- package/dist/util/time.d.ts.map +0 -1
- package/dist/util/uuid.d.ts.map +0 -1
- package/dist/util/wsl.d.ts.map +0 -1
- package/dist/webserver/backend/api.d.ts.map +0 -1
- package/dist/webserver/backend/calendar.d.ts.map +0 -1
- package/dist/webserver/backend/database.d.ts.map +0 -1
- package/dist/webserver/backend/index.d.ts.map +0 -1
- package/dist/webserver/backend/metrics.d.ts.map +0 -1
- package/dist/webserver/backend/types.d.ts.map +0 -1
- package/dist/webserver/backend/util.d.ts.map +0 -1
- package/dist/webserver/index.d.ts.map +0 -1
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { Brick } from 'brs-js';
|
|
2
|
-
declare const d2o: (direction: number, rotation: number) => number;
|
|
3
|
-
declare const o2d: (orientation: number) => number[];
|
|
4
|
-
declare
|
|
5
|
-
declare
|
|
6
|
-
declare
|
|
7
|
-
declare
|
|
8
|
-
export { rotate, rotate_x, rotate_y, rotate_z, d2o, o2d };
|
|
2
|
+
export declare const d2o: (direction: number, rotation: number) => number;
|
|
3
|
+
export declare const o2d: (orientation: number) => number[];
|
|
4
|
+
export declare function rotate(brick: Brick, rotation: [number, number]): Brick;
|
|
5
|
+
export declare function rotate_x(times: number): (obj: Brick) => Brick;
|
|
6
|
+
export declare function rotate_y(times: number): (obj: Brick) => Brick;
|
|
7
|
+
export declare function rotate_z(times: number): (obj: Brick) => Brick;
|
|
9
8
|
declare const _default: {
|
|
10
|
-
rotate:
|
|
11
|
-
rotate_x:
|
|
12
|
-
rotate_y:
|
|
13
|
-
rotate_z:
|
|
9
|
+
rotate: typeof rotate;
|
|
10
|
+
rotate_x: typeof rotate_x;
|
|
11
|
+
rotate_y: typeof rotate_y;
|
|
12
|
+
rotate_z: typeof rotate_z;
|
|
14
13
|
d2o: (direction: number, rotation: number) => number;
|
|
15
14
|
o2d: (orientation: number) => number[];
|
|
16
15
|
};
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.rotate_z = exports.rotate_y = exports.rotate_x = exports.rotate = exports.o2d = exports.d2o = void 0;
|
|
4
4
|
const constants_1 = require("./constants");
|
|
5
5
|
const d2o = (direction, rotation) => (direction << 2) | rotation;
|
|
6
6
|
exports.d2o = d2o;
|
|
7
|
-
const o2d = (orientation) => [
|
|
7
|
+
const o2d = (orientation) => [
|
|
8
|
+
(orientation >> 2) % 6,
|
|
9
|
+
orientation & 3,
|
|
10
|
+
];
|
|
8
11
|
exports.o2d = o2d;
|
|
9
|
-
const rotateDirection = (a, b) => o2d(constants_1.rotationTable[d2o(...a) * 24 + d2o(...b)]);
|
|
12
|
+
const rotateDirection = (a, b) => (0, exports.o2d)(constants_1.rotationTable[(0, exports.d2o)(...a) * 24 + (0, exports.d2o)(...b)]);
|
|
10
13
|
// Rotate a brick on its axis
|
|
11
|
-
|
|
14
|
+
function rotate(brick, rotation) {
|
|
12
15
|
// copy the brick
|
|
13
16
|
brick = Object.assign({}, brick);
|
|
14
17
|
// use default values if none exist
|
|
@@ -16,9 +19,9 @@ const rotate = (brick, rotation) => {
|
|
|
16
19
|
const [d, r] = rotateDirection([brick_direction, brick_rotation], rotation);
|
|
17
20
|
brick.direction = d;
|
|
18
21
|
brick.rotation = r;
|
|
19
|
-
brick.position = constants_1.translationTable[d2o(...rotation)](brick.position);
|
|
22
|
+
brick.position = constants_1.translationTable[(0, exports.d2o)(...rotation)](brick.position);
|
|
20
23
|
return brick;
|
|
21
|
-
}
|
|
24
|
+
}
|
|
22
25
|
exports.rotate = rotate;
|
|
23
26
|
function repeat(times, fn) {
|
|
24
27
|
return (obj) => {
|
|
@@ -28,11 +31,17 @@ function repeat(times, fn) {
|
|
|
28
31
|
return obj;
|
|
29
32
|
};
|
|
30
33
|
}
|
|
31
|
-
|
|
34
|
+
function rotate_x(times) {
|
|
35
|
+
return repeat(times, (brick) => rotate(brick, [3, 3]));
|
|
36
|
+
}
|
|
32
37
|
exports.rotate_x = rotate_x;
|
|
33
|
-
|
|
38
|
+
function rotate_y(times) {
|
|
39
|
+
return repeat(times, (brick) => rotate(brick, [1, 0]));
|
|
40
|
+
}
|
|
34
41
|
exports.rotate_y = rotate_y;
|
|
35
|
-
|
|
42
|
+
function rotate_z(times) {
|
|
43
|
+
return repeat(times, (brick) => rotate(brick, [4, 1]));
|
|
44
|
+
}
|
|
36
45
|
exports.rotate_z = rotate_z;
|
|
37
|
-
exports.default = { rotate, rotate_x, rotate_y, rotate_z, d2o, o2d };
|
|
46
|
+
exports.default = { rotate, rotate_x, rotate_y, rotate_z, d2o: exports.d2o, o2d: exports.o2d };
|
|
38
47
|
//# sourceMappingURL=rotate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rotate.js","sourceRoot":"","sources":["../../../src/util/brick/rotate.ts"],"names":[],"mappings":";;;AACA,2CAA8D;
|
|
1
|
+
{"version":3,"file":"rotate.js","sourceRoot":"","sources":["../../../src/util/brick/rotate.ts"],"names":[],"mappings":";;;AACA,2CAA8D;AAEvD,MAAM,GAAG,GAAG,CAAC,SAAiB,EAAE,QAAgB,EAAE,EAAE,CACzD,CAAC,SAAS,IAAI,CAAC,CAAC,GAAG,QAAQ,CAAC;AADjB,QAAA,GAAG,OACc;AACvB,MAAM,GAAG,GAAG,CAAC,WAAmB,EAAE,EAAE,CAAC;IA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pC,OAAO,MAAM,CAAC,KAAK,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAChE,CAAC;AAFD,4BAEC;AACD,SAAgB,QAAQ,CAAC,KAAa;IACpC,OAAO,MAAM,CAAC,KAAK,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAChE,CAAC;AAFD,4BAEC;AACD,SAAgB,QAAQ,CAAC,KAAa;IACpC,OAAO,MAAM,CAAC,KAAK,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAChE,CAAC;AAFD,4BAEC;AAED,kBAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,EAAH,WAAG,EAAE,GAAG,EAAH,WAAG,EAAE,CAAC"}
|
package/dist/util/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
declare const chat: {
|
|
2
2
|
EMOTES: string[];
|
|
3
3
|
sanitize: (str: string) => string;
|
|
4
4
|
parseLinks: (message: string) => string;
|
|
@@ -24,7 +24,7 @@ export declare const chat: {
|
|
|
24
24
|
gray: (message: string) => string;
|
|
25
25
|
};
|
|
26
26
|
import { hsv } from './color';
|
|
27
|
-
|
|
27
|
+
declare const color: {
|
|
28
28
|
hsv: typeof hsv;
|
|
29
29
|
linearRGB: (rgba: number[]) => number[];
|
|
30
30
|
sRGB: (linear: number[]) => number[];
|
|
@@ -35,20 +35,20 @@ export declare const color: {
|
|
|
35
35
|
}, g?: number, b?: number) => string;
|
|
36
36
|
DEFAULT_COLORSET: number[][];
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
declare const uuid: {
|
|
39
39
|
UUID_PATTERN: RegExp;
|
|
40
40
|
match: (str: string) => boolean;
|
|
41
41
|
};
|
|
42
|
-
|
|
42
|
+
declare const pattern: {
|
|
43
43
|
explode: (str: string) => RegExp;
|
|
44
44
|
};
|
|
45
45
|
import { parseDuration, parseBrickadiaTime } from './time';
|
|
46
|
-
|
|
46
|
+
declare const time: {
|
|
47
47
|
parseDuration: typeof parseDuration;
|
|
48
48
|
parseBrickadiaTime: typeof parseBrickadiaTime;
|
|
49
49
|
};
|
|
50
50
|
import { brn2n, n2brn } from './map';
|
|
51
|
-
|
|
51
|
+
declare const map: {
|
|
52
52
|
DEFAULT_MAPS: {
|
|
53
53
|
name: string;
|
|
54
54
|
brName: string;
|
|
@@ -56,8 +56,8 @@ export declare const map: {
|
|
|
56
56
|
brn2n: typeof brn2n;
|
|
57
57
|
n2brn: typeof n2brn;
|
|
58
58
|
};
|
|
59
|
-
import { checkBounds, getBounds, getBrickSize, getScaleAxis, setOwnership } from './brick';
|
|
60
|
-
|
|
59
|
+
import { checkBounds, getBounds, getBrickSize, getScaleAxis, setOwnership, rotate, rotate_x, rotate_y, rotate_z } from './brick';
|
|
60
|
+
declare const brick: {
|
|
61
61
|
BRICK_CONSTANTS: {
|
|
62
62
|
rotationTable: number[];
|
|
63
63
|
translationTable: (([x, y, z]: [number, number, number]) => [number, number, number])[];
|
|
@@ -70,16 +70,17 @@ export declare const brick: {
|
|
|
70
70
|
getBrickSize: typeof getBrickSize;
|
|
71
71
|
getScaleAxis: typeof getScaleAxis;
|
|
72
72
|
setOwnership: typeof setOwnership;
|
|
73
|
-
rotate:
|
|
74
|
-
rotate_x:
|
|
75
|
-
rotate_y:
|
|
76
|
-
rotate_z:
|
|
73
|
+
rotate: typeof rotate;
|
|
74
|
+
rotate_x: typeof rotate_x;
|
|
75
|
+
rotate_y: typeof rotate_y;
|
|
76
|
+
rotate_z: typeof rotate_z;
|
|
77
77
|
d2o: (direction: number, rotation: number) => number;
|
|
78
78
|
o2d: (orientation: number) => number[];
|
|
79
79
|
};
|
|
80
|
-
|
|
80
|
+
declare const wsl: () => number;
|
|
81
|
+
import { ReadSaveObject, WriteSaveObject } from 'brs-js';
|
|
81
82
|
export * as brs from 'brs-js';
|
|
82
|
-
|
|
83
|
+
export { chat, color, uuid, pattern, time, map, brick, wsl };
|
|
83
84
|
declare const _default: {
|
|
84
85
|
chat: {
|
|
85
86
|
EMOTES: string[];
|
|
@@ -149,14 +150,29 @@ declare const _default: {
|
|
|
149
150
|
getBrickSize: typeof getBrickSize;
|
|
150
151
|
getScaleAxis: typeof getScaleAxis;
|
|
151
152
|
setOwnership: typeof setOwnership;
|
|
152
|
-
rotate:
|
|
153
|
-
rotate_x:
|
|
154
|
-
rotate_y:
|
|
155
|
-
rotate_z:
|
|
153
|
+
rotate: typeof rotate;
|
|
154
|
+
rotate_x: typeof rotate_x;
|
|
155
|
+
rotate_y: typeof rotate_y;
|
|
156
|
+
rotate_z: typeof rotate_z;
|
|
156
157
|
d2o: (direction: number, rotation: number) => number;
|
|
157
158
|
o2d: (orientation: number) => number[];
|
|
158
159
|
};
|
|
159
160
|
wsl: () => number;
|
|
160
|
-
brs:
|
|
161
|
+
brs: {
|
|
162
|
+
read(rawBytes: Uint8Array, options?: {
|
|
163
|
+
bricks?: boolean;
|
|
164
|
+
preview?: boolean;
|
|
165
|
+
}): ReadSaveObject;
|
|
166
|
+
write(save: WriteSaveObject, options?: {
|
|
167
|
+
compress?: boolean;
|
|
168
|
+
}): Uint8Array;
|
|
169
|
+
utils: any;
|
|
170
|
+
constants: {
|
|
171
|
+
MAGIC: Uint8Array;
|
|
172
|
+
LATEST_VERSION: number;
|
|
173
|
+
MAX_INT: number;
|
|
174
|
+
DEFAULT_UUID: string;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
161
177
|
};
|
|
162
178
|
export default _default;
|
package/dist/util/index.js
CHANGED
|
@@ -22,11 +22,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
25
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
29
|
+
exports.wsl = exports.brick = exports.map = exports.time = exports.pattern = exports.uuid = exports.color = exports.chat = exports.brs = void 0;
|
|
27
30
|
// santize chat, emote list
|
|
28
31
|
const chat_1 = require("./chat");
|
|
29
|
-
|
|
32
|
+
const chat = {
|
|
30
33
|
EMOTES: chat_1.EMOTES,
|
|
31
34
|
sanitize: chat_1.sanitize,
|
|
32
35
|
parseLinks: chat_1.parseLinks,
|
|
@@ -51,24 +54,30 @@ exports.chat = {
|
|
|
51
54
|
white: chat_1.white,
|
|
52
55
|
gray: chat_1.gray,
|
|
53
56
|
};
|
|
57
|
+
exports.chat = chat;
|
|
54
58
|
// hsv and sRGB to linearRGB helpers
|
|
55
59
|
const color_1 = require("./color");
|
|
56
|
-
|
|
60
|
+
const color = { hsv: color_1.hsv, linearRGB: color_1.linearRGB, sRGB: color_1.sRGB, rgbToHex: color_1.rgbToHex, DEFAULT_COLORSET: color_1.DEFAULT_COLORSET };
|
|
61
|
+
exports.color = color;
|
|
57
62
|
// uuid utils
|
|
58
63
|
const uuid_1 = require("./uuid");
|
|
59
|
-
|
|
64
|
+
const uuid = { UUID_PATTERN: uuid_1.UUID_PATTERN, match: uuid_1.match };
|
|
65
|
+
exports.uuid = uuid;
|
|
60
66
|
// pattern matching utils
|
|
61
67
|
const pattern_1 = require("./pattern");
|
|
62
|
-
|
|
68
|
+
const pattern = { explode: pattern_1.explode };
|
|
69
|
+
exports.pattern = pattern;
|
|
63
70
|
// time parsing utils
|
|
64
71
|
const time_1 = require("./time");
|
|
65
|
-
|
|
72
|
+
const time = { parseDuration: time_1.parseDuration, parseBrickadiaTime: time_1.parseBrickadiaTime };
|
|
73
|
+
exports.time = time;
|
|
66
74
|
// map parsing utils
|
|
67
75
|
const map_1 = require("./map");
|
|
68
|
-
|
|
76
|
+
const map = { DEFAULT_MAPS: map_1.DEFAULT_MAPS, brn2n: map_1.brn2n, n2brn: map_1.n2brn };
|
|
77
|
+
exports.map = map;
|
|
69
78
|
// brick utils
|
|
70
79
|
const brick_1 = require("./brick");
|
|
71
|
-
|
|
80
|
+
const brick = {
|
|
72
81
|
BRICK_CONSTANTS: brick_1.BRICK_CONSTANTS,
|
|
73
82
|
checkBounds: brick_1.checkBounds,
|
|
74
83
|
getBounds: brick_1.getBounds,
|
|
@@ -82,11 +91,13 @@ exports.brick = {
|
|
|
82
91
|
d2o: brick_1.d2o,
|
|
83
92
|
o2d: brick_1.o2d,
|
|
84
93
|
};
|
|
94
|
+
exports.brick = brick;
|
|
85
95
|
// wsl
|
|
86
96
|
const wsl = () => require('./wsl');
|
|
87
97
|
exports.wsl = wsl;
|
|
88
|
-
|
|
98
|
+
const brs_js_1 = __importDefault(require("brs-js"));
|
|
99
|
+
// this type has to exist or the dts exporter will try to dynamically export brs-js
|
|
100
|
+
const brs = brs_js_1.default;
|
|
89
101
|
exports.brs = __importStar(require("brs-js"));
|
|
90
|
-
|
|
91
|
-
exports.default = { chat: exports.chat, color: exports.color, uuid: exports.uuid, pattern: exports.pattern, time: exports.time, map: exports.map, brick: exports.brick, wsl: exports.wsl, brs };
|
|
102
|
+
exports.default = { chat, color, uuid, pattern, time, map, brick, wsl, brs };
|
|
92
103
|
//# sourceMappingURL=index.js.map
|
package/dist/util/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/util/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/util/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAA2B;AAC3B,iCAwBgB;AAChB,MAAM,IAAI,GAAG;IAC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Y,EAAZ,kBAAY,EAAE,KAAK,EAAL,WAAK,EAAE,KAAK,EAAL,WAAK,EAAE,CAAC;AA+DA,kBAAG;AA7D9C,cAAc;AACd,mCAaiB;AAEjB,MAAM,KAAK,GAAG;IACZ,eAAe,EAAf,uBAAe;IACf,WAAW,EAAX,mBAAW;IACX,SAAS,EAAT,iBAAS;IACT,YAAY,EAAZ,oBAAY;IACZ,YAAY,EAAZ,oBAAY;IACZ,YAAY,EAAZ,oBAAY;IACZ,MAAM,EAAN,cAAM;IACN,QAAQ,EAAR,gBAAQ;IACR,QAAQ,EAAR,gBAAQ;IACR,QAAQ,EAAR,gBAAQ;IACR,GAAG,EAAH,WAAG;IACH,GAAG,EAAH,WAAG;CACJ,CAAC;AAgC8C,sBAAK;AA9BrD,MAAM;AACN,MAAM,GAAG,GAAG,GAAW,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;AA6BY,kBAAG;AA3B1D,oDAAqE;AAErE,mFAAmF;AACnF,MAAM,GAAG,GAqBL,gBAAW,CAAC;AAEhB,8CAA8B;AAG9B,kBAAe,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omegga",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Brickadia server installer, manager, wrapper, configurator, and automator",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"@swc/core": "^1.2.165",
|
|
11
11
|
"bcrypt": "^5.0.0",
|
|
12
12
|
"body-parser": "^1.19.0",
|
|
13
|
-
"brs-js": "^2.0.
|
|
13
|
+
"brs-js": "^2.0.8",
|
|
14
14
|
"child_process": "^1.0.2",
|
|
15
15
|
"chokidar": "^3.4.2",
|
|
16
16
|
"colors": "^1.4.0",
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
"lodash": "^4.17.20",
|
|
28
28
|
"nedb-promises": "^5.0.1",
|
|
29
29
|
"nedb-promises-session-store": "1.0.0",
|
|
30
|
-
"npm": "^7.20.6",
|
|
31
30
|
"pem": "^1.14.4",
|
|
32
31
|
"prompts": "^2.4.2",
|
|
33
32
|
"readline": "^1.3.0",
|
|
@@ -41,13 +40,7 @@
|
|
|
41
40
|
"vm2": "3.9.2 || >3.9.4"
|
|
42
41
|
},
|
|
43
42
|
"types": "./dist/lib.d.ts",
|
|
44
|
-
"exports": {
|
|
45
|
-
".": "./dist/index.js",
|
|
46
|
-
"./plugin": "./dist/plugin.js"
|
|
47
|
-
},
|
|
48
43
|
"devDependencies": {
|
|
49
|
-
"@babel/core": "^7.13.8",
|
|
50
|
-
"@babel/plugin-proposal-class-properties": "^7.13.0",
|
|
51
44
|
"@interactjs/interactjs": "1.10.11",
|
|
52
45
|
"@tabler/icons": "^1.39.1",
|
|
53
46
|
"@types/bcrypt": "^5.0.0",
|
|
@@ -111,4 +104,4 @@
|
|
|
111
104
|
"url": "https://github.com/brickadia-community/omegga/issues"
|
|
112
105
|
},
|
|
113
106
|
"homepage": "https://github.com/brickadia-community/omegga#readme"
|
|
114
|
-
}
|
|
107
|
+
}
|