@idlebox/browser 0.0.27 → 0.0.29
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/lib/cjs/__create_index.generated.cjs +15 -0
- package/lib/cjs/__create_index.generated.cjs.map +10 -0
- package/lib/cjs/__create_index.generated.d.cts +36 -0
- package/lib/esm/__create_index.generated.d.mts +36 -0
- package/lib/esm/__create_index.generated.mjs +10 -0
- package/lib/esm/__create_index.generated.mjs.map +10 -0
- package/package.json +4 -4
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// DO NOT EDIT THIS FILE
|
|
3
|
+
// @ts-ignore
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TimeoutStorage = exports.WrappedWebConsole = void 0;
|
|
7
|
+
/* debug/logger.ts */
|
|
8
|
+
// Identifiers
|
|
9
|
+
var logger_js_1 = require("./debug/logger.cjs");
|
|
10
|
+
Object.defineProperty(exports, "WrappedWebConsole", { enumerable: true, get: function () { return logger_js_1.WrappedWebConsole; } });
|
|
11
|
+
/* storage/timeoutStorage.ts */
|
|
12
|
+
// Identifiers
|
|
13
|
+
var timeoutStorage_js_1 = require("./storage/timeoutStorage.cjs");
|
|
14
|
+
Object.defineProperty(exports, "TimeoutStorage", { enumerable: true, get: function () { return timeoutStorage_js_1.TimeoutStorage; } });
|
|
15
|
+
//# sourceMappingURL=__create_index.generated.cjs.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"file": "__create_index.generated.cjs",
|
|
4
|
+
"sourceRoot": "",
|
|
5
|
+
"sources": [
|
|
6
|
+
"../../src/__create_index.generated.ts"
|
|
7
|
+
],
|
|
8
|
+
"names": [],
|
|
9
|
+
"mappings": ";AAAA,wBAAwB;AACxB,aAAa;AACb,oBAAoB;;;AAEpB,qBAAqB;AACpB,cAAc;AACd,gDAAoD;AAA5C,8GAAA,iBAAiB,OAAA;AAC1B,+BAA+B;AAC9B,cAAc;AACd,kEAA2D;AAAnD,mHAAA,cAAc,OAAA"
|
|
10
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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 { }
|
|
@@ -0,0 +1,36 @@
|
|
|
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 { }
|
|
@@ -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.mjs";
|
|
7
|
+
/* storage/timeoutStorage.ts */
|
|
8
|
+
// Identifiers
|
|
9
|
+
export { TimeoutStorage } from "./storage/timeoutStorage.mjs";
|
|
10
|
+
//# sourceMappingURL=__create_index.generated.mjs.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"file": "__create_index.generated.mjs",
|
|
4
|
+
"sourceRoot": "",
|
|
5
|
+
"sources": [
|
|
6
|
+
"../../src/__create_index.generated.ts"
|
|
7
|
+
],
|
|
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"
|
|
10
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@idlebox/browser",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.29",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./lib/cjs/__create_index.generated.cjs",
|
|
7
7
|
"module": "./lib/esm/__create_index.generated.mjs",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"repository": "https://github.com/GongT/baobao",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"source-map-support": "^0.5.21",
|
|
18
|
-
"tslib": "^2.
|
|
19
|
-
"@idlebox/common": "^1.3.
|
|
18
|
+
"tslib": "^2.6.0",
|
|
19
|
+
"@idlebox/common": "^1.3.24"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@rushstack/heft": "^0.
|
|
22
|
+
"@rushstack/heft": "^0.57.1",
|
|
23
23
|
"@build-script/single-dog-asset": "^1.0.27",
|
|
24
24
|
"@internal/dualstack-rig": "^1.0.1"
|
|
25
25
|
},
|