@bunt/unit
Advanced tools
Comparing version 0.29.26 to 0.30.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.disposeAll = exports.dispose = void 0; | ||
exports.dispose = dispose; | ||
exports.disposeAll = disposeAll; | ||
const util_1 = require("@bunt/util"); | ||
@@ -36,7 +37,5 @@ const is_1 = require("@bunt/is"); | ||
} | ||
exports.dispose = dispose; | ||
async function disposeAll(disposables) { | ||
await (0, util_1.safeMap)(disposables, (disposable) => dispose(disposable)); | ||
} | ||
exports.disposeAll = disposeAll; | ||
//# sourceMappingURL=functions.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.unit = exports.asyncify = void 0; | ||
exports.asyncify = asyncify; | ||
exports.unit = unit; | ||
const Unit_js_1 = require("./Unit.js"); | ||
@@ -8,7 +9,5 @@ function asyncify(factory) { | ||
} | ||
exports.asyncify = asyncify; | ||
function unit(context) { | ||
return Unit_js_1.Unit.factory(context); | ||
} | ||
exports.unit = unit; | ||
//# sourceMappingURL=fn.js.map |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import { Logger } from "@bunt/util"; | ||
@@ -3,0 +2,0 @@ import { IDisposable, IRunnable, RuntimeTask } from "./interfaces.js"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SystemLogger = exports.main = exports.isRunnable = exports.isDisposable = exports.Signals = void 0; | ||
exports.SystemLogger = exports.Signals = void 0; | ||
exports.isDisposable = isDisposable; | ||
exports.isRunnable = isRunnable; | ||
exports.main = main; | ||
const is_1 = require("@bunt/is"); | ||
@@ -11,7 +14,5 @@ const util_1 = require("@bunt/util"); | ||
} | ||
exports.isDisposable = isDisposable; | ||
function isRunnable(target) { | ||
return (0, is_1.isObject)(target) && "getHeartbeat" in target; | ||
} | ||
exports.isRunnable = isRunnable; | ||
function main(...tasks) { | ||
@@ -21,4 +22,3 @@ Runtime_js_1.Runtime.run(tasks) | ||
} | ||
exports.main = main; | ||
exports.SystemLogger = new util_1.Logger("System"); | ||
//# sourceMappingURL=internal.js.map |
@@ -27,3 +27,3 @@ import { KeyOf } from "@bunt/type"; | ||
static serialize: (dsn: DSN<any>) => string; | ||
static parse: <O_1 extends Record<string, any>>(dsn: string) => DSN<O_1>; | ||
static parse: <O_1 extends DSNOptions>(dsn: string) => DSN<O_1>; | ||
protected static parsePort(port?: string): number | undefined; | ||
@@ -30,0 +30,0 @@ static parseOptions<O extends DSNOptions>(query?: string): O; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.resolve = exports.isService = void 0; | ||
exports.resolve = void 0; | ||
exports.isService = isService; | ||
const is_1 = require("@bunt/is"); | ||
@@ -12,3 +13,2 @@ const Service_js_1 = require("./Service.js"); | ||
} | ||
exports.isService = isService; | ||
const resolve = (p, k) => { | ||
@@ -15,0 +15,0 @@ Service_js_1.Service.resolve()(p, k); |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import { Logger } from "@bunt/util"; | ||
@@ -3,0 +2,0 @@ import { IDisposable, IRunnable, RuntimeTask } from "./interfaces.js"; |
@@ -27,3 +27,3 @@ import { KeyOf } from "@bunt/type"; | ||
static serialize: (dsn: DSN<any>) => string; | ||
static parse: <O_1 extends Record<string, any>>(dsn: string) => DSN<O_1>; | ||
static parse: <O_1 extends DSNOptions>(dsn: string) => DSN<O_1>; | ||
protected static parsePort(port?: string): number | undefined; | ||
@@ -30,0 +30,0 @@ static parseOptions<O extends DSNOptions>(query?: string): O; |
{ | ||
"name": "@bunt/unit", | ||
"version": "0.29.26", | ||
"version": "0.30.0", | ||
"keywords": [ | ||
@@ -36,10 +36,10 @@ "typescript" | ||
"dependencies": { | ||
"@bunt/assert": "^0.29.19", | ||
"@bunt/async": "^0.29.19", | ||
"@bunt/is": "^0.29.19", | ||
"@bunt/type": "^0.29.19", | ||
"@bunt/util": "^0.29.26" | ||
"@bunt/assert": "^0.30.0", | ||
"@bunt/async": "^0.30.0", | ||
"@bunt/is": "^0.30.0", | ||
"@bunt/type": "^0.30.0", | ||
"@bunt/util": "^0.30.0" | ||
}, | ||
"license": "MIT", | ||
"gitHead": "f15def8255bafd5231a46aa842f535cb4ee0fbb9" | ||
"gitHead": "eeab4ccbf32313ff12690fab4bc5a783712a3c28" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
305885
2109
+ Added@bunt/assert@0.30.0(transitive)
+ Added@bunt/async@0.30.0(transitive)
+ Added@bunt/is@0.30.0(transitive)
+ Added@bunt/type@0.30.0(transitive)
+ Added@bunt/util@0.30.0(transitive)
- Removed@bunt/assert@0.29.19(transitive)
- Removed@bunt/async@0.29.19(transitive)
- Removed@bunt/is@0.29.19(transitive)
- Removed@bunt/type@0.29.19(transitive)
- Removed@bunt/util@0.29.26(transitive)
Updated@bunt/assert@^0.30.0
Updated@bunt/async@^0.30.0
Updated@bunt/is@^0.30.0
Updated@bunt/type@^0.30.0
Updated@bunt/util@^0.30.0