Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bunt/util

Package Overview
Dependencies
Maintainers
0
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bunt/util - npm Package Compare versions

Comparing version 0.29.26 to 0.30.0

5

dist/cjs/callback.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.filterValueCallback = exports.resolveOrReject = void 0;
exports.resolveOrReject = resolveOrReject;
exports.filterValueCallback = filterValueCallback;
function resolveOrReject(resolve, reject) {

@@ -13,3 +14,2 @@ return (error) => {

}
exports.resolveOrReject = resolveOrReject;
function filterValueCallback(test, cb) {

@@ -22,3 +22,2 @@ return (value) => {

}
exports.filterValueCallback = filterValueCallback;
//# sourceMappingURL=callback.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.bind = exports.memoize = void 0;
exports.memoize = memoize;
exports.bind = bind;
const assert_1 = require("@bunt/assert");

@@ -31,3 +32,2 @@ const is_1 = require("@bunt/is");

}
exports.memoize = memoize;
function bind(target, propertyKey, descriptor) {

@@ -49,3 +49,2 @@ return {

}
exports.bind = bind;
//# sourceMappingURL=decorator.js.map

14

dist/cjs/function.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.safeMap = exports.voidify = exports.toArray = exports.makeSafe = exports.curry = exports.not = exports.noop = void 0;
exports.noop = void 0;
exports.not = not;
exports.curry = curry;
exports.makeSafe = makeSafe;
exports.toArray = toArray;
exports.voidify = voidify;
exports.safeMap = safeMap;
const async_1 = require("@bunt/async");

@@ -13,3 +19,2 @@ const is_1 = require("@bunt/is");

}
exports.not = not;
function curry(fn, value) {

@@ -20,3 +25,2 @@ return (...args) => {

}
exports.curry = curry;
function makeSafe(fn) {

@@ -32,3 +36,2 @@ return async (...args) => {

}
exports.makeSafe = makeSafe;
function toArray(value) {

@@ -40,7 +43,5 @@ if ((0, is_1.isArray)(value)) {

}
exports.toArray = toArray;
function voidify(value) {
return value.then(() => undefined);
}
exports.voidify = voidify;
async function safeMap(values, fn) {

@@ -58,3 +59,2 @@ const result = [];

}
exports.safeMap = safeMap;
//# sourceMappingURL=function.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.logger = exports.isLogable = exports.isLoggerOwner = void 0;
exports.logger = void 0;
exports.isLoggerOwner = isLoggerOwner;
exports.isLogable = isLogable;
const is_1 = require("@bunt/is");

@@ -9,7 +11,5 @@ const Logger_js_1 = require("./Logger.js");

}
exports.isLoggerOwner = isLoggerOwner;
function isLogable(target) {
return (0, is_1.isObject)(target) && "getLogValue" in target;
}
exports.isLogable = isLogable;
const logger = (target, propertyKey) => {

@@ -16,0 +16,0 @@ Object.defineProperty(target, propertyKey, {

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { LogFormat, LogMessage } from "../interfaces.js";

@@ -3,0 +2,0 @@ import { InOutTransportAbstract } from "./InOutTransportAbstract.js";

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { LogFormat, LogMessage } from "../interfaces.js";

@@ -3,0 +2,0 @@ import { InOutTransportAbstract } from "./InOutTransportAbstract.js";

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { KeyOf } from "@bunt/type";

@@ -3,0 +2,0 @@ import { Dict } from "./interfaces.js";

@@ -1,3 +0,2 @@

/// <reference types="node" />
export type Dict<T> = NodeJS.Dict<T>;
//# sourceMappingURL=interfaces.d.ts.map

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { Argv } from "./Argv.js";

@@ -3,0 +2,0 @@ export declare class Program {

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { Duplex, Readable, Stream, Transform, Writable } from "stream";

@@ -3,0 +2,0 @@ type IsStream = Readable | Writable | Duplex | Transform | Stream;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.compare = void 0;
exports.compare = compare;
function compare(str1, str2) {
return str1.toLowerCase() === str2.toLowerCase();
}
exports.compare = compare;
//# sourceMappingURL=string.js.map

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { LogFormat, LogMessage } from "../interfaces.js";

@@ -3,0 +2,0 @@ import { InOutTransportAbstract } from "./InOutTransportAbstract.js";

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { LogFormat, LogMessage } from "../interfaces.js";

@@ -3,0 +2,0 @@ import { InOutTransportAbstract } from "./InOutTransportAbstract.js";

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { KeyOf } from "@bunt/type";

@@ -3,0 +2,0 @@ import { Dict } from "./interfaces.js";

@@ -1,3 +0,2 @@

/// <reference types="node" />
export type Dict<T> = NodeJS.Dict<T>;
//# sourceMappingURL=interfaces.d.ts.map

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { Argv } from "./Argv.js";

@@ -3,0 +2,0 @@ export declare class Program {

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { Duplex, Readable, Stream, Transform, Writable } from "stream";

@@ -3,0 +2,0 @@ type IsStream = Readable | Writable | Duplex | Transform | Stream;

{
"name": "@bunt/util",
"version": "0.29.26",
"version": "0.30.0",
"keywords": [

@@ -31,6 +31,6 @@ "typescript"

"dependencies": {
"@bunt/assert": "^0.29.19",
"@bunt/async": "^0.29.19",
"@bunt/is": "^0.29.19",
"@bunt/type": "^0.29.19"
"@bunt/assert": "^0.30.0",
"@bunt/async": "^0.30.0",
"@bunt/is": "^0.30.0",
"@bunt/type": "^0.30.0"
},

@@ -43,3 +43,3 @@ "description": "Utils",

"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

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc