@nice2dev/ui-graphics 1.3.15 → 1.3.17
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/CHANGELOG.md +13 -0
- package/dist/cjs/animation/AnimatedPerson.js +470 -143
- package/dist/cjs/animation/AnimationEditor.js +289 -101
- package/dist/cjs/animation/Audience.js +83 -61
- package/dist/cjs/animation/BodyRenderer.js +69 -28
- package/dist/cjs/animation/animationHelper.js +281 -288
- package/dist/cjs/animation/characterTypes.js +200 -203
- package/dist/cjs/animation/choreoDSL.js +205 -219
- package/dist/cjs/animation/choreography.js +4 -32
- package/dist/cjs/animation/karaokeIntegration.js +68 -77
- package/dist/cjs/animation/lottieExport.js +108 -114
- package/dist/cjs/animation/motionPath.js +225 -248
- package/dist/cjs/animation/physics.js +227 -254
- package/dist/cjs/animation/rig/RigPlayer.js +53 -56
- package/dist/cjs/animation/rig/RiggedBody.js +71 -26
- package/dist/cjs/animation/rig/choreoRigBridge.js +72 -77
- package/dist/cjs/animation/rig/ik.js +13 -18
- package/dist/cjs/animation/rig/poseOps.js +34 -41
- package/dist/cjs/animation/rig/presets.js +64 -72
- package/dist/cjs/animation/rig/rigMath.js +25 -32
- package/dist/cjs/animation/rig/rigTypes.js +59 -63
- package/dist/cjs/animation/shapes/arms.js +31 -13
- package/dist/cjs/animation/shapes/eyes.js +129 -47
- package/dist/cjs/animation/shapes/hair.js +72 -45
- package/dist/cjs/animation/shapes/heads.js +131 -57
- package/dist/cjs/animation/shapes/headwear.js +47 -38
- package/dist/cjs/animation/shapes/legs.js +31 -13
- package/dist/cjs/animation/shapes/mouths.js +120 -44
- package/dist/cjs/animation/shapes/noses.js +80 -25
- package/dist/cjs/animation/shapes/outfits.js +101 -39
- package/dist/cjs/animation/shapes/torsos.js +15 -11
- package/dist/cjs/animation/spineExport.js +103 -121
- package/dist/cjs/core/LocalUI.js +108 -43
- package/dist/cjs/core/NiceBrushEngine.js +758 -552
- package/dist/cjs/core/collaboration.js +249 -251
- package/dist/cjs/core/colorBlindness.js +100 -115
- package/dist/cjs/core/dragDrop.js +155 -158
- package/dist/cjs/core/editorAsk.js +51 -41
- package/dist/cjs/core/fixes.js +140 -171
- package/dist/cjs/core/gridGuides.js +166 -201
- package/dist/cjs/core/historyVisual.js +156 -135
- package/dist/cjs/core/i18n.js +13 -14
- package/dist/cjs/core/integrations.js +238 -249
- package/dist/cjs/core/minimap.js +149 -151
- package/dist/cjs/core/plugins.js +98 -113
- package/dist/cjs/core/rtl.js +71 -83
- package/dist/cjs/core/shortcuts.js +196 -225
- package/dist/cjs/core/theme.js +142 -149
- package/dist/cjs/core/yjsCollaboration.js +232 -293
- package/dist/cjs/design/design-tools.js +12 -22
- package/dist/cjs/font/NiceFontEditor.js +877 -316
- package/dist/cjs/font/fontFormatUtils.js +388 -448
- package/dist/cjs/game/GameAsset2dEditor.js +1201 -392
- package/dist/cjs/game/GameAsset2dEditor.module.css.js +146 -5
- package/dist/cjs/game/gameAssetTypes.js +7 -16
- package/dist/cjs/game/gameAssetUtils.js +390 -413
- package/dist/cjs/game/useGameAssetEditor.js +820 -763
- package/dist/cjs/index.js +81 -84
- package/dist/cjs/nice2dev-ui-graphics.css +1 -1
- package/dist/cjs/node_modules/lib0/array.js +8 -70
- package/dist/cjs/node_modules/lib0/binary.js +3 -20
- package/dist/cjs/node_modules/lib0/broadcastchannel.js +24 -86
- package/dist/cjs/node_modules/lib0/buffer.js +15 -82
- package/dist/cjs/node_modules/lib0/conditions.js +3 -16
- package/dist/cjs/node_modules/lib0/decoding.js +108 -287
- package/dist/cjs/node_modules/lib0/dom.js +14 -44
- package/dist/cjs/node_modules/lib0/encoding.js +68 -418
- package/dist/cjs/node_modules/lib0/environment.js +26 -92
- package/dist/cjs/node_modules/lib0/error.js +5 -29
- package/dist/cjs/node_modules/lib0/function.js +27 -66
- package/dist/cjs/node_modules/lib0/iterator.js +8 -33
- package/dist/cjs/node_modules/lib0/logging.common.js +12 -22
- package/dist/cjs/node_modules/lib0/logging.js +32 -71
- package/dist/cjs/node_modules/lib0/map.js +16 -86
- package/dist/cjs/node_modules/lib0/math.js +3 -32
- package/dist/cjs/node_modules/lib0/number.js +4 -15
- package/dist/cjs/node_modules/lib0/object.js +14 -88
- package/dist/cjs/node_modules/lib0/observable.js +38 -78
- package/dist/cjs/node_modules/lib0/pair.js +3 -20
- package/dist/cjs/node_modules/lib0/prng.js +8 -77
- package/dist/cjs/node_modules/lib0/promise.js +6 -30
- package/dist/cjs/node_modules/lib0/random.js +8 -23
- package/dist/cjs/node_modules/lib0/schema.js +313 -687
- package/dist/cjs/node_modules/lib0/set.js +3 -10
- package/dist/cjs/node_modules/lib0/storage.js +20 -55
- package/dist/cjs/node_modules/lib0/string.js +17 -72
- package/dist/cjs/node_modules/lib0/symbol.js +2 -12
- package/dist/cjs/node_modules/lib0/time.js +2 -15
- package/dist/cjs/node_modules/lib0/trait/equality.js +3 -28
- package/dist/cjs/node_modules/lib0/url.js +4 -18
- package/dist/cjs/node_modules/lib0/webcrypto.js +2 -5
- package/dist/cjs/node_modules/y-protocols/auth.js +5 -19
- package/dist/cjs/node_modules/y-protocols/awareness.js +53 -116
- package/dist/cjs/node_modules/y-protocols/sync.js +16 -103
- package/dist/cjs/node_modules/y-websocket/src/y-websocket.js +77 -219
- package/dist/cjs/node_modules/yjs/dist/yjs.js +2128 -4868
- package/dist/cjs/photo/FilterThumb.js +37 -25
- package/dist/cjs/photo/NiceAITools.js +679 -467
- package/dist/cjs/photo/PhotoEditor.js +34 -20
- package/dist/cjs/photo/PhotoEditor.module.css.js +296 -5
- package/dist/cjs/photo/PhotoEditorCanvas.js +250 -91
- package/dist/cjs/photo/PhotoEditorLeftPanel.js +1086 -224
- package/dist/cjs/photo/PhotoEditorToolbar.js +135 -19
- package/dist/cjs/photo/photoEditorActions.js +89 -72
- package/dist/cjs/photo/photoEditorTypes.js +29 -32
- package/dist/cjs/photo/photoFilters.js +959 -985
- package/dist/cjs/photo/photoOverlays.js +899 -945
- package/dist/cjs/photo/photoSelection.js +427 -499
- package/dist/cjs/photo/usePhotoEditor.js +739 -741
- package/dist/cjs/pixel/HSVPicker.js +191 -175
- package/dist/cjs/pixel/PixelEditor.js +159 -48
- package/dist/cjs/pixel/PixelEditor.module.css.js +209 -5
- package/dist/cjs/pixel/PixelEditorCanvas.js +29 -16
- package/dist/cjs/pixel/PixelEditorMenuBar.js +160 -162
- package/dist/cjs/pixel/PixelEditorRightPanel.js +377 -45
- package/dist/cjs/pixel/PixelEditorStatusBar.js +47 -20
- package/dist/cjs/pixel/PixelEditorTimeline.js +106 -23
- package/dist/cjs/pixel/PixelEditorToolbar.js +99 -21
- package/dist/cjs/pixel/SpriteGeneratorPanel.js +483 -303
- package/dist/cjs/pixel/animalGeneratorPresets.js +776 -601
- package/dist/cjs/pixel/asepriteFormat.js +511 -560
- package/dist/cjs/pixel/buildingGeneratorPresets.js +693 -520
- package/dist/cjs/pixel/characterGeneratorPresets.js +644 -544
- package/dist/cjs/pixel/pixel-pro.js +52 -63
- package/dist/cjs/pixel/pixelEditorExports.js +388 -428
- package/dist/cjs/pixel/pixelEditorTypes.js +91 -108
- package/dist/cjs/pixel/pixelEditorUtils.js +519 -561
- package/dist/cjs/pixel/spriteGeneratorCore.js +206 -257
- package/dist/cjs/pixel/usePixelEditor.js +1321 -1343
- package/dist/cjs/texture/Nice3DTexturePainter.js +707 -440
- package/dist/cjs/ui/NiceUIDesigner.js +954 -527
- package/dist/cjs/vector/NiceSvgToCode.js +586 -446
- package/dist/cjs/vector/VectorEditor.js +290 -117
- package/dist/cjs/vector/VectorEditor.module.css.js +86 -5
- package/dist/cjs/vector/VectorEditorMenuBar.js +333 -275
- package/dist/cjs/vector/VectorEditorRightPanel.js +1094 -371
- package/dist/cjs/vector/VectorEditorShapeRenderer.js +198 -60
- package/dist/cjs/vector/VectorEditorStatusBar.js +39 -13
- package/dist/cjs/vector/useVectorEditor.js +848 -889
- package/dist/cjs/vector/vectorAnimation.js +110 -137
- package/dist/cjs/vector/vectorBooleanOps.js +398 -485
- package/dist/cjs/vector/vectorEditorExport.js +201 -203
- package/dist/cjs/vector/vectorEditorImport.js +173 -189
- package/dist/cjs/vector/vectorEditorTypes.js +42 -49
- package/dist/cjs/vector/vectorGradients.js +151 -174
- package/dist/cjs/vector/vectorIconExport.js +52 -59
- package/dist/cjs/vector/vectorIconImport.js +169 -219
- package/dist/esm/animation/AnimatedPerson.js +470 -141
- package/dist/esm/animation/AnimationEditor.js +290 -100
- package/dist/esm/animation/Audience.js +83 -59
- package/dist/esm/animation/BodyRenderer.js +71 -25
- package/dist/esm/animation/animationHelper.js +284 -287
- package/dist/esm/animation/characterTypes.js +204 -202
- package/dist/esm/animation/choreoDSL.js +212 -218
- package/dist/esm/animation/choreography.js +8 -31
- package/dist/esm/animation/karaokeIntegration.js +74 -76
- package/dist/esm/animation/lottieExport.js +112 -113
- package/dist/esm/animation/motionPath.js +235 -247
- package/dist/esm/animation/physics.js +235 -253
- package/dist/esm/animation/rig/RigPlayer.js +53 -54
- package/dist/esm/animation/rig/RiggedBody.js +71 -24
- package/dist/esm/animation/rig/choreoRigBridge.js +74 -76
- package/dist/esm/animation/rig/ik.js +14 -17
- package/dist/esm/animation/rig/poseOps.js +37 -40
- package/dist/esm/animation/rig/presets.js +70 -71
- package/dist/esm/animation/rig/rigMath.js +28 -31
- package/dist/esm/animation/rig/rigTypes.js +62 -62
- package/dist/esm/animation/shapes/arms.js +32 -12
- package/dist/esm/animation/shapes/eyes.js +135 -46
- package/dist/esm/animation/shapes/hair.js +80 -44
- package/dist/esm/animation/shapes/heads.js +140 -56
- package/dist/esm/animation/shapes/headwear.js +54 -37
- package/dist/esm/animation/shapes/legs.js +32 -12
- package/dist/esm/animation/shapes/mouths.js +127 -43
- package/dist/esm/animation/shapes/noses.js +87 -24
- package/dist/esm/animation/shapes/outfits.js +106 -38
- package/dist/esm/animation/shapes/torsos.js +16 -10
- package/dist/esm/animation/spineExport.js +106 -120
- package/dist/esm/core/LocalUI.js +111 -42
- package/dist/esm/core/NiceBrushEngine.js +761 -551
- package/dist/esm/core/collaboration.js +255 -250
- package/dist/esm/core/colorBlindness.js +106 -114
- package/dist/esm/core/dragDrop.js +157 -157
- package/dist/esm/core/editorAsk.js +53 -40
- package/dist/esm/core/fixes.js +145 -170
- package/dist/esm/core/gridGuides.js +178 -200
- package/dist/esm/core/historyVisual.js +158 -134
- package/dist/esm/core/i18n.js +15 -13
- package/dist/esm/core/integrations.js +244 -248
- package/dist/esm/core/minimap.js +151 -150
- package/dist/esm/core/plugins.js +102 -112
- package/dist/esm/core/rtl.js +77 -82
- package/dist/esm/core/shortcuts.js +200 -224
- package/dist/esm/core/theme.js +150 -148
- package/dist/esm/core/yjsCollaboration.js +240 -292
- package/dist/esm/design/design-tools.js +13 -21
- package/dist/esm/font/NiceFontEditor.js +880 -315
- package/dist/esm/font/fontFormatUtils.js +394 -447
- package/dist/esm/game/GameAsset2dEditor.js +1202 -391
- package/dist/esm/game/GameAsset2dEditor.module.css.js +146 -3
- package/dist/esm/game/gameAssetTypes.js +8 -15
- package/dist/esm/game/gameAssetUtils.js +408 -412
- package/dist/esm/game/useGameAssetEditor.js +821 -762
- package/dist/esm/index.js +332 -69
- package/dist/esm/nice2dev-ui-graphics.css +1 -1
- package/dist/esm/node_modules/lib0/array.js +15 -69
- package/dist/esm/node_modules/lib0/binary.js +14 -19
- package/dist/esm/node_modules/lib0/broadcastchannel.js +27 -85
- package/dist/esm/node_modules/lib0/buffer.js +20 -80
- package/dist/esm/node_modules/lib0/conditions.js +4 -15
- package/dist/esm/node_modules/lib0/decoding.js +128 -286
- package/dist/esm/node_modules/lib0/dom.js +20 -43
- package/dist/esm/node_modules/lib0/encoding.js +90 -415
- package/dist/esm/node_modules/lib0/environment.js +33 -91
- package/dist/esm/node_modules/lib0/error.js +8 -28
- package/dist/esm/node_modules/lib0/function.js +31 -65
- package/dist/esm/node_modules/lib0/iterator.js +11 -32
- package/dist/esm/node_modules/lib0/logging.common.js +22 -21
- package/dist/esm/node_modules/lib0/logging.js +44 -70
- package/dist/esm/node_modules/lib0/map.js +21 -85
- package/dist/esm/node_modules/lib0/math.js +9 -31
- package/dist/esm/node_modules/lib0/number.js +7 -14
- package/dist/esm/node_modules/lib0/object.js +26 -87
- package/dist/esm/node_modules/lib0/observable.js +40 -77
- package/dist/esm/node_modules/lib0/pair.js +5 -19
- package/dist/esm/node_modules/lib0/prng.js +15 -76
- package/dist/esm/node_modules/lib0/promise.js +7 -29
- package/dist/esm/node_modules/lib0/random.js +10 -22
- package/dist/esm/node_modules/lib0/schema.js +367 -686
- package/dist/esm/node_modules/lib0/set.js +4 -9
- package/dist/esm/node_modules/lib0/storage.js +23 -54
- package/dist/esm/node_modules/lib0/string.js +26 -71
- package/dist/esm/node_modules/lib0/symbol.js +3 -11
- package/dist/esm/node_modules/lib0/time.js +3 -14
- package/dist/esm/node_modules/lib0/trait/equality.js +5 -27
- package/dist/esm/node_modules/lib0/url.js +5 -17
- package/dist/esm/node_modules/lib0/webcrypto.js +3 -4
- package/dist/esm/node_modules/y-protocols/auth.js +7 -18
- package/dist/esm/node_modules/y-protocols/awareness.js +58 -115
- package/dist/esm/node_modules/y-protocols/sync.js +26 -102
- package/dist/esm/node_modules/y-websocket/src/y-websocket.js +82 -218
- package/dist/esm/node_modules/yjs/dist/yjs.js +2263 -4899
- package/dist/esm/photo/FilterThumb.js +37 -23
- package/dist/esm/photo/NiceAITools.js +685 -466
- package/dist/esm/photo/PhotoEditor.js +34 -18
- package/dist/esm/photo/PhotoEditor.module.css.js +296 -3
- package/dist/esm/photo/PhotoEditorCanvas.js +250 -89
- package/dist/esm/photo/PhotoEditorLeftPanel.js +1086 -222
- package/dist/esm/photo/PhotoEditorToolbar.js +135 -17
- package/dist/esm/photo/photoEditorActions.js +93 -71
- package/dist/esm/photo/photoEditorTypes.js +32 -31
- package/dist/esm/photo/photoFilters.js +967 -984
- package/dist/esm/photo/photoOverlays.js +913 -944
- package/dist/esm/photo/photoSelection.js +438 -498
- package/dist/esm/photo/usePhotoEditor.js +740 -740
- package/dist/esm/pixel/HSVPicker.js +192 -174
- package/dist/esm/pixel/PixelEditor.js +160 -47
- package/dist/esm/pixel/PixelEditor.module.css.js +209 -3
- package/dist/esm/pixel/PixelEditorCanvas.js +29 -14
- package/dist/esm/pixel/PixelEditorMenuBar.js +160 -160
- package/dist/esm/pixel/PixelEditorRightPanel.js +377 -43
- package/dist/esm/pixel/PixelEditorStatusBar.js +47 -18
- package/dist/esm/pixel/PixelEditorTimeline.js +106 -21
- package/dist/esm/pixel/PixelEditorToolbar.js +99 -19
- package/dist/esm/pixel/SpriteGeneratorPanel.js +483 -301
- package/dist/esm/pixel/animalGeneratorPresets.js +782 -600
- package/dist/esm/pixel/asepriteFormat.js +517 -559
- package/dist/esm/pixel/buildingGeneratorPresets.js +699 -519
- package/dist/esm/pixel/characterGeneratorPresets.js +650 -543
- package/dist/esm/pixel/pixel-pro.js +53 -62
- package/dist/esm/pixel/pixelEditorExports.js +397 -427
- package/dist/esm/pixel/pixelEditorTypes.js +103 -107
- package/dist/esm/pixel/pixelEditorUtils.js +551 -560
- package/dist/esm/pixel/spriteGeneratorCore.js +223 -256
- package/dist/esm/pixel/usePixelEditor.js +1322 -1342
- package/dist/esm/texture/Nice3DTexturePainter.js +709 -439
- package/dist/esm/ui/NiceUIDesigner.js +957 -526
- package/dist/esm/vector/NiceSvgToCode.js +589 -445
- package/dist/esm/vector/VectorEditor.js +291 -116
- package/dist/esm/vector/VectorEditor.module.css.js +86 -3
- package/dist/esm/vector/VectorEditorMenuBar.js +333 -273
- package/dist/esm/vector/VectorEditorRightPanel.js +1094 -369
- package/dist/esm/vector/VectorEditorShapeRenderer.js +199 -59
- package/dist/esm/vector/VectorEditorStatusBar.js +39 -11
- package/dist/esm/vector/useVectorEditor.js +849 -888
- package/dist/esm/vector/vectorAnimation.js +115 -136
- package/dist/esm/vector/vectorBooleanOps.js +401 -484
- package/dist/esm/vector/vectorEditorExport.js +207 -202
- package/dist/esm/vector/vectorEditorImport.js +174 -188
- package/dist/esm/vector/vectorEditorTypes.js +50 -48
- package/dist/esm/vector/vectorGradients.js +158 -173
- package/dist/esm/vector/vectorIconExport.js +53 -58
- package/dist/esm/vector/vectorIconImport.js +171 -218
- package/package.json +9 -15
|
@@ -1,42 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* Isomorphic module to work access the environment (query params, env variables).
|
|
11
|
-
*
|
|
12
|
-
* @module environment
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
/* c8 ignore next 2 */
|
|
17
|
-
// @ts-ignore
|
|
18
|
-
const isNode = typeof process !== 'undefined' && process.release && /node|io\.js/.test(process.release.name) && Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]';
|
|
19
|
-
|
|
20
|
-
/* c8 ignore next */
|
|
21
|
-
const isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && !isNode;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* @type {Map<string,string>}
|
|
25
|
-
*/
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const map = require("./map.js");
|
|
4
|
+
const string = require("./string.js");
|
|
5
|
+
const conditions = require("./conditions.js");
|
|
6
|
+
const storage = require("./storage.js");
|
|
7
|
+
const _function = require("./function.js");
|
|
8
|
+
const isNode = typeof process !== "undefined" && process.release && /node|io\.js/.test(process.release.name) && Object.prototype.toString.call(typeof process !== "undefined" ? process : 0) === "[object process]";
|
|
9
|
+
const isBrowser = typeof window !== "undefined" && typeof document !== "undefined" && !isNode;
|
|
26
10
|
let params;
|
|
27
|
-
|
|
28
|
-
/* c8 ignore start */
|
|
29
11
|
const computeParams = () => {
|
|
30
|
-
if (params ===
|
|
12
|
+
if (params === void 0) {
|
|
31
13
|
if (isNode) {
|
|
32
14
|
params = map.create();
|
|
33
15
|
const pargs = process.argv;
|
|
34
16
|
let currParamName = null;
|
|
35
17
|
for (let i = 0; i < pargs.length; i++) {
|
|
36
18
|
const parg = pargs[i];
|
|
37
|
-
if (parg[0] ===
|
|
19
|
+
if (parg[0] === "-") {
|
|
38
20
|
if (currParamName !== null) {
|
|
39
|
-
params.set(currParamName,
|
|
21
|
+
params.set(currParamName, "");
|
|
40
22
|
}
|
|
41
23
|
currParamName = parg;
|
|
42
24
|
} else {
|
|
@@ -47,78 +29,30 @@ const computeParams = () => {
|
|
|
47
29
|
}
|
|
48
30
|
}
|
|
49
31
|
if (currParamName !== null) {
|
|
50
|
-
params.set(currParamName,
|
|
32
|
+
params.set(currParamName, "");
|
|
51
33
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
(location.search || '?').slice(1).split('&').forEach((kv) => {
|
|
34
|
+
} else if (typeof location === "object") {
|
|
35
|
+
params = map.create();
|
|
36
|
+
(location.search || "?").slice(1).split("&").forEach((kv) => {
|
|
56
37
|
if (kv.length !== 0) {
|
|
57
|
-
const [key, value] = kv.split(
|
|
58
|
-
params.set(`--${string.fromCamelCase(key,
|
|
59
|
-
params.set(`-${string.fromCamelCase(key,
|
|
38
|
+
const [key, value] = kv.split("=");
|
|
39
|
+
params.set(`--${string.fromCamelCase(key, "-")}`, value);
|
|
40
|
+
params.set(`-${string.fromCamelCase(key, "-")}`, value);
|
|
60
41
|
}
|
|
61
42
|
});
|
|
62
43
|
} else {
|
|
63
44
|
params = map.create();
|
|
64
45
|
}
|
|
65
46
|
}
|
|
66
|
-
return params
|
|
47
|
+
return params;
|
|
67
48
|
};
|
|
68
|
-
/* c8 ignore stop */
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* @param {string} name
|
|
72
|
-
* @return {boolean}
|
|
73
|
-
*/
|
|
74
|
-
/* c8 ignore next */
|
|
75
49
|
const hasParam = (name) => computeParams().has(name);
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
const getVariable = (name) =>
|
|
83
|
-
isNode
|
|
84
|
-
? conditions.undefinedToNull(process.env[name.toUpperCase().replaceAll('-', '_')])
|
|
85
|
-
: conditions.undefinedToNull(storage.varStorage.getItem(name));
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* @param {string} name
|
|
89
|
-
* @return {boolean}
|
|
90
|
-
*/
|
|
91
|
-
/* c8 ignore next 2 */
|
|
92
|
-
const hasConf = (name) =>
|
|
93
|
-
hasParam('--' + name) || getVariable(name) !== null;
|
|
94
|
-
|
|
95
|
-
/* c8 ignore next */
|
|
96
|
-
const production = hasConf('production');
|
|
97
|
-
|
|
98
|
-
/* c8 ignore next 2 */
|
|
99
|
-
const forceColor = isNode &&
|
|
100
|
-
_function.isOneOf(process.env.FORCE_COLOR, ['true', '1', '2']);
|
|
101
|
-
|
|
102
|
-
/* c8 ignore start */
|
|
103
|
-
/**
|
|
104
|
-
* Color is enabled by default if the terminal supports it.
|
|
105
|
-
*
|
|
106
|
-
* Explicitly enable color using `--color` parameter
|
|
107
|
-
* Disable color using `--no-color` parameter or using `NO_COLOR=1` environment variable.
|
|
108
|
-
* `FORCE_COLOR=1` enables color and takes precedence over all.
|
|
109
|
-
*/
|
|
110
|
-
const supportsColor = forceColor || (
|
|
111
|
-
!hasParam('--no-colors') && // @todo deprecate --no-colors
|
|
112
|
-
!hasConf('no-color') &&
|
|
113
|
-
(!isNode || process.stdout.isTTY) && (
|
|
114
|
-
!isNode ||
|
|
115
|
-
hasParam('--color') ||
|
|
116
|
-
getVariable('COLORTERM') !== null ||
|
|
117
|
-
(getVariable('TERM') || '').includes('color')
|
|
118
|
-
)
|
|
119
|
-
);
|
|
120
|
-
/* c8 ignore stop */
|
|
121
|
-
|
|
50
|
+
const getVariable = (name) => isNode ? conditions.undefinedToNull(process.env[name.toUpperCase().replaceAll("-", "_")]) : conditions.undefinedToNull(storage.varStorage.getItem(name));
|
|
51
|
+
const hasConf = (name) => hasParam("--" + name) || getVariable(name) !== null;
|
|
52
|
+
const production = hasConf("production");
|
|
53
|
+
const forceColor = isNode && _function.isOneOf(process.env.FORCE_COLOR, ["true", "1", "2"]);
|
|
54
|
+
const supportsColor = forceColor || !hasParam("--no-colors") && // @todo deprecate --no-colors
|
|
55
|
+
!hasConf("no-color") && (!isNode || process.stdout.isTTY) && (!isNode || hasParam("--color") || getVariable("COLORTERM") !== null || (getVariable("TERM") || "").includes("color"));
|
|
122
56
|
exports.getVariable = getVariable;
|
|
123
57
|
exports.hasConf = hasConf;
|
|
124
58
|
exports.hasParam = hasParam;
|
|
@@ -1,36 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* Error helpers.
|
|
5
|
-
*
|
|
6
|
-
* @module error
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @param {string} s
|
|
11
|
-
* @return {Error}
|
|
12
|
-
*/
|
|
13
|
-
/* c8 ignore next */
|
|
14
|
-
const create = s => new Error(s);
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @throws {Error}
|
|
18
|
-
* @return {never}
|
|
19
|
-
*/
|
|
20
|
-
/* c8 ignore next 3 */
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const create = (s) => new Error(s);
|
|
21
4
|
const methodUnimplemented = () => {
|
|
22
|
-
throw create(
|
|
5
|
+
throw create("Method unimplemented");
|
|
23
6
|
};
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* @throws {Error}
|
|
27
|
-
* @return {never}
|
|
28
|
-
*/
|
|
29
|
-
/* c8 ignore next 3 */
|
|
30
7
|
const unexpectedCase = () => {
|
|
31
|
-
throw create(
|
|
8
|
+
throw create("Unexpected case");
|
|
32
9
|
};
|
|
33
|
-
|
|
34
10
|
exports.create = create;
|
|
35
11
|
exports.methodUnimplemented = methodUnimplemented;
|
|
36
12
|
exports.unexpectedCase = unexpectedCase;
|
|
@@ -1,21 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Common functions and function call helpers.
|
|
8
|
-
*
|
|
9
|
-
* @module function
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Calls all functions in `fs` with args. Only throws after all functions were called.
|
|
15
|
-
*
|
|
16
|
-
* @param {Array<function>} fs
|
|
17
|
-
* @param {Array<any>} args
|
|
18
|
-
*/
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const object = require("./object.js");
|
|
4
|
+
const equality = require("./trait/equality.js");
|
|
19
5
|
const callAll = (fs, args, i = 0) => {
|
|
20
6
|
try {
|
|
21
7
|
for (; i < fs.length; i++) {
|
|
@@ -27,31 +13,16 @@ const callAll = (fs, args, i = 0) => {
|
|
|
27
13
|
}
|
|
28
14
|
}
|
|
29
15
|
};
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* @template A
|
|
33
|
-
*
|
|
34
|
-
* @param {A} a
|
|
35
|
-
* @return {A}
|
|
36
|
-
*/
|
|
37
|
-
const id = a => a;
|
|
38
|
-
|
|
39
|
-
/* c8 ignore start */
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* @param {any} a
|
|
43
|
-
* @param {any} b
|
|
44
|
-
* @return {boolean}
|
|
45
|
-
*/
|
|
16
|
+
const id = (a) => a;
|
|
46
17
|
const equalityDeep = (a, b) => {
|
|
47
18
|
if (a === b) {
|
|
48
|
-
return true
|
|
19
|
+
return true;
|
|
49
20
|
}
|
|
50
|
-
if (a == null || b == null ||
|
|
51
|
-
return false
|
|
21
|
+
if (a == null || b == null || a.constructor !== b.constructor && (a.constructor || Object) !== (b.constructor || Object)) {
|
|
22
|
+
return false;
|
|
52
23
|
}
|
|
53
24
|
if (a[equality.EqualityTraitSymbol] != null) {
|
|
54
|
-
return a[equality.EqualityTraitSymbol](b)
|
|
25
|
+
return a[equality.EqualityTraitSymbol](b);
|
|
55
26
|
}
|
|
56
27
|
switch (a.constructor) {
|
|
57
28
|
case ArrayBuffer:
|
|
@@ -60,74 +31,64 @@ const equalityDeep = (a, b) => {
|
|
|
60
31
|
// eslint-disable-next-line no-fallthrough
|
|
61
32
|
case Uint8Array: {
|
|
62
33
|
if (a.byteLength !== b.byteLength) {
|
|
63
|
-
return false
|
|
34
|
+
return false;
|
|
64
35
|
}
|
|
65
36
|
for (let i = 0; i < a.length; i++) {
|
|
66
37
|
if (a[i] !== b[i]) {
|
|
67
|
-
return false
|
|
38
|
+
return false;
|
|
68
39
|
}
|
|
69
40
|
}
|
|
70
|
-
break
|
|
41
|
+
break;
|
|
71
42
|
}
|
|
72
43
|
case Set: {
|
|
73
44
|
if (a.size !== b.size) {
|
|
74
|
-
return false
|
|
45
|
+
return false;
|
|
75
46
|
}
|
|
76
47
|
for (const value of a) {
|
|
77
48
|
if (!b.has(value)) {
|
|
78
|
-
return false
|
|
49
|
+
return false;
|
|
79
50
|
}
|
|
80
51
|
}
|
|
81
|
-
break
|
|
52
|
+
break;
|
|
82
53
|
}
|
|
83
54
|
case Map: {
|
|
84
55
|
if (a.size !== b.size) {
|
|
85
|
-
return false
|
|
56
|
+
return false;
|
|
86
57
|
}
|
|
87
58
|
for (const key of a.keys()) {
|
|
88
59
|
if (!b.has(key) || !equalityDeep(a.get(key), b.get(key))) {
|
|
89
|
-
return false
|
|
60
|
+
return false;
|
|
90
61
|
}
|
|
91
62
|
}
|
|
92
|
-
break
|
|
63
|
+
break;
|
|
93
64
|
}
|
|
94
|
-
case
|
|
65
|
+
case void 0:
|
|
95
66
|
case Object:
|
|
96
67
|
if (object.size(a) !== object.size(b)) {
|
|
97
|
-
return false
|
|
68
|
+
return false;
|
|
98
69
|
}
|
|
99
70
|
for (const key in a) {
|
|
100
71
|
if (!object.hasProperty(a, key) || !equalityDeep(a[key], b[key])) {
|
|
101
|
-
return false
|
|
72
|
+
return false;
|
|
102
73
|
}
|
|
103
74
|
}
|
|
104
|
-
break
|
|
75
|
+
break;
|
|
105
76
|
case Array:
|
|
106
77
|
if (a.length !== b.length) {
|
|
107
|
-
return false
|
|
78
|
+
return false;
|
|
108
79
|
}
|
|
109
80
|
for (let i = 0; i < a.length; i++) {
|
|
110
81
|
if (!equalityDeep(a[i], b[i])) {
|
|
111
|
-
return false
|
|
82
|
+
return false;
|
|
112
83
|
}
|
|
113
84
|
}
|
|
114
|
-
break
|
|
85
|
+
break;
|
|
115
86
|
default:
|
|
116
|
-
return false
|
|
87
|
+
return false;
|
|
117
88
|
}
|
|
118
|
-
return true
|
|
89
|
+
return true;
|
|
119
90
|
};
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* @template V
|
|
123
|
-
* @template {V} OPTS
|
|
124
|
-
*
|
|
125
|
-
* @param {V} value
|
|
126
|
-
* @param {Array<OPTS>} options
|
|
127
|
-
*/
|
|
128
|
-
// @ts-ignore
|
|
129
91
|
const isOneOf = (value, options) => options.includes(value);
|
|
130
|
-
|
|
131
92
|
exports.callAll = callAll;
|
|
132
93
|
exports.equalityDeep = equalityDeep;
|
|
133
94
|
exports.id = id;
|
|
@@ -1,51 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* Utility module to create and manipulate Iterators.
|
|
5
|
-
*
|
|
6
|
-
* @module iterator
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @template T
|
|
12
|
-
* @param {function():IteratorResult<T>} next
|
|
13
|
-
* @return {IterableIterator<T>}
|
|
14
|
-
*/
|
|
15
|
-
const createIterator = next => ({
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const createIterator = (next) => ({
|
|
16
4
|
/**
|
|
17
5
|
* @return {IterableIterator<T>}
|
|
18
6
|
*/
|
|
19
|
-
[Symbol.iterator]
|
|
20
|
-
return this
|
|
7
|
+
[Symbol.iterator]() {
|
|
8
|
+
return this;
|
|
21
9
|
},
|
|
22
10
|
// @ts-ignore
|
|
23
11
|
next
|
|
24
12
|
});
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @template T
|
|
28
|
-
* @param {Iterator<T>} iterator
|
|
29
|
-
* @param {function(T):boolean} filter
|
|
30
|
-
*/
|
|
31
13
|
const iteratorFilter = (iterator, filter) => createIterator(() => {
|
|
32
14
|
let res;
|
|
33
15
|
do {
|
|
34
16
|
res = iterator.next();
|
|
35
|
-
} while (!res.done && !filter(res.value))
|
|
36
|
-
return res
|
|
17
|
+
} while (!res.done && !filter(res.value));
|
|
18
|
+
return res;
|
|
37
19
|
});
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @template T,M
|
|
41
|
-
* @param {Iterator<T>} iterator
|
|
42
|
-
* @param {function(T):M} fmap
|
|
43
|
-
*/
|
|
44
20
|
const iteratorMap = (iterator, fmap) => createIterator(() => {
|
|
45
21
|
const { done, value } = iterator.next();
|
|
46
|
-
return { done, value: done ?
|
|
22
|
+
return { done, value: done ? void 0 : fmap(value) };
|
|
47
23
|
});
|
|
48
|
-
|
|
49
24
|
exports.createIterator = createIterator;
|
|
50
25
|
exports.iteratorFilter = iteratorFilter;
|
|
51
26
|
exports.iteratorMap = iteratorMap;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const symbol = require("./symbol.js");
|
|
5
4
|
const BOLD = symbol.create();
|
|
6
5
|
const UNBOLD = symbol.create();
|
|
7
6
|
const BLUE = symbol.create();
|
|
@@ -11,45 +10,36 @@ const RED = symbol.create();
|
|
|
11
10
|
const PURPLE = symbol.create();
|
|
12
11
|
const ORANGE = symbol.create();
|
|
13
12
|
const UNCOLOR = symbol.create();
|
|
14
|
-
|
|
15
|
-
/* c8 ignore start */
|
|
16
|
-
/**
|
|
17
|
-
* @param {Array<undefined|string|Symbol|Object|number|function():any>} args
|
|
18
|
-
* @return {Array<string|object|number|undefined>}
|
|
19
|
-
*/
|
|
20
|
-
const computeNoColorLoggingArgs = args => {
|
|
13
|
+
const computeNoColorLoggingArgs = (args) => {
|
|
21
14
|
if (args.length === 1 && args[0]?.constructor === Function) {
|
|
22
|
-
args = /** @type {Array<string|Symbol|Object|number>} */
|
|
15
|
+
args = /** @type {Array<string|Symbol|Object|number>} */
|
|
16
|
+
/** @type {[function]} */
|
|
17
|
+
args[0]();
|
|
23
18
|
}
|
|
24
19
|
const strBuilder = [];
|
|
25
20
|
const logArgs = [];
|
|
26
|
-
// try with formatting until we find something unsupported
|
|
27
21
|
let i = 0;
|
|
28
22
|
for (; i < args.length; i++) {
|
|
29
23
|
const arg = args[i];
|
|
30
|
-
if (arg ===
|
|
31
|
-
break
|
|
24
|
+
if (arg === void 0) {
|
|
25
|
+
break;
|
|
32
26
|
} else if (arg.constructor === String || arg.constructor === Number) {
|
|
33
27
|
strBuilder.push(arg);
|
|
34
28
|
} else if (arg.constructor === Object) {
|
|
35
|
-
break
|
|
29
|
+
break;
|
|
36
30
|
}
|
|
37
31
|
}
|
|
38
32
|
if (i > 0) {
|
|
39
|
-
|
|
40
|
-
logArgs.push(strBuilder.join(''));
|
|
33
|
+
logArgs.push(strBuilder.join(""));
|
|
41
34
|
}
|
|
42
|
-
// append the rest
|
|
43
35
|
for (; i < args.length; i++) {
|
|
44
36
|
const arg = args[i];
|
|
45
37
|
if (!(arg instanceof Symbol)) {
|
|
46
38
|
logArgs.push(arg);
|
|
47
39
|
}
|
|
48
40
|
}
|
|
49
|
-
return logArgs
|
|
41
|
+
return logArgs;
|
|
50
42
|
};
|
|
51
|
-
/* c8 ignore stop */
|
|
52
|
-
|
|
53
43
|
exports.BLUE = BLUE;
|
|
54
44
|
exports.BOLD = BOLD;
|
|
55
45
|
exports.GREEN = GREEN;
|
|
@@ -1,118 +1,79 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Isomorphic logging module with support for colors!
|
|
12
|
-
*
|
|
13
|
-
* @module logging
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @type {Object<Symbol,pair.Pair<string,string>>}
|
|
19
|
-
*/
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const environment = require("./environment.js");
|
|
4
|
+
const set = require("./set.js");
|
|
5
|
+
const pair = require("./pair.js");
|
|
6
|
+
const dom = require("./dom.js");
|
|
7
|
+
const map = require("./map.js");
|
|
8
|
+
const logging_common = require("./logging.common.js");
|
|
20
9
|
const _browserStyleMap = {
|
|
21
|
-
[logging_common.BOLD]: pair.create(
|
|
22
|
-
[logging_common.UNBOLD]: pair.create(
|
|
23
|
-
[logging_common.BLUE]: pair.create(
|
|
24
|
-
[logging_common.GREEN]: pair.create(
|
|
25
|
-
[logging_common.GREY]: pair.create(
|
|
26
|
-
[logging_common.RED]: pair.create(
|
|
27
|
-
[logging_common.PURPLE]: pair.create(
|
|
28
|
-
[logging_common.ORANGE]: pair.create(
|
|
29
|
-
|
|
10
|
+
[logging_common.BOLD]: pair.create("font-weight", "bold"),
|
|
11
|
+
[logging_common.UNBOLD]: pair.create("font-weight", "normal"),
|
|
12
|
+
[logging_common.BLUE]: pair.create("color", "blue"),
|
|
13
|
+
[logging_common.GREEN]: pair.create("color", "green"),
|
|
14
|
+
[logging_common.GREY]: pair.create("color", "grey"),
|
|
15
|
+
[logging_common.RED]: pair.create("color", "red"),
|
|
16
|
+
[logging_common.PURPLE]: pair.create("color", "purple"),
|
|
17
|
+
[logging_common.ORANGE]: pair.create("color", "orange"),
|
|
18
|
+
// not well supported in chrome when debugging node with inspector - TODO: deprecate
|
|
19
|
+
[logging_common.UNCOLOR]: pair.create("color", "black")
|
|
30
20
|
};
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* @param {Array<string|Symbol|Object|number|function():any>} args
|
|
34
|
-
* @return {Array<string|object|number>}
|
|
35
|
-
*/
|
|
36
|
-
/* c8 ignore start */
|
|
37
21
|
const computeBrowserLoggingArgs = (args) => {
|
|
38
22
|
if (args.length === 1 && args[0]?.constructor === Function) {
|
|
39
|
-
args = /** @type {Array<string|Symbol|Object|number>} */
|
|
23
|
+
args = /** @type {Array<string|Symbol|Object|number>} */
|
|
24
|
+
/** @type {[function]} */
|
|
25
|
+
args[0]();
|
|
40
26
|
}
|
|
41
27
|
const strBuilder = [];
|
|
42
28
|
const styles = [];
|
|
43
29
|
const currentStyle = map.create();
|
|
44
|
-
/**
|
|
45
|
-
* @type {Array<string|Object|number>}
|
|
46
|
-
*/
|
|
47
30
|
let logArgs = [];
|
|
48
|
-
// try with formatting until we find something unsupported
|
|
49
31
|
let i = 0;
|
|
50
32
|
for (; i < args.length; i++) {
|
|
51
33
|
const arg = args[i];
|
|
52
|
-
// @ts-ignore
|
|
53
34
|
const style = _browserStyleMap[arg];
|
|
54
|
-
if (style !==
|
|
35
|
+
if (style !== void 0) {
|
|
55
36
|
currentStyle.set(style.left, style.right);
|
|
56
37
|
} else {
|
|
57
|
-
if (arg ===
|
|
58
|
-
break
|
|
38
|
+
if (arg === void 0) {
|
|
39
|
+
break;
|
|
59
40
|
}
|
|
60
41
|
if (arg.constructor === String || arg.constructor === Number) {
|
|
61
|
-
const
|
|
62
|
-
if (i > 0 ||
|
|
63
|
-
strBuilder.push(
|
|
64
|
-
styles.push(
|
|
42
|
+
const style2 = dom.mapToStyleString(currentStyle);
|
|
43
|
+
if (i > 0 || style2.length > 0) {
|
|
44
|
+
strBuilder.push("%c" + arg);
|
|
45
|
+
styles.push(style2);
|
|
65
46
|
} else {
|
|
66
47
|
strBuilder.push(arg);
|
|
67
48
|
}
|
|
68
49
|
} else {
|
|
69
|
-
break
|
|
50
|
+
break;
|
|
70
51
|
}
|
|
71
52
|
}
|
|
72
53
|
}
|
|
73
54
|
if (i > 0) {
|
|
74
|
-
// create logArgs with what we have so far
|
|
75
55
|
logArgs = styles;
|
|
76
|
-
logArgs.unshift(strBuilder.join(
|
|
56
|
+
logArgs.unshift(strBuilder.join(""));
|
|
77
57
|
}
|
|
78
|
-
// append the rest
|
|
79
58
|
for (; i < args.length; i++) {
|
|
80
59
|
const arg = args[i];
|
|
81
60
|
if (!(arg instanceof Symbol)) {
|
|
82
61
|
logArgs.push(arg);
|
|
83
62
|
}
|
|
84
63
|
}
|
|
85
|
-
return logArgs
|
|
64
|
+
return logArgs;
|
|
86
65
|
};
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
/* c8 ignore start */
|
|
90
|
-
const computeLoggingArgs = environment.supportsColor
|
|
91
|
-
? computeBrowserLoggingArgs
|
|
92
|
-
: logging_common.computeNoColorLoggingArgs;
|
|
93
|
-
/* c8 ignore stop */
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* @param {Array<string|Symbol|Object|number>} args
|
|
97
|
-
*/
|
|
66
|
+
const computeLoggingArgs = environment.supportsColor ? computeBrowserLoggingArgs : logging_common.computeNoColorLoggingArgs;
|
|
98
67
|
const print = (...args) => {
|
|
99
68
|
console.log(...computeLoggingArgs(args));
|
|
100
|
-
/* c8 ignore next */
|
|
101
69
|
vconsoles.forEach((vc) => vc.print(args));
|
|
102
70
|
};
|
|
103
|
-
|
|
104
|
-
/* c8 ignore start */
|
|
105
|
-
/**
|
|
106
|
-
* @param {Array<string|Symbol|Object|number>} args
|
|
107
|
-
*/
|
|
108
71
|
const warn = (...args) => {
|
|
109
72
|
console.warn(...computeLoggingArgs(args));
|
|
110
73
|
args.unshift(logging_common.ORANGE);
|
|
111
74
|
vconsoles.forEach((vc) => vc.print(args));
|
|
112
75
|
};
|
|
113
|
-
|
|
114
76
|
const vconsoles = set.create();
|
|
115
|
-
|
|
116
77
|
exports.BLUE = logging_common.BLUE;
|
|
117
78
|
exports.BOLD = logging_common.BOLD;
|
|
118
79
|
exports.GREEN = logging_common.GREEN;
|