@idlebox/browser 0.0.34 → 0.0.36

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.
@@ -0,0 +1,3 @@
1
+ export { WrappedWebConsole } from "./debug/logger.js";
2
+ export { TimeoutStorage } from "./storage/timeoutStorage.js";
3
+ //# sourceMappingURL=__create_index.generated.d.ts.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "file": "__create_index.generated.d.ts",
4
+ "sourceRoot": "",
5
+ "sources": [
6
+ "../../src/__create_index.generated.ts"
7
+ ],
8
+ "names": [],
9
+ "mappings": "AAMC,OAAO,EAAC,iBAAiB,EAAC,MAAM,mBAAmB,CAAC;AAGpD,OAAO,EAAC,cAAc,EAAC,MAAM,6BAA6B,CAAC"
10
+ }
@@ -0,0 +1,10 @@
1
+ // DO NOT EDIT THIS FILE
2
+ // @ts-ignore
3
+ /* eslint-disable */
4
+ /* debug/logger.ts */
5
+ // Identifiers
6
+ export { WrappedWebConsole } from "./debug/logger.js";
7
+ /* storage/timeoutStorage.ts */
8
+ // Identifiers
9
+ export { TimeoutStorage } from "./storage/timeoutStorage.js";
10
+ //# sourceMappingURL=__create_index.generated.js.map
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "version": 3,
3
- "file": "__create_index.generated.mjs",
3
+ "file": "__create_index.generated.js",
4
4
  "sourceRoot": "",
5
5
  "sources": [
6
6
  "../../src/__create_index.generated.ts"
7
7
  ],
8
8
  "names": [],
9
- "mappings": "AAAA,wBAAwB;AACxB,aAAa;AACb,oBAAoB;AAEpB,qBAAqB;AACpB,cAAc;AACd,OAAO,EAAC,iBAAiB,EAAC,2BAA0B;AACrD,+BAA+B;AAC9B,cAAc;AACd,OAAO,EAAC,cAAc,EAAC,qCAAoC"
9
+ "mappings": "AAAA,wBAAwB;AACxB,aAAa;AACb,oBAAoB;AAEpB,qBAAqB;AACpB,cAAc;AACd,OAAO,EAAC,iBAAiB,EAAC,MAAM,mBAAmB,CAAC;AACrD,+BAA+B;AAC9B,cAAc;AACd,OAAO,EAAC,cAAc,EAAC,MAAM,6BAA6B,CAAC"
10
10
  }
@@ -0,0 +1 @@
1
+ {"version":"5.8.2"}
@@ -0,0 +1,20 @@
1
+ import { WrappedConsole, 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
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "file": "logger.d.ts",
4
+ "sourceRoot": "",
5
+ "sources": [
6
+ "../../../src/debug/logger.ts"
7
+ ],
8
+ "names": [],
9
+ "mappings": "AAAA,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAExE,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"
10
+ }
@@ -28,4 +28,4 @@ export class WrappedWebConsole extends WrappedConsole {
28
28
  }
29
29
  }
30
30
  }
31
- //# sourceMappingURL=logger.mjs.map
31
+ //# sourceMappingURL=logger.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "file": "logger.mjs",
3
+ "file": "logger.js",
4
4
  "sourceRoot": "",
5
5
  "sources": [
6
6
  "../../../src/debug/logger.ts"
@@ -0,0 +1,12 @@
1
+ export declare class TimeoutStorage<T> {
2
+ private readonly storage;
3
+ private readonly valueKey;
4
+ private readonly expireKey;
5
+ constructor(key: string, storage?: Storage);
6
+ save(data: Readonly<T>, expire: string | Date): void;
7
+ forget(): void;
8
+ getExpire(): Date | null;
9
+ read(defaultVal: Readonly<T>): Readonly<T>;
10
+ read(): Readonly<T> | undefined;
11
+ }
12
+ //# sourceMappingURL=timeoutStorage.d.ts.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "file": "timeoutStorage.d.ts",
4
+ "sourceRoot": "",
5
+ "sources": [
6
+ "../../../src/storage/timeoutStorage.ts"
7
+ ],
8
+ "names": [],
9
+ "mappings": "AAAA,qBAAa,cAAc,CAAC,CAAC;IAIH,OAAO,CAAC,QAAQ,CAAC,OAAO;IAHjD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;gBAEvB,GAAG,EAAE,MAAM,EAAmB,OAAO,GAAE,OAAsB;IAKzE,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAU7C,MAAM;IAKN,SAAS;IAWT,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC;IAC1C,IAAI,IAAI,QAAQ,CAAC,CAAC,CAAC,GAAG,SAAS;CAuB/B"
10
+ }
@@ -49,4 +49,4 @@ export class TimeoutStorage {
49
49
  }
50
50
  }
51
51
  }
52
- //# sourceMappingURL=timeoutStorage.mjs.map
52
+ //# sourceMappingURL=timeoutStorage.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "file": "timeoutStorage.mjs",
3
+ "file": "timeoutStorage.js",
4
4
  "sourceRoot": "",
5
5
  "sources": [
6
6
  "../../../src/storage/timeoutStorage.ts"
package/package.json CHANGED
@@ -1,27 +1,29 @@
1
1
  {
2
2
  "name": "@idlebox/browser",
3
3
  "type": "module",
4
- "version": "0.0.34",
4
+ "version": "0.0.36",
5
5
  "license": "MIT",
6
6
  "main": "./lib/cjs/__create_index.generated.cjs",
7
- "module": "./lib/esm/__create_index.generated.mjs",
7
+ "module": "./lib/esm/__create_index.generated.js",
8
+ "types": "./lib/esm/__create_index.generated.d.ts",
8
9
  "exports": {
9
10
  ".": {
10
- "import": "./lib/esm/__create_index.generated.mjs",
11
+ "types": "./lib/esm/__create_index.generated.d.ts",
12
+ "import": "./lib/esm/__create_index.generated.js",
11
13
  "require": "./lib/cjs/__create_index.generated.cjs"
12
14
  },
13
15
  "./package.json": "./package.json"
14
16
  },
17
+ "sideEffects": false,
15
18
  "repository": "https://github.com/GongT/baobao",
16
19
  "dependencies": {
17
20
  "source-map-support": "^0.5.21",
18
- "tslib": "^2.7.0",
19
- "@idlebox/common": "^1.3.32"
21
+ "@idlebox/common": "^1.4.2"
20
22
  },
21
23
  "devDependencies": {
22
- "@rushstack/heft": "^0.67.0",
23
- "@build-script/single-dog-asset": "^1.0.31",
24
- "@internal/dualstack-rig": "^1.0.1"
24
+ "@rushstack/heft": "^0.68.2",
25
+ "@internal/local-rig": "^1.0.1",
26
+ "@build-script/single-dog-asset": "^1.0.33"
25
27
  },
26
28
  "scripts": {
27
29
  "build": "heft --unmanaged build",
package/src/tsconfig.json CHANGED
@@ -1,10 +1,9 @@
1
1
  {
2
- "extends": "@internal/dualstack-rig/profiles/all-in-one/tsconfig.json",
2
+ "extends": "@internal/local-rig/profiles/dualstack/tsconfig.json",
3
3
  "compilerOptions": {
4
4
  "typeRoots": ["../node_modules/@types", "../node_modules"],
5
- "outDir": "../lib",
5
+ "outDir": "../lib/esm",
6
6
  "rootDir": "./",
7
- "declarationDir": "../temp/dts-out",
8
- "tsBuildInfoFile": "../temp/tsbuildinfo.json"
7
+ "lib": ["ESNext", "DOM"]
9
8
  }
10
9
  }
@@ -1,36 +0,0 @@
1
- import { WrappedConsole } from '@idlebox/common';
2
- import { WrappedConsoleOptions } from '@idlebox/common';
3
-
4
- declare const colorMap: {
5
- info: string;
6
- success: string;
7
- debug: string;
8
- error: string;
9
- trace: string;
10
- warn: string;
11
- assert: string;
12
- };
13
-
14
- export declare class TimeoutStorage<T> {
15
- private readonly storage;
16
- private readonly valueKey;
17
- private readonly expireKey;
18
- constructor(key: string, storage?: Storage);
19
- save(data: Readonly<T>, expire: string | Date): void;
20
- forget(): void;
21
- getExpire(): Date | null;
22
- read(defaultVal: Readonly<T>): Readonly<T>;
23
- read(): Readonly<T> | undefined;
24
- }
25
-
26
- declare interface WebConsoleOptions {
27
- color?: boolean | Partial<typeof colorMap>;
28
- }
29
-
30
- export declare class WrappedWebConsole extends WrappedConsole {
31
- private readonly colors;
32
- constructor(title: string, { color, ...opt }?: WrappedConsoleOptions & WebConsoleOptions);
33
- protected processColorLabel(msg: any[], pos: number, level: string, prefix: string): void;
34
- }
35
-
36
- export { }
@@ -1,36 +0,0 @@
1
- import { WrappedConsole } from '@idlebox/common';
2
- import { WrappedConsoleOptions } from '@idlebox/common';
3
-
4
- declare const colorMap: {
5
- info: string;
6
- success: string;
7
- debug: string;
8
- error: string;
9
- trace: string;
10
- warn: string;
11
- assert: string;
12
- };
13
-
14
- export declare class TimeoutStorage<T> {
15
- private readonly storage;
16
- private readonly valueKey;
17
- private readonly expireKey;
18
- constructor(key: string, storage?: Storage);
19
- save(data: Readonly<T>, expire: string | Date): void;
20
- forget(): void;
21
- getExpire(): Date | null;
22
- read(defaultVal: Readonly<T>): Readonly<T>;
23
- read(): Readonly<T> | undefined;
24
- }
25
-
26
- declare interface WebConsoleOptions {
27
- color?: boolean | Partial<typeof colorMap>;
28
- }
29
-
30
- export declare class WrappedWebConsole extends WrappedConsole {
31
- private readonly colors;
32
- constructor(title: string, { color, ...opt }?: WrappedConsoleOptions & WebConsoleOptions);
33
- protected processColorLabel(msg: any[], pos: number, level: string, prefix: string): void;
34
- }
35
-
36
- export { }
@@ -1,10 +0,0 @@
1
- // DO NOT EDIT THIS FILE
2
- // @ts-ignore
3
- /* eslint-disable */
4
- /* debug/logger.ts */
5
- // Identifiers
6
- export { WrappedWebConsole } from "./debug/logger.mjs";
7
- /* storage/timeoutStorage.ts */
8
- // Identifiers
9
- export { TimeoutStorage } from "./storage/timeoutStorage.mjs";
10
- //# sourceMappingURL=__create_index.generated.mjs.map