@e-mc/types 0.10.16 → 0.10.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/README.md +5 -5
- package/constant.d.ts +1 -1
- package/index.js +1 -1
- package/lib/index.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
## Interface
|
|
11
11
|
|
|
12
|
-
* [View Source](https://www.unpkg.com/@e-mc/types@0.10.
|
|
12
|
+
* [View Source](https://www.unpkg.com/@e-mc/types@0.10.17/index.d.ts)
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
15
|
import type { LogArguments } from "./lib/logger";
|
|
@@ -197,10 +197,10 @@ const IMPORT_MAP: Record<string, string | undefined>;
|
|
|
197
197
|
|
|
198
198
|
## References
|
|
199
199
|
|
|
200
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
201
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
202
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
203
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
200
|
+
- https://www.unpkg.com/@e-mc/types@0.10.17/index.d.ts
|
|
201
|
+
- https://www.unpkg.com/@e-mc/types@0.10.17/lib/logger.d.ts
|
|
202
|
+
- https://www.unpkg.com/@e-mc/types@0.10.17/lib/module.d.ts
|
|
203
|
+
- https://www.unpkg.com/@e-mc/types@0.10.17/lib/object.d.ts
|
|
204
204
|
|
|
205
205
|
* https://developer.mozilla.org/en-US/docs/Web/API/DOMException
|
|
206
206
|
* https://www.npmjs.com/package/@types/bytes
|
package/constant.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1126,7 +1126,7 @@ async function importESM(name, isDefault, fromPath) {
|
|
|
1126
1126
|
if (fromPath && path.isAbsolute(name)) {
|
|
1127
1127
|
name = (0, url_1.pathToFileURL)(name).toString();
|
|
1128
1128
|
}
|
|
1129
|
-
const result =
|
|
1129
|
+
const result = import(name);
|
|
1130
1130
|
if (isDefault) {
|
|
1131
1131
|
const out = await result;
|
|
1132
1132
|
if (isObject(out) && 'default' in out) {
|
package/lib/index.d.ts
CHANGED
|
@@ -577,7 +577,7 @@ declare namespace functions {
|
|
|
577
577
|
getThreadCount(username: string, iv?: BinaryLike): ThreadCountStat;
|
|
578
578
|
getThreadCount(username?: string | boolean, iv?: BinaryLike): number;
|
|
579
579
|
getLogDelayed(): FormatMessageArgs[];
|
|
580
|
-
getPermissionFromSettings(): IPermission;
|
|
580
|
+
getPermissionFromSettings(freeze?: boolean): IPermission;
|
|
581
581
|
readonly prototype: IHost;
|
|
582
582
|
new(config?: HostInitConfig): IHost;
|
|
583
583
|
}
|