Socket
Socket
Sign inDemoInstall

@bjmrq/utils

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bjmrq/utils - npm Package Compare versions

Comparing version 0.0.18 to 0.0.19

2

dist/src/general-utils/fp.d.ts

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

/// <reference types="ts-toolbelt" />
export declare const debugLog: <M>(value: M) => M;
export declare const tryCatchAsync: import("Function/Curry").Curry<(_fn: any, _onError: any, _object: any) => Promise<any>>;
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.debugLog = void 0;
exports.tryCatchAsync = exports.debugLog = void 0;
const R = __importStar(require("ramda"));
exports.debugLog = (value) => {

@@ -8,2 +28,11 @@ console.log(value);

};
exports.tryCatchAsync = R.curry(async (_fn, _onError, _object) => {
try {
// eslint-disable-next-line @typescript-eslint/return-await
return await _fn(_object);
}
catch (error) {
return _onError(error, _object);
}
});
//# sourceMappingURL=fp.js.map

2

package.json
{
"name": "@bjmrq/utils",
"version": "0.0.18",
"version": "0.0.19",
"description": "A toolkit of little utilities",

@@ -5,0 +5,0 @@ "author": "Benjamin Marquis",

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