@idlebox/browser 0.0.52 → 0.0.54

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.
@@ -7,7 +7,6 @@
7
7
  *
8
8
  ******************************************************************************/
9
9
  export { downloadBlob } from "./binray/download-blob.js";
10
- export { WrappedWebConsole } from "./debug/logger.js";
11
10
  export { TimeoutStorage } from "./storage/with-timeout.js";
12
11
  export { StreamAppender } from "./web-audio/audio-player.js";
13
12
  export { MediaForPlayback } from "./web-audio/audio-player.js";
@@ -1 +1 @@
1
- {"version":3,"file":"autoindex.generated.d.ts","sourceRoot":"","sources":["../../src/dom/autoindex.generated.ts"],"names":[],"mappings":"AAAA;;;;;;;gFAOgF;AAS/E,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAGzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAGtD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAG3D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAGlE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC"}
1
+ {"version":3,"file":"autoindex.generated.d.ts","sourceRoot":"","sources":["../../src/dom/autoindex.generated.ts"],"names":[],"mappings":"AAAA;;;;;;;gFAOgF;AAS/E,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAGzD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAG3D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAGlE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC"}
@@ -13,9 +13,6 @@
13
13
  /* binray/download-blob.ts */
14
14
  // Identifiers
15
15
  export { downloadBlob } from "./binray/download-blob.js";
16
- /* debug/logger.ts */
17
- // Identifiers
18
- export { WrappedWebConsole } from "./debug/logger.js";
19
16
  /* storage/with-timeout.ts */
20
17
  // Identifiers
21
18
  export { TimeoutStorage } from "./storage/with-timeout.js";
@@ -1 +1 @@
1
- {"version":3,"file":"autoindex.generated.js","sourceRoot":"","sources":["../../src/dom/autoindex.generated.ts"],"names":[],"mappings":"AAAA;;;;;;;gFAOgF;AAEhF,wCAAwC;AACxC,0CAA0C;AAC1C,oBAAoB;AACpB,aAAa;AAEb,6BAA6B;AAC5B,cAAc;AACd,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC1D,qBAAqB;AACpB,cAAc;AACd,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACvD,6BAA6B;AAC5B,cAAc;AACd,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC5D,+BAA+B;AAC9B,cAAc;AACd,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACnE,+BAA+B;AAC9B,cAAc;AACd,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC"}
1
+ {"version":3,"file":"autoindex.generated.js","sourceRoot":"","sources":["../../src/dom/autoindex.generated.ts"],"names":[],"mappings":"AAAA;;;;;;;gFAOgF;AAEhF,wCAAwC;AACxC,0CAA0C;AAC1C,oBAAoB;AACpB,aAAa;AAEb,6BAA6B;AAC5B,cAAc;AACd,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC1D,6BAA6B;AAC5B,cAAc;AACd,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC5D,+BAA+B;AAC9B,cAAc;AACd,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACnE,+BAA+B;AAC9B,cAAc;AACd,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@idlebox/browser",
3
3
  "type": "module",
4
- "version": "0.0.52",
4
+ "version": "0.0.54",
5
5
  "exports": {
6
6
  "./react": {
7
7
  "default": "./lib/react/autoindex.generated.js"
@@ -13,12 +13,12 @@
13
13
  },
14
14
  "sideEffects": false,
15
15
  "dependencies": {
16
- "@idlebox/common": "^1.5.11"
16
+ "@idlebox/common": "^1.5.13"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/react": "^19.2.8",
20
20
  "@types/react-dom": "^19.2.3",
21
- "@build-script/single-dog-asset": "latest",
21
+ "@build-script/baseline-rig": "latest",
22
22
  "@types/node": "npm:@idlebox/empty@1.0.1",
23
23
  "@mpis/run": "^0.0.17"
24
24
  },
@@ -15,9 +15,6 @@
15
15
  /* binray/download-blob.ts */
16
16
  // Identifiers
17
17
  export { downloadBlob } from "./binray/download-blob.js";
18
- /* debug/logger.ts */
19
- // Identifiers
20
- export { WrappedWebConsole } from "./debug/logger.js";
21
18
  /* storage/with-timeout.ts */
22
19
  // Identifiers
23
20
  export { TimeoutStorage } from "./storage/with-timeout.js";
package/src/tsconfig.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": "@build-script/single-dog-asset/package/tsconfig.json",
2
+ "extends": "@build-script/baseline-rig/package/tsconfig.json",
3
3
  "compilerOptions": {
4
4
  "typeRoots": ["../node_modules/@types", "../node_modules"],
5
5
  "outDir": "../lib",
@@ -1,20 +0,0 @@
1
- import { WrappedConsole, type WrappedConsoleOptions } from '@idlebox/common';
2
- interface WebConsoleOptions {
3
- color?: boolean | Partial<typeof colorMap>;
4
- }
5
- declare const colorMap: {
6
- info: string;
7
- success: string;
8
- debug: string;
9
- error: string;
10
- trace: string;
11
- warn: string;
12
- assert: string;
13
- };
14
- export declare class WrappedWebConsole extends WrappedConsole {
15
- private readonly colors;
16
- constructor(title: string, { color, ...opt }?: WrappedConsoleOptions & WebConsoleOptions);
17
- protected processColorLabel(msg: any[], pos: number, level: string, prefix: string): void;
18
- }
19
- export {};
20
- //# sourceMappingURL=logger.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/dom/debug/logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE7E,UAAU,iBAAiB;IAC1B,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,QAAQ,CAAC,CAAC;CAC3C;AAED,QAAA,MAAM,QAAQ;;;;;;;;CAQb,CAAC;AAEF,qBAAa,iBAAkB,SAAQ,cAAc;IACpD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;gBAE/C,KAAK,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,GAAG,GAAG,EAAE,GAAE,qBAAqB,GAAG,iBAAsB;IAS5F,SAAS,CAAC,iBAAiB,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;CAOzF"}
@@ -1,31 +0,0 @@
1
- import { WrappedConsole } from '@idlebox/common';
2
- const colorMap = {
3
- info: 'color:blue',
4
- success: 'color:green',
5
- debug: 'color:gray',
6
- error: 'color:red',
7
- trace: 'color:gray',
8
- warn: 'color:yellow',
9
- assert: 'background:red;color:white',
10
- };
11
- export class WrappedWebConsole extends WrappedConsole {
12
- colors = colorMap;
13
- constructor(title, { color, ...opt } = {}) {
14
- super(title, opt);
15
- if (color === false) {
16
- this.colors = {};
17
- }
18
- else if (typeof color === 'object') {
19
- this.colors = { ...colorMap, ...color };
20
- }
21
- }
22
- processColorLabel(msg, pos, level, prefix) {
23
- if (this.colors[level]) {
24
- msg.splice(pos, 1, `%c${prefix}${msg[pos]}`, this.colors[level]);
25
- }
26
- else {
27
- msg[pos] = `${prefix}${msg[pos]}`;
28
- }
29
- }
30
- }
31
- //# sourceMappingURL=logger.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../../src/dom/debug/logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAA8B,MAAM,iBAAiB,CAAC;AAM7E,MAAM,QAAQ,GAAG;IAChB,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,aAAa;IACtB,KAAK,EAAE,YAAY;IACnB,KAAK,EAAE,WAAW;IAClB,KAAK,EAAE,YAAY;IACnB,IAAI,EAAE,cAAc;IACpB,MAAM,EAAE,4BAA4B;CACpC,CAAC;AAEF,MAAM,OAAO,iBAAkB,SAAQ,cAAc;IACnC,MAAM,GAA2B,QAAQ,CAAC;IAE3D,YAAY,KAAa,EAAE,EAAE,KAAK,EAAE,GAAG,GAAG,KAAgD,EAAE;QAC3F,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAClB,IAAI,KAAK,KAAK,KAAK,EAAE,CAAC;YACrB,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;QAClB,CAAC;aAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YACtC,IAAI,CAAC,MAAM,GAAG,EAAE,GAAG,QAAQ,EAAE,GAAG,KAAK,EAAE,CAAC;QACzC,CAAC;IACF,CAAC;IAES,iBAAiB,CAAC,GAAU,EAAE,GAAW,EAAE,KAAa,EAAE,MAAc;QACjF,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;YACxB,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,MAAM,GAAG,GAAG,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAClE,CAAC;aAAM,CAAC;YACP,GAAG,CAAC,GAAG,CAAC,GAAG,GAAG,MAAM,GAAG,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;QACnC,CAAC;IACF,CAAC;CACD"}
@@ -1,36 +0,0 @@
1
- import { WrappedConsole, type WrappedConsoleOptions } from '@idlebox/common';
2
-
3
- interface WebConsoleOptions {
4
- color?: boolean | Partial<typeof colorMap>;
5
- }
6
-
7
- const colorMap = {
8
- info: 'color:blue',
9
- success: 'color:green',
10
- debug: 'color:gray',
11
- error: 'color:red',
12
- trace: 'color:gray',
13
- warn: 'color:yellow',
14
- assert: 'background:red;color:white',
15
- };
16
-
17
- export class WrappedWebConsole extends WrappedConsole {
18
- private readonly colors: Record<string, string> = colorMap;
19
-
20
- constructor(title: string, { color, ...opt }: WrappedConsoleOptions & WebConsoleOptions = {}) {
21
- super(title, opt);
22
- if (color === false) {
23
- this.colors = {};
24
- } else if (typeof color === 'object') {
25
- this.colors = { ...colorMap, ...color };
26
- }
27
- }
28
-
29
- protected processColorLabel(msg: any[], pos: number, level: string, prefix: string): void {
30
- if (this.colors[level]) {
31
- msg.splice(pos, 1, `%c${prefix}${msg[pos]}`, this.colors[level]);
32
- } else {
33
- msg[pos] = `${prefix}${msg[pos]}`;
34
- }
35
- }
36
- }